/* ==========================================================================
   DEPORLLANO F.C. · ECOSISTEMA DIGITAL OFICIAL
   Paleta Oficial: Rojo Neón (#E50914), Negro Carbón (#050508) y Blanco Puro (#FFFFFF)
   Soporte Multi-Tema Deportivo: 🔴 Rojo Élite · ⚪ Blanco Galáctico · 🌑 Negro Carbón
   ========================================================================== */

:root, html[data-theme="rojo-elite"], html[data-theme="deporllano"], html[data-theme="deporllano-rojo"] {
    /* Variables Oficiales Deporllano */
    --depor-red: #E50914;
    --depor-red-bright: #FF2E36;
    --depor-red-dark: #8B0000;
    --depor-red-wine: #4A0004;
    --depor-black: #050508;
    --depor-bg: #07070B;
    --depor-surface: #0E0E14;
    --depor-surface-2: #14141E;
    --depor-surface-3: #1A1A28;
    --depor-card: #12121A;
    --depor-card-hover: #181824;
    --depor-border: rgba(229, 9, 20, 0.32);
    --depor-border-subtle: rgba(255, 255, 255, 0.08);
    --depor-white: #FFFFFF;
    --depor-gray-light: #E5E7EB;
    --depor-gray-muted: #9CA3AF;
    --depor-gray-dark: #4B5563;
    --depor-glow: rgba(229, 9, 20, 0.45);
    --depor-glow-subtle: rgba(229, 9, 20, 0.18);
    --conic-border: conic-gradient(from var(--spin-angle, 0deg), #E50914 0%, #FFFFFF 25%, #8B0000 50%, #161622 75%, #E50914 100%);

    /* Mapeo de compatibilidad con estilos clásicos */
    --bg-primary: var(--depor-bg);
    --bg-secondary: var(--depor-surface);
    --bg-surface: var(--depor-surface);
    --bg-card: rgba(18, 18, 24, 0.85);
    --bg-card-hover: rgba(28, 28, 38, 0.95);
    --bg-glass: rgba(12, 12, 16, 0.78);

    --red-primary: var(--depor-red);
    --red-bright: var(--depor-red-bright);
    --red-glow: var(--depor-glow);
    --red-glow-subtle: var(--depor-glow-subtle);
    --red-dark: var(--depor-red-dark);

    --white: var(--depor-white);
    --white-soft: var(--depor-gray-light);
    --text-muted: var(--depor-gray-muted);
    --text-dim: var(--depor-gray-dark);

    --border-subtle: var(--depor-border-subtle);
    --border-active: var(--depor-border);
    --border-glow: 0 0 16px var(--depor-glow);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --dock-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* TEMA 2: BASE PYME EN BLANCO Y NEGRO (MINIMALISTA, MONOCROMO & ELEGANTE) */
html[data-theme="blanco-galactico"], html[data-theme="deporllano-blanco"], html[data-theme="base-bn"] {
    --depor-red: #FFFFFF;
    --depor-red-bright: #FFFFFF;
    --depor-red-dark: #71717A;
    --depor-red-wine: #18181B;
    --depor-black: #000000;
    --depor-bg: #000000;
    --depor-surface: #09090C;
    --depor-surface-2: #121218;
    --depor-surface-3: #181820;
    --depor-card: #0D0D12;
    --depor-card-hover: #16161E;
    --depor-border: rgba(255, 255, 255, 0.25);
    --depor-border-subtle: rgba(255, 255, 255, 0.12);
    --depor-white: #FFFFFF;
    --depor-gray-light: #F8FAFC;
    --depor-gray-muted: #A1A1AA;
    --depor-gray-dark: #71717A;
    --depor-glow: rgba(255, 255, 255, 0.45);
    --depor-glow-subtle: rgba(255, 255, 255, 0.15);
    --conic-border: conic-gradient(from var(--spin-angle, 0deg), #FFFFFF 0%, #71717A 35%, #18181B 65%, #FFFFFF 100%);

    --bg-primary: var(--depor-bg);
    --bg-secondary: var(--depor-surface);
    --bg-surface: var(--depor-surface);
    --bg-card: rgba(13, 13, 18, 0.92);
    --bg-card-hover: rgba(22, 22, 30, 0.98);
    --bg-glass: rgba(10, 10, 14, 0.88);

    --red-primary: #FFFFFF;
    --red-bright: #FFFFFF;
    --red-glow: rgba(255, 255, 255, 0.45);
    --red-glow-subtle: rgba(255, 255, 255, 0.15);
    --red-dark: #71717A;

    --white: #FFFFFF;
    --white-soft: #F4F4F5;
    --text-muted: #A1A1AA;
    --text-dim: #71717A;

    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 255, 255, 0.35);
    --border-glow: 0 0 16px rgba(255, 255, 255, 0.4);
}

html[data-theme="blanco-galactico"] .brand-logo,
html[data-theme="blanco-galactico"] .theme-avatar-img,
html[data-theme="deporllano-blanco"] .brand-logo,
html[data-theme="deporllano-blanco"] .theme-avatar-img {
    filter: grayscale(100%) brightness(1.2) !important;
}

/* TEMA 3: NEGRO CARBÓN & FUEGO (OLED STEALTH) */
html[data-theme="negro-carbon"], html[data-theme="deporllano-carbon"] {
    --depor-red: #FF1E27;
    --depor-red-bright: #FF4D54;
    --depor-red-dark: #770004;
    --depor-red-wine: #2A0002;
    --depor-black: #000000;
    --depor-bg: #000000;
    --depor-surface: #08080A;
    --depor-surface-2: #101014;
    --depor-surface-3: #18181F;
    --depor-card: #0D0709;
    --depor-card-hover: #160B0E;
    --depor-border: rgba(255, 30, 39, 0.45);
    --depor-border-subtle: rgba(255, 255, 255, 0.06);
    --depor-white: #FFFFFF;
    --depor-gray-light: #E5E5E5;
    --depor-gray-muted: #8E8E93;
    --depor-gray-dark: #48484A;
    --depor-glow: rgba(255, 30, 39, 0.65);
    --depor-glow-subtle: rgba(255, 30, 39, 0.3);
    --conic-border: conic-gradient(from var(--spin-angle, 0deg), #FF1E27 0%, #000000 35%, #FF1E27 65%, #1A0002 85%, #FF1E27 100%);

    --bg-primary: var(--depor-bg);
    --bg-secondary: var(--depor-surface);
    --bg-surface: var(--depor-surface);
    --bg-card: rgba(13, 7, 9, 0.92);
    --bg-card-hover: rgba(22, 11, 14, 0.98);
    --bg-glass: rgba(8, 8, 10, 0.88);

    --red-primary: var(--depor-red);
    --red-bright: var(--depor-red-bright);
    --red-glow: var(--depor-glow);
    --red-glow-subtle: var(--depor-glow-subtle);
    --red-dark: var(--depor-red-dark);

    --white: var(--depor-white);
    --white-soft: var(--depor-gray-light);
    --text-muted: var(--depor-gray-muted);
    --text-dim: var(--depor-gray-dark);

    --border-subtle: var(--depor-border-subtle);
    --border-active: var(--depor-border);
    --border-glow: 0 0 16px var(--depor-glow);
}

/* Botón Circular Oficial Selector de Tema Deporllano */
.theme-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, #2A0508 0%, #050508 100%);
    border: 2px solid var(--depor-white);
    padding: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px var(--depor-glow);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    overflow: hidden;
    line-height: 1;
}

.theme-toggle-btn:hover {
    transform: scale(1.12) rotate(15deg);
    border-color: var(--depor-red-bright);
    box-shadow: 0 0 22px var(--depor-glow);
}

.theme-toggle-btn:active {
    transform: scale(0.9) rotate(-15deg);
}

.theme-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(229, 9, 20, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(229, 9, 20, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="blanco-galactico"] body,
html[data-theme="deporllano-blanco"] body {
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(229, 9, 20, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

html[data-theme="negro-carbon"] body,
html[data-theme="deporllano-carbon"] body {
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(255, 30, 39, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(139, 0, 0, 0.16) 0%, transparent 50%);
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #262630;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--red-primary);
}

/* ==========================================================================
   APP CONTAINER Y HEADER SUPERIOR
   ========================================================================== */
.app-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 24px);
    position: relative;
    min-height: 100vh;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.6));
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-wrapper:hover .brand-logo {
    transform: scale(1.05);
}

.brand-info h1 {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 65%, var(--red-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-info span {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--red-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.header-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--red-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red-bright);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--red-bright); }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Botón Switch a Apps Secundarias */
.apps-nav-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-subapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--white-soft);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-subapp-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--red-primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* ==========================================================================
   VISTAS (TABS)
   ========================================================================== */
.view-section {
    display: none;
    animation: fadeIn 0.35s ease forwards;
    padding-top: 18px;
}

.view-section.active {
    display: block;
}

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

/* ==========================================================================
   1. VISTA: EMPRESA
   ========================================================================== */
.hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 40px 28px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.22) 0%, rgba(10, 10, 15, 0.95) 70%);
    border: 1px solid rgba(229, 9, 20, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 24px;
}

