/* ========================================================
   1. VARIABLES DE MARCA Y RESETEO
   ======================================================== */
:root {
    --bg-dark: #0a0c10;       /* Negro ultra profundo de fondo */
    --bg-card: #121620;       /* Gris azulado oscuro para tarjetas */
    --cyan: #00adb5;          /* El turquesa de tu logo */
    --cyan-glow: #00fff2;     /* Versión neón para efectos de brillo */
    --cyan-light: #00d2fc;    /* Turquesa claro para gradientes */
    --cyan-rgb: 0, 173, 181;  /* RGB del turquesa */
    --text-white: #ffffff;
    --text-gray: #a0aec0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Evita que el header tape el contenido al scrollear */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    /* Patrón de cuadrícula técnica que evoca diseño web y precisión */
    background-image: 
        linear-gradient(rgba(0, 173, 181, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 173, 181, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--text-white);
    line-height: 1.6;
    opacity: 0; /* Para el efecto fade-in al cargar */
    transition: opacity 0.2s ease-in-out;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-loaded {
    opacity: 1;
}

body.theme-transitioning {
    opacity: 0 !important;
    transition: opacity 0.2s ease-in-out !important;
}

/* Evita desbordamiento horizontal global estricto */
html, body {
    overflow-x: hidden !important;
    width: 100%;
}

/* ========================================================
   2. ESTRUCTURA GLOBAL (HEADER Y NAV ESCRITORIO)
   ======================================================== */
header {
    background-color: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 173, 181, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.web-logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cyan-text {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

header nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

header nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s, text-shadow 0.2s;
}

header nav a:hover,
header nav a.active {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* ========================================================
   3. MENÚ DESPLEGABLE (DROPDOWN ESCRITORIO)
   ======================================================== */
.dropdown {
    position: relative;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-gray);
    transition: transform 0.2s;
}

.dropdown:hover .arrow-down {
    border-top-color: var(--cyan);
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 173, 181, 0.2);
    border-radius: 6px;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 105;
}

/* Puente invisible para evitar cierres bruscos */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text-gray);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(0, 173, 181, 0.08);
    color: var(--cyan);
    padding-left: 25px; /* Sutil efecto cyber de desplazamiento */
}

/* Oculto por defecto en PC */
.menu-toggle {
    display: none;
}

/* ========================================================
   4. ELEMENTOS INTERACTIVOS (BOTONES Y TARJETAS)
   ======================================================== */
.badge {
    background-color: color-mix(in srgb, var(--cyan) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
    color: var(--cyan);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 5%, transparent);
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-principal, .btn-secundario, .btn-card {
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-principal {
    background-color: var(--cyan);
    color: var(--bg-dark);
    border: 1px solid var(--cyan);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--cyan) 30%, transparent);
}

.btn-principal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--cyan-glow) 50%, transparent);
    background-color: var(--cyan);
    filter: brightness(1.1);
}

.btn-secundario {
    background-color: transparent;
    color: var(--cyan);
    border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
}

.btn-secundario:hover {
    background-color: color-mix(in srgb, var(--cyan) 5%, transparent);
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cyan) 10%, transparent);
}

/* ========================================================
   5. SECCIÓN INICIO (HERO)
   ======================================================== */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

/* ========================================================
   5b. CAROUSEL DE IMÁGENES VERTICALES HERO
   ======================================================== */
.hero-carousel-container {
    flex: 0.8;
    width: 100%;
    max-width: 480px;
    height: 360px;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    display: flex;
    align-items: center;
    /* Efecto fade en los bordes izquierdo/derecho */
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.hero-carousel-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: heroScroll 25s linear infinite;
    padding: 10px 0;
}

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

.hero-carousel-slide {
    width: 170px;
    height: 302px; /* 9:16 aspect ratio */
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 173, 181, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 
                0 0 10px rgba(0, 173, 181, 0.08);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-carousel-slide:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--cyan);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(0, 173, 181, 0.35);
}

@keyframes heroScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Desplazamiento de 6 elementos únicos: 6 * (170px + 16px gap) = 1116px */
        transform: translateX(-1116px);
    }
}

/* Responsividad para Móviles */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-carousel-container {
        max-width: 100%;
        height: 330px;
        margin-top: 10px;
    }
}

/* ========================================================
   6. SECCIÓN PRODUCTOS / SERVICIOS
   ======================================================== */
.productos-section {
    padding: 80px 5%;
    background-color: rgba(18, 22, 32, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-gray);
    max-width: 550px;
    margin: 0 auto;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.producto-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.producto-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--cyan) 25%, transparent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Variante llamativa para resaltar productos estrella */
.producto-card.llamativo {
    border: 2px solid var(--cyan);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--cyan) 15%, transparent);
}

.producto-card.llamativo::after {
    content: 'POPULAR';
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--cyan);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.producto-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #1a1f2c;
}

