/* ===========================
   CONTENEDOR BASE
   =========================== */
.programs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HERO PROGRAMAS
   =========================== */
.programs-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    max-height: 580px;
    background-image: url('https://images.unsplash.com/photo-1478737270239-2f02b77fc618?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.programs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(255, 20, 147, 0.4) 100%
    );
    z-index: 1;
}

.programs-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.programs-hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: #ff1493;
    margin-bottom: 18px;
    padding: 6px 18px;
    border: 1px solid rgba(255, 20, 147, 0.5);
    border-radius: 30px;
    background-color: rgba(255, 20, 147, 0.1);
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.8);
}

.programs-hero-title {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow:
        0 0 20px rgba(255, 20, 147, 0.7),
        0 4px 15px rgba(0, 0, 0, 0.9);
}

.programs-hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    letter-spacing: 2px;
    color: #e0e0e0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* ===========================
   TÍTULOS DE SECCIÓN
   =========================== */
.programs-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: #ff1493;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.programs-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.programs-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff1493;
    border-radius: 2px;
    margin-top: 15px;
    box-shadow: 0 0 12px rgba(255, 20, 147, 0.8);
}

.programs-section-desc {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
}

/* ===========================
   SECCIÓN PROGRAMAS
   =========================== */
.programs-section {
    width: 100%;
    padding: 90px 0;
    background-color: #0a0a0a;
}

.programs-header {
    text-align: center;
    margin-bottom: 50px;
}

.programs-header .programs-section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.programs-header .programs-section-desc {
    margin: 0 auto;
    text-align: center;
}

/* ===========================
   TABS DE DÍAS
   =========================== */
.day-tabs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 50px;
    background: linear-gradient(145deg, #141414 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 16px;
    padding: 10px;
}

.day-tab {
    padding: 14px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    color: #999;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.day-tab .day-full {
    display: none;
}

.day-tab .day-name {
    font-size: 0.9rem;
}

.day-tab:hover {
    color: #ffffff;
    background-color: rgba(255, 20, 147, 0.08);
}

.day-tab.active {
    background: linear-gradient(135deg, #ff1493 0%, #b3006b 100%);
    color: #ffffff;
    box-shadow:
        0 6px 20px rgba(255, 20, 147, 0.5),
        0 0 25px rgba(255, 20, 147, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ===========================
   GRID DE PROGRAMAS
   =========================== */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    min-height: 300px;
}

/* Tarjeta de programa */
.program-card {
    background: linear-gradient(145deg, #141414 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 20, 147, 0.15);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.5s ease backwards;
    position: relative;
}

.program-card:nth-child(1) { animation-delay: 0.05s; }
.program-card:nth-child(2) { animation-delay: 0.1s; }
.program-card:nth-child(3) { animation-delay: 0.15s; }
.program-card:nth-child(4) { animation-delay: 0.2s; }
.program-card:nth-child(5) { animation-delay: 0.25s; }
.program-card:nth-child(6) { animation-delay: 0.3s; }
.program-card:nth-child(7) { animation-delay: 0.35s; }
.program-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 20, 147, 0.6);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 20, 147, 0.3);
}

/* Imagen de la tarjeta */
.program-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover .program-card-image img {
    transform: scale(1.1);
}

/* Overlay con gradiente sobre la imagen */
.program-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 15, 15, 1) 0%,
        rgba(15, 15, 15, 0.4) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Badge de hora flotante */
