:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1a6;
    /* ANTES (Azul Eléctrico): #3b82f6 */
    /* AHORA (Cian de Alta Legibilidad): #00E5FF */
    --accent: #00E5FF;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box_sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    transition: 0.3s ease;
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 15px 50px;
}
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.btn-primary { background: white; color: black !important; padding: 10px 20px; border-radius: 4px; font-weight: 700 !important; }

/* HERO SECTION - EL MOTOR VISUAL */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;      /* Fallback estándar */
    height: 100dvh;     /* Altura dinámica moderna */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* EL VIDEO (Fondo) */
.video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Cubre todo sin bordes negros */
    object-position: center;
    z-index: -2;
}

/* OVERLAY (Sombra) */
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Oscurecimiento al 40% */
    z-index: -1;
}

/* CONTENIDO (Texto) */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom right, #fff, #a1a1a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.25rem;
    color: #ffffff; /* ANTES: var(--text-muted) | AHORA: Blanco Puro */
    margin-bottom: 40px;
    font-weight: 400; /* Opcional: Si se ve muy grueso en blanco, puedes bajarlo a 300 */
    opacity: 0.9;
}
.hero-buttons .btn-white { background: white; color: black; padding: 15px 30px; border-radius: 6px; font-weight: 600; text-decoration: none; margin-right: 15px; }
.hero-buttons .btn-outline { border: 1px solid rgba(255,255,255,0.3); color: white; padding: 15px 30px; border-radius: 6px; font-weight: 600; text-decoration: none; }

/* FEATURES SECTION (Para dar altura) */
.features-section { padding: 100px 50px; min-height: 50vh; }


/* --- MÓVIL (AJUSTES FINOS) --- */
@media screen and (max-width: 768px) {
    .navbar { padding: 20px; }
    .nav-links { display: none; } /* Ocultamos menú simple por ahora */
    
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { font-size: 1rem; }
    
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .hero-buttons a { width: 100%; display: block; margin: 0; }
    
    /* Ajuste crítico para el video en móvil si el logo sigue cortándose */
    /* Como ya ajustaste el video, 'cover' debería funcionar bien. 
       Si no, cambia 'cover' por 'contain' aquí abajo */
    .video-bg {
        object-fit: cover; 
    }
}

/* --- FEATURES SECTION (Estilo Scale.com) --- */
.features-section {
    padding: 120px 20px;
    background: #050505; /* Fondo negro continuo */
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.badge {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.section-header h2 {
    font-size: 3rem;
    margin-top: 15px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* GRID & CARDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto Hover: Glow sutil */
.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}


.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Móvil */
@media (max-width: 768px) {
    .section-header h2 { font-size: 2rem; }
    .feature-card { padding: 30px; }
}

/* --- ACTUALIZACIÓN EN styles.css --- */


/* 2. Forzamos al reproductor a llenar el nuevo espacio */
/* Agrega dotlottie-player a la regla existente */
lottie-player, dotlottie-player {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1.2); 
}

/* --- ACTUALIZACIÓN SERVICIOS --- */

/* Usamos un grid inteligente que centra los elementos si la última fila está incompleta */
.grid-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Esto centra las tarjetas de la última fila */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    /* Forzamos un ancho base para que quepan 3 por fila en desktop */
    flex: 1 1 300px; 
    max-width: 380px; /* Evita que se estiren demasiado */
    
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alineación izquierda para lectura */
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.card-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px; /* Icono centrado */
    display: flex; justify-content: center;
}

.feature-card h3 {
    width: 100%;
    text-align: center; /* Título centrado */
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

/* Estilo para la frase "Quote" */
.feature-card .quote {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--accent); /* Azul Pentria */
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.9;
}

.feature-card p:last-child {
    color: #ffffff; /* ANTES: var(--text-muted) | AHORA: Blanco Puro */
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    opacity: 0.9; /* Truco de diseño: 90% de opacidad evita que el texto blanco canse la vista sobre negro, sin perder blancura */
}