.producto-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-foto {
    transform: scale(1.05);
}

.producto-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.producto-info p {
    color: var(--text-gray);
    font-size: 0.92rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.precio {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 20px;
    display: block;
}

.btn-card {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 10px 20px;
    width: 100%;
}

.producto-card:hover .btn-card {
    background-color: var(--cyan);
    color: var(--bg-dark);
    border-color: var(--cyan);
}

/* ========================================================
   6b. SECCIÓN SERVICIOS TÉCNICOS Y CONSULTORÍAS
   ======================================================== */
.servicios-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 30px auto 0 auto;
}

.servicio-item {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.servicio-item:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--cyan) 25%, transparent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.servicio-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 60%, var(--cyan) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.servicio-item p {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ========================================================
   7. SECCIÓN INFORMACIÓN / DISEÑO COORPORATIVO
   ======================================================== */
.info-section {
    padding: 80px 5%;
}

.info-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.info-text p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.info-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-logo-graphic {
    width: 70%;
    max-width: 300px;
    height: auto;
    animation: floating 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 173, 181, 0.15));
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* ========================================================
   8. SECCIÓN CONTACTO (REDES)
   ======================================================== */
.contacto-section {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.contacto-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.redes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.red-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.red-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 10%, transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.red-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px color-mix(in srgb, var(--cyan) 20%, transparent);
}

.red-card:hover::before {
    opacity: 1;
}

.red-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.red-card:hover img {
    transform: scale(1.1);
}

