/* Variables de Diseño */
:root {
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --border-color: #dbdbdb;
    --text-main: #262626;
    --text-muted: #737373;
    --accent: #0095f6;
    --accent-hover: #1877f2;
    --danger: #ed4956;
}

[data-theme="dark"] {
    --bg-main: #000000;
    --bg-card: #121212;
    --border-color: #262626;
    --text-main: #f5f5f5;
    --text-muted: #a8a8a8;
    --accent: #0095f6;
    --accent-hover: #1877f2;
    --danger: #f85149;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, border-color 0.3s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* Navbar Idéntico para Navegación Continua */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    gap: 12px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-brand img {
    height: 38px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}
.nav-links::-webkit-scrollbar {
    display: none;
}
/* On mobile, revert to full-width left-aligned row */
@media (max-width: 900px) {
    .navbar { flex-wrap: wrap; height: auto; padding: 0 15px; gap: 0; }
    .nav-brand { padding: 8px 0; }
    .nav-links { width: 100%; flex: none; justify-content: flex-start; padding: 0 0 8px; gap: 10px; order: 4; }
    .nav-login-link { order: 2; }
    .nav-profile { order: 2; }
    .nav-logout-link { order: 2; }
    #theme-toggle-nav { order: 3; }
}
/* Scroll hint (fixed, created by JS) */
.nav-scroll-hint {
    position: fixed;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--bg-card));
    pointer-events: none;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: opacity 0.35s;
}
.nav-scroll-hint.scrolled-right {
    opacity: 0;
}
.nav-scroll-hint::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg);
    opacity: 0.6;
    animation: scrollHint 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes scrollHint {
    0%, 100% { transform: rotate(-45deg) translateX(0); opacity: 0.6; }
    50% { transform: rotate(-45deg) translateX(4px); opacity: 1; }
}

.nav-links a,
.theme-toggle,
.nav-dropdown .dropdown-trigger {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 0.88rem;
}

.nav-links a:hover,
.nav-dropdown .dropdown-trigger:hover {
    color: var(--accent);
}

/* Nav Login Link */
.nav-login-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    flex-shrink: 0;
    transition: background 0.2s;
}
.nav-login-link:hover {
    background: var(--bg-main);
    color: var(--accent);
}

