/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #050505;
    --bg-card: #0f0f0f;
    --accent: #FFD700; /* Oro */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- ANIMACIONES DE FONDO (MOVILES) --- */
@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.tech-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    animation: moveGrid 15s linear infinite; /* Movimiento sutil */
    pointer-events: none;
}

/* --- TIPOGRAFÍA Y BRILLOS --- */
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: white; letter-spacing: -0.5px; }

h1 { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    line-height: 1.1; margin-bottom: 25px; font-weight: 800; 
}

/* Efecto Shimmer (Brillo) en el título */
.shimmer-text {
    background: linear-gradient(120deg, #fff 0%, #fff 40%, #FFD700 50%, #fff 60%, #fff 100%);
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 20px; }
p { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; margin: 0 auto 25px; line-height: 1.8; }
.highlight { color: var(--accent); }

/* --- NAV --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5,5,5,0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 1000;
}
.logo { font-family: 'Montserrat'; font-weight: 900; font-size: 1.1rem; letter-spacing: 1px; color: white; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #888; text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: 0.3s; position: relative; }
.nav-links a:hover { color: white; }

/* Subrayado animado en hover */
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 1px; bottom: -5px; left: 0;
    background-color: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn-nav { border: 1px solid #333; padding: 8px 20px !important; border-radius: 50px; color: white !important; }
.btn-nav:hover { background: white; color: black !important; }
.btn-nav::after { display: none; } /* Quitar subrayado del botón */

.mobile-cta { display: none; } /* Oculto en escritorio */

/* --- BOTÓN PRINCIPAL CON PULSO --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.btn-primary {
    background-color: var(--accent); color: #000;
    padding: 18px 40px; font-weight: 800; border-radius: 4px;
    text-decoration: none; display: inline-block; border: none; cursor: pointer;
    font-size: 1rem; transition: all 0.3s ease; text-transform: uppercase;
    position: relative; overflow: hidden;
}

.pulse-effect { animation: pulse 2s infinite; }

.btn-primary:hover { 
    transform: translateY(-3px); 
    background-color: #e6c200; 
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* --- SECCIONES --- */
section { padding: 80px 5%; text-align: center; position: relative; }
.container { max-width: 1100px; margin: 0 auto; }

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 100px; }
.hero-badge {
    border: 1px solid rgba(255, 215, 0, 0.3); color: var(--accent); background: rgba(255, 215, 0, 0.05);
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 30px;
    text-transform: uppercase; letter-spacing: 1px; display: inline-block;
}

/* --- PLATAFORMAS --- */
.platforms-bar { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; max-width: 800px; }
.platforms-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; margin-bottom: 20px; }
.platforms-logos { display: flex; justify-content: center; gap: 30px; font-family: 'Montserrat'; font-weight: 700; opacity: 0.8; flex-wrap: wrap; color: white; }
.platforms-logos span { display: flex; align-items: center; gap: 10px; }
.dot { width: 6px; height: 6px; background: #333; border-radius: 50%; }

/* --- TARJETAS DE SERVICIOS --- */

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; text-align: left; }

.service-card {
    /* Estado Normal */
    background-color: var(--bg-card); /* Usamos background-color explícitamente */
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    
    /* LA MAGIA: Todas las transiciones juntas separadas por comas */
    transition: 
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), /* Movimiento rápido */
        border-color 0.8s ease,     /* El borde tarda casi 1s en encenderse */
        background-color 0.8s ease, /* El fondo se oscurece despacio */
        box-shadow 0.8s ease;       /* La sombra crece despacio */
}

