/* 
    Estilos principales - Takemuso Swat Internacional
    Diseño Táctico, Futurista y Dark Mode Inmersivo 
*/

:root {
    --bg-color: #030303;
    --bg-panel: rgba(15, 15, 18, 0.75);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent-red: #d32f2f;
    --accent-yellow: #fbc02d;
    --accent-green: #388e3c;
    --accent-silver: #b0bec5;
    --glow-color: rgba(176, 190, 197, 0.3);

    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Protección de Imágenes */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

body:has(.cursor) {
    cursor: none; /* Solo ocultar cursor nativo en páginas públicas con diana */
}

/* Custom Cursor (Diana de tiro avanzada SVG) */
.cursor {
    width: 50px;
    height: 50px;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' width='60' height='60'><circle cx='30' cy='30' r='20' fill='none' stroke='%23b0bec5' stroke-width='3'/><circle cx='30' cy='30' r='10' fill='none' stroke='%23ff3b3b' stroke-width='2'/><circle cx='30' cy='30' r='3' fill='%23ff3b3b'/><line x1='30' y1='2' x2='30' y2='18' stroke='%23b0bec5' stroke-width='3'/><line x1='30' y1='42' x2='30' y2='58' stroke='%23b0bec5' stroke-width='3'/><line x1='2' y1='30' x2='18' y2='30' stroke='%23b0bec5' stroke-width='3'/><line x1='42' y1='30' x2='58' y2='30' stroke='%23b0bec5' stroke-width='3'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s, background-image 0.2s;
}

/* Ocultar el cursor en dispositivos táctiles (móviles) */
@media (max-width: 768px) {
    .cursor {
        display: none !important;
    }
}

.cursor.hovered {
    transform: translate(-50%, -50%) scale(1.2);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' width='60' height='60'><circle cx='30' cy='30' r='20' fill='none' stroke='%23fbc02d' stroke-width='3'/><circle cx='30' cy='30' r='10' fill='none' stroke='%23ff3b3b' stroke-width='2'/><circle cx='30' cy='30' r='3' fill='%23ff3b3b'/><line x1='30' y1='2' x2='30' y2='18' stroke='%23fbc02d' stroke-width='3'/><line x1='30' y1='42' x2='30' y2='58' stroke='%23fbc02d' stroke-width='3'/><line x1='2' y1='30' x2='18' y2='30' stroke='%23fbc02d' stroke-width='3'/><line x1='42' y1='30' x2='58' y2='30' stroke='%23fbc02d' stroke-width='3'/></svg>");
}

/* Three.js Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Detrás de todo */
}