.red-card span {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Colores específicos por red social al hacer hover */
.red-card.whatsapp:hover { border-color: #25D366; box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 15px rgba(37, 211, 102, 0.2); }
.red-card.facebook:hover { border-color: #1877F2; box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 15px rgba(24, 119, 242, 0.2); }
.red-card.instagram:hover { border-color: #E1306C; box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 15px rgba(225, 48, 108, 0.2); }
.red-card.tiktok:hover { border-color: #00f2fe; box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 15px rgba(0, 242, 254, 0.2); }

/* ========================================================
   9. PIE DE PÁGINA (FOOTER)
   ======================================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 5%;
    text-align: center;
    background-color: #07090d;
    margin-top: auto; /* Empuja el footer al final de la pantalla si hay poco contenido */
}

footer p {
    color: #556073;
    font-size: 0.88rem;
}

/* ========================================================
   9b. CATÁLOGO VIRTUAL DE NEGOCIOS LOCALES
   ======================================================== */
.novedades-section {
    padding: 60px 5% 40px 5%;
    position: relative;
    overflow: hidden;
}

.novedades-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.novedades-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 15px 5px;
    scroll-behavior: smooth;
}

.novedades-slider::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: rgba(18, 22, 32, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--cyan) 20%, transparent);
    border-left: 4px solid var(--cyan);
    border-radius: 12px;
    padding: 25px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
    .slider-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.slider-card-img {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.slider-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-card-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff, var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slider-card-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
    color: var(--cyan);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: var(--cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--cyan);
}

/* Filtros de Categorías */
.filter-section {
    padding: 30px 5%;
    text-align: center;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.filter-btn {
    background: rgba(18, 22, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover,
.filter-btn.active {
    background: color-mix(in srgb, var(--cyan) 10%, transparent);
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 15px color-mix(in srgb, var(--cyan) 40%, transparent);
}

/* Catálogo Grid y Negocios */
.negocios-grid-section {
    padding: 40px 5% 80px 5%;
}

.negocio-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ranuras disponibles */
.negocio-card.disponible {
    border: 2px dashed rgba(255, 255, 255, 0.08);
    background: rgba(18, 22, 32, 0.3);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.negocio-card.disponible:hover {
    border-color: var(--cyan);
    background: rgba(243, 156, 18, 0.02);
    box-shadow: 0 0 20px color-mix(in srgb, var(--cyan) 15%, transparent);
}

.negocio-card.disponible .disponible-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.negocio-card.disponible:hover .disponible-icon {
    transform: scale(1.1);
    color: var(--cyan);
}

.negocio-card.disponible h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.negocio-card.disponible p {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.negocio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-gray);
}

.negocio-links {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-top: auto;
}

.btn-negocio {
    flex: 1;
    padding: 8px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-negocio.btn-wsp {
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #25D366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.05);
}
.btn-negocio.btn-wsp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-negocio.btn-loc {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.05);
}
.btn-negocio.btn-loc:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-negocio.btn-det {
    background: rgba(243, 156, 18, 0.05);
    border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
    color: var(--cyan);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cyan) 10%, transparent);
}
.btn-negocio.btn-det:hover {
    background: color-mix(in srgb, var(--cyan) 15%, transparent);
    border-color: var(--cyan);
    box-shadow: 0 0 15px color-mix(in srgb, var(--cyan) 50%, transparent), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   10. MEDIA QUERY: DISPOSITIVOS MÓVILES (MÁXIMO 768px) - SIN DESBORDAMIENTOS
   ========================================================================== */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        padding: 12px 20px;
        display: flex;
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-sizing: border-box;
        width: 100%;
    }

    /* Mostrar botón hamburguesa moderno y asimétrico */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid color-mix(in srgb, var(--cyan) 20%, transparent);
        border-radius: 50%;
        cursor: pointer;
        z-index: 1010;
        padding: 10px;
        gap: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .menu-toggle:hover {
        border-color: var(--cyan);
        background: rgba(0, 173, 181, 0.08);
        box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 30%, transparent);
    }

    .menu-toggle .bar {
        height: 2px;
        background-color: var(--cyan);
        border-radius: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 4px color-mix(in srgb, var(--cyan) 45%, transparent);
    }

    /* Longitudes asimétricas iniciales */
    .menu-toggle .bar:nth-child(1) {
        width: 18px;
    }

    .menu-toggle .bar:nth-child(2) {
        width: 12px;
    }

    .menu-toggle .bar:nth-child(3) {
        width: 16px;
    }

    /* Animación del ícono de menú hacia una 'X' moderna */
    .menu-toggle.active {
        border-color: var(--cyan);
        box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 40%, transparent);
        background: rgba(0, 173, 181, 0.1);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        width: 18px;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        width: 18px;
    }

    /* Panel Flotante Estilo Neon Glassmorphism */
    .nav-container {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        width: 260px;
        max-height: 80vh;
        background: rgba(10, 12, 16, 0.85); 
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid color-mix(in srgb, var(--cyan) 25%, transparent);
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
                    0 0 20px color-mix(in srgb, var(--cyan) 15%, transparent),
                    inset 0 1px 1px rgba(255, 255, 255, 0.1);
        padding: 18px;
        overflow-y: auto;
        box-sizing: border-box;
        
        /* Transición de escala, desplazamiento suave y opacidad */
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
        transform-origin: top right;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1005;
    }

    .nav-container.active {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: all;
    }

    /* Limpieza estricta de herencias de PC en el nav */
    header nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 4px !important;
    }

    /* Enlaces adaptados en lista vertical con micro-animaciones */
    header nav a, 
    .dropdown .dropbtn {
        font-size: 1.05rem !important;
        color: rgba(255, 255, 255, 0.85) !important;
        width: 100% !important;
        padding: 10px 12px !important;
        border-bottom: 1px solid color-mix(in srgb, var(--cyan) 8%, transparent) !important;
        text-align: left !important;
        background: transparent !important;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box !important;
        border-radius: 8px;
        transition: all 0.25s ease !important;
    }
    
    header nav a:hover,
    header nav a.active,
    .dropdown .dropbtn:hover {
        color: var(--cyan) !important;
        background: color-mix(in srgb, var(--cyan) 6%, transparent) !important;
        padding-left: 16px !important;
        text-shadow: 0 0 8px color-mix(in srgb, var(--cyan) 40%, transparent);
    }

    .dropdown {
        width: 100%;
        position: relative;
    }

    /* Contenedor del submenú en móviles (Proyectos) */
    .dropdown-content {
        position: static !important; 
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important; 
        background-color: rgba(18, 22, 32, 0.5) !important; 
        backdrop-filter: blur(5px);
        border-left: 2px solid var(--cyan) !important;
        border-radius: 8px !important;
        margin: 4px 0 8px 0 !important;
        padding: 4px 0 4px 12px !important;
        width: 100% !important;
        transform: none !important;
        box-sizing: border-box !important;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.3) !important;
    }

    /* Despliegue vertical interactivo del submenú */
    .dropdown.active .dropdown-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .dropdown-content a {
        font-size: 0.95rem !important;
        padding: 8px 10px !important;
        color: rgba(255, 255, 255, 0.75) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
        border-radius: 6px;
        transition: all 0.2s ease !important;
    }

    .dropdown-content a:hover {
        color: var(--cyan) !important;
        background: color-mix(in srgb, var(--cyan) 6%, transparent) !important;
        padding-left: 14px !important;
    }

    .dropdown-content::before {
        display: none !important; 
    }

    /* Ajustes generales del contenido del Hero y Secciones en Móvil */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
    .btn-principal, .btn-secundario { width: 100%; text-align: center; }
    .info-container { grid-template-columns: 1fr; gap: 40px; }
    .info-graphic { order: -1; }
    .section-title h2 { font-size: 1.8rem; }
}

/* ========================================================
   9. SISTEMA DE CARRITO DE COMPRAS POR WHATSAPP
   ======================================================== */
/* Botón flotante del carrito */
#cart-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card) 0%, #1e2536 100%);
    border: 2px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 173, 181, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#cart-floating-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 25px color-mix(in srgb, var(--cyan-glow) 70%, transparent);
    border-color: var(--cyan-glow);
}