.hero-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.4) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    filter: blur(40px);
    pointer-events: none;
}

.hero-tagline {
    display: inline-block;
    color: var(--red-bright);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--white);
    text-transform: uppercase;
}

.hero-title .highlight {
    color: var(--red-bright);
    text-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
}

.hero-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hero-stat-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
}

.hero-stat-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    font-family: var(--font-mono);
}

.hero-stat-number span {
    color: var(--red-bright);
}

.hero-stat-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Secciones de Contenido */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 16px 0;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--red-bright);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    border-color: var(--border-active);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 9, 20, 0.15);
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(229, 9, 20, 0.15);
    color: var(--red-bright);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.card-icon {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--red-bright);
}

.info-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
}

.info-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Palmarés y Reconocimientos */
.trophy-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trophy-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.trophy-item:hover {
    border-color: rgba(229, 9, 20, 0.4);
    background: var(--bg-card-hover);
}

.trophy-year {
    background: var(--red-primary);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.trophy-content h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 3px;
}

.trophy-content p {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==========================================================================
   2. VISTA: CATEGORIAS
   ========================================================================== */
.categories-intro {
    background: rgba(18, 18, 24, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.categories-intro p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.category-card-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.category-card-btn:hover {
    border-color: var(--red-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 9, 20, 0.2);
}

.category-card-btn.active-category {
    border-color: var(--red-bright);
    background: rgba(229, 9, 20, 0.08);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.35);
}

.cat-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cat-icon-badge {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.cat-age-pill {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.category-card-btn h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.category-card-btn .cat-coach {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.cat-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--red-bright);
    font-family: var(--font-mono);
}

.cat-action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.category-card-btn:hover .cat-action-arrow {
    background: var(--red-primary);
    transform: translateX(3px);
}

/* ==========================================================================
   MODAL DE DETALLE DE CATEGORÍA
   (Boton Suscribirme + Calendario + Boton Transmisión en Vivo)
   ========================================================================== */
.category-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.category-detail-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.category-modal {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-active);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.35);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--white);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--red-primary);
    transform: rotate(90deg);
}

