/* Reseteo básico para evitar márgenes raros */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    overflow-x: hidden;
}

html.universe-open,
html.universe-open body {
    overflow: hidden !important;
}

body {
    background-color: #080808; /* Fondo oscuro premium para todo el sitio */
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   BARRAS DE DESPLAZAMIENTO (SCROLLBARS) GLOBALES Y LIMPIAS
   ========================================================================== */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Carril de la ventana principal (fondo negro #080808 sin cuadros grises) */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #080808;
}

/* Barra móvil de la ventana principal (clara y bien visible) */
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    border: 2px solid #080808;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #080808;
    background-clip: padding-box;
}

/* ELIMINAR DEFINITIVAMENTE CUADROS EN EXTREMOS Y ESQUINAS EN TODO EL SITIO */
::-webkit-scrollbar-button,
::-webkit-scrollbar-corner {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* --- CONTENEDOR DEL VIDEO DE FONDO --- */
.video-background { position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Mantiene el video detrás de todo */
    overflow: hidden;
    pointer-events: none; /* Evita que el usuario pause el video por accidente */
    
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Centra el video y recorta los bordes sobrantes para que no se deforme */
}
/* --- NAVEGACIÓN PRINCIPAL (HEADER) --- */
.navbar {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    padding: 10px 5%;
}

.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.nav-links {
    display: flex;
    gap: 10px;
}
.nav-links a {
    position: relative;
    text-decoration: none;
    color: #121418; /* Obsidiana */
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Barrita de Neón (Degradado) */
.nav-links a::after,
.lang-btn::after,
.cart-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00ffcc 20%, #ff007f 80%, transparent 100%);
    box-shadow: 0 0 8px rgba(0,255,204,0.6), 0 0 8px rgba(255,0,127,0.6);
    transform: scaleX(0.2); /* Empieza un poco más ancha pero invisible */
    opacity: 0; /* Totalmente transparente */
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Transición súper suave tipo Apple/Premium */
    border-radius: 5px;
}

.nav-links a:hover,
.lang-btn:hover,
.cart-btn:hover {
    color: #121418;
}

.nav-links a:hover::after,
.lang-btn:hover::after,
.cart-btn:hover::after {
    transform: scaleX(1);
    opacity: 1; /* Aparecimiento progresivo */
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* --- BOTÓN HAMBURGUESA PARA NAVEGACIÓN MÓVIL --- */
.nav-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #121418;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.nav-menu-toggle span {
    font-size: 28px;
    display: block;
}
.nav-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn, .cart-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #121418; /* Obsidiana */
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 10px;
    border-radius: 4px;
}

.cart-badge {
    position: absolute;
    top: -3px;
    right: -5px;
    background: #ff007f;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(255, 0, 127, 0.4);
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
}

/* --- ESTRUCTURA CENTRAL (HERO) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Empuja el contenido hacia abajo */
    padding-bottom: 7vh; /* Bajado hasta la altura de los tobillos para lucir el cuerpo de ZinaBot */
}

/* --- ZINABOT 3D (Capa trasera) --- */
.zinabot-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nivel 1: Atrás del chat */
    pointer-events: none; /* Por defecto en móviles y pantallas táctiles permite scroll con el dedo */
}

.zinabot-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    pointer-events: none; /* En táctiles no intercepta gestos */
}

/* En computadoras de escritorio (con ratón): activamos interacción directa para seguimiento del mouse */
@media (hover: hover) and (pointer: fine) {
    .zinabot-container {
        pointer-events: auto;
    }
    .zinabot-container iframe {
        pointer-events: auto;
    }
}

/* --- CAJA DE CHAT IA (ESTILO CRISTAL) --- */
.chat-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 650px;
    /* Fondo translúcido con desenfoque */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Borde iluminado imitando la referencia */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
                inset 0 0 20px rgba(255, 255, 255, 0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- MENSAJES Y AVATAR --- */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Separación entre mensajes */
    max-height: 240px; /* Ampliado para lectura cómoda sin cortar */
    overflow-y: auto;
    padding-right: 8px; /* Espacio para el scroll */
    scroll-behavior: smooth;
}