#cart-floating-btn svg {
    width: 26px;
    height: 26px;
    fill: var(--text-white);
    transition: fill 0.3s;
}

#cart-floating-btn:hover svg {
    fill: var(--cyan-glow);
}

/* Badge de cantidad */
#cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 8px rgba(255, 75, 43, 0.6);
    border: 2px solid var(--bg-dark);
    transition: all 0.2s;
}

/* Overlay de fondo */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 16, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cart-overlay.active {
    display: block;
    opacity: 1;
}

/* Drawer / Contenedor lateral del carrito */
#cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background-color: rgba(18, 22, 32, 0.95);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(0, 173, 181, 0.2);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

#cart-drawer.active {
    right: 0;
}

/* Cabecera del carrito */
.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.cart-close-btn:hover {
    color: var(--cyan);
    transform: scale(1.1);
}

/* Contenido del carrito (lista de items) */
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Custom scrollbar para el carrito */
.cart-body::-webkit-scrollbar {
    width: 6px;
}
.cart-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.cart-body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--cyan) 25%, transparent);
    border-radius: 3px;
}
.cart-body::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* Mensaje de carrito vacío */
.cart-empty-message {
    text-align: center;
    color: var(--text-gray);
    margin-top: 40px;
}

.cart-empty-message svg {
    width: 60px;
    height: 60px;
    fill: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

/* Item del carrito */
.cart-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 173, 181, 0.2);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 3px;
}

.cart-item-subtitle {
    font-size: 0.75rem;
    color: var(--cyan);
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-gray);
}

/* Controles del item */
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(10, 12, 16, 0.3);
}

.cart-qty-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: rgba(0, 173, 181, 0.15);
    color: var(--cyan);
}

.cart-qty-val {
    width: 25px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-delete {
    background: transparent;
    border: none;
    color: rgba(255, 75, 43, 0.7);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.2s, transform 0.2s;
}

.cart-item-delete:hover {
    color: #ff4b2b;
    transform: scale(1.15);
}

/* Pie del carrito (Formulario y Checkout) */
.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(10, 12, 16, 0.6);
}

.cart-total-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.cart-total-price {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 173, 181, 0.3);
}

/* Formulario del cliente */
.cart-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.cart-input, .cart-textarea {
    background-color: rgba(10, 12, 16, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-white);
    padding: 10px 12px;
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-input:focus, .cart-textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 173, 181, 0.2);
}

.cart-textarea {
    resize: none;
    height: 60px;
}

.cart-checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan) 0%, #008f96 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.3);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 242, 0.5);
    background: var(--cyan-glow);
}

.cart-checkout-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--bg-dark);
}

/* Toast de notificación */
.cart-toast {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--cyan);
    border-left: 4px solid var(--cyan);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 12px 20px;
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 1002;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.cart-toast svg {
    width: 16px;
    height: 16px;
    fill: var(--cyan);
}

/* Media Query Adaptaciones para Móviles del Carrito */
@media (max-width: 480px) {
    #cart-drawer {
        width: 100%;
        right: -100%;
    }
    #cart-floating-btn {
        bottom: 15px;
        right: 15px;
        width: 54px;
        height: 54px;
    }
    .cart-toast {
        right: 15px;
        left: 15px;
        bottom: 85px;
    }
}

/* ========================================================
   10. FILTROS DE CATEGORÍAS EN LA PÁGINA DE PRODUCTOS
   ======================================================== */
.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px auto 40px auto;
    max-width: 900px;
    padding: 0 15px;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 173, 181, 0.15);
    color: var(--text-gray);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.filter-btn:hover {
    border-color: var(--cyan);
    color: var(--text-white);
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.2);
}

.filter-btn.active {
    background-color: var(--cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 173, 181, 0.4);
}

/* ========================================================
   11. POPUP PROMOCIONAL DE SENSUN SHOP EN HOME
   ======================================================== */
#promo-popup {
    position: fixed;
    bottom: 25px;
    left: -400px; /* Oculto inicialmente, se desliza */
    width: 360px;
    background: linear-gradient(135deg, rgba(18, 22, 32, 0.98) 0%, rgba(26, 17, 43, 0.98) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 110, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 110, 0, 0.2);
    z-index: 997;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

#promo-popup.active {
    left: 25px;
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.promo-badge {
    background: linear-gradient(90deg, #ff7b00 0%, #a800ff 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.promo-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.promo-close:hover {
    color: #ff7b00;
    transform: scale(1.1);
}

.promo-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 50%, #ff7b00 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-body p {
    font-size: 0.88rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff7b00 0%, #8b00d0 100%);
    color: white !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 110, 0, 0.2);
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 110, 0, 0.4);
    background: linear-gradient(135deg, #ff9500 0%, #a000ff 100%);
}