/* Nav Profile */
.nav-profile {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}
.nav-profile:hover {
    background: var(--bg-main);
}
.nav-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #1877f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.nav-logout-link {
    display: none;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--danger);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    flex-shrink: 0;
    transition: background 0.2s;
}
.nav-logout-link:hover {
    background: rgba(237,73,86,0.1);
    color: var(--danger);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    flex-shrink: 0;
}
.nav-dropdown .dropdown-trigger {
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    user-select: none;
    font-family: inherit;
    font-size: inherit;
}
.nav-dropdown .dropdown-trigger .ti-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.2s;
}
.nav-dropdown:hover .dropdown-trigger .ti-chevron-down,
.nav-dropdown.open .dropdown-trigger .ti-chevron-down {
    transform: rotate(180deg);
}
.nav-dropdown .dropdown-menu {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1100;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.nav-dropdown .dropdown-menu a {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    white-space: nowrap;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.15s;
}
.nav-dropdown .dropdown-menu a:hover {
    background: var(--bg-main);
    color: var(--accent);
}

/* ==========================================================================
   CARRUSEL INFO CINEMÁTICO (ESTILO LE MANS INTERACTIVO)
   ========================================================================== */

.info-carousel-section {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 60px;
    /* Espacio para las flechas laterales */
    min-height: 480px;
    display: flex;
    align-items: center;
}

/* Contenedor del Slide Activo */
.info-slide-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Estado Activo controlado por JS */
.info-slide-wrapper.active-slide {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* --- BLOQUE DE TEXTO Y ANIMACIÓN DE LÍNEAS --- */
.info-slide-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.info-slide-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Segmentación de líneas cinemáticas */
.animate-line {
    display: block;
    overflow: hidden;
    margin-bottom: 4px;
}

.animate-line span {
    display: block;
    transform: translateY(100%) skewY(6deg);
    /* Inclinada y abajo por defecto */
    opacity: 0;
    transform-origin: left top;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

/* Disparador de entrada del texto */
.active-slide .animate-line span {
    transform: translateY(0) skewY(0deg);
    /* Se vuelve recta */
    opacity: 1;
}

/* Delays escalonados automáticos por línea */
.active-slide .line-1 span {
    transition-delay: 0.2s;
}

.active-slide .line-2 span {
    transition-delay: 0.35s;
}

.active-slide .line-3 span {
    transition-delay: 0.5s;
}

.active-slide .line-4 span {
    transition-delay: 0.65s;
}

/* Efecto de salida: El texto cae y se esfuma */
.exit-slide .info-slide-content {
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s ease-in, opacity 0.5s ease-in;
}


/* --- FRAME MULTIMEDIA Y ANIMACIÓN DE RECOGIMIENTO --- */
.carousel-media-frame {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 4px;
    /* Bordes rectos sutiles estilo minimalista */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    /* clip-path inicial para la animación de entrada de izquierda a derecha */
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Entrada de la imagen */
.active-slide .carousel-media-frame {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Salida de la imagen: Se encoge de izquierda a derecha (colapsa hacia el extremo derecho) */
.exit-slide .carousel-media-frame {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.84, 0);
}


/* --- BOTONES DE NAVEGACIÓN MINIMALISTAS --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: color 0.2s, transform 0.2s;
}

.carousel-arrow:hover {
    color: var(--accent);
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}


/* RESPONSIVO AJUSTADO A 900PX */
@media (max-width: 900px) {
    .info-carousel-section {
        padding: 0 20px;
    }

    .info-slide-wrapper {
        grid-template-columns: 100%;
        gap: 30px;
        position: relative;
        display: none;
    }

    .info-slide-wrapper.active-slide {
        display: flex;
        flex-direction: column-reverse;
        /* Imagen arriba, texto abajo en móviles */
    }

    .carousel-media-frame {
        height: 280px;
    }

    .carousel-arrow {
        display: none;
        /* En mobile se prioriza la visualización limpia o autoplay */
    }
}

/* --- 1. SECCIÓN REDES SOCIALES (ESTILO FLOTANTE) --- */
.social-banner-section {
    padding: 30px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    margin: 0;
}

.social-title-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.social-grid-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-pill-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s;
}

/* Efectos de marca individuales */
.social-pill-card.instagram:hover {
    border-color: #e1306c;
    color: #e1306c;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.15);
}

.social-pill-card.tiktok:hover {
    border-color: #00f2fe;
    color: var(--text-main);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.15);
}

.social-pill-card.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.15);
}




/* --- 3. SECCIÓN DE TALLERES (GRID CIENTÍFICO) --- */
.workshops-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-headline {
    text-align: center;
    margin-bottom: 40px;
}