.service-card:hover {
    /* Estado Hover */
    transform: translateY(-8px);
    border-color: var(--accent);
    
    /* CAMBIO CLAVE: Usamos color sólido, NO gradient. */
    /* Esto permite que la transición de 0.8s funcione perfecto */
    background-color: #000000; 
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Iconos flotantes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating { animation: float 4s ease-in-out infinite; display: inline-block; }
.delay-icon { animation-delay: 2s; } /* Para que no floten todos a la vez */

.icon-box { font-size: 2.5rem; margin-bottom: 20px; filter: drop-shadow(0 0 15px rgba(255,215,0,0.15)); }

/* --- TABLA EVOLUTIVA (Escritorio: Tabla / Móvil: Tarjetas) --- */

/* Estilos base (Escritorio) */
.comparison-table { 
    width: 100%; 
    max-width: 1000px; 
    margin: 40px auto; 
    border-collapse: separate; 
    border-spacing: 0 10px; /* Separación entre filas */
    text-align: left; 
}

.comparison-table th { 
    color: #888; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    padding: 15px 30px;
    border-bottom: 1px solid #333;
}

.comparison-table td { 
    padding: 25px 30px; 
    background: #0a0a0a; 
    color: var(--text-muted);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

/* Columna 1: El concepto */
.comparison-table td:first-child { 
    font-weight: 700; 
    color: white; 
    font-family: 'Montserrat', sans-serif;
    border-left: 1px solid #222;
    border-radius: 8px 0 0 8px;
}

/* Columna 3: Nosotros (Destacada) */
.comparison-table td:last-child { 
    color: var(--accent); 
    font-weight: 700; 
    background: rgba(255, 215, 0, 0.05); /* Fondo dorado muy sutil */
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 0 8px 8px 0;
    position: relative;
}

/* --- TRANSFORMACIÓN MÓVIL (MAGIA AQUÍ) --- */
@media (max-width: 768px) {
    /* Ocultamos los encabezados de la tabla clásica */
    .comparison-table thead { display: none; }
    
    /* Convertimos la tabla y filas en bloques */
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td {
        display: block;
        width: 100%;
    }
    
    /* Estilo de "Tarjeta" para cada fila */
    .comparison-table tr {
        margin-bottom: 25px;
        background: #0f0f0f;
        border: 1px solid #222;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    /* Estilo de las celdas internas */
    .comparison-table td {
        padding: 10px 0;
        background: transparent !important; /* Quitar fondos de escritorio */
        border: none !important; /* Quitar bordes de escritorio */
        border-radius: 0 !important;
        text-align: left;
    }

    /* Celda 1 (Título de la tarjeta) */
    .comparison-table td:first-child {
        font-size: 1.1rem;
        color: white;
        border-bottom: 1px solid #333 !important;
        margin-bottom: 15px;
        padding-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Celda 2 (Competencia) - Añadimos etiqueta visual */
    .comparison-table td:nth-child(2) {
        color: #888;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .comparison-table td:nth-child(2)::before {
        content: "❌ Otros:"; 
        font-weight: 700;
        color: #555;
        font-size: 0.8rem;
        min-width: 60px;
    }

    /* Celda 3 (Nosotros) - Añadimos etiqueta visual */
    .comparison-table td:last-child {
        color: var(--accent);
        font-size: 1rem;
        font-weight: 700;
        margin-top: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .comparison-table td:last-child::before {
        content: "✅ Bold:"; 
        font-weight: 900;
        color: var(--accent);
        font-size: 0.8rem;
        min-width: 60px;
    }
}
/* --- FORMULARIO --- */
.contact-section { background-color: var(--bg-card); border-top: 1px solid var(--border); }
.form-container { max-width: 600px; margin: 0 auto; text-align: left; background: #050505; padding: 40px; border-radius: 16px; border: 1px solid #222; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
label { display: block; margin-bottom: 8px; font-weight: 600; color: white; font-size: 0.9rem; }
input, textarea { 
    width: 100%; padding: 15px; margin-bottom: 20px; 
    background: #0e0e0e; border: 1px solid #333; color: white; 
    border-radius: 6px; font-family: 'Inter'; transition: 0.3s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: #111; box-shadow: 0 0 15px rgba(255,215,0,0.1); }

/* --- FOOTER --- */
footer { background-color: #020202; color: #888; padding: 80px 5% 30px; font-size: 0.9rem; border-top: 1px solid #111; text-align: left; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; max-width: 1100px; margin: 0 auto 50px; }
.footer-grid h4 { color: white; margin-bottom: 20px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-grid a:hover { color: white; }
.email-link { color: var(--accent) !important; font-weight: 600; font-size: 1.05rem; }
.footer-legal { border-top: 1px solid #222; padding-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: 1100px; margin: 0 auto; font-size: 0.8rem; }

/* --- ANIMACIÓN ENTRADA (SCROLL) --- */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Retrasos para efecto cascada */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* --- ADAPTACIÓN MÓVIL OPTIMIZADA --- */
@media (max-width: 768px) {
    /* Header móvil limpio */
    .nav-links { display: none; } 
    .mobile-cta { 
        display: block; 
        background: var(--accent); color: black; 
        padding: 8px 16px; border-radius: 4px; 
        text-decoration: none; font-weight: 700; font-size: 0.85rem;
    }
    
    /* Tipografía ajustada */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    /* Espaciados reducidos */
    section { padding: 60px 5%; }
    .hero { padding-top: 120px; min-height: auto; padding-bottom: 80px; }
    
    /* Formulario más ancho en móvil */
    .form-container { padding: 25px; }
    
    /* Logos plataformas en columna o grid pequeño */
    .platforms-logos { gap: 15px; font-size: 0.8rem; }
    
    .btn-primary { width: 100%; padding: 16px; } /* Botón ancho fácil de pulsar */

}