.program-time-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ff1493 0%, #b3006b 100%);
    border-radius: 12px;
    box-shadow:
        0 8px 20px rgba(255, 20, 147, 0.6),
        0 0 25px rgba(255, 20, 147, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.program-time-badge .time-start {
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.program-time-badge .time-end {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

/* Contenido de la tarjeta */
.program-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    position: relative;
    z-index: 1;
    margin-top: -30px;
}

/* Nombre del programa */
.program-card-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.25;
    transition: color 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.program-card:hover .program-card-title {
    color: #ff1493;
}

/* Línea decorativa */
.program-card-line {
    width: 40px;
    height: 3px;
    background-color: #ff1493;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
    transition: width 0.4s ease;
}

.program-card:hover .program-card-line {
    width: 70px;
}

/* Info del locutor */
.program-host {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.program-host-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff1493 0%, #b3006b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.5);
    letter-spacing: 0;
}

.program-host-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.program-host-label {
    font-size: 0.65rem;
    color: #888;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.program-host-name {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Día de emisión */
.program-days {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: rgba(255, 20, 147, 0.08);
    border: 1px solid rgba(255, 20, 147, 0.25);
    border-radius: 10px;
    margin-top: auto;
}

.program-days i {
    color: #ff1493;
    font-size: 0.8rem;
}

.program-days span {
    font-size: 0.75rem;
    color: #d0d0d0;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ===========================
   CTA FINAL
   =========================== */
.programs-cta {
    width: 100%;
    padding: 90px 0;
    background-color: #0a0a0a;
}

.cta-card {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 55px 40px;
    background: linear-gradient(145deg, #141414 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 20, 147, 0.15) inset;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 20, 147, 0.08) 90deg,
        transparent 180deg,
        rgba(255, 20, 147, 0.08) 270deg,
        transparent 360deg
    );
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    to { transform: rotate(360deg); }
}

.cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff1493 0%, #b3006b 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    box-shadow:
        0 10px 30px rgba(255, 20, 147, 0.6),
        0 0 40px rgba(255, 20, 147, 0.3);
    position: relative;
    z-index: 1;
    animation: coverPulse 2.5s ease-in-out infinite;
}

@keyframes coverPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6),
                    0 0 40px rgba(255, 20, 147, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 20, 147, 0.9),
                    0 0 70px rgba(255, 20, 147, 0.5);
    }
}

.cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.3rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

.cta-desc {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
    background: linear-gradient(135deg, #ff1493 0%, #b3006b 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 40px;
    box-shadow:
        0 10px 30px rgba(255, 20, 147, 0.5),
        0 0 40px rgba(255, 20, 147, 0.25);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 15px 40px rgba(255, 20, 147, 0.8),
        0 0 60px rgba(255, 20, 147, 0.5);
}

.cta-btn i {
    font-size: 0.85rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1000px) {
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 800px) {
    .programs-hero {
        background-attachment: scroll;
        height: 50vh;
        min-height: 380px;
    }

    .programs-section,
    .programs-cta {
        padding: 70px 0;
    }

    /* Tabs en 4 columnas */
    .day-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .day-tab .day-name { display: none; }
    .day-tab .day-full { 
        display: block; 
        font-size: 0.75rem;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
    }

    .program-card-image {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 22px;
    }

    .program-card-image {
        height: 200px;
    }
}

@media (max-width: 500px) {
    .programs-hero {
        height: 55vh;
        min-height: 360px;
    }

    .programs-hero-tag {
        font-size: 0.7rem;
        letter-spacing: 4px;
        padding: 5px 14px;
    }

    .programs-section,
    .programs-cta {
        padding: 55px 0;
    }

    /* Tabs en 3 columnas */
    .day-tabs {
        grid-template-columns: repeat(3, 1fr);
        padding: 8px;
        gap: 6px;
        border-radius: 14px;
        margin-bottom: 35px;
    }

    .day-tab {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .day-tab .day-full {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .program-card-body {
        padding: 20px 18px 20px;
    }

    .program-card-title {
        font-size: 1.1rem;
    }

    .program-time-badge {
        padding: 8px 12px;
    }

    .program-time-badge .time-start {
        font-size: 0.9rem;
    }

    .program-time-badge .time-end {
        font-size: 0.6rem;
    }

    .cta-card {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .cta-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 360px) {
    .programs-section-title {
        letter-spacing: 1px;
    }

    .day-tab {
        font-size: 0.65rem;
        padding: 8px 4px;
    }

    .program-card-title {
        font-size: 1rem;
    }

    .program-host-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}