/* ═══════════════════════════════════════════════════════════════
   MODAL PROGRAMACIÓN — PLATINUM PLAYER
   v3.0 — Responsive real: móvil | tablet | desktop 2 columnas
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   MODAL WRAPPER — ampliar el card en desktop
────────────────────────────────────────────────────────────── */
#scheduleModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    padding: 16px;
}

#scheduleModal.active {
    display: flex;
}

#scheduleModal .modal-card {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    border-radius: 24px;
    background: rgba(18, 18, 28, 0.92);
    backdrop-filter: blur(30px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

@media (min-width: 768px) {
    #scheduleModal .modal-card { max-width: 860px; }
}

@media (min-width: 1200px) {
    #scheduleModal .modal-card { max-width: 980px; }
}

/* ──────────────────────────────────────────────────────────────
   HEADER
────────────────────────────────────────────────────────────── */
.schedule-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    position: relative;
}

.schedule-header h3 {
    margin: 0;
    color: #fff;
    font-family: 'Montserrat Black', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.close-btn {
    position: absolute;
    right: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff4444;
    transform: rotate(90deg) scale(1.1);
}

/* ──────────────────────────────────────────────────────────────
   TABS
────────────────────────────────────────────────────────────── */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    background: var(--color-marca);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(var(--color-marca-rgb), 0.55);
}

/* ──────────────────────────────────────────────────────────────
   LISTA — 1 col en móvil, 2 col en desktop
────────────────────────────────────────────────────────────── */
.schedule-list {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--color-marca) transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .schedule-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 22px 24px;
        align-content: start;
    }
}

/* ──────────────────────────────────────────────────────────────
   ITEM
────────────────────────────────────────────────────────────── */
.schedule-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    transition: background 0.3s, transform 0.25s;
    position: relative;
    cursor: pointer;
    min-width: 0;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────
   AVATAR ÚNICO
────────────────────────────────────────────────────────────── */
.schedule-list .sch-avatar-container {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    position: relative;
}

.schedule-list .sch-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    display: block;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

/* ──────────────────────────────────────────────────────────────
   AVATARES MÚLTIPLES
────────────────────────────────────────────────────────────── */
.sch-avatares-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sch-avatar-multi {
    position: relative;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 2.5px rgba(18, 18, 28, 0.95);
    transition: transform 0.3s ease;
}

.schedule-item:hover .sch-avatar-multi {
    transform: translateY(-2px);
}

.sch-avatar-multi.live::before {
    content: none; /* radar expansion eliminado */
}

.sch-item-active .sch-avatar-multi .sch-avatar {
    border-color: var(--color-marca);
    box-shadow: 0 0 18px rgba(var(--color-marca-rgb), 0.6);
}

/* ──────────────────────────────────────────────────────────────
   INFO TEXTUAL — SIN TRUNCADO
────────────────────────────────────────────────────────────── */
.sch-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.sch-info h4 {
    font-family: 'Montserrat Black', sans-serif;
    font-size: 0.92rem;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.3px;
    white-space: normal;        /* ← permite wrap, sin ... */
    word-break: break-word;
}

.sch-info p {
    font-family: 'Montserrat SemiBold', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
    white-space: normal;        /* ← permite wrap, sin ... */
    word-break: break-word;
}

@media (min-width: 768px) {
    .sch-info h4 { font-size: 0.97rem; }
    .sch-info p  { font-size: 0.81rem; }
}

/* ──────────────────────────────────────────────────────────────
   HORA — badge pill derecho
────────────────────────────────────────────────────────────── */
.sch-time-wrapper {
    flex-shrink: 0;
    text-align: right;
}

.sch-time {
    font-family: 'Montserrat SemiBold', sans-serif;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: inline-block;
}

/* ──────────────────────────────────────────────────────────────
   ITEM ACTIVO (EN VIVO)
────────────────────────────────────────────────────────────── */
.sch-item-active {
    background: rgba(var(--color-marca-rgb), 0.09) !important;
    border-color: rgba(var(--color-marca-rgb), 0.38) !important;
    box-shadow: 0 0 22px rgba(var(--color-marca-rgb), 0.18);
}

.sch-item-active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 14%;
    height: 72%;
    width: 4px;
    background: var(--color-marca);
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 12px var(--color-marca);
}

.sch-item-active .sch-avatar-container .sch-avatar,
.sch-item-active .sch-foto {
    border-color: var(--color-marca) !important;
    box-shadow: 0 0 22px rgba(var(--color-marca-rgb), 0.65) !important;
    transform: scale(1.07);
}

/* RADAR (avatar EN VIVO) - ELIMINADO para un diseño más limpio */
.sch-avatar-container.live::before {
    content: none;
}

