/* HERO CLONE - 100% VISUAL MATCHING WITH MOCKUP提案 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');



/* 1. Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.header-container {
    display: contents;
    /* Desactiva el wrapper intermedio para que el flex del header funcione directamente con logo y nav */
}

/* LOGO */
.logo-container {
    text-decoration: none;
}

.logo-text-main {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem); /* Logo notablemente más pequeño */
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: #ffffff;
}

@media (min-width: 1400px) {
    .logo-text-main {
        font-size: 2.2rem; /* Tamaño superior exclusivamente para monitores grandes */
    }
}

.logo-text-main span {
    background: linear-gradient(90deg, #00FBFF 0%, #0047AB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }
}

.logo-line,
.logo-text-slogan {
    display: none;
}

/* ELIMINAR CUALQUIER RASTRO DE LÍNEAS EN EL MENÚ */
nav ul li a::after,
nav ul li a::before,
nav ul li a span::after,
nav ul li a span::before {
    display: none;
    content: "";
    height: 0;
    opacity: 0;
}

/* MENÚ */
nav {
    display: flex;
    align-items: center;
    gap: 35px;
    /* Misma separación que en tu código */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li a:not(.btn-contact) {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    /* Más negrita como en la foto */
    font-size: 0.9rem;
    /* Un poco más grande como pediste */
    opacity: 0.9;
    transition: all 0.3s ease;
    text-transform: uppercase;
    /* Capitalización como en la foto */
    letter-spacing: 0.5px;
    border-bottom: none;
    /* Quitamos cualquier línea de borde */
}

nav ul li a:not(.btn-contact):hover {
    color: #00FBFF;
    opacity: 1;
    text-decoration: none;
    border: none;
    /* Aseguramos que no haya líneas */
    box-shadow: none;
}

.btn-contact {
    border: 1.5px solid rgba(0, 251, 255, 0.4);
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 50px;
    background: rgba(0, 251, 255, 0.03);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 251, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: rgba(0, 251, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 251, 255, 0.4);
    border-color: #00FBFF;
}

/* Ajustes finales para el Language Switcher */
.language-dropdown-container {
    margin-left: 20px;
}

.current-lang-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0e1f28;
    /* Mismo fondo de idioma que en tu código */
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    border: none;
}

.current-lang-display img {
    width: 22px;
    /* Mismo tamaño de flag que en tu código */
    border-radius: 3px;
}

/* Solo se despliega al Clic (clase .open que pone el JS) */
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #0a1118;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 5px 0;
    margin-top: 10px;
    min-width: 160px;
    z-index: 10000;
}

.language-dropdown-container.open .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-menu li {
    padding: 12px 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lang-dropdown-menu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Gris suave, NADA de verde */
    color: #ffffff;
}

.lang-dropdown-menu li:hover .lang-text {
    color: #ffffff;
}

.hero {
    min-height: 100vh;
    padding: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000000 !important;
    position: relative;
    z-index: 20;
    overflow: hidden;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover; 
    object-position: center;
    opacity: 1;
    filter: brightness(1.2) contrast(1.1);
    -webkit-mask-image: none;
    mask-image: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.hero-text {
    text-align: center;
    margin: 0 auto;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
    /* Eliminamos margin-top para que el contenedor lo centre naturalmente sin empujar las cosas abajo */
}

.hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.8rem); /* Un poco más comprimido en pantallas estándar */
    line-height: 1.15;
    margin: 0 auto 15px; /* Margen menor para juntar con el párrafo */
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    max-width: 1000px; /* Evita que las líneas queden demasiado anchas o delgadas */
    text-transform: none;
    width: 100%;
}