/* Ajuste responsivo para el popup en móviles */
@media (max-width: 480px) {
    #promo-popup {
        width: calc(100% - 30px);
        left: -100%;
        bottom: 85px;
    }
    #promo-popup.active {
        left: 15px;
    }
}

/* ========================================================
   12. LIGHTBOX MODAL PARA EXPANDIR IMÁGENES
   ======================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content {
    max-width: 100%;
    max-height: 68vh;
    border-radius: 16px;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 35px rgba(0, 173, 181, 0.3);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-gray);
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--cyan);
    transform: scale(1.1);
}

.lightbox-btn {
    box-shadow: 0 4px 20px rgba(0, 173, 181, 0.4);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 4px 15px rgba(0, 173, 181, 0.3);
    }
    100% {
        box-shadow: 0 4px 25px rgba(0, 255, 242, 0.6);
    }
}

/* ========================================================
   13. SECCIÓN KICKZONE & TRANSMISIONES EN VIVO (MULTIVIEW)
   ======================================================== */
:root {
    --kick-green: #53fc18;
    --kick-green-glow: rgba(83, 252, 24, 0.4);
    --kick-dark-bg: #0b0e0f;
    --kick-border: #2d3035;
}

.kick-gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--kick-green) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kickzone-section {
    padding: 30px 2.5%;
    max-width: 1700px; /* Ancho extendido para aprovechar pantallas widescreen en PC */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 95%;
}

/* Contenedor Multiview Dinámico */
#multiview-grid {
    display: flex;
    flex-direction: column; /* Apilado vertical por defecto en PC (uno abajo del otro) */
    gap: 20px;
    width: 100%;
}

/* Modo Solo Ver: Organiza en cuadrícula de 2 columnas sin chats */
#multiview-grid.solo-ver-mode {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}

#multiview-grid.solo-ver-mode .stream-chat-area {
    display: none !important;
}

/* Barra de herramientas global del Multiview */
.multiview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 22, 32, 0.55);
    border: 1px solid rgba(83, 252, 24, 0.15);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.multiview-toolbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botones de control globales */
.console-controls {
    display: flex;
    gap: 10px;
}

.console-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.console-btn:hover {
    background: rgba(83, 252, 24, 0.1);
    border-color: var(--kick-green);
    color: #fff;
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.2);
}

.console-btn.danger {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.console-btn.danger:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.25);
}

.console-btn.primary {
    background: var(--kick-green);
    color: #000;
    border-color: var(--kick-green);
}

.console-btn.primary:hover {
    background: #47e212;
    color: #000;
    box-shadow: 0 0 12px rgba(83, 252, 24, 0.4);
}

/* Caja del Streamer (Video + Chat en Consola Unificada) */
.stream-box {
    background: rgba(18, 22, 32, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(83, 252, 24, 0.15);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5),
                0 0 15px rgba(83, 252, 24, 0.03);
    transition: border-color 0.3s ease;
}

.stream-box:hover {
    border-color: rgba(83, 252, 24, 0.3);
}

/* Barra superior de control del stream */
.stream-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--kick-border);
}

.stream-box-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-box-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kick-green), #00adb5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 0.95rem;
    box-shadow: 0 0 8px var(--kick-green-glow);
}

.stream-box-controls {
    display: flex;
    gap: 8px;
}

.stream-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stream-control-btn:hover {
    background: rgba(83, 252, 24, 0.1);
    border-color: var(--kick-green);
    color: #fff;
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.2);
}

.stream-control-btn.danger:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    color: #fff;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

/* Cuerpo del stream: Video y Chat Lado a Lado */
.stream-box-body {
    display: flex;
    gap: 15px;
    width: 100%;
}

.stream-video-area {
    flex: 1;
    position: relative;
}

.kick-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--kick-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    background: #000;
}

.kick-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Chat del stream a un costado */
.stream-chat-area {
    width: 300px;
    flex-shrink: 0;
    background-color: var(--kick-dark-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--kick-border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.stream-chat-area iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.stream-status-badge {
    background: rgba(83, 252, 24, 0.15);
    border: 1px solid var(--kick-green);
    color: var(--kick-green);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: livePulse 2s infinite alternate;
}

@keyframes livePulse {
    0% { opacity: 0.6; box-shadow: 0 0 5px rgba(83, 252, 24, 0.2); }
    100% { opacity: 1; box-shadow: 0 0 12px rgba(83, 252, 24, 0.5); }
}

/* Grid de Selección de Streamers */
.streamers-grid-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 25px;
    border-left: 4px solid var(--kick-green);
    padding-left: 12px;
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.streamer-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.streamer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(83, 252, 24, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.streamer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(83, 252, 24, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4),
                0 0 10px rgba(83, 252, 24, 0.05);
}

.streamer-card:hover::before {
    opacity: 1;
}

.streamer-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.streamer-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 252, 24, 0.15) 0%, rgba(10, 12, 16, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.streamer-card-avatar img, .stream-box-avatar img, .streamer-avatar-indicator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.stream-box-avatar, .streamer-avatar-indicator {
    overflow: hidden;
    position: relative;
}

.streamer-card:hover .streamer-card-avatar {
    border-color: var(--kick-green);
    box-shadow: 0 0 10px var(--kick-green-glow);
}

.streamer-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.streamer-card-platform {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.kick-logo-badge {
    color: var(--kick-green);
    font-weight: 700;
}

.streamer-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    z-index: 1;
}

.streamer-card-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.streamer-card-btn.primary {
    background: var(--kick-green);
    color: #000;
    border-color: var(--kick-green);
}

.streamer-card-btn.primary:hover {
    background: #47e212;
    box-shadow: 0 0 12px rgba(83, 252, 24, 0.4);
}

.streamer-card-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-gray);
}

