
a:hover {
  text-decoration: none;
}

/* ══════════ USO GENERAL ══════════
   Estilos que comparten varias secciones (banner de eventos, "Qué financiamos" y cuota).
   Si algo se repite en más de un grupo de clases, va aquí y no en cada sección. */

/* Fondo crema de las secciones */
.events-banner,
.financing,
.quota-cta,
.allies,
.testimonials{
    background: var(--cream, #F7F1E6);
}

/* Mismo ancho máximo y márgenes que el header y el hero */
.events-banner .container,
.financing .container,
.quota-cta .container,
.allies .container,
.how-it-works .container,
.testimonials .container,
.merchants .container{
    max-width: var(--maximum-dimension);
    padding-inline: var(--pad, 24px);
}

/* Palabra resaltada en naranja dentro de los títulos */
.events-banner .text-orange,
.financing .text-orange,
.quota-cta .text-orange,
.allies .text-orange{
    color: var(--orange-teavalo, #FF6F16);
}

/* Raya naranja antes de la categoría (eyebrow) */
.events-banner__category::before,
.financing__category::before,
.how-it-works__category::before,
.merchants__category::before{
    content: "";
    width: 22px;
    height: 3px;
    background: var(--orange-teavalo, #FF6F16);
}

/* Tipografía de títulos */
.events-banner__title,
.financing__title,
.quota-cta__title,
.allies__title,
.allies__name,
.how-it-works__title,
.how-it-works__step-title,
.how-it-works__number,
.testimonials__title,
.merchants__title,
.merchants__button,
.financing-card__tag,
.financing-card__title,
.financing-guide h3,
.financing-guide__number{
    font-family: var(--header-font, inherit);
}

/* Títulos de sección: mismo color y espaciado (cada uno define su tamaño) */
.events-banner__title,
.financing__title,
.quota-cta__title,
.allies__title,
.testimonials__title{
    letter-spacing: -.02em;
    color: var(--blue-teavalo, #051D6B);
}

/* Tarjetas redondeadas */
.financing-card,
.financing-tile,
.financing-guide{
    border-radius: 20px;
}

/* Tarjetas blancas con borde azul tenue */
.financing-tile--white,
.financing-guide,
.quota-cta__box{
    border: 1px solid rgba(5, 29, 107, .08);
}

/*Panel section*/

.data-panel{
    background-color: var(--blue-dark-teavalo, #03134A);
    padding-bottom: 20px;
}

.data-panel-intern{
    padding-top: 20px;
    display: flex;
    gap: clamp(16px, 3vw, 44px);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .87rem;
}

.data-panel-item{
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted-teavalo, #AFBCE8);
}

.data-panel-text{
    color: #fff;
    font-weight: bold;
}

.dot-green{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-teavalo, #4ADE80);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
}
/*Events mini banner
  Layout con Bootstrap (container/row/col y utilidades); aquí solo fondo, degradado y tipografía. */

.events-banner{
    min-height: 360px;
}

.events-banner__image{
    object-fit: cover;
    object-position: center 30%;
}

/* Degradado claro a la izquierda, sobre la foto y bajo el texto */
.events-banner::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg,
        rgba(247, 241, 230, .99) 0%,
        rgba(247, 241, 230, .97) 32%,
        rgba(247, 241, 230, .78) 46%,
        rgba(247, 241, 230, .25) 62%,
        rgba(247, 241, 230, 0) 78%);
}

.events-banner .container{ z-index: 1; }

.events-banner__category{
    font-size: .75rem;
    letter-spacing: .14em;
    color: var(--orange-dark-teavalo, #C2570C);
}

.events-banner__title{
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.events-banner__subtitle{
    font-size: .95rem;
    line-height: 1.6;
    color: #3a3a3a;
}

.events-banner__btn{
    background: var(--orange-teavalo, #FF6F16);
    box-shadow: 0 10px 26px rgba(255, 111, 22, .35);
    transition: transform .2s, background .2s;
}

.events-banner__btn:hover{
    color: #fff;
    background: #e85f0b;
    transform: translateY(-2px);
}

/* Móvil: foto arriba, texto abajo */
@media (max-width: 767px){
    .events-banner{
        display: block !important;
        min-height: 0;
    }

    .events-banner__image{
        position: static !important;
        height: 220px !important;
    }

    .events-banner::after{
        inset: 0 0 auto 0;
        height: 220px;
        background: linear-gradient(180deg, rgba(247, 241, 230, 0) 40%, var(--cream, #F7F1E6) 100%);
    }
}



/*Financing section: "Qué financiamos"
  Grilla con Bootstrap (container/row/col); aquí solo color, tarjetas, fotos y tipografía. */

.financing{
    padding-top: 5rem;
}

.financing__header{ max-width: 500px; }

.financing__category{
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .19em;
    color: var(--blue-teavalo, #051D6B);
}

.financing__title{
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.08;
}

.financing__subtitle{
    max-width: 400px;
    font-size: .9rem;
    line-height: 1.6;
    color: #3a3a3a;
}

/* Alto de la grilla: cambiar --card-h escala todas las tarjetas (1rem = gap de g-3) */
.financing-grid{
    --card-h: 200px;
    --tile-h: calc(var(--card-h) * .7);
}

/* Tarjetas con foto: la imagen va de fondo; sin archivo se ve el azul oscuro */
.financing-card{
    min-height: var(--card-h);
    background-color: var(--blue-dark-teavalo, #03134A);
}

/* Capa con la foto: es la que hace zoom al pasar el cursor (la tarjeta y el texto no se mueven) */
.financing-card__media{
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .5s ease;
    will-change: transform;
}

.financing-card:hover .financing-card__media{ transform: scale(1.06); }

.financing-card::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(3, 19, 74, 0) 25%, rgba(3, 19, 74, .92) 100%);
}

/* JS agrega .reveal / .is-visible a estas cajas (app-user.js). `.reveal.is-visible` fija transform: none,
   por eso los hover llevan .financing-grid delante: así ganan en especificidad y el levantamiento se ve.
   La opacidad se mantiene en la transición para no perder el fundido de entrada. */
.financing-grid .financing-card,
.financing-grid .financing-tile,
.financing-grid .financing-guide{
    transition: opacity .7s ease, transform .25s ease, box-shadow .25s ease;
}

.financing-grid .financing-card:hover,
.financing-grid .financing-guide:hover{
    transform: translateY(-4px);
    box-shadow: 6px 16px 28px -8px rgba(5, 29, 107, .28);
}

/* Cuadritos de color: levantamiento pequeño, como los botones del header */
.financing-grid .financing-tile:hover{
    transform: translateY(-2px);
    box-shadow: 6px 16px 28px -8px rgba(5, 29, 107, .28);
}

.financing-card__body{ z-index: 2; }

.financing-card--phones{ min-height: calc(var(--card-h) * 2 + 1rem); }

.financing-card__tag{
    font-weight: 600;
    font-size: .63rem;
    letter-spacing: .15em;
    opacity: .8;
    margin-bottom: 7px;
}

.financing-card__title{
    font-size: clamp(1.05rem, 1.8vw, 1.32rem);
    line-height: 1.05;
    letter-spacing: -.025em;
    color: #fff;
}

.financing-card--phones .financing-card__title{
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    margin-bottom: 9px;
}

.financing-card__text{
    font-size: .95rem;
    line-height: 1.5;
    max-width: 32ch;
    color: rgba(255, 255, 255, .85);
}

.financing-tile{
    min-height: var(--tile-h);
    font-size: 1rem;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.financing-tile--blue{ background: var(--blue-teavalo, #051D6B); color: #fff; }
.financing-tile--orange{ background: var(--orange-teavalo, #FF6F16); color: #fff; }
.financing-tile--white{ background: #fff; color: var(--blue-teavalo, #051D6B); }

.financing-tile__icon{
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .18);
}

.financing-tile--white .financing-tile__icon{
    background: rgba(255, 111, 22, .14);
    color: var(--orange-teavalo, #FF6F16);
}

/* Guía */
.financing-guide{
    color: var(--blue-teavalo, #051D6B);
}

.financing-guide h3{
    font-size: 1rem;
    color: var(--blue-teavalo, #051D6B);
}

.financing-guide__number{
    font-size: 2.4rem;
    line-height: 1;
    color: var(--orange-teavalo, #FF6F16);
}

.financing-guide__text{
    font-size: .85rem;
    line-height: 1.5;
    color: #8a93a8;
}

.financing-guide__link{
    font-size: .83rem;
    color: var(--orange-teavalo, #FF6F16);
}

.financing-guide__link:hover{
    color: var(--orange-teavalo, #FF6F16);
}

/* Sección "No imagines la cuota. Calcúlala." */
.quota-cta{
    padding-top: 8rem;
    padding-bottom: clamp(40px, 6vw, 72px);
}

.quota-cta__box{
    gap: clamp(22px, 4vw, 54px);
    padding: clamp(24px, 3.4vw, 40px);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(5, 29, 107, .07);
}

.quota-cta__text{ flex: 1; min-width: 280px; }

.quota-cta__title{
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.1;
    margin: 12px 0;
}

.quota-cta__description{
    max-width: 52ch;
    font-size: 1rem;
    line-height: 1.65;
    color: #434B54;
}

.quota-cta__actions{ min-width: 230px; }

.quota-cta__primary{
    background: var(--orange-teavalo, #FF6F16);
    box-shadow: 0 8px 22px rgba(255, 111, 22, .3);
    transition: .2s;
}

.quota-cta__primary:hover{
    background: #E85F0A;
    color: #fff;
    transform: translateY(-2px);
}

.quota-cta__ghost{
    border: 2px solid var(--blue-teavalo, #051D6B);
    color: var(--blue-teavalo, #051D6B);
    transition: .2s;
}

.quota-cta__ghost:hover{
    background: var(--blue-teavalo, #051D6B);
    color: #fff;
}

@media (max-width: 700px){
    .quota-cta__actions{ width: 100%; }
}

/*Aliados cerca de ti
  Tarjeta con filtros y lista a la izquierda, imagen editable desde el admin a la derecha. */

.allies{
    padding-block: clamp(40px, 6vw, 72px);
}

.allies__title{
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.08;
    margin-bottom: 12px;
}

.allies__subtitle{
    color: #4b5563;
    margin-bottom: 32px;
}

.allies__box{
    border: 1px solid rgba(5, 29, 107, .08);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(5, 29, 107, .07);
    height: 31rem;
}

.allies__content{
    flex: 1 1 420px;
    min-height: 0;
    background: #fff;
}

.allies__panel{
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(20px, 3vw, 34px);
}

.allies__filters{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.select-list{
    position: relative;
    min-width: 0;
}

.select-list__toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 18px 12px 14px;
    border: 2px solid rgba(5, 29, 107, .1);
    border-radius: 14px;
    background: #fff;
    color: var(--blue-teavalo, #051D6B);
    font-size: .9rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease;
}

.select-list__toggle:hover:not(:disabled),
.select-list__toggle[aria-expanded="true"]{
    border-color: rgba(5, 29, 107, .3);
}

.select-list__toggle:focus-visible{
    outline: 2px solid var(--blue-teavalo, #051D6B);
    outline-offset: 2px;
}

.select-list__toggle:disabled{
    opacity: .6;
    cursor: not-allowed;
}

.select-list__label{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.select-list__label--placeholder{
    color: #6b7280;
}

.select-list__arrow{
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid var(--blue-teavalo, #051D6B);
    border-bottom: 2px solid var(--blue-teavalo, #051D6B);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.select-list__toggle[aria-expanded="true"] .select-list__arrow{
    transform: translateY(2px) rotate(-135deg);
}

.select-list__menu{
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 2px solid rgba(5, 29, 107, .1);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(5, 29, 107, .12);
}

.select-list__option{
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--blue-teavalo, #051D6B);
    font-size: .88rem;
    text-align: left;
    cursor: pointer;
}

.select-list__option:hover,
.select-list__option:focus-visible{
    background: rgba(5, 29, 107, .06);
    outline: none;
}

.select-list__option.is-selected{
    background: rgba(255, 106, 19, .12);
    color: #c2410c;
    font-weight: 700;
}

.allies__count{
    flex-shrink: 0;
    font-size: .85rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

.allies__list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 6px;
}

.allies__more{
    flex-shrink: 0;
    align-self: center;
    padding: 10px 22px;
    border: 2px solid var(--blue-teavalo, #051D6B);
    border-radius: 999px;
    background: transparent;
    color: var(--blue-teavalo, #051D6B);
    font-size: .85rem;
    font-weight: 700;
}

.allies__more:hover:not(:disabled){
    background: var(--blue-teavalo, #051D6B);
    color: #fff;
}

.allies__more:disabled{
    opacity: .6;
}

.allies__item{
    padding: 14px 16px;
    border: 1px solid rgba(5, 29, 107, .1);
    border-radius: 14px;
}

.allies__name{
    font-size: 1.05rem;
    color: var(--blue-teavalo, #051D6B);
}

.allies__place,
.allies__empty{
    font-size: .85rem;
    color: #9ca3af;
}

.allies__image{
    flex: 1 1 320px;
    min-height: 320px;
    background: #e8e0d0 center / cover no-repeat;
}

@media (max-width: 767.98px){
    .allies__filters{ grid-template-columns: 1fr; }
    .allies__box{ height: auto; }
    /* Alto según el contenido. Cada aliado mide lo mismo (nombre 1 línea, lugar máx. 2) y la lista cabe exactamente 4,
       así el scroll siempre arranca con 4 tarjetas completas, sin recorte del último */
    .allies__content{ flex: 1 1 100%; height: auto; }
    .allies__panel{ height: auto; }
    .allies__list{ flex: none; max-height: calc(4 * 96px + 3 * 10px); }
    .allies__item{ flex: none; height: 96px; overflow: hidden; }
    .allies__name{
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .allies__place{
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .allies__image{
        flex: 1 1 100%;
        min-height: 0;
        aspect-ratio: 3 / 2;
        background-position: center 30%;
    }
}

/*Cómo funciona*/

.how-it-works{
    background: var(--blue-teavalo);
    padding-block: clamp(40px, 6vw, 72px);
}

.how-it-works__icon{
    flex-shrink: 0;
    object-fit: contain;
}

.how-it-works__category,
.merchants__category{
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: #fff;
}

.how-it-works__title{
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -.02em;
    color: #fff;
}

.how-it-works__step{
    padding: clamp(20px, 2.4vw, 28px);
    border: 1px solid rgba(175, 188, 232, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
}

.how-it-works__number{
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--orange-teavalo, #FF6F16);
    margin-bottom: 10px;
}

.how-it-works__step-title{
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 6px;
}

.how-it-works__text{
    color: var(--text-muted-teavalo, #AFBCE8);
    line-height: 1.55;
}

/*Testimonios*/

.testimonials{
    padding-block: clamp(40px, 6vw, 72px);
}

.testimonials__title{
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    color: var(--blue-teavalo, #051D6B);
}

.testimonial-card{
    padding: clamp(18px, 2.4vw, 26px);
    border: 1px solid rgba(5, 29, 107, .08);
    border-radius: 20px;
}

.testimonial-card__quote{
    color: #374151;
    line-height: 1.55;
    margin-bottom: 12px;
}

.testimonial-card__name{
    color: var(--blue-teavalo, #051D6B);
    font-size: .95rem;
}

.testimonial-card__place{
    font-size: .8rem;
    color: #9ca3af;
}

/*Para comercios
  Foto editable desde el admin; el degradado azul de la izquierda sostiene el texto. */

.merchants{
    min-height: 360px;
    padding-block: clamp(36px, 5vw, 64px);
    background: var(--blue-dark-teavalo, #03134A) center / cover no-repeat;
}

.merchants::before{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg,
        rgba(5, 29, 107, .98) 0%,
        rgba(5, 29, 107, .93) 30%,
        rgba(5, 29, 107, .6) 48%,
        rgba(5, 29, 107, 0) 70%);
}

.merchants__title{
    max-width: 360px;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
}

.merchants__text{
    max-width: 330px;
    color: var(--text-muted-teavalo, #AFBCE8);
    margin-bottom: 22px;
}

.merchants__button{
    background: var(--orange-teavalo, #FF6F16);
    box-shadow: 0 8px 22px rgba(255, 111, 22, .35);
}

.merchants__button:hover{
    color: #fff;
    filter: brightness(1.06);
}

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.reveal-left { transform: translateX(-36px); }
.reveal.reveal-right { transform: translateX(36px); }
.reveal.reveal-zoom { transform: scale(.95); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .financing-card__media { transition: none; }
    .financing-card:hover .financing-card__media { transform: none; }
    .financing-grid .financing-tile:hover { transform: none; }
}
