/* ============================================================
   Página: Cupones disponibles
   Colores institucionales: #00C1D7, #005481, #FFC700, #FFFFFF
   ============================================================ */

/* Cabecera / Hero */
.cupones-hero {
    background: linear-gradient(135deg, #005481 0%, #00C1D7 100%);
    color: #ffffff;
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}

.cupones-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 199, 0, 0.20);
    border-radius: 50%;
}

.cupones-hero::before {
    content: "";
    position: absolute;
    left: -60px;
    top: -70px;
    width: 190px;
    height: 190px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.cupones-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cupones-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cupones-hero h1 {
    font-weight: 800;
    letter-spacing: 0.4px;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cupones-hero p {
    opacity: 0.95;
    max-width: 720px;
    margin: 0 auto;
}

.cupones-hero .cupones-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 0.35rem 0.95rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Contenedor principal */
.cupones-wrapper {
    max-width: 1080px;
    margin: -42px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 15px 60px;
}

.cupones-intro {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0, 84, 129, 0.12);
    border: 1px solid #eef2f6;
    padding: 1.75rem 2.15rem;
    color: #3f4a57;
    line-height: 1.8;
}

.cupones-intro strong {
    color: #005481;
}

/* Lista */
.cupones-list {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    margin-top: 2rem;
}

/* Tarjeta de cupón */
.cupon-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(0, 84, 129, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 84, 129, 0.15);
}

/* Columna lateral (logo + enlace) */
.cupon-side {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.75rem 1.25rem;
    background: #f8fafc;
    border-right: 1px dashed #dbe3ec;
    text-align: center;
}

.cupon-logo {
    max-height: 46px;
    max-width: 150px;
    object-fit: contain;
}

.cupon-goto {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #1f9d55;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cupon-goto:hover {
    color: #00C1D7;
    text-decoration: underline;
}

/* Cuerpo del cupón */
.cupon-body {
    flex: 1 1 auto;
    padding: 1.5rem 1.75rem;
    min-width: 0;
}

.cupon-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cupon-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cupon-heading .cupon-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Nombre del cupón: se muestra a medias y se revela al hacer click */
.cupon-code-reveal {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 30px;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #ffffff, #ffffff 7px, #eef3f8 7px, #eef3f8 14px);
    box-shadow: inset 0 0 0 2px #e2e8f0;
}

.cupon-code-reveal::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 4px;
    width: 28px;
    border-left: 2px dashed #00C1D7;
    border-radius: 0 30px 30px 0;
    pointer-events: none;
    z-index: 2;
}

.cupon-code-text {
    display: inline-block;
    padding: 0.45rem 2.6rem 0.45rem 0.9rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #005481;
    text-transform: uppercase;
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}

.cupon-code-cover {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(56%, calc(100% - 3rem));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    padding: 0;
    cursor: pointer;
    background: linear-gradient(135deg, #005481 0%, #00C1D7 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 3;
}

.cupon-code-cover:hover {
    filter: brightness(1.08);
}

.cupon-code-reveal.is-revealed .cupon-code-cover {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.cupon-copy {
    border: 1px solid #dbe3ec;
    background: #ffffff;
    color: #005481;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cupon-copy:hover {
    background: #005481;
    color: #ffffff;
    border-color: #005481;
}

.cupon-copy.copied {
    background: #1f9d55;
    color: #ffffff;
    border-color: #1f9d55;
}

/* Estado */
.cupon-status {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0.2rem 0.85rem;
    border-radius: 30px;
    white-space: nowrap;
}

.cupon-status.is-vigente {
    color: #1f9d55;
    background: rgba(31, 157, 85, 0.12);
}

.cupon-status.is-vencido {
    color: #d63333;
    background: rgba(214, 51, 51, 0.10);
}

/* Metadatos */
.cupon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.5rem;
    margin: 1.1rem 0 1rem;
}

.cupon-meta .cupon-meta-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.cupon-meta .cupon-meta-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
}

.cupon-meta .cupon-meta-value {
    color: #005481;
    font-weight: 800;
    font-size: 1.05rem;
}

.cupon-meta .cupon-meta-value .cupon-money {
    color: #1f9d55;
}

.cupon-expira {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.2rem 0.7rem;
    color: #334155;
    font-weight: 700;
    font-size: 0.92rem;
}

/* Condiciones */
.cupon-cond {
    color: #5b6675;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.cupon-cond strong {
    color: #334155;
}

/* Estado vencido */
.cupon-card.is-vencido {
    opacity: 0.72;
}

.cupon-card.is-vencido .cupon-side,
.cupon-card.is-vencido .cupon-logo {
    filter: grayscale(1);
}

.cupon-card.is-vencido .cupon-code-text,
.cupon-card.is-vencido .cupon-meta-value {
    color: #94a3b8;
}

.cupon-card.is-vencido .cupon-copy {
    pointer-events: none;
    opacity: 0.5;
}

/* Vacío */
.cupones-empty {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 84, 129, 0.07);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #64748b;
}

.cupones-empty i {
    font-size: 2rem;
    color: #00C1D7;
    display: block;
    margin-bottom: 0.5rem;
}

/* Nota informativa */
.cupones-note {
    margin-top: 2rem;
    background: #f8fafc;
    border-left: 4px solid #FFC700;
    border-radius: 10px;
    padding: 1.1rem 1.35rem;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.7;
}

.cupones-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #005481;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cupones-back:hover {
    color: #00C1D7;
}

/* Responsive */
@media (max-width: 767.98px) {
    .cupon-card {
        flex-direction: column;
    }

    .cupon-side {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px dashed #dbe3ec;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .cupones-hero {
        padding: 48px 0 64px;
    }

    .cupones-hero h1 {
        font-size: 1.5rem;
    }

    .cupones-wrapper {
        margin-top: -30px;
    }

    .cupones-intro {
        padding: 1.5rem 1.25rem;
    }

    .cupon-body {
        padding: 1.25rem 1.25rem;
    }

    .cupon-code-text {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        padding: 0.4rem 2.1rem 0.4rem 0.7rem;
    }

    .cupon-code-cover {
        font-size: 0.62rem;
        letter-spacing: 0.3px;
    }

    .cupon-top {
        flex-direction: column;
    }

    .cupon-status {
        align-self: center;
    }

    .cupon-heading {
        width: 100%;
    }
}
