/* Campaña Diciembre 2026 - Top banner (AR)
   Medidas tomadas del Figma "Campaña-Diciembre-2026" > Top banner.
   Las 3 etapas comparten este CSS: solo cambian la imagen de descuentos y el
   texto del botón (eso lo resuelve includes/banner-diciembre2026.php). */

/* Tipografía: la familia global 'proxima-nova' (styles-new-rt.css) trae 400, 600
   y 700. El extrabold (800) del "tiene premio!" no está declarado globalmente:
   se suma acá apuntando al archivo que ya existe en el sitio. */
@font-face {
    font-family: 'proxima-nova';
    src: url('/assets/font/proxima-nova/proxima-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.banner-diciembre {
    display: block;
    text-decoration: none !important;
    background: #1B8162;
}

.banner-diciembre img {
    display: block;
    max-width: none;
}

/* Dorado del diseño (texto con degradé). */
.dic-titulo strong,
.dic-titulo-mobile strong {
    font-family: 'proxima-nova', sans-serif;
    font-weight: 800;
    background: linear-gradient(164deg, #FEE979 46%, #FFF38E 57%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #FEE979; /* respaldo si el navegador no soporta background-clip */
}

/* ---------- Desktop ---------- */

.dic-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 55px;
    background: #1B8162;
    overflow: hidden;
    box-sizing: border-box;
}

.dic-bar-mobile {
    display: none;
}

.dic-titulo {
    margin: 0 18px 0 24px;
    font-family: 'proxima-nova', sans-serif;
    font-weight: 400;
    font-size: 19.5px;
    line-height: 19px;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

.dic-descuentos {
    width: 410px;
    height: 55px;
}

.dic-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 175px;   /* BR: "Quero meu 50% OFF!" es más largo (Figma 175px) */
    height: 30px;
    margin: 0 24px 0 17px;
    border-radius: 63px;
    background: #F8F5EF;
    font-family: 'proxima-nova', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    color: #249A63;
    white-space: nowrap;
    transition: background .2s ease;
}

.banner-diciembre:hover .dic-cta,
.banner-diciembre:hover .dic-cta-mobile {
    background: #fff;
}

/* Decoración (serpentina + punto + pastilla). Cada pieza se ubica por su
   centro con las coordenadas del Figma y se rota con transform. */
.dic-deco {
    position: relative;
    flex: none;
    height: 55px;
}

.dic-deco-izq { width: 40px; }
.dic-deco-der { width: 48px; }

.dic-deco > *,
.dic-deco-m > * {
    position: absolute;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
}

.dic-serpentina { width: 40.5px; height: 12.7px; }
.dic-punto      { width: 3.8px;  height: 3.8px; }
.dic-pastilla   { width: 7.6px;  height: 2.85px; border-radius: 1.4px; background: #79B290; }

.dic-deco-izq .dic-serpentina { left: 19.8px; top: 27.2px; --rot: -24.9deg; }
.dic-deco-izq .dic-punto      { left: 36.7px; top: 39.3px; }
.dic-deco-izq .dic-pastilla   { left: 6.2px;  top: 13.6px; --rot: -26.6deg; }

.dic-deco-der .dic-serpentina { left: 24.1px; top: 24.4px; --rot: 24.9deg; }
.dic-deco-der .dic-punto      { left: 39.6px; top: 13.3px; }
.dic-deco-der .dic-pastilla   { left: 3.9px;  top: 36.8px; --rot: 37.9deg; }

/* Abajo de 1020px no entra todo en un renglón de 55px (que es el alto que
   asume banner-actual.php): se sacan las decoraciones y se achican márgenes. */
@media (max-width: 1019px) {
    .dic-deco { display: none; }
    .dic-titulo { margin: 0 12px 0 0; }
    .dic-cta { margin: 0 0 0 10px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
    .dic-bar {
        display: none;
    }

    .dic-bar-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 18px 16px 14px;
        background: #1B8162;
        box-sizing: border-box;
    }

    .dic-titulo-mobile {
        font-family: 'proxima-nova', sans-serif;
        font-weight: 600;
        font-size: 19px;
        line-height: 1;
        color: #fff;
        text-align: center;
        white-space: nowrap;
    }

    /* Recuadro de la imagen: 291x130 en el diseño. Escala con el ancho del
       celular (hasta 340px) y las decoraciones van en % para acompañar. */
    .dic-descuentos-mobile-wrap {
        position: relative;
        display: block;
        width: 100%;
        max-width: 340px;
        margin-top: 6px;
    }

    .dic-descuentos-mobile {
        width: 100%;
        height: auto;
    }

    .dic-deco-m {
        position: absolute;
        inset: 0;
    }

    .dic-deco-m .dic-serpentina { width: 13.9%; height: auto; }
    .dic-deco-m .dic-punto      { width: 1.4%;  height: auto; }
    .dic-deco-m .dic-pastilla   { width: 2.6%;  height: auto; aspect-ratio: 7.6 / 2.85; }

    .dic-deco-m-izq .dic-serpentina { left: 9.75%;  top: 37.3%; --rot: 56.2deg; }
    .dic-deco-m-izq .dic-punto      { left: 4.36%;  top: 42.1%; width: 1.84%; }
    .dic-deco-m-izq .dic-pastilla   { left: 8.82%;  top: 16.2%; --rot: 69.2deg; }

    .dic-deco-m-der .dic-serpentina { left: 88.54%; top: 50.6%; --rot: -41.5deg; }
    .dic-deco-m-der .dic-punto      { left: 92.78%; top: 25.4%; }
    .dic-deco-m-der .dic-pastilla   { left: 82.73%; top: 43.6%; --rot: -43.2deg; background: #F8F5EF; }

    .dic-cta-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 27px;
        padding: 0 20px;
        border-radius: 48px;
        background: #F8F5EF;
        font-family: 'proxima-nova', sans-serif;
    font-weight: 700;
        font-size: 12.5px;
        color: #249A63;
        white-space: nowrap;
    }
}