.hero h1 .blue {
    background: linear-gradient(90deg, #00FBFF 0%, #0076FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(0, 251, 255, 0.3));
    line-height: 1.2;
    /* Evitar que el texto se corte */
    padding-bottom: 10px;
    /* Espacio extra para que no se corte por abajo */
}

.hero p.hero-subtitle {
    font-size: 1.05rem; /* Reducido a petición global */
    line-height: 1.5;
    margin: 20px auto 25px; /* Añadido margen superior para bajar el párrafo */
    color: #ffffff;
    font-weight: 500;
    max-width: 750px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

/* 3. MEDIA QUERIES PARA RESPONSIVIDAD TOTAL */

/* Pantallas Pequeñas (Móvil) */
@media (max-width: 768px) {
    header {
        position: fixed;
        /* Mejor para móvil */
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px 0;
    }

    .header-container {
        width: 90%;
        justify-content: space-between;
    }

    .logo-container {
        transform: scale(0.8);
        margin-left: -10px;
    }

    nav#mainNav {
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav#mainNav ul li a {
        color: #ffffff;
    }

    .lang-dropdown-menu {
        position: relative;
        top: 0;
        right: auto;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        margin-top: 10px;
        padding-bottom: 20px;
    }
    
    .lang-dropdown-menu li {
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
        color: #ffffff;
        font-size: 1.5rem;
        background: transparent;
        border: none;
    }

    .hero {
        padding: 0 20px;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2rem; /* Smaller size for mobile fit */
        letter-spacing: -0.5px;
    }

    .hero p.hero-subtitle {
        font-size: 1.05rem;
        margin-top: 20px;
        padding: 0 10px; /* Safety padding */
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: auto;
        max-width: 240px;
        white-space: normal; /* Allow text to wrap cleanly */
        line-height: 1.2;
    }

    .hero-video-bg {
        width: 100vw;
        height: 100%;
        padding: 0; 
        box-sizing: border-box;
        object-fit: cover;
        object-position: center;
        /* Custom adjustment */
        transform: translate(-50%, -50%); 
        filter: none;
        mix-blend-mode: screen;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Tablets / Laptops Pequeñas */
@media (max-width: 1024px) and (min-width: 769px) {
    nav ul {
        gap: 20px;
    }

    .logo-container {
        transform: scale(0.9);
    }
}

/* Laptops Medianos a Estándar (hasta justo antes de Super Monitores) */
@media (max-width: 1439px) and (min-width: 992px) {
    .hero h1 {
        font-size: 2.8rem !important; /* Reducción extrema forzada para laptops y 13"/15" */
    }
}

/* Pantallas Grandes (Super Monitores y PC de Escritorio) */
@media (min-width: 1440px) {
    .header-container {
        max-width: 1300px;
        /* Centrado como en portátil */
    }

    .hero h1 {
        font-size: 5.5rem; /* Título aún más grande en PC de escritorio */
        max-width: 1400px;
    }

    .hero p.hero-subtitle {
        font-size: 1.7rem; /* Reducido a petición global manteniendo proporción */
        max-width: 1100px; 
    }
    
    nav#mainNav ul li a:not(.btn-contact) {
        font-size: 1.1rem; /* Aumento exclusivo para monitores grandes */
    }
}

/* 3. CTA Button */
.cta-button {
    background: linear-gradient(135deg, #00D1FF 0%, #0081FA 100%);
    color: #ffffff;
    padding: 15px 45px; /* Reducido de 20px 65px */
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 209, 255, 0.25); /* Sombra ligeramente reducida */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem; /* Reducido de 1.1rem */
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 60px rgba(0, 209, 255, 0.6);
    background: #ffffff;
    color: #000000;
}

/* Cleanup */
.hero-image,
.hero::after {
    display: none;
}

/* Hacer que los videos de Servicios y Consultoría ocupen toda la pantalla como fondo real */
#servicios .hero-video-bg,
#consultoria .hero-video-bg {
    object-fit: cover !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    padding: 0 !important;
    mix-blend-mode: normal !important;
    z-index: 0 !important;
    display: block !important;
}

/* APLICAR 100VH Y CENTRADO A LAS DEMÁS SECCIONES COMO EL HERO */
#consultoria, #contacto {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 120px !important; /* Damos margen extra por si el contenido sobrepasa, que no llegue nunca al menú */
    padding-bottom: 60px !important;
    box-sizing: border-box;
    align-items: center;
}

#servicios {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-top: -120px !important;
    padding-top: 185px !important; 
    padding-bottom: 120px !important;
    box-sizing: border-box;
    align-items: center;
}

#servicios > .container, 
#consultoria > .container, 
#contacto > .sl-container {
    width: 100%;
    margin: auto; /* Centrado vertical natural que no recorta por arriba como lo hace justify-content: center */
    position: relative;
    z-index: 2;
}

/* Reducir padding inline en consultoria para que quede perfectamente equilibrado */
#consultoria .container {
    padding-top: 0 !important;
}

/* Compactar títulos para portátiles para que encajen mejor en 100vh */
#servicios .section-title, 
#consultoria .section-title, 
#contacto .section-title {
    margin-bottom: 30px !important; /* Original 50px */
}

/* REDUCCIÓN DE ESCALA EN TARJETAS PARA ENCAJAR EN 100VH (Portátiles) */
@media (max-width: 1440px) {
    /* Darle más espacio vertical realitario reduciendo el padding masivo que estiraba la cuadrícula a fuera de la pantalla */
    #consultoria {
        padding-top: 75px !important; /* Rebajado de 85px */
        padding-bottom: 15px !important; /* Rebajado de 25px */
    }

    #servicios {
        margin-top: -120px !important;
        padding-top: 170px !important;
        padding-bottom: 90px !important;
    }

    #servicios .business-grid {
        gap: 15px !important; /* Menor separación vertical/horizontal original 30px */
    }
    
    #servicios .business-card {
        padding: 20px 25px !important; /* Reducido de 40px */
    }
    
    #servicios .business-icon {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 12px !important;
    }
    
    #servicios .business-icon svg {
        width: 45px !important;
        height: 45px !important;
    }
    
    #servicios .business-card h3 {
        font-size: 1.15rem !important; /* Reducido */
        margin-bottom: 8px !important;
        line-height: 1.25 !important;
    }
    
    #servicios .business-card p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    #servicios .section-title h2 {
        font-size: 2.2rem !important; /* Titulo principal más pequeño */
        margin-bottom: 5px !important;
    }
    
    #servicios .section-title p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    #servicios .trust-bar {
        margin-top: 20px !important;
    }


}

/* MÓVIL: APILAR TARJETAS VERTICALMENTE EN CONSULTORÍA */
@media (max-width: 900px) {
    #consultoria .tech-grid {
        grid-template-columns: 1fr !important;
    }
    #consultoria .tech-item {
        padding: 30px 20px !important;
    }
}