/* ──────────────────────────────────────────────────────────────
   BADGE ● EN VIVO
────────────────────────────────────────────────────────────── */
.sch-now-badge {
    position: absolute;
    top: -11px;
    right: 20px;
    background: var(--color-marca);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(var(--color-marca-rgb), 0.5);
    animation: badgePulse 2s infinite;
    z-index: 100 !important;
    white-space: nowrap;
    width: auto;
    display: inline-flex;
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(-50%) scale(1);    opacity: 1; }
    50%       { transform: translateX(-50%) scale(1.08); opacity: 0.85; }
}

/* ──────────────────────────────────────────────────────────────
   SCROLLBAR
────────────────────────────────────────────────────────────── */
.schedule-list::-webkit-scrollbar       { width: 5px; }
.schedule-list::-webkit-scrollbar-track { background: transparent; }
.schedule-list::-webkit-scrollbar-thumb { background: var(--color-marca); border-radius: 10px; }

/* ──────────────────────────────────────────────────────────────
   MÓVIL MUY PEQUEÑO (<400px)
────────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
    .schedule-item { gap: 8px; padding: 12px 10px; }

    .schedule-list .sch-avatar-container,
    .schedule-list .sch-avatar { width: 44px; height: 44px; }

    /* La hora ahora se muestra en móvil pequeño también */
    .sch-time-wrapper { display: block; }
    .sch-time { font-size: 0.60rem; padding: 3px 7px; }

    .tab-btn { padding: 8px 14px; font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   🇻🇪 FECHA PATRIA — pantalla especial en lugar de la parrilla
   ═══════════════════════════════════════════════════════════════ */

.holiday-display {
    grid-column: 1 / -1;      /* ocupa todo el ancho en grid de 2 col */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 28px 48px;
    gap: 14px;
    min-height: 280px;
    animation: holidayFadeIn 0.6s ease;
}

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

.holiday-emoji {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 20px rgba(var(--color-marca-rgb), 0.4));
    animation: holidayFloat 3s ease-in-out infinite;
}

@keyframes holidayFloat {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-8px); }
}

.holiday-nombre {
    margin: 0;
    font-family: 'Montserrat Black', sans-serif;
    font-size: clamp(1.4rem, 5vw, 2rem);
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    /* Gradiente naranja principal */
    background: var(--color-marca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.holiday-desc {
    margin: 0;
    font-family: 'Montserrat SemiBold', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.78);
    max-width: 420px;
    line-height: 1.55;
}

.holiday-nota {
    margin: 6px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.holiday-nota i {
    color: var(--color-marca);
    font-size: 0.85rem;
}

/* Separador decorativo */
.holiday-display::before {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-marca), transparent);
    border-radius: 3px;
    order: -1;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   💌 MODAL DEDÍCALA
   ═══════════════════════════════════════════════════════════════ */

.modal-dedicala {
    max-width: 480px !important;
}

.dedicala-content {
    padding: 22px 24px 28px;
}

.dedicala-intro {
    text-align: center;
    font-family: 'Montserrat SemiBold', sans-serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    margin: 0 0 22px;
    line-height: 1.5;
}

.dedicala-intro strong {
    color: var(--color-marca);
}

/* ── Campos del formulario ── */
.dedicala-form { display: flex; flex-direction: column; gap: 14px; }

.dedi-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dedi-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Montserrat SemiBold', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dedi-field label i {
    color: var(--color-marca);
    margin-right: 6px;
}

.dedi-counter {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s;
}

.dedi-field input,
.dedi-field textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    resize: none;
}

.dedi-field input::placeholder,
.dedi-field textarea::placeholder {
    color: rgba(255,255,255,0.22);
}

.dedi-field input:focus,
.dedi-field textarea:focus {
    border-color: rgba(var(--color-marca-rgb), 0.55);
    background: rgba(255, 255, 255, 0.08);
}

/* ── Botón enviar WhatsApp ── */
.btn-dedi-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Montserrat Black', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.btn-dedi-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37,211,102,0.5);
}

.btn-dedi-whatsapp:active { transform: scale(0.97); }

.dedi-nota {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.28);
    text-align: center;
    margin: 8px 0 0;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
}

.dedi-nota i { color: var(--color-marca); margin-top: 1px; }

/* ── Pantalla de confirmación ── */
.dedicala-sent {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 20px 0 10px;
    animation: sentFadeIn 0.5s ease;
}

@keyframes sentFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sent-icon {
    font-size: 3.5rem;
    animation: sentBounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes sentBounce {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.dedicala-sent h4 {
    font-family: 'Montserrat Black', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    background: var(--color-marca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dedicala-sent p {
    font-family: 'Montserrat SemiBold', sans-serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.btn-otra {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Montserrat SemiBold', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
}

.btn-otra:hover {
    background: rgba(var(--color-marca-rgb), 0.15);
    border-color: rgba(var(--color-marca-rgb), 0.4);
    color: #fff;
}