.section-headline h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-headline p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* --- 4. ANIMACIONES GENERALES DE APARICIÓN DE SCROLL --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.animated {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   REDISEÑO MAESTRO DEL MAIN: COMPONENTES ESTILO GITHUB Y TARJETAS DESPLEGABLES
   ========================================================================== */



/* --- 2. TARJETAS DE TALLERES CON DESPLIEGUE TÁCTIL (HOVER EMERGINTE) --- */
.workshops-section {
    padding: 80px 20px;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

/* Estructura de la Tarjeta Desplegable */
.workshop-cosmic-card {
    position: relative;
    height: 400px;
    /* Altura fija para controlar el comportamiento del panel */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

/* Fondo de Imagen permanente de la Tarjeta */
.card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Panel Desplegable: Por defecto muestra solo el título abajo */
.card-sliding-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    /* Altura inicial del título de abajo */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    /* Cristal esmerilado discreto */
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.5s ease;
}

/* Inyección de variables en modo oscuro automático usando tu arquitectura */
[data-theme="dark"] .card-sliding-panel {
    background: rgba(18, 18, 18, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header-title h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-icon-box {
    color: var(--accent);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

/* Contenido oculto que se despliega al pasar el mouse */
.card-hidden-description {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- ACCIÓN HOVER (MECANISMO DE ELEVACIÓN) --- */
.workshop-cosmic-card:hover .card-sliding-panel {
    height: 100%;
    /* Sube por completo hasta cubrir la tarjeta */
    background: rgba(255, 255, 255, 0.88);
    /* Sube la opacidad del cristal */
}

[data-theme="dark"] .workshop-cosmic-card:hover .card-sliding-panel {
    background: rgba(18, 18, 18, 0.92);
}

.workshop-cosmic-card:hover .card-bg-image {
    transform: scale(1.08);
    /* Sutil zoom de fondo */
}

.workshop-cosmic-card:hover .card-hidden-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* El texto aparece suavemente después de subir */
}

/* ==========================================================================
   CARRUSEL HERO PREMIUM (ESTILO TELÉFONO VERTICAL)
   ========================================================================== */

.hero-slider-section {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
    position: relative;
    /* Necesario para posicionar las flechas */
}

.hero-slider-section h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.slider-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
    /* Espacio para que las flechas no pisen las cartas */
}

/* Contenedor de las tarjetas con scroll oculto */
.slider-container {
    display: flex;
    gap: 20px;
    /* Column gap definido */
    overflow-x: hidden;
    /* Ocultamos la barra para controlar el scroll por JS */
    scroll-behavior: smooth;
    padding: 15px 5px;
}

/* Carta con Aspecto de Teléfono Inteligente Vertical */
.slider-card {
    min-width: 280px;
    max-width: 280px;
    height: 460px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Contenedor de la foto/video dentro de la carta simulando la pantalla completa */
.card-media-wrapper {
    width: 100%;
    height: 75%;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.card-media-wrapper img,
.card-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge o etiqueta pequeña de tipo de post arriba a la derecha */
.post-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pie de la tarjeta con info simplificada estilo feed */
.card-mini-footer {
    height: 25%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.card-mini-footer .user-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-mini-footer .caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-transform: none;
    text-overflow: ellipsis;
    /* Corta el texto largo de forma limpia con puntos suspensivos */
}

/* Botones de Navegación Flotantes (Flechas) */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.slider-arrow:hover {
    background-color: var(--text-main);
    color: var(--bg-card);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.slider-arrow.left {
    left: 15px;
}

.slider-arrow.right {
    right: 15px;
}

/* ==========================================================================
   SECCIÓN HERO DE REGISTRO INTERACTIVO (100VH)
   ========================================================================== */

.premium-register-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Abarca todo el alto de la pantalla */
    min-height: 600px;
    background-image: url('../img/viendo-estrellas.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Efecto Parallax sutil al hacer scroll */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Capa de contraste adaptativa (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

/* Modificación de contraste automática si tu app cambia a modo claro */
[data-theme="light"] .hero-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 244, 248, 0.7) 100%);
}

/* Contenedor centralizado */
.hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    z-index: 2;
    /* Por encima del overlay */
}

/* --- LADO IZQUIERDO: TEXTO DE ALTO IMPACTO --- */
.hero-text-side {
    flex: 1.2;
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 20px;
}

[data-theme="light"] .hero-badge {
    background: rgba(0, 86, 179, 0.1);
    border: 1px solid rgba(0, 86, 179, 0.2);
    color: var(--accent);
}

.hero-text-side h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

[data-theme="light"] .hero-text-side h2 {
    color: var(--text-main);
}

.hero-text-side p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .hero-text-side p {
    color: var(--text-muted);
}

/* --- LADO DERECHO: EL BOTÓN INTERACTIVO PREMIUM --- */
.hero-action-side {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

/* Botón con efecto de expansión fluida (Blob Animation) */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.3);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.magnetic-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* El "Blob" interno que se expande al pasar el mouse */
.btn-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* --- MICRO-INTERACCIONES EN HOVER --- */
.magnetic-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.4);
}

.magnetic-btn:hover .btn-blob {
    width: 320px;
    height: 320px;
    /* Expande la onda blanca translúcida */
}

.magnetic-btn:hover i {
    transform: translate(3px, -3px);
    /* La flecha apunta hacia afuera cinemáticamente */
}


/* ==========================================================================
   RESPONSIVO INTEGRADO (CORTE EN PANTALLAS COMPACTAS)
   ========================================================================== */
@media (max-width: 900px) {
    .premium-register-hero {
        height: auto;
        padding: 100px 0 80px 0;
        /* Espaciado cómodo para el respiro del scroll */
        background-attachment: scroll;
        /* Desactivamos fixed en mobile para optimizar GPU */
    }

    .hero-container {
        flex-direction: column;
        /* Cambia a flujo de columna estable */
        text-align: center;
        gap: 40px;
        padding: 0 24px;
    }

    .hero-text-side h2 {
        font-size: 2.4rem;
        /* Reducción de escala tipográfica equilibrada */
    }

    .hero-text-side p {
        font-size: 1rem;
    }

    .hero-action-side {
        width: 100%;
        justify-content: center;
    }

    .magnetic-btn {
        width: 100%;
        /* El botón se vuelve full-width adaptativo para presionar con el pulgar */
        max-width: 320px;
    }
}

/* Layout de dos columnas para feeds */
.main-container {
    max-width: 100%;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 65% 32%;
    gap: 3%;
    overflow: hidden;
}

.feed-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.card-media {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.card-body {
    padding: 14px;
}

/* Footer */
.main-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    margin-top: 0px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   ESTILOS PREMIUM PARA LOGIN Y REGISTRO (PANTALLA COMPLETA 100vh)
   ========================================================================== */

.auth-page-body {
    overflow: hidden;
    height: 100vh;
    background-color: var(--bg-card);
}

.auth-screen-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Imagen Lateral a 100vh */
.auth-side-cover {
    width: 55%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-side-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Capa sutil oscura sobre la imagen para suavizar el contraste */
.auth-side-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

/* Contenedor del Formulario */
.auth-form-side {
    width: 45%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    background-color: var(--bg-card);
}

.auth-inner-box {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
}

.auth-brand-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-brand-header img {
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.auth-brand-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-brand-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Inputs Ultra-Minimalistas */
.minimal-group {
    position: relative;
    margin-bottom: 20px;
}

.minimal-input {
    width: 100%;
    padding: 14px 12px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

/* Efecto de enfoque limpio */
.minimal-input:focus {
    border-color: var(--text-main);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px var(--bg-main);
}

/* Botón Minimalista Estilo Red Social */
.btn-minimal {
    width: 100%;
    padding: 14px;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-minimal:hover {
    background-color: var(--accent-hover);
}

.btn-minimal:active {
    transform: scale(0.98);
}

/* Enlaces de retorno */
.auth-footer-text {
    margin-top: 25px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Volver al inicio flotante */
.back-to-home {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--bg-main);
}

.back-to-home:hover {
    color: var(--text-main);
    background: var(--border-color);
}

/* ==========================================================================
   MENÚ HAMBURGUESA RESPONSIVO Y AJUSTES DE GRID (< 900px)
   ========================================================================== */

/* ==========================================================================
   BOTTOM TAB BAR (MÓVIL) - BARRA INFERIOR FLOTANTE
   ========================================================================== */

.bottom-tab-bar {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    height: 80px;
    background: rgba(20, 22, 30, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    animation: tabBarSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-theme="dark"] .bottom-tab-bar {
    background: rgba(10, 10, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .bottom-tab-bar {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.bottom-tab-bar .tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    padding: 10px;
    border-radius: 16px;
    min-width: 56px;
    height: 56px;
    transition: color 0.25s, transform 0.2s;
    position: relative;
}

[data-theme="dark"] .bottom-tab-bar .tab-item {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .bottom-tab-bar .tab-item {
    color: rgba(0, 0, 0, 0.45);
}

.bottom-tab-bar .tab-item i {
    font-size: 1.9rem;
    transition: transform 0.25s;
}

.bottom-tab-bar .tab-item span {
    display: none;
}

.bottom-tab-bar .tab-item:hover {
    transform: translateY(-4px);
}

.bottom-tab-bar .tab-item:hover i {
    transform: scale(1.15);
}

.bottom-tab-bar .tab-item:active {
    transform: scale(0.88);
}

/* --- ACTIVE: solo box-shadow inset, sin background --- */
.bottom-tab-bar .tab-item.active {
    background: none;
}

/* Comunidad — rosa/naranja */
.bottom-tab-bar .tab-item.active[data-tab="comunidad"],
.bottom-tab-bar .tab-item[data-tab="comunidad"]:hover {
    color: #ff6b8a;
}
.bottom-tab-bar .tab-item.active[data-tab="comunidad"] {
    box-shadow: inset 0 0 20px rgba(255, 107, 138, 0.25), inset 0 0 4px rgba(255, 107, 138, 0.15);
}

/* Cursos — verde/teal */
.bottom-tab-bar .tab-item.active[data-tab="cursos"],
.bottom-tab-bar .tab-item[data-tab="cursos"]:hover {
    color: #2ecc71;
}
.bottom-tab-bar .tab-item.active[data-tab="cursos"] {
    box-shadow: inset 0 0 20px rgba(46, 204, 113, 0.25), inset 0 0 4px rgba(46, 204, 113, 0.15);
}

/* Clases — rojo */
.bottom-tab-bar .tab-item.active[data-tab="clases"],
.bottom-tab-bar .tab-item[data-tab="clases"]:hover {
    color: #ff4757;
}
.bottom-tab-bar .tab-item.active[data-tab="clases"] {
    box-shadow: inset 0 0 20px rgba(255, 71, 87, 0.25), inset 0 0 4px rgba(255, 71, 87, 0.15);
}

/* Observación — azul */
.bottom-tab-bar .tab-item.active[data-tab="observacion"],
.bottom-tab-bar .tab-item[data-tab="observacion"]:hover {
    color: #4dabf7;
}
.bottom-tab-bar .tab-item.active[data-tab="observacion"] {
    box-shadow: inset 0 0 20px rgba(77, 171, 247, 0.25), inset 0 0 4px rgba(77, 171, 247, 0.15);
}

/* Animación de entrada tipo ventana */
@keyframes tabBarSlideUp {
    from { transform: translateY(80px) scale(0.92); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Botón Hamburguesa */
.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    /* Por encima de todo para que siempre sea clicleable */
}

/* Capa oscura de fondo (Overlay) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    /* Por debajo de la lista de enlaces */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
    width: calc(100vw - 281px);
}

/* Nuevos componentes para la Barra de Filtrado Avanzada */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
}

.search-box input {
    border: none;
    background: transparent;
    color: var(--text-main);
    outline: none;
    width: 100%;
    margin-left: 8px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-btn.active,
.tag-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.sky-status {
    background: linear-gradient(135deg, #0f2027, #203a43);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.85rem;
}



/* ==========================================================================
   HERO PREMIUM PARA DASHBOARDS (ADMIN Y MIEMBRO)
   ========================================================================== */

.dashboard-hero {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

.profile-identity-card {
    width: 100%;
    max-width: 1200px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.profile-info-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Avatar circular premium con iniciales */
.profile-avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.profile-avatar-circle.admin-color {
    background: linear-gradient(135deg, #ed4956, #c13584);
}

.profile-avatar-circle.member-color {
    background: linear-gradient(135deg, var(--accent), #0077b5);
}

.profile-text-details h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
}

.profile-text-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Badges de rango minimalistas */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-pill.admin-pill {
    background: rgba(237, 73, 86, 0.1);
    color: #ed4956;
    border: 1px solid rgba(237, 73, 86, 0.2);
}

.status-pill.member-pill {
    background: rgba(0, 149, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 149, 246, 0.2);
}


/* Responsivo para móviles y tablets (< 900px) con efecto Glassmorphism */
@media (max-width: 900px) {
    .premium-frame {
        max-width: 100%;
        width: 100%;
    }

    .premium-frame img {
        width: 100%;
        height: 240px;
        border-width: 0px !important;
        /* Eliminamos el borde para evitar problemas de espacio en móviles */
    }

    .premium-frame::before {
        display: none;
        /* Evitamos desbordes laterales asimétricos en pantallas compactas */
    }

    .hero-slider-section {
        min-height: 400px;
        overflow: hidden;
    }

    .slider-wrapper {
        padding: 0 15px;
    }

    .slider-arrow {
        display: none;
    }

    .slider-container {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .slider-card {
        flex-shrink: 0;
        min-width: 250px;
        max-width: 250px;
        height: 400px;
    }

    .auth-screen-container {
        position: relative;
        width: 100vw;
        height: 100vh;
    }

    /* Forzamos a la imagen a ocupar todo el fondo de la pantalla */
    .auth-side-cover {
        display: block;
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    /* El contenedor del formulario se superpone y se centra por completo */
    .auth-form-side {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 2;
        background-color: transparent;
        /* Eliminamos el fondo sólido */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    /* La ventana del formulario adopta el efecto esmerilado translúcido */
    .auth-inner-box {
        width: 100%;
        max-width: 340px;
        /* Tamaño compacto para maximizar el área visible del fondo */
        padding: 30px 25px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0);
        /* Blanco casi transparente */
        backdrop-filter: blur(12px);
        /* Efecto de desenfoque del fondo */
        -webkit-backdrop-filter: blur(12px);
        /* Soporte para Safari */
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    }

    /* Ajuste adaptativo para los textos dentro del vidrio en Modo Claro */
    .auth-brand-header h2,
    .auth-brand-header p,
    .auth-footer-text {
        color: rgb(236, 236, 236) !important;
    }

    /* Garantiza que los inputs mantengan contraste sobre el vidrio */
    .minimal-input {
        background-color: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(0, 0, 0, 0.15);
        color: #000000;
    }

    .minimal-input::placeholder {
        color: #555555;
    }

    .minimal-input:focus {
        background-color: #ffffff;
        border-color: var(--accent);
    }

    /* El botón flotante de retorno se adapta para no estorbar visualmente */
    .back-to-home {
        z-index: 10;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(4px);
        color: #1a1a1a;
    }

    /* Mobile bottom tab bar */
    .bottom-tab-bar {
        display: flex;
    }

    /* Hide desktop-only items from top nav */
    .desktop-only {
        display: none !important;
    }

    /* Scroll horizontal forzado, dropdown visible por position:fixed */
    .nav-links {
        overflow: auto hidden;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    /* Add padding to body so content isn't hidden behind bottom bar */
    body {
        padding-bottom: 130px;
    }

    .nav-links a,
    .theme-toggle,
    .nav-dropdown .dropdown-trigger {
        font-size: 0.85rem;
        padding: 4px 6px;
    }

    /* REESTRUCTURACIÓN DEL FEED: Barra lateral primero, Publicaciones abajo */
    .main-container {
        display: flex;
        flex-direction: column-reverse;
        /* Hace la magia de invertir el orden */
        gap: 25px;
        padding: 0;
        margin: 0;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .premium-media-frame::before {
        display: none;
        /* Quitamos el desfase en móviles para evitar scrolls horizontales rotos */
    }

    .workshops-grid {
        grid-template-columns: 100%;
    }
}

@media (max-width: 670px) {

    .social-pill-card {
        min-width: 100%;
    }

    .social-grid-links {
        flex-direction: column;
    }

    .profile-identity-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .status-pill {
        width: 100%;
        justify-content: center;
    }
}

/* --- INDICADORES DE PUNTOS INDICADORES (UBICADOS ABAJO) --- */
.carousel-dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    position: absolute;
    bottom: 20px;
    left: 0;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active-dot {
    background-color: var(--accent);
    transform: scale(1.25);
}

.carousel-dot:hover {
    background-color: var(--text-main);
}

@media (max-width: 900px) {
    .info-carousel-section {
        padding: 0 20px;
        min-height: 100vh;
    }

    .info-slide-wrapper {
        grid-template-columns: 100%;
        gap: 25px;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column-reverse;
        /* Imagen arriba, texto abajo */
        transition: opacity 0.6s ease, visibility 0.6s ease;
    }

    /* Al activarse, restauramos el espacio físico de forma fluida 
       permitiendo que los spans internos disparen su rotación (skew) e inclinación.
    */
    .info-slide-wrapper.active-slide {
        height: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .carousel-media-frame {
        height: 250px;
        width: 100%;
    }

    .carousel-arrow {
        display: none;
        /* Mantenemos las flechas ocultas en móviles */
    }
}

/* Limites bien definidos para las tarjetas */
.feed-card {
    background-color: var(--bg-card, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.3s ease;
}

.feed-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .feed-card {
    background-color: var(--bg-card-dark, #1e1e1e);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Clases base para el motor de animación (Scroll Reveal) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    /* Empieza un poco más abajo */
}

.scroll-reveal.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SECCIÓN DE ESTADÍSTICAS (HERO ESTILO COMUNIDAD)
   ========================================================================== */
.members-stats-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-image: url('../img/carina_nebula~orig.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

[data-theme="light"] .stat-number {
    color: var(--text-main);
}

[data-theme="light"] .stat-label {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.8rem;
    }
}

/* ==========================================================================
   SECCIÓN DE REGISTRO PERSUASIVO (REDES PRIVADAS)
   ========================================================================== */
.register-persuasion-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-main);
}

.social-locked-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.locked-social-card {
    position: relative;
    width: 260px;
    padding: 50px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.locked-social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.locked-social-card i:first-child {
    font-size: 3.5rem;
}

.locked-social-card .ti-brand-telegram {
    color: #0088cc;
}

.locked-social-card .ti-brand-whatsapp {
    color: #25d366;
}

.locked-social-card span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.locked-social-card .ti-lock {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: var(--text-muted);
    background: var(--bg-main);
    padding: 6px;
    border-radius: 50%;
}

/* ==========================================================================
   SECCIÓN CONÓCENOS
   ========================================================================== */
.about-section {
    padding: 80px 20px;
    background: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.about-card {
    padding: 30px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
}

.about-card i:first-child {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .about-grid {
        grid-template-columns: 100%;
    }
}

/* ===== SHARE MODAL GLOBAL ===== */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}
.share-modal-overlay .modal-box {
    max-width: 500px;
    width: 90%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
}
.compartir-opt {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: background 0.2s, border-color 0.2s;
    font-family: inherit;
}
.compartir-opt:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}
.compartir-opt strong {
    font-weight: 600;
}

.compartir-search {
    background: none;
    border: none;
    color: var(--text-main);
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
}
.compartir-search::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
.compartir-msg {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    resize: none;
    outline: none;
    box-sizing: border-box;
}
.compartir-msg:focus {
    border-color: var(--accent);
}
.compartir-msg::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}