/* Scrollbar personalizada para el chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}
.chat-messages::-webkit-scrollbar-button,
.chat-messages::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
}

/* Scrollbar para el carrito (fondo claro) */
#cart-items::-webkit-scrollbar {
    width: 5px;
}
#cart-items::-webkit-scrollbar-track {
    background: transparent;
}
#cart-items::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
#cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
#cart-items::-webkit-scrollbar-button,
#cart-items::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
}

.bot-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Mensaje del usuario */
.user-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-end; /* Alinea a la derecha */
}

.bot-avatar {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2.5px solid #00ffcc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), 0 0 10px rgba(0, 255, 204, 0.5);
    flex-shrink: 0;
    overflow: hidden;
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Indicador animado de escribiendo para chat */
.hero-typing-bubble {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px !important;
    background: rgba(13, 21, 39, 0.95) !important;
    border: 1px solid rgba(0, 255, 204, 0.3) !important;
    border-radius: 0 20px 20px 20px !important;
    min-height: 24px;
}

.hero-typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffcc;
    animation: heroDotBounce 1.3s infinite ease-in-out;
}

.hero-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.hero-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: #818cf8;
    box-shadow: 0 0 8px #818cf8;
}

@keyframes heroDotBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 80%; /* Para que no ocupe todo el ancho */
}

.user-message .message-content {
    align-items: flex-end; /* Alinea la hora a la derecha */
}

