/* =====================================================
   VARIABLES & RESET
===================================================== */
:root {
    --primary: #f2cc0d;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-white: #f8f8f5;
    --text-muted: #94a3b8;
    --text-slate: #cbd5e1;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* =====================================================
   BACKGROUND
===================================================== */
.background {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: -3;
}

.overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: -2;
}

/* =====================================================
   UTILITIES
===================================================== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.glow-gold {
    box-shadow: 0 0 15px rgba(242, 204, 13, 0.3);
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.site-header > div:first-child {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-white);
    text-transform: uppercase;
    line-height: 1;
}

.site-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    font-weight: 400;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.site-nav a:hover:not(.panel-button) {
    color: var(--primary);
}

.panel-button {
    background: var(--primary);
    color: #000 !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 0 15px rgba(242, 204, 13, 0.3);
}

.panel-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Live Badge */
.live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.live-badge .dot-container {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
}

.live-badge .dot-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgb(239, 68, 68);
    opacity: 0.75;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-badge .dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgb(239, 68, 68);
}

.live-badge .live-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(239, 68, 68);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* =====================================================
   MAIN LAYOUT
===================================================== */
.site-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section {
    margin-bottom: 1.5rem;
}

.hero-label {
    display: none;
}

.hero-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--text-white);
}

.hero-description {
    max-width: 48rem;
    color: var(--text-slate);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* =====================================================
   LIVE SECTION
===================================================== */
.live-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* =====================================================
   PLAYER CARD
===================================================== */
.player-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
}

.player-glow {
    display: none;
}

.player-content {
    position: relative;
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status.on-air {
    background: rgba(0, 0, 0, 0.7);
}

.status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(239, 68, 68);
}

.status.on-air .dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.status-text {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video.video-vertical {
    object-fit: contain;
}

.video.video-horizontal {
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 5;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.play-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 5rem;
    height: 5rem;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button .material-symbols-outlined {
    font-size: 2.5rem;
    color: #000;
    margin-left: 0.25rem;
}

.play-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 500;
}

/* Player Info Below */
.player-card + .flex {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* =====================================================
   CHAT SECTION
===================================================== */
.chat-section {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chat-title .material-symbols-outlined {
    font-size: 1.125rem;
}

.chat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    padding: 1rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.message {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-slate);
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.system {
    color: var(--primary);
    font-weight: 600;
    background: rgba(242, 204, 13, 0.05);
    border-color: rgba(242, 204, 13, 0.1);
}

.message.user {
    background: rgba(255, 255, 255, 0.03);
}

.chat-input {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.chat-input input:focus {
    border-color: var(--primary);
}

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

.chat-input .btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    flex-shrink: 0;
    margin: auto 0;
}

.chat-input .btn:hover:not(:disabled) {
    background: rgba(242, 204, 13, 0.1);
}

.chat-input .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input .btn .material-symbols-outlined {
    font-size: 1.25rem;
}

/* =====================================================
   MODAL
===================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal.oculto {
    display: none;
}

.modal-contenido {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-contenido h3 {
    color: var(--text-white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#nombreUsuarioInput {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-white);
    margin-bottom: 1rem;
    outline: none;
}

#nombreUsuarioInput:focus {
    border-color: var(--primary);
}

#guardarNombreBtn {
    background: var(--primary);
    color: #000;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

#guardarNombreBtn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* =====================================================
   VERSE SECTION
===================================================== */
.verse-section {
    display: none;
}

/* =====================================================
   MISSION SECTION
===================================================== */
.mission-section {
    padding: 0 0 5rem;
    margin-bottom: 5rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mission-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

.mission-card:hover {
    filter: grayscale(0);
}

.mission-card-offset {
    margin-top: 0;
}

.mission-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.mission-card:hover .mission-image {
    transform: scale(1.05);
}

.mission-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 40%, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mission-card:hover .mission-overlay {
    opacity: 1;
}

.mission-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.mission-card:hover .mission-content {
    opacity: 1;
    transform: translateY(0);
}

.mission-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.mission-content p {
    color: var(--text-slate);
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.4;
}

.mission-content .highlight {
    color: var(--text-white);
}

/* =====================================================
   SCHEDULE SECTION
===================================================== */
.schedule-section {
    padding: 0 0 5rem;
    position: relative;
    margin-bottom: 5rem;
}

.schedule-section::before,
.schedule-section::after {
    display: none;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.schedule-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.schedule-title {
    font-size: 1.5rem;
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.schedule-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.divider-line {
    display: none;
}

.divider-text {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.divider-text:hover {
    text-decoration: underline;
}

.schedule-timeline {
    position: relative;
}

.schedule-timeline::before {
    display: none;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.schedule-item {
    display: flex;
    flex-direction: column;
}

.schedule-day {
    display: none;
}

.schedule-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    transition: var(--transition);
    border-top: 2px solid rgba(242, 204, 13, 0.5);
}

.schedule-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.schedule-item.featured .schedule-card {
    border-top-color: var(--primary);
}

.schedule-item.special .schedule-card {
    border-top-color: rgba(242, 204, 13, 0.5);
}

.schedule-card .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.schedule-type {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.schedule-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.schedule-time::after {
    content: ' HRS';
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.schedule-desc {
    font-size: 0.875rem;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

/* =====================================================
   INFO SECTION
===================================================== */
.info-section {
    display: none;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.footer-verse {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #000;
}

.footer-social .material-symbols-outlined {
    font-size: 1.25rem;
}

.footer-copyright {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-copyright p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .live-section {
        grid-template-columns: 1fr;
    }

    .chat-section {
        height: 400px;
    }

    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }

    .site-content {
        padding: 1.5rem 1rem 2rem;
    }

    .site-title {
        font-size: 1rem;
    }

    .site-subtitle {
        font-size: 0.625rem;
    }

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

    .hero-description {
        font-size: 0.875rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .brand-text {
        display: none;
    }

    .chat-section {
        min-height: 300px;
    }
}