

  :root{
    --morado-profundo: #4a2a72;
    --morado: #8a5cb8;
    --morado-claro: #c9a8e8;
    --morado-pastel: #e6d9f5;
    --lila-fondo: #f3ecfb;
    --tinta: #3a1f52;
    --blanco: #ffffff;
  }

  *{ box-sizing: border-box; }
  body{ margin:0; font-family:'Montserrat', sans-serif; }


  /* =========================================
   BANNER DEL CONTADOR
========================================= */

.banner {
    position: relative;
    isolation: isolate;
    width: 100%;
   
    min-height: 460px;
    margin: 0 auto;
    padding: clamp(35px, 5vw, 65px) clamp(20px, 5vw, 70px)
             clamp(75px, 9vw, 130px);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(25px, 4vw, 50px);

    background: linear-gradient(
        120deg,
        rgba(107, 63, 160, 0),
        #dacce7 55.04%,
        rgba(242, 242, 242, 0.22)
    );

    border-radius: 28px;
}

/* Fondo decorativo */

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 28% 30%,
            rgba(255, 255, 255, 0.45) 0%,
            transparent 45%
        );
}

/* Curva inferior */

.banner-floor {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -50px;
    z-index: -1;

    height: 160px;
    background: var(--lila-fondo, #eee5f5);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.55;
    pointer-events: none;
}

/* =========================================
   TÍTULO
========================================= */

.banner-top {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    width: 100%;
    margin: 0;
}

.banner-title {
    width: 100%;

    margin: 0 auto;
    color: #494949;
    text-align: center;
}

.banner-title .lead {
    display: block;
    margin-bottom: 4px;

    font-size: 17px;
    font-weight: 500;
    opacity: 0.9;
}

.banner-title .highlight {
    display: block;

    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.15;

    text-wrap: balance;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* =========================================
   CONTADOR
========================================= */

.countdown-block {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(25px, 4vw, 45px);

    width: 100%;
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;
    padding: 9px 24px;

    background: rgba(95, 18, 161, 0.91);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    color: var(--blanco, #fff);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* =========================================
   TARJETAS
========================================= */

.flap-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 18px);

    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.flap-card {
    flex: 1 1 0;
    min-width: 140px;
    max-width: 210px;
    padding: clamp(25px, 3vw, 35px)
             clamp(14px, 2.5vw, 36px)
             clamp(18px, 2vw, 24px);

    background: var(--blanco, #fff);
    border: 1px solid rgba(108, 49, 153, 0.08);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(58, 31, 82, 0.28);

    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.flap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(58, 31, 82, 0.32);
}

.flap-number {
    color: var(--morado-profundo, #4a2a72);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.flap-label {
    margin-top: 8px;

    color: var(--morado, #6b3fa0);
    font-family: "Nunito", sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.flap-sep {
    flex: 0 0 auto;

    color: var(--morado-profundo, #4a2a72);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1;

    opacity: 0.55;
}

/* Animación de los números */

@keyframes popNum {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

.flap-number.popping {
    animation: popNum 0.4s ease-out;
}

/* =========================================
   FIGURAS LATERALES
========================================= */

.banner-figure {
    position: absolute;
    bottom: 0;
    z-index: 1;

    width: auto;
    max-width: 25%;
    max-height: 80%;

    object-fit: contain;
    pointer-events: none;
}

.banner-figure.left {
    left: 2%;
}

.banner-figure.right {
    right: 2%;
}

/* =========================================
   PANTALLAS INTERMEDIAS
========================================= */

@media (max-width: 1100px) {

    .banner {
        min-height: auto;
        padding-right: 30px;
        padding-left: 30px;
    }

    .flap-row {
        max-width: 900px;
        gap: 10px;
    }

    .flap-card {
        min-width: 120px;
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .banner {
        min-height: auto;
        padding: 40px 24px 85px;
        gap: 30px;
        border-radius: 22px;
    }

    .banner-title .highlight {
        font-size: clamp(1.75rem, 6vw, 2.8rem);
        line-height: 1.2;
    }

    .countdown-block {
        gap: 28px;
    }

    /*
     * En tablet se ocultan los dos puntos y las
     * cuatro tarjetas forman una cuadrícula 2 × 2.
     */

    .flap-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;

        width: 100%;
        max-width: 520px;
    }

    .flap-sep {
        display: none;
    }

    .flap-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 28px 15px 20px;
        border-radius: 16px;
    }

    .flap-number {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .flap-label {
        font-size: 11px;
    }

    .banner-figure {
        display: none;
    }
}

/* =========================================
   CELULARES
========================================= */

@media (max-width: 480px) {

    .banner {
        padding: 32px 14px 70px;
        gap: 24px;
        border-radius: 18px;
    }

    .banner-floor {
        bottom: -55px;
        height: 130px;
    }

    .banner-title .highlight {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }

    .countdown-pill {
        width: 100%;
        max-width: 330px;
        padding: 9px 14px;

        white-space: normal;
        letter-spacing: 0.7px;
    }

    .flap-row {
        max-width: 360px;
        gap: 10px;
    }

    .flap-card {
        padding: 23px 8px 17px;
        border-radius: 14px;
        box-shadow: 0 10px 22px rgba(58, 31, 82, 0.22);
    }

    .flap-number {
        font-size: clamp(1.9rem, 12vw, 2.7rem);
    }

    .flap-label {
        margin-top: 7px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

/* =========================================
   CELULARES MUY PEQUEÑOS
========================================= */

@media (max-width: 340px) {

    .banner {
        padding-right: 10px;
        padding-left: 10px;
    }

    .flap-row {
        gap: 8px;
    }

    .flap-card {
        padding-right: 5px;
        padding-left: 5px;
    }

    .flap-number {
        font-size: 1.8rem;
    }

    .flap-label {
        font-size: 9px;
        letter-spacing: 0.2px;
    }
}

/* Accesibilidad: reduce animaciones */

@media (prefers-reduced-motion: reduce) {

    .flap-number.popping {
        animation: none;
    }

    .flap-card {
        transition: none;
    }
}