.bot-message .bubble {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 0 20px 20px 20px; /* Colita a la izquierda */
    color: #333;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.user-message .bubble {
    background: linear-gradient(135deg, #00ffcc 0%, #0284c7 100%);
    padding: 12px 16px;
    border-radius: 20px 0 20px 20px; /* Colita a la derecha */
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 255, 204, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.msg-time {
    font-size: 10px;
    color: #444; /* Un poco más oscuro para verse en cristal */
    margin: 0 5px;
}

/* --- BOTONES DE SUGERENCIA (CHIPS) --- */
.chat-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.chat-suggestions button {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-suggestions button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* --- ÁREA DE ESCRITURA Y ENVÍO --- */
.chat-bottom {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 5px;
}

.chat-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 4px 15px;
    transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chat-input-wrapper input,
.chat-input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 6px;
    outline: none;
    font-size: 13.5px;
    color: #222;
    font-family: inherit;
    resize: none;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}

.chat-input-wrapper input::placeholder,
.chat-input-wrapper textarea::placeholder {
    color: #666;
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2563eb; /* Azul corporativo vibrante */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: background 0.2s ease;
}

.send-btn:hover {
    background: #1d4ed8;
}

/* --- TEXTO INFERIOR --- */

/* --- SECCI�N 3D CARRUSEL --- */
.services-3d-section {
    position: relative;
    width: 100%;
    height: auto; min-height: 600px; padding: 0 0 8vh 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 5;
    /* Imagen estática de fondo proporcionada por el usuario */
    background-image: url('media/fondo_2secc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Color de respaldo */
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0px;
    perspective: 1600px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    cursor: grab;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-stage {
    width: 250px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-750px) rotateY(0deg); 
    will-change: transform; /* Optimización GPU principal */
}

/* 
 * TARJETAS OPTIMIZADAS (Modo Plano-3D)
 * Se elimina preserve-3d anidado, reflections y sombras excesivas
 * para garantizar 60 FPS estables.
 */
.carousel-item {
    position: absolute;
    width: 250px;
    height: 280px;
    background: linear-gradient(180deg, #272d38 0%, #111418 100%);
    border-radius: 16px;
    /* RELIEVE EXTREMO: Proporciones ajustadas por el usuario */
    border-top: 6px solid rgba(255, 255, 255, 0.3);
    border-left: 6px solid rgba(255, 255, 255, 0.1);
    border-bottom: 6px solid rgba(0, 0, 0, 0.95);
    border-right: 4px solid rgba(0, 0, 0, 0.7);
    box-shadow: 
        0 15px 25px rgba(0,0,0,0.8), /* Sombra exterior muy marcada */
        inset 0 4px 6px rgba(255, 255, 255, 0.1), /* Curvatura superior convexa */
        inset 0 -5px 10px rgba(0, 0, 0, 0.6); /* Sombra interna inferior */
    -webkit-box-reflect: below 5px linear-gradient(transparent 40%, rgba(0,0,0,0.6));
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    backface-visibility: hidden;
    transition: all 0.2s ease;
}
/* Reflejo estilo cristal/obsidiana sobre la superficie */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Un borde redondeado ligeramente menor para no tapar los biseles */
    border-radius: 12px;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.12) 25%, rgba(255,255,255,0.03) 30%, transparent 40%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.carousel-item:hover::before {
    opacity: 1;
}
.carousel-item:hover {
    /* Al pasar el mouse: Crece y mantiene su relieve extremo */
    background: linear-gradient(180deg, #2e3644 0%, #15181d 100%);
    border-top: 6px solid var(--theme-color);
    border-left: 6px solid var(--theme-color);
    border-bottom: 6px solid rgba(0, 0, 0, 0.95);
    border-right: 4px solid rgba(0, 0, 0, 0.7);
    box-shadow: 
        0 25px 35px rgba(0, 0, 0, 0.95), /* Sombra proyectada gigantesca por levantarse */
        inset 0 4px 8px rgba(255, 255, 255, 0.3), /* Luz más fuerte arriba */
        inset 0 -10px 20px var(--theme-color), /* Luz neón rebotando dentro de la base */
        0 0 35px var(--theme-color); /* Corona de resplandor exterior */
    /* Empujamos físicamente el botón hacia arriba dando un salto (Hover) ajustado a 6px */
    margin-top: -6px;
    cursor: pointer;
}.card-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.carousel-item:hover .card-inner {
    transform: scale(1.08); /* 2D scale en lugar de translateZ es 10x más ligero */
}



.card-inner .icon-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

/* Ícono minimalista blanco puro (Google Material Symbols) */
.card-inner .white-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    opacity: 1;}

/* Emoji colorido (oculto por defecto) */
.card-inner .color-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 50px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.2s ease;
}

.carousel-item:hover .card-inner .icon-container {
    transform: translateY(-5px); /* Salto al pasar el mouse */
}

.carousel-item:hover .card-inner .white-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
}

.carousel-item:hover .card-inner .color-emoji {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    text-shadow: 0 0 20px var(--theme-color), 0 0 35px var(--theme-color);
}
.card-inner h3 {
    font-size: 18px;
    color: #fff;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-inner p {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
}

/* Colores temáticos */
.item-1, .item-9 { --theme-color: rgba(5, 196, 107, 1); }
.item-2, .item-10 { --theme-color: rgba(24, 119, 242, 1); }
.item-3, .item-11 { --theme-color: rgba(230, 0, 18, 1); }
.item-4, .item-12 { --theme-color: rgba(255, 85, 0, 1); }
.item-5, .item-13 { --theme-color: rgba(226, 226, 226, 1); }
.item-6, .item-14 { --theme-color: rgba(155, 106, 56, 1); }
.item-7, .item-15 { --theme-color: rgba(218, 165, 32, 1); }
.item-8, .item-16 { --theme-color: rgba(255, 105, 180, 1); }

/* Posicionamiento del cilindro (16 tarjetas = 22.5 grados) */
.item-1 { transform: rotateY(0deg) translateZ(670px); }
.item-2 { transform: rotateY(22.5deg) translateZ(670px); }
.item-3 { transform: rotateY(45deg) translateZ(670px); }
.item-4 { transform: rotateY(67.5deg) translateZ(670px); }
.item-5 { transform: rotateY(90deg) translateZ(670px); }
.item-6 { transform: rotateY(112.5deg) translateZ(670px); }
.item-7 { transform: rotateY(135deg) translateZ(670px); }
.item-8 { transform: rotateY(157.5deg) translateZ(670px); }
.item-9 { transform: rotateY(180deg) translateZ(670px); }
.item-10 { transform: rotateY(202.5deg) translateZ(670px); }
.item-11 { transform: rotateY(225deg) translateZ(670px); }
.item-12 { transform: rotateY(247.5deg) translateZ(670px); }
.item-13 { transform: rotateY(270deg) translateZ(670px); }
.item-14 { transform: rotateY(292.5deg) translateZ(670px); }
.item-15 { transform: rotateY(315deg) translateZ(670px); }
.item-16 { transform: rotateY(337.5deg) translateZ(670px); }





/* --- SECCIÓN 4: FOOTER ULTRA COMPACTO --- */
.site-footer {
    position: relative;
    width: 100%;
    background: #ACACB0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 40px 15px; /* Altura de padding drásticamente reducida */
    z-index: 10;
    gap: 15px; /* Gap muy compacto */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

/* 1. Servicios */
.footer-services-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 1100px;
    margin-bottom: 5px;
}
.footer-services-row a {
    display: inline-block;
    color: #4b5563;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.15s ease-out, color 0.15s ease-out, text-shadow 0.15s ease-out;
    padding: 2px 8px;
    border-radius: 4px;
    will-change: transform;
}
.footer-services-row .dot {
    color: #6b7280;
    font-size: 18px;
}
.footer-services-row a:hover {
    color: #111827;
    transform: translateY(-2px);
    text-shadow: 0 0 0.5px currentColor;
}

/* 2. Botones (Izq) y Redes (Der) */
/* 2. Botones (Izq) y Redes (Der) */
.footer-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin-bottom: 12px;
    gap: 16px;
}

