/* =============================================================
   PROMO-MES.CSS
   Sección "Promociones del mes" (index y landing de campañas).

   Dependencias: solo las clases de grid de Bootstrap
   (.container, .row, .col-lg-6) y la fuente Grandstander.
   Sin estilos inline: todo se controla desde aquí.

   Estructura del HTML:
     .promo-section
       .row
         .promo-col-text      -> texto, cards y CTA (siempre presente)
         .promo-media         -> video (borrar este bloque cuando termine)

   Si se borra .promo-media, .promo-col-text pasa solo a ancho
   completo (ver ":only-child"), sin tocar nada más.

   Paleta: escarlata (nov/dic), sin guiño navideño.
   ============================================================= */

.promo-section {
    padding: 3rem 0;
    margin: 3rem 0;
}

/* ---------- Texto ---------- */

.promo-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50rem;
    background: linear-gradient(135deg, #C8102E, #E63946);
    color: #fff;
    font-family: 'Grandstander', cursive;
    font-size: 0.9rem;
    font-weight: 700;
}

.promo-title {
    margin-bottom: 1.5rem;
    font-family: 'Grandstander', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2C3E50;
}

.promo-title .highlight {
    color: #A00D25;
}

.promo-lead {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495E;
}

.promo-lead strong {
    color: #A00D25;
}

.promo-legal {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
    color: #5f6b76;
}

.promo-legal strong {
    color: #A00D25;
    font-style: normal;
}

/* Cuando el video se borra, el texto ocupa todo el ancho y se centra el bloque */
.promo-col-text:only-child {
    flex: 0 0 100%;
    max-width: 100%;
}

.promo-col-text:only-child .promo-content {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Cards de descuento ---------- */

.promo-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.promo-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #FDF0F2;
    border: 1.5px solid #F5C6CB;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.promo-card-item:hover {
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.15);
}

.promo-card-item.pci-destacada {
    background: #FCE4E8;
    border-color: #A00D25;
}

.pci-pct {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #A00D25, #C8102E);
    border-radius: 10px;
    color: #fff;
    font-family: 'Grandstander', cursive;
    line-height: 1;
}

.pci-destacada .pci-pct {
    background: linear-gradient(135deg, #7A0A1C, #A00D25);
    box-shadow: 0 3px 10px rgba(122, 10, 28, 0.35);
}

.pci-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.pci-off {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.pci-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Chip "Solo noviembre" dentro de cada card */
.pci-month {
    display: inline-block;
    align-self: flex-start;
    padding: 2px 8px;
    margin-bottom: 2px;
    background: #A00D25;
    color: #fff;
    font-family: 'Grandstander', cursive;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;
    border-radius: 4px;
    white-space: nowrap;
}

.pci-dia {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: #7A0A1C;
}

.pci-horario {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: #A00D25;
}

/* ---------- CTA ---------- */

.promo-cta {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 14px 36px;
    background: linear-gradient(135deg, #A00D25, #C8102E);
    border: 2px solid transparent;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.promo-cta svg {
    flex-shrink: 0;
    margin-left: 1rem;
}

.promo-cta:hover {
    background: linear-gradient(135deg, #C8102E, #E63946);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.promo-cta:focus-visible,
.promo-play:focus-visible {
    outline: 3px solid #7A0A1C;
    outline-offset: 3px;
}

/* ---------- Visual (video o imagen de respaldo) ---------- */

.promo-media {
    display: flex;
    justify-content: center;
}

.promo-visual {
    position: relative;
    width: 100%;
}

.promo-visual--video {
    max-width: 340px; /* video vertical 9:16, ~604px de alto */
}

.promo-visual--photo {
    max-width: 100%;
}

.promo-frame {
    position: relative;
    overflow: hidden;
    background: #7A0A1C;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(200, 16, 46, 0.2);
}

.promo-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #7A0A1C;
}

.promo-photo {
    display: block;
    width: 100%;
    height: auto;
}

/* Botón de play sobre el póster (el video no se carga hasta presionarlo) */
.promo-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #A00D25;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.promo-play:hover {
    transform: scale(1.08);
}

.promo-play svg {
    margin-left: 4px; /* centra ópticamente el triángulo */
}

.promo-play[hidden] {
    display: none;
}

/* Insignia de descuento */
.discount-badge {
    position: absolute;
    top: -14px;
    right: -12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    background: linear-gradient(135deg, #A00D25, #C8102E);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.4);
    color: #fff;
    font-family: 'Grandstander', cursive;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.discount-badge .pb-up {
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.discount-badge .percentage {
    margin: 2px 0;
    font-size: 1.9rem;
}

.discount-badge .text {
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .promo-title {
        font-size: 2.2rem;
    }

    .promo-visual--video {
        max-width: 320px;
    }
}

@media (max-width: 767px) {
    .promo-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }

    .promo-title {
        font-size: 1.8rem;
    }

    .promo-lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    .discount-badge {
        top: -12px;
        right: -10px;
        width: 88px;
        height: 88px;
    }

    .discount-badge .percentage {
        font-size: 1.55rem;
    }
}

@media (max-width: 575px) {
    .promo-cards-grid {
        grid-template-columns: 1fr;
    }

    .promo-cta {
        width: 100%;
        justify-content: center;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 480px) {
    .promo-title {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-card-item,
    .promo-cta,
    .promo-play {
        transition: none;
    }

    .promo-cta:hover,
    .promo-play:hover {
        transform: none;
    }
}