/* Responsividad para Móviles (Consola y Grid de Streams) */
@media (max-width: 992px) {
    .kickzone-section {
        width: 100%;
        padding: 20px 4%;
    }
    
    #multiview-grid {
        grid-template-columns: 1fr !important; /* Siempre 1 columna en móvil */
    }

    .stream-box-body {
        flex-direction: column; /* Apila el video y el chat de cada caja */
    }

    .stream-chat-area {
        width: 100%; /* El chat ocupa el mismo ancho que el video */
        height: 380px;
    }

    /* Reducir tamaño de botones y usar iconografía */
    .stream-control-btn .btn-text {
        display: none;
    }

    .stream-control-btn {
        padding: 8px 10px;
        font-size: 1.15rem; /* Iconos más visibles para tocar en celular */
    }

    .stream-box-controls {
        gap: 5px;
    }

    /* Listado de streamers en cuadrícula 2x2 */
    .streamers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .streamer-card {
        padding: 12px !important;
        gap: 10px !important;
    }

    .streamer-card-header {
        gap: 8px !important;
    }

    .streamer-card-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .streamer-card-name {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .streamer-card-btn {
        padding: 6px 4px !important;
        font-size: 0.72rem !important;
    }
}

/* ========================================================
   SISTEMA DE BÚSQUEDA GLOBAL (SENSUN SHOP)
   ======================================================== */
.mobile-header-actions {
    display: none;
}

.search-trigger-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.search-trigger-btn:hover {
    color: var(--ss-orange, #e8621a);
    background: rgba(232, 98, 26, 0.1);
    box-shadow: 0 0 10px rgba(232, 98, 26, 0.2);
}

.desktop-search {
    display: flex;
}

.mobile-search {
    display: none;
}

/* Modal Overlay */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Box */
.search-modal-box {
    width: 90%;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid rgba(232, 98, 26, 0.25);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(232, 98, 26, 0.05);
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 75vh;
}

.search-modal-overlay.active .search-modal-box {
    transform: translateY(0) scale(1);
}

/* Header inside modal */
.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
}

.search-modal-icon {
    color: var(--ss-orange, #e8621a);
    display: flex;
    align-items: center;
}

.search-modal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
}

.search-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-modal-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.search-modal-close:hover {
    background: var(--ss-orange, #e8621a);
    color: #0a0c10;
    border-color: var(--ss-orange, #e8621a);
    box-shadow: 0 0 10px rgba(232, 98, 26, 0.4);
}

/* Area de Resultados */
.search-modal-results {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px 20px 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 98, 26, 0.3) transparent;
}

.search-modal-results::-webkit-scrollbar {
    width: 6px;
}
.search-modal-results::-webkit-scrollbar-thumb {
    background: rgba(232, 98, 26, 0.3);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    margin-bottom: 8px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.01);
}

.search-result-item:hover {
    background: rgba(232, 98, 26, 0.08);
    border-color: rgba(232, 98, 26, 0.25);
    transform: translateY(-2px);
}

.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px;
}

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

.search-result-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-desc {
    font-size: 0.82rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 5px;
}