/* Navegación */
.minimal-header {
    position: absolute; /* Cambiado de fixed a absolute para que no se quede pegado tapando el contenido */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.minimal-header.scrolled {
    /* Mantenemos un ligero oscurecimiento pero ya no tapa porque es absolute */
    background-color: rgba(3, 3, 3, 0.4);
    padding: 20px 50px;
}

/* Logo 3D Interactivo - Medalla Táctica (SWAT Badge) */
.logo {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transform-style: preserve-3d;
    z-index: 100;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

/* Bisel Metálico (Borde de la Medalla) */
.logo::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, #555, #111);
    box-shadow: 
        inset 0 0 5px rgba(255,255,255,0.3), 
        inset 0 0 15px rgba(0,0,0,1),
        0 20px 30px rgba(0,0,0,0.9),
        0 0 30px rgba(251, 192, 45, 0.3); /* Glow sutil dorado alrededor */
    z-index: 1;
}

/* Imagen incrustada (Mejorando la calidad percibida) */
.logo img {
    position: relative;
    display: block;
    height: 136px !important; 
    width: 136px !important;
    border-radius: 50% !important;
    border: 3px solid #050505; /* Borde oscuro para separar */
    object-fit: cover;
    z-index: 2;
    /* Mejorando nitidez y contraste de la imagen */
    filter: contrast(1.2) saturate(1.1) brightness(1.05);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Reflejo de cristal sobre la medalla */
.logo::after {
    content: '';
    position: absolute;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 45%, rgba(255,255,255,0.1) 100%);
    z-index: 3;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
}

.logo-text span {
    color: var(--accent-silver);
}

/* Marca con Título al lado del Logo para Optimizar Espacio */
.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-title-inline {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.brand-main {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.brand-sub {
    color: var(--accent-yellow);
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.brand-academy {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.page-badge-mobile {
    display: none !important;
}

.site-footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(3, 3, 3, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.site-footer p {
    margin-bottom: 8px;
    line-height: 1.5;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
}

/* Modal de Solicitud de Servicio */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.service-modal-box {
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid var(--accent-yellow);
    box-shadow: 0 0 30px rgba(251, 192, 45, 0.25);
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px 25px;
    position: relative;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.service-modal-box::-webkit-scrollbar {
    width: 6px;
}

.service-modal-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.service-modal-box::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 4px;
}

.service-modal-overlay.active .service-modal-box {
    transform: translateY(0);
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.service-modal-close:hover {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
}

/* Selector de Idiomas Táctico (Senior UI/UX) */
.lang-selector-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lang-selector-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-selector-btn:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(251, 192, 45, 0.3);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 15, 18, 0.96);
    border: 1px solid var(--accent-yellow);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(251, 192, 45, 0.2);
    backdrop-filter: blur(12px);
    padding: 6px 0;
    width: 155px;
    display: none;
    flex-direction: column;
    z-index: 10005;
}

.lang-dropdown-menu.show {
    display: flex;
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 9px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    white-space: nowrap;
}

.lang-option:hover, .lang-option.active {
    background: rgba(251, 192, 45, 0.15);
    color: var(--accent-yellow);
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, transparent, var(--accent-silver), transparent);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item:hover::after {
    width: 100%;
}

.contact-link {
    border: 1px solid var(--accent-silver);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.contact-link:hover {
    background-color: var(--accent-silver);
    color: var(--bg-color);
}

/* Secciones Principales */
.panel {
    min-height: 100vh;
    display: flex;
    padding: 150px 10vw 80px 10vw; /* Añadido espacio superior para que el logo no tape el contenido */
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero-panel {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding-top: 170px !important;
    padding-bottom: 50px !important;
    min-height: auto !important;
    background-position: center 15% !important;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

.content-panel {
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.text-block {
    background: var(--bg-panel);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    flex: 1;
}

.text-block.left {
    margin-right: 0;
}

.text-block.right {
    margin-left: 0;
}

.text-block h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Bloque de Imagen para Secciones */
.image-block {
    flex: 1;
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(1) contrast(1.05);
    transition: 0.5s ease;
}

.image-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    pointer-events: none;
}

.image-block:hover img {
    filter: brightness(1) contrast(1.1) scale(1.05);
}

/* Efectos Revelar Texto */
.reveal-text {
    /* Las animaciones iniciales las maneja GSAP para evitar que los elementos queden invisibles */
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-silver);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.3s;
}

.btn:hover::before {
    left: 0;
}

/* Efecto Cañón de Arma y Bala (Gun Barrel & Muzzle Flash) */
.line-accent {
    height: 12px; /* Más grueso para parecer un cañón */
    width: 250px;
    /* Fondo que simula el interior estriado (rifling) de un cañón */
    background: 
        repeating-linear-gradient(75deg, rgba(0,0,0,0.8) 0px, rgba(0,0,0,0.8) 4px, transparent 4px, transparent 12px),
        linear-gradient(to bottom, #050505 0%, #666666 50%, #050505 100%);
    margin-bottom: 30px;
    position: relative;
    border-radius: 3px;
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.9), 0 1px 1px rgba(255,255,255,0.1);
}

/* La Bala (Trazadora) volando dentro del cañón */
.line-accent::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    width: 40px;
    height: 6px;
    background: linear-gradient(90deg, transparent, #ff9800, #ffeb3b, #ffffff);
    border-radius: 10px;
    box-shadow: 0 0 10px 2px rgba(255, 150, 0, 0.8);
    animation: shoot-barrel 2s cubic-bezier(0.4, 0, 1, 1) infinite;
    z-index: 1;
}

/* Fogonazo del disparo (Muzzle Flash) al salir del cañón */
.line-accent::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,200,0,0.8) 20%, rgba(255,50,0,0.4) 50%, transparent 70%);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    animation: muzzle-flash 2s infinite;
    z-index: 2;
    mix-blend-mode: screen;
}

@keyframes shoot-barrel {
    0% { left: 0px; opacity: 0; }
    5% { opacity: 1; }
    49% { left: 210px; opacity: 1; }
    50% { left: 230px; opacity: 0; }
    100% { left: 230px; opacity: 0; }
}

@keyframes muzzle-flash {
    0%, 48% { transform: translateY(-50%) scale(0); opacity: 0; }
    50% { transform: translateY(-50%) scale(1.8); opacity: 1; }
    55% { transform: translateY(-50%) scale(0.8); opacity: 0.5; }
    60%, 100% { transform: translateY(-50%) scale(0); opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplificado por ahora, se puede agregar menú hamburguesa */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .panel {
        padding: 80px 5vw;
    }

    .text-block {
        max-width: 100%;
    }
}

/* Footer */
.site-footer {
    background: rgba(3, 3, 3, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    z-index: 1000;
}

.site-footer p, .site-footer a {
    margin-bottom: 5px;
    font-size: clamp(0.78rem, 3.5vw, 0.9rem);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.site-footer .footer-accent {
    color: var(--accent-silver);
    font-weight: 700;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* =========================================
   Galería Marquee (Carrusel Infinito Elegante)
   ========================================= */
.marquee-container {
    align-self: stretch;
    width: auto;
    margin-left: -10vw; /* Compensar el padding del panel padre */
    margin-right: -10vw;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    display: flex;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    width: 350px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s ease;
    filter: brightness(1) contrast(1.05);
}

.marquee-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

/* Hover Effects */
.marquee-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,1), 0 0 20px rgba(251, 192, 45, 0.2);
    border-color: rgba(251, 192, 45, 0.3);
    z-index: 10;
}

.marquee-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.1);
}

.marquee-item:hover::after {
    opacity: 0.3;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Asumiendo que el contenido se duplica */
    }
}

@media (max-width: 1024px) {
    .content-panel {
        flex-direction: column;
        gap: 30px;
        padding-top: 100px;
    }

    /* Alternar orden visual en tablets para que la imagen o el texto no se queden atascados */
    .content-panel > .image-block {
        order: -1;
        width: 100%;
        max-width: 100%;
        height: 300px;
    }

    .text-block {
        max-width: 100%;
        width: 100%;
    }

    .hero-title {
        font-size: 3rem !important;
    }
}

/* =========================================
   Navegación Móvil (Menú Hamburguesa)
   ========================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10001; /* Sobre el menú móvil */
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav .nav-item {
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.mobile-nav.open .nav-item {
    transform: translateY(0);
    opacity: 1;
}

/* Retardos escalonados para la cascada del menú */
.mobile-nav.open .nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .nav-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.open .nav-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.open .nav-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.open .nav-item:nth-child(5) { transition-delay: 0.5s; }

@media (max-width: 768px) {
    .marquee-container {
        margin-left: -5vw;
        margin-right: -5vw;
    }
    .marquee-item {
        width: 280px;
        height: 200px;
    }

    /* Tipografía fluida y matemáticamente perfecta */
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem) !important;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .text-block {
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }

    .text-block h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .minimal-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative;
    }

    .nav-links {
        display: none !important; /* Usaremos el menú móvil (hamburguesa) */
    }

    .hamburger-btn {
        display: flex !important; /* Mostramos la hamburguesa */
    }

    .brand-main {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    .brand-sub {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
    .brand-title-inline:has(.page-badge-mobile) .brand-sub {
        display: none;
    }
    .page-badge-mobile {
        display: block;
        color: var(--accent-yellow);
        font-weight: 900;
        font-size: 0.62rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin-top: 1px;
    }

    .hero-panel {
        padding-top: 130px !important;
        padding-bottom: 30px !important;
    }

    /* Ajuste de Integrantes de Equipo en Móviles */
    .team-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .team-img {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px !important;
        min-height: 90px !important;
        max-width: 90px !important;
        max-height: 90px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        object-position: top center !important;
        margin: 0 auto 15px auto !important;
        flex-shrink: 0 !important;
    }

    /* Logo más compacto para mejor resolución */
    .logo {
        width: 60px;
        height: 60px;
        order: 0;
        margin-top: 0;
    }
    .logo::before {
        width: 60px;
        height: 60px;
    }
    .logo img {
        width: 54px !important;
        height: 54px !important;
        border: 2px solid #050505;
    }
    .logo::after {
        width: 54px;
        height: 54px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .panel {
        padding: 40px 5vw 40px 5vw; /* Reducimos el padding superior porque el header ya empuja */
        min-height: auto;
    }
    
    .hero-panel {
        padding-top: 20px; /* Acercamos el título al logo */
    }

    /* Optimización de WhatsApp Button */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Selector de Idioma Táctico Orgánico para Celulares (Mobile Overlay) */
    .mobile-lang-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 30px;
        padding-top: 25px;
        border-top: 1px solid rgba(251, 192, 45, 0.25);
        width: 100%;
        max-width: 340px;
    }

    .mobile-lang-title {
        color: var(--accent-yellow);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .mobile-lang-options {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .mobile-lang-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

    .mobile-lang-btn:hover,
    .mobile-lang-btn.active {
        background: rgba(251, 192, 45, 0.2);
        border-color: var(--accent-yellow);
        color: var(--accent-yellow);
        box-shadow: 0 0 15px rgba(251, 192, 45, 0.4);
    }
}

@media (max-width: 480px) {
    .image-block {
        height: 220px;
    }
}


/* =========================================
   Logo Marquee (Reconocimientos)
   ========================================= */
.logo-marquee-container {
    align-self: stretch;
    width: auto;
    margin-left: -10vw;
    margin-right: -10vw;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.logo-marquee-container::before,
.logo-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.logo-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.logo-marquee-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: logo-marquee 30s linear infinite;
    align-items: center;
}

.logo-marquee-container:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-item {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-item:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(251, 192, 45, 0.4);
}

@keyframes logo-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .logo-marquee-container {
        margin-left: -5vw;
        margin-right: -5vw;
        padding: 20px 0;
        margin-top: 20px;
    }
    .logo-marquee-track {
        gap: 30px;
        animation: logo-marquee 20s linear infinite; /* Faster on mobile for better feel */
    }
    .logo-item {
        width: 75px;
        height: 75px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.6);
    }
}
/* WhatsApp Container Multi */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.whatsapp-container .whatsapp-btn {
    position: relative;
    bottom: auto;
    right: auto;
}

.whatsapp-container .whatsapp-btn .flag {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fff;
    border-radius: 50%;
    padding: 0px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    width: 24px;
    height: 24px;
    overflow: hidden;
}

/* =========================================
   SOCIAL MEDIA BUTTONS (Right Side, above WA)
   ========================================= */
.social-container {
    position: fixed;
    bottom: 165px; /* Más espacio sobre los botones de WhatsApp */
    right: 25px; /* Centrado respecto a los botones de WhatsApp */
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.8);
    font-size: 22px;
    text-decoration: none;
    background: rgba(15, 15, 15, 0.85); /* Fondo oscuro para que no se mezcle con el texto */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s, color 0.3s, background 0.3s, border-color 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.social-btn:hover {
    transform: scale(1.1);
}

.facebook-btn:hover {
    color: #1877F2;
    border-color: #1877F2;
}

.tiktok-btn:hover {
    color: white;
    border-color: white;
}

.tiktok-wrapper {
    position: relative;
}

.tiktok-menu {
    display: none;
    position: absolute;
    bottom: -5px;
    right: 50px; /* Al lado del botón hacia la izquierda */
    left: auto;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    flex-direction: column;
}

.tiktok-menu.show {
    display: flex;
    animation: fadeInSlideRight 0.3s ease forwards;
}

.tiktok-option {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.tiktok-option:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-yellow);
}

@keyframes fadeInSlideRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ajustes para móviles (Social Buttons) */
@media (max-width: 768px) {
    .social-container {
        bottom: 145px; /* Los de WA son más chicos en móvil */
        right: 22px;
    }
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
/* =========================================
   Team Section & Profile Modal Senior UI/UX
   ========================================= */
.team-section {
    background: transparent;
    padding: 60px 20px;
}

.team-wrapper {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0;
}

.team-stripe {
    display: none;
}

.team-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 35px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 192, 45, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(251, 192, 45, 0.2);
}

.team-img {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border: 3px solid var(--accent-yellow) !important;
    box-shadow: 0 0 15px rgba(251, 192, 45, 0.3) !important;
    flex-shrink: 0 !important;
}

.team-info {
    flex: 1;
    min-width: 0;
}

.team-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.team-role {
    color: var(--accent-yellow);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-socials {
    display: flex;
    gap: 8px;
    align-items: center;
}

.team-socials a {
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-socials a:hover {
    color: #000;
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Modal de Perfil de Integrante */
.team-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.team-modal-content {
    background: #0d0e12;
    border: 1px solid rgba(251, 192, 45, 0.4);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(251, 192, 45, 0.2);
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.team-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.2s;
}

.team-modal-close:hover {
    color: var(--accent-yellow);
    transform: rotate(90deg);
}

.team-modal-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid var(--accent-yellow);
    box-shadow: 0 0 25px rgba(251, 192, 45, 0.4);
    margin: 0 auto 18px auto;
    display: block;
}

/* Enfoque inteligente en caras y cabezas para todas las imágenes recortadas de la web */
img {
    object-position: center 20%;
}

/* ==========================================================================
   Tactical Language Selector (i18n Dropdown)
   ========================================================================== */
.lang-selector-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    z-index: 10000;
}

.lang-selector-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(251, 192, 45, 0.4);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lang-selector-btn:hover {
    background: rgba(251, 192, 45, 0.15);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    box-shadow: 0 0 15px rgba(251, 192, 45, 0.4);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-code {
    text-transform: uppercase;
    font-weight: 700;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--accent-yellow);
}

.lang-selector-wrapper:hover .lang-arrow,
.lang-dropdown-menu.show ~ .lang-selector-btn .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid rgba(251, 192, 45, 0.3);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(251, 192, 45, 0.15);
    backdrop-filter: blur(12px);
    display: none;
    flex-direction: column;
    z-index: 10001;
    overflow: hidden;
    animation: fadeInDropdown 0.25s ease-out forwards;
}

.lang-dropdown-menu.show {
    display: flex !important;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-secondary, #cccccc);
    padding: 10px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    transition: all 0.2s ease;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(251, 192, 45, 0.15);
    color: var(--accent-yellow, #fbc02d);
    padding-left: 20px;
}

.lang-option span {
    font-size: 1.1rem;
}

/* ==========================================================================
   Google Translate Headless Suppression & Clean Overlay
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* ==========================================================================
   SUPPRESIÓN ABSOLUTA DE BARRA DE TRADUCCIÓN DE GOOGLE (DESKTOP & MOBILE)
   ========================================================================== */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-spinner-pos,
#goog-gt-tt,
.goog-te-balloon-frame,
#google_translate_element,
.goog-te-banner,
.goog-tooltip,
.goog-tooltip:hover,
div.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    max-height: 0 !important;
    max-width: 0 !important;
    position: absolute !important;
    top: -99999px !important;
    left: -99999px !important;
    z-index: -99999 !important;
}

html, body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   ESTILOS TÁCTICOS Y ORGANIZACIÓN DEL PIE DE PÁGINA (SITE-FOOTER & CONTACTO)
   ========================================================================== */
.site-footer {
    background: #08080a;
    border-top: 1px solid rgba(251, 192, 45, 0.25);
    padding: 45px 20px 35px 20px;
    text-align: center;
    color: var(--text-secondary, #cccccc);
    font-size: 0.88rem;
    line-height: 1.7;
    position: relative;
    z-index: 10;
}

.site-footer .footer-accent {
    color: var(--accent-yellow, #ffde00);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.site-footer p {
    margin-bottom: 10px;
    color: #e0e0e0;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    overflow-wrap: break-word;
}

.site-footer a {
    color: var(--accent-yellow, #ffde00);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Tarjetas Tácticas de Datos de Contacto */
.contact-info-card {
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid rgba(251, 192, 45, 0.25);
    border-radius: 12px;
    padding: 22px 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    backdrop-filter: blur(8px);
}

.contact-info-card h3 {
    color: var(--accent-yellow, #ffde00);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-info-card p {
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-info-badge {
    display: inline-block;
    background: rgba(251, 192, 45, 0.1);
    border: 1px solid rgba(251, 192, 45, 0.3);
    color: var(--accent-yellow, #ffde00);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 4px;
}