.modal-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-cat-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid var(--border-active);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-category-header h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
}

.modal-category-header span {
    font-size: 12px;
    color: var(--red-bright);
    font-family: var(--font-mono);
}

/* 1. Boton Superior de Suscribirme */
.subscribe-banner-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--red-primary) 0%, #B30006 100%);
    border: 1px solid var(--red-bright);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.45);
    transition: all 0.25s ease;
    margin-bottom: 24px;
}

.subscribe-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.6);
    background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-primary) 100%);
}

.subscribe-badge-price {
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
}

/* 2. Calendario de Entrenamientos y Partidos */
.calendar-section {
    margin-bottom: 24px;
}

.calendar-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-title i {
    color: var(--red-bright);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.schedule-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    border-left: 3px solid var(--red-primary);
}

.schedule-day {
    font-size: 12px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
}

.schedule-time {
    font-size: 12px;
    color: var(--red-bright);
    font-family: var(--font-mono);
    margin: 4px 0;
}

.schedule-place {
    font-size: 11px;
    color: var(--text-muted);
}

.match-card {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.12) 0%, rgba(18, 18, 24, 0.9) 100%);
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.match-info h5 {
    font-size: 11px;
    color: var(--red-bright);
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.match-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    margin: 3px 0;
}

.match-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.match-date-badge {
    text-align: right;
    font-family: var(--font-mono);
}

.match-date-badge .m-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--white);
}

.match-date-badge .m-hour {
    font-size: 12px;
    color: var(--red-bright);
}

/* 3. Boton Inferior de Transmisión */
.live-stream-trigger-btn {
    width: 100%;
    background: rgba(18, 18, 24, 0.95);
    border: 1.5px solid var(--border-active);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.live-stream-trigger-btn:hover {
    border-color: var(--red-bright);
    background: rgba(229, 9, 20, 0.15);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.4);
}

.stream-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stream-live-pill {
    background: var(--red-primary);
    color: var(--white);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
}

.stream-title-text {
    font-size: 14px;
    font-weight: 800;
}

/* ==========================================================================
   REPRODUCTOR DE TRANSMISIÓN EN VIVO (MODAL O EXPANDIBLE)
   ========================================================================== */