.search-result-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.search-result-badge.gastronomia { background: rgba(230, 126, 34, 0.15); color: #e67e22; }
.search-result-badge.comercio { background: rgba(142, 68, 173, 0.15); color: #9b59b6; }
.search-result-badge.servicios { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.search-result-badge.profesionales { background: rgba(26, 188, 156, 0.15); color: #1abc9c; }

/* Animación de Resaltado Neón */
@keyframes neonHighlightPulse {
    0% {
        box-shadow: 0 0 5px rgba(232, 98, 26, 0.2);
        border-color: rgba(232, 98, 26, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(232, 98, 26, 0.8);
        border-color: rgba(232, 98, 26, 0.8);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 5px rgba(232, 98, 26, 0.2);
        border-color: rgba(232, 98, 26, 0.25);
        transform: scale(1);
    }
}

.highlight-card {
    animation: neonHighlightPulse 1.5s ease-in-out 3;
    z-index: 10;
}

/* Responsividad para Header en Móvil */
@media (max-width: 768px) {
    header {
        padding-top: calc(env(safe-area-inset-top, 12px) + 10px) !important;
    }
    .logo-container {
        gap: 6px !important;
    }
    .logo-text {
        font-size: 1.15rem !important;
        white-space: nowrap !important;
    }
    .web-logo {
        height: 32px !important;
        width: auto !important;
    }
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* Optimización de rendimiento para WebViews de navegadores y evitar parpadeos */
    .producto-card,
    .servicio-item,
    .proyecto-card,
    .red-card,
    .hero-content,
    .founder-card,
    .contact-box,
    .about-card,
    .negocio-card,
    .detail-card {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        transform: translate3d(0, 0, 0);
        will-change: transform, opacity;
    }
    .desktop-search,
    .desktop-theme-toggle {
        display: none !important;
    }
    .mobile-search {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(232, 98, 26, 0.2);
        border-radius: 50%;
        color: var(--ss-orange, #e8621a);
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }
    .mobile-search:hover {
        background: rgba(232, 98, 26, 0.1);
        border-color: var(--ss-orange, #e8621a);
        box-shadow: 0 0 10px rgba(232, 98, 26, 0.35);
    }
}

/* Optimización extra para pantallas muy pequeñas (celulares) */
@media (max-width: 480px) {
    .search-modal-overlay {
        padding-top: 5vh;
        padding-left: 10px;
        padding-right: 10px;
    }
    .search-modal-box {
        width: 100%;
        max-height: 85vh;
        border-radius: 12px;
    }
    .search-modal-header {
        padding: 12px 14px;
        gap: 8px;
    }
    .search-modal-input {
        font-size: 1rem;
    }
    .search-modal-results {
        padding: 8px 10px 15px 10px;
    }
    .search-result-item {
        padding: 10px;
        gap: 10px;
        border-radius: 8px;
    }
    .search-result-img {
        width: 42px;
        height: 42px;
        padding: 2px;
    }
    .search-result-title {
        font-size: 0.92rem;
    }
    .search-result-desc {
        font-size: 0.78rem;
    }
    .search-result-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    .search-result-meta .tag {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* ========================================================
   SISTEMA DE MODO CLARO (LIGHT THEME)
   ======================================================== */
body.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --text-white: #0f172a;
    --text-gray: #475569;
    --cyan: #008f96; /* Cian un poco más oscuro para mejor contraste en fondo blanco */
    --cyan-glow: rgba(0, 143, 150, 0.3);
}

body.light-theme header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(0, 143, 150, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme header nav a {
    color: #475569;
}

body.light-theme header nav a:hover,
body.light-theme header nav a.active {
    color: var(--cyan);
}

body.light-theme .dropdown-content {
    background-color: #ffffff;
    border-color: rgba(0, 143, 150, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-content a {
    color: #475569;
    border-bottom-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .dropdown-content a:hover {
    background-color: rgba(0, 143, 150, 0.05);
    color: var(--cyan);
}

body.light-theme footer {
    background-color: #f1f5f9;
    border-top-color: rgba(0, 0, 0, 0.05);
}

body.light-theme footer p {
    color: #64748b;
}

@media (max-width: 768px) {
    body.light-theme .nav-container {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(0, 143, 150, 0.2);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 143, 150, 0.05);
    }
    
    body.light-theme header nav a,
    body.light-theme .dropdown .dropbtn {
        color: #334155 !important;
        border-bottom-color: rgba(0, 143, 150, 0.1) !important;
    }
}

/* Estilos de Botón de Conmutador de Tema */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
    align-self: center;
}

.theme-toggle-btn:hover {
    color: var(--cyan);
    background: rgba(0, 173, 181, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.25);
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #475569;
}

body.light-theme .theme-toggle-btn:hover {
    color: var(--cyan);
    background: rgba(0, 143, 150, 0.06);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 143, 150, 0.15);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.theme-toggle-btn .sun-icon {
    display: none;
}
.theme-toggle-btn .moon-icon {
    display: block;
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: block;
}
body.light-theme .theme-toggle-btn .moon-icon {
    display: none;
}

/* Breakpoint para pantallas muy estrechas (evita saltos de línea en logo) */
@media (max-width: 360px) {
    .logo-text {
        font-size: 0.95rem !important;
    }
    .logo-container {
        gap: 4px !important;
    }
    .web-logo {
        height: 28px !important;
    }
}

/* ========================================================
   SISTEMA DE AUTENTICACIÓN (MODAL & SESIÓN)
   ======================================================== */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-card {
    background: var(--bg-card);
    border: 1px solid rgba(var(--cyan-rgb, 0, 173, 181), 0.25);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 35px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--cyan-rgb, 0, 173, 181), 0.05);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-overlay.active .auth-modal-card {
    transform: scale(1) translateY(0);
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.auth-close-btn:hover {
    color: var(--cyan);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 25px;
    gap: 15px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
}

.auth-tab-btn.active {
    color: var(--cyan);
}

.auth-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.auth-tab-btn.active::after {
    transform: scaleX(1);
}

.auth-form-content h3 {
    font-size: 1.4rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.auth-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
}

.auth-input-group input {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
    background-color: rgba(255, 255, 255, 0.05);
}

.auth-error-container {
    background-color: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-light, #00d2fc) 100%);
    border: none;
    border-radius: 8px;
    color: #06080c;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--cyan-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--cyan-rgb, 0, 173, 181), 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Elementos de Sesión en el Header */
.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-auth-trigger {
    background: rgba(var(--cyan-rgb, 0, 173, 181), 0.08);
    border: 1px solid rgba(var(--cyan-rgb, 0, 173, 181), 0.3);
    color: var(--cyan) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-shadow: none !important;
}

.btn-auth-trigger:hover {
    background: var(--cyan);
    color: #0a0c10 !important;
    box-shadow: 0 0 12px var(--cyan-glow);
    transform: translateY(-1px);
}

.user-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-profile-badge {
    background-color: var(--cyan);
    color: #0a0c10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 8px var(--cyan-glow);
}

.user-profile-email {
    font-size: 0.85rem;
    color: var(--text-white);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c !important;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

/* ========================================================
   SISTEMA DE NOTIFICACIONES (TOASTS) GENERALES - PREMIUM GLASS
   ======================================================== */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999; /* Asegura estar por encima de todos los modales */
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 50px);
}

.toast-notification {
    background: rgba(18, 22, 32, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--cyan);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(var(--cyan-rgb, 0, 173, 181), 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    pointer-events: auto;
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.35s ease;
}

.toast-notification.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.toast-icon-wrapper {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.toast-icon-wrapper svg {
    width: 16px;
    height: 16px;
}

.toast-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-white);
    letter-spacing: 0.2px;
}

.toast-message {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Adaptación del modo claro */
body.light-theme .toast-notification {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    border-left: 4px solid var(--cyan) !important;
    box-shadow: 0 20px 40px rgba(0, 143, 150, 0.08), 
                0 0 15px rgba(0, 143, 150, 0.02) !important;
    color: var(--text-white) !important;
}

body.light-theme .toast-icon-wrapper {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .toast-message {
    color: var(--text-gray) !important;
}

/* ========================================================
   BOTÓN DE CERRAR SESIÓN REDONDO (TIPO APAGADO)
   ======================================================== */
.btn-logout-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.btn-logout-round:hover {
    background: #e74c3c;
    color: #ffffff;
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.btn-logout-round svg {
    width: 16px;
    height: 16px;
}

/* ========================================================
   OPTIMIZACIONES DE RESPONSIVIDAD PARA CABECERA EN MÓVIL
   ======================================================== */
@media screen and (max-width: 480px) {
    header {
        padding: 10px 12px !important;
    }
    .mobile-header-actions {
        gap: 6px !important;
    }
    .logo-container {
        gap: 4px !important;
    }
}

@media screen and (max-width: 400px) {
    /* Mantenemos el logo visible */
    .logo-text {
        font-size: 0.95rem !important;
    }
}

@media screen and (max-width: 768px) {
    .nav-container nav .nav-auth-container {
        width: 100% !important;
        margin-top: 15px !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    
    .nav-container nav .user-profile-menu {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

/* Customizador de Avatar */
.avatar-option-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.avatar-option-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--cyan-rgb, 0, 173, 181), 0.2);
}
.color-option-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.color-option-btn:hover {
    transform: scale(1.15);
}

/* ==========================================================================
   OPTIMIZACIONES MÓVILES ADICIONALES (UX & GESTOS)
   ========================================================================== */

/* Bloqueo de scroll para overlays activos */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none !important;
}

/* Efectos de respuesta táctil activa en móviles */
@media (hover: none) {
    .btn-principal:active,
    .btn-secundario:active,
    .btn-negocio:active,
    .category-item-btn:active,
    .search-trigger-btn:active,
    .favorite-toggle-btn:active,
    .slider-btn:active,
    .theme-toggle-btn:active,
    .close-results-btn:active,
    .avatar-option-btn:active,
    .color-option-btn:active {
        transform: scale(0.96) !important;
        filter: brightness(0.9) !important;
        transition: transform 0.05s ease !important;
    }
}

/* Mejora de físicas y suavizado de scroll en móviles */
.novedades-slider,
.category-carousel {
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    touch-action: pan-x !important;
}

#cart-drawer,
.search-modal-overlay,
.nav-container {
    touch-action: pan-y;
}