.footer-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.btn-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-footer .material-symbols-outlined {
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 10px currentColor, inset 0 0 6px rgba(0, 0, 0, 0.5);
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.btn-footer:hover .material-symbols-outlined {
    transform: scale(1.1);
    box-shadow: 0 0 16px currentColor;
}

/* Tienda Online (Verde Bandera) */
.btn-tienda {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.16) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-tienda .material-symbols-outlined {
    color: #10b981;
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.7));
}

.btn-tienda:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.3) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
}

.btn-tienda:hover .material-symbols-outlined {
    color: #34d399;
    filter: drop-shadow(0 0 12px #10b981);
}

/* Acceso Colaboradores (Azul Cielo) */
.btn-colab {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-colab .material-symbols-outlined {
    color: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.btn-colab:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
}

.btn-colab:hover .material-symbols-outlined {
    color: #38bdf8;
    filter: drop-shadow(0 0 12px #38bdf8);
}

/* Acceso Aula Virtual / Academia (Rosa) */
.btn-aula {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(251, 113, 133, 0.45);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-aula .material-symbols-outlined {
    color: #fb7185;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
}

.btn-aula:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #fb7185;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
}

.btn-aula:hover .material-symbols-outlined {
    color: #fb7185;
    filter: drop-shadow(0 0 12px #fb7185);
}

/* Portafolio (exclusivo nosotros.html) */
.btn-portafolio {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-portafolio .material-symbols-outlined {
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.btn-portafolio:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
}

.btn-portafolio:hover .material-symbols-outlined {
    color: #ffffff;
    filter: drop-shadow(0 0 12px #ffffff);
}

.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-socials a:hover {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Hover de Redes Sociales (Preservados y Optimizados) */
.footer-socials a:hover i.fa-facebook-f,
.footer-socials a:hover .fa-facebook-f { color: #1877F2 !important; filter: drop-shadow(0 0 8px rgba(24,119,242,0.7)); }
.footer-socials a:has(.fa-facebook-f):hover { border-color: rgba(24, 119, 242, 0.6); box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35); }

.footer-socials a:hover i.fa-instagram,
.footer-socials a:hover .fa-instagram  { color: #E1306C !important; filter: drop-shadow(0 0 8px rgba(225,48,108,0.7)); }
.footer-socials a:has(.fa-instagram):hover  { border-color: rgba(225, 48, 108, 0.6); box-shadow: 0 8px 20px rgba(225, 48, 108, 0.35); }

.footer-socials a:hover i.fa-x-twitter,
.footer-socials a:hover .fa-x-twitter  { color: #ffffff !important; filter: drop-shadow(0 0 8px rgba(255,255,255,0.7)); }
.footer-socials a:has(.fa-x-twitter):hover  { border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.35); }

.footer-socials a:hover i.fa-youtube,
.footer-socials a:hover .fa-youtube    { color: #FF0000 !important; filter: drop-shadow(0 0 8px rgba(255,0,0,0.7)); }
.footer-socials a:has(.fa-youtube):hover    { border-color: rgba(255, 0, 0, 0.6); box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35); }

.footer-socials a:hover i.fa-linkedin-in,
.footer-socials a:hover .fa-linkedin-in{ color: #0A66C2 !important; filter: drop-shadow(0 0 8px rgba(10,102,194,0.7)); }
.footer-socials a:has(.fa-linkedin-in):hover{ border-color: rgba(10, 102, 194, 0.6); box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35); }

.footer-socials a:hover i.fa-tiktok,
.footer-socials a:hover .fa-tiktok     { color: #ff0050 !important; filter: drop-shadow(0 0 8px rgba(255,0,80,0.7)); }
.footer-socials a:has(.fa-tiktok):hover     { border-color: rgba(255, 0, 80, 0.6); box-shadow: 0 8px 20px rgba(255, 0, 80, 0.35); }

/* 3. Láser Dinámico */
.footer-divider-glow {
    width: 100%;
    max-width: 1100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00ffcc 20%, #ff007f 80%, transparent 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 15px #00ffcc, 0 0 15px #ff007f;
    animation: laserFlow 3s linear infinite;
}

@keyframes laserFlow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* 4. Fila Inferior (Copy, Logo, Legales) */
.footer-bottom-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin-top: 5px;
}

.footer-copy p {
    color: #4b5563;
    font-size: 13px;
    margin: 0;
    text-align: left;
}

.footer-logo-center {
    display: flex;
    justify-content: center;
}
.footer-logo-img {
    height: 28px; /* Tamaño optimizado para la franja inferior */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end; /* A la derecha */
}
.footer-legal a {
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}
.footer-legal a:hover {
    color: #111827;
}
.footer-legal .dot {
    color: #6b7280;
}

/* Badge Contador de Visitas Oficial ZINAPTIK (Limpio y minimalista, sin píldora) */
.footer-visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    font-size: 13px;
    color: #4b5563;
}
.counter-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    flex-shrink: 0;
    animation: counterPulse 2s infinite ease-in-out;
}
@keyframes counterPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}
.counter-label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: normal;
    text-transform: none;
}
.counter-number {
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    color: #10b981;
    letter-spacing: normal;
}

@media (max-width: 900px) {
    .footer-actions-row {
        flex-direction: column;
        gap: 20px;
    }
    .footer-bottom-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .footer-copy p { text-align: center; }
    .footer-legal { justify-content: center; }
}
/* ========================================= */
/* --- SECCIÓN PARTNERS (CARRUSEL INFINITO) --- */
/* ========================================= */
.partners-section {
    width: 100%;
    padding: 60px 0;
    background: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}
.partners-title h3 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 900;
}

/* Efecto de desvanecimiento a los lados (Transparencia Real) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(10,12,16,1), transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(10,12,16,1), transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 80s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 60px;
    padding-right: 60px;
}
/* Las cajas de los logos */
.partner-logo {
    width: 180px;
    height: 65px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.partner-logo img {
    max-width: 85%;
    max-height: 60%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.7); /* Blanco semi-transparente por defecto (estilo moderno tech) */
    transition: 0.3s ease;
}
.partner-logo:hover img {
    filter: brightness(1) invert(0) opacity(1); /* Color original al hacer hover */
}
.partner-logo:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.05);
    border-color: #00ffcc;
    color: #00ffcc;
    box-shadow: 0 0 20px rgba(0,255,204,0.1);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================= */

.carousel-hint-pill {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 2px;
    z-index: 20;
    pointer-events: none;
    width: auto;
    white-space: nowrap;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- EFECTO TÍTULO RADIANTE (GRADIENT SHINE) --- */
.text-gradient {
    background: linear-gradient(90deg, #00ffcc, #a855f7, #00ffcc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShine 3s linear infinite;
    text-shadow: none;
    filter: none;
    display: inline-block;
}

@keyframes gradientShine {
    to { background-position: 200% center; }
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVE GLOBAL (TABLETAS Y CELULARES - INDEX & SITIO)
   ========================================================================== */

/* 1. TABLETAS Y PANTALLAS TÁCTILES GRANDES (768px hasta 1100px - iPad Pro 13, iPad Mini, Air, Surface) */
@media (max-width: 1100px) {
    .navbar {
        padding: 12px 4%;
        top: 10px;
    }
    .nav-links {
        gap: 8px;
    }
    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }
    .hero-section {
        min-height: 90vh;
        padding-bottom: 6vh; /* Bajado para lucir a ZinaBot en tablets/iPad */
    }
    .chat-container {
        width: 85%;
        max-width: 600px;
    }
}

/* 2. CELULARES Y PANTALLAS PEQUEÑAS (< 768px) */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 18px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        box-sizing: border-box;
    }

    .nav-logo img {
        height: 34px;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-menu-toggle {
        display: flex;
    }

    /* Menú desplegable móvil */
    .nav-links {
        position: fixed;
        top: 58px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 14px;
        color: #0f172a;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    /* Hero & ZinaBot en móvil */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 30px;
        justify-content: flex-end;
    }

    .zinabot-container {
        height: 85vh; /* Ajuste proporcional para que ZinaBot domine la pantalla sin desbordarse */
        top: 40px;
    }

    .chat-container {
        width: 94%;
        max-width: 100%;
        padding: 14px 14px 12px 14px;
        border-radius: 18px;
        margin-bottom: 15px;
    }

    .chat-messages {
        max-height: 130px;
    }

    /* Carrusel táctil horizontal para sugerencias de servicios en celulares */
    .chat-suggestions {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-top: 4px;
        padding-bottom: 8px;
        margin-top: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .chat-suggestions::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    .chat-suggestions button {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 11.5px;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.75);
    }

    /* Área de input táctil optimizada en móvil */
    .chat-bottom {
        gap: 8px;
    }
    .chat-input-wrapper {
        padding: 4px 12px;
    }
    .chat-input-wrapper input {
        font-size: 13px;
    }

    /* Footer en móvil */
    .footer-actions-row {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .footer-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-footer {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .footer-services-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        font-size: 13px;
        text-align: center;
    }
    .footer-bottom-row {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .legal-container {
        padding: 24px 18px !important;
        font-size: 14px !important;
        border-radius: 16px !important;
    }
}

/* ==========================================================================
   3. BLINDAJE TÁCTIL GLOBAL: DETECCIÓN DE PANTALLAS TÁCTILES (DEDOS VS RATÓN)
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Eliminar efectos hover pegajosos al tocar con el dedo */
    .nav-links a:hover::after,
    .lang-btn:hover::after,
    .cart-btn:hover::after,
    .carousel-item:hover::before {
        transform: scaleX(0.2) !important;
        opacity: 0 !important;
    }

    /* Garantizar que los botones sean 100% amigables con el pulgar (mínimo 44px) */
    .p-btn,
    .u-action-btn,
    .btn-footer,
    .nav-menu-toggle {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Permitir deslizamiento táctil fluido sin bloqueo */
    .carousel-container,
    .chat-suggestions,
    #universe-content,
    #universe-pricing {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
}