.live-player-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(16px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.live-player-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.live-player-container {
    background: #08080c;
    border: 1.5px solid var(--red-primary);
    border-radius: 20px;
    width: 100%;
    max-width: 820px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.4);
    position: relative;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(18, 18, 24, 0.95);
    border-bottom: 1px solid var(--border-subtle);
}

.player-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-video-box video,
.player-video-box canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-offline-state {
    text-align: center;
    padding: 30px;
}

.player-offline-state i {
    font-size: 48px;
    color: var(--red-primary);
    margin-bottom: 14px;
    opacity: 0.8;
}

.player-offline-state h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.player-offline-state p {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 400px;
}

.player-footer {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 18, 24, 0.95);
    border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   3. VISTA: CHAT CON IA (ESTILO SOFTWARE AUTOMÁTICO)
   ========================================================================== */
.chat-page-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--dock-height) - 100px);
    min-height: 520px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* Header del Chat: Usuario + DNI a la izquierda | Boton Perfil / WhatsApp / Buzon */
.chat-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(10, 10, 14, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 10px;
}

.user-identity-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-primary) 0%, #111116 100%);
    border: 1.5px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
}

.user-text-info {
    display: flex;
    flex-direction: column;
}

.user-display-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-dni-badge {
    font-size: 10.5px;
    font-family: var(--font-mono);
    color: var(--red-bright);
    letter-spacing: 0.5px;
}

/* Barra de botones rápidos: Perfil / WhatsApp / Buzón */
.chat-action-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.chat-pill-btn:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: var(--red-primary);
    transform: translateY(-1px);
}

.chat-pill-btn.wa-btn:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
    color: #25D366;
}

/* Mensajes del Chat */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msg-bubble {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.2s ease;
}

.msg-bot {
    align-self: flex-start;
    background: rgba(26, 26, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-bottom-left-radius: 4px;
}

.msg-bot .bot-tag {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--red-bright);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
    display: block;
}

.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--red-primary) 0%, #B30006 100%);
    color: var(--white);
    border: 1px solid var(--red-bright);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
}

.msg-time {
    font-size: 9.5px;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-align: right;
    display: block;
}

/* CAJA DE TEXTO CON ANILLO DE COLORES GIRANDO (ROJO, NEGRO, BLANCO) */
.chat-input-wrapper {
    padding: 14px 18px;
    background: rgba(8, 8, 12, 0.95);
    border-top: 1px solid var(--border-subtle);
}

.ring-outer-container {
    position: relative;
    border-radius: 28px;
    padding: 2.5px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* El pseudo-elemento con el gradiente giratorio continuo */
.ring-outer-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #E50914 0deg,
        #FFFFFF 90deg,
        #050508 180deg,
        #FF1E27 270deg,
        #E50914 360deg
    );
    animation: rotateColorRing 4.5s linear infinite;
    z-index: 1;
}

@keyframes rotateColorRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ring-inner-box {
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    border-radius: 26px;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    gap: 10px;
}

.chat-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 14px;
    font-family: var(--font-body);
    padding: 8px 4px;
    caret-color: var(--red-bright);
}

.chat-input-field::placeholder {
    color: var(--text-dim);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--red-primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.45);
}

.chat-send-btn:hover {
    background: var(--red-bright);
    transform: scale(1.08);
}

/* ==========================================================================
   FIXED BOTTOM DOCK BAR (3 BOTONES: EMPRESA / CATEGORIAS / CHAT)
   ========================================================================== */
.fixed-dock-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--dock-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(8, 8, 12, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
}

.dock-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 500px;
    padding: 0 16px;
}

.dock-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 16px;
    transition: all 0.25s ease;
    position: relative;
}

.dock-tab-btn i {
    font-size: 20px;
    transition: all 0.25s ease;
}

.dock-tab-btn span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dock-tab-btn:hover {
    color: var(--white);
}

.dock-tab-btn.active {
    color: var(--white);
}

.dock-tab-btn.active i {
    color: var(--red-bright);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--red-bright));
}

.dock-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 24px;
    height: 3px;
    background: var(--red-bright);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--red-bright);
}

/* ==========================================================================
   MODAL PERFIL / BUZÓN
   ========================================================================== */
.generic-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.generic-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.generic-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-active);
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 640px) {
    .hero-title {
        font-size: 24px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .chat-page-container {
        height: calc(100vh - var(--dock-height) - 130px);
    }
    .apps-nav-pills {
        display: none; /* Se accede desde menú o footer en móvil */
    }
}
