/* =========================================================
   VARIABLES Y ESTILOS GLOBALES
========================================================= */

:root {
    --green: #08714f;
    --green-dark: #004f3a;
    --green-deep: #003d2e;
    --mint: #eaf7f1;
    --mint-light: #f5fbf8;
    --gold: #f4be4a;
    --ink: #101413;
    --muted: #5b6661;
    --line: #d8e4df;
    --white: #ffffff;
    --page: #f7f8f7;
    --shadow: 0 18px 48px rgba(0, 70, 50, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.FAQ span{
    display: block;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}

/* =========================================================
 HEADER
  ========================================================= */

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  border-radius: 8px;

  font-weight: 700;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.header-cta {
  min-height: 48px;
  padding: 0 24px;

  color: var(--white);
  background: var(--green);
}

.header-cta:hover,
.button-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

main {
  padding: 0 0 18px;
}

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 650px;
  padding: 125px clamp(30px, 5vw, 100px) 50px;
  overflow: hidden;
  color: var(--white);
  background: var(--green-deep);
}

.hero-banner__video {
  position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% center;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 61, 50, 0.96) 0%,
    rgba(0, 61, 50, 0.85) 30%,
    rgba(0, 61, 50, 0.38) 55%,
    rgba(0, 61, 50, 0.05) 100%
  );
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
}

.hero-banner__title {
  max-width: 900px;
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero-banner__title span {
  color: #7bc94e;
}

.hero-banner__description {
  max-width: 850px;
  margin: 0 0 30px;
  color: var(--white);
  font-size: clamp(1.1rem, 1.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
}

.hero-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 64px;
  padding: 12px 24px;
  color: #075747;
  background: #ffc653;
  border-radius: 14px;
  font-size: clamp(1rem, 1.25vw, 1.4rem);
  font-weight: 800;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.hero-banner__button:hover {
  color: #075747;
  background: #ffd274;
  transform: translateY(-3px);
}

.hero-banner__button2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 64px;
  padding: 12px 24px;
  color: #075747;
  background: white;
  border-radius: 14px;
  font-size: clamp(1rem, 1.25vw, 1.4rem);
  font-weight: 800;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.hero-banner__button2:hover {
  color: #075747;
  background: #b8b8b8;
  transform: translateY(-3px);
}



.hero-banner__benefits {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 22px;
  color: var(--white);
  font-size: clamp(1.1rem, 1.5vw, 1.65rem);
}

.hero-banner__check {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #0fc2af;
  border: 2px solid #7bc94e;
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 800;
}

.app-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  padding: 8px 14px;
  color: var(--white);
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.store-button:hover {
  color: var(--white);
  background: #242424;
  transform: translateY(-3px);
}

.store-button svg {
  flex: 0 0 auto;
  width: 24px;
  height: 28px;
}

.store-button span {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
}

.store-button small {
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 400;
}

/* =========================================================
   FRANJA DE CONFIANZA
========================================================= */

.trust {
  position: relative;
  z-index: 5;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  max-width: 1420px;
  margin: -30px auto 0;
  padding: 14px 20px;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: var(--radius-medium);

  box-shadow: var(--shadow);
}

.trust article {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
  padding: 6px 18px;

  border-right: 1px solid #dce5e1;
}

.trust article:last-child {
  border-right: 0;
}

.trust-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;

  width: 46px;
  height: 46px;

  color: var(--green);
  background: var(--mint);

  border-radius: 50%;

  font-size: 22px;
  font-weight: 800;
}

.trust strong {
  font-size: 14px;
}

.trust p {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
  PRODUCTOS
========================================================= */

.products {
  position: relative;

  width: min(calc(100% - 40px), 1380px);
  margin: clamp(50px, 7vw, 100px) auto 0;
  padding: clamp(32px, 4.5vw, 56px);

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(8, 113, 79, 0.08),
      transparent 25%
    ),
    linear-gradient(145deg, #f7fcf9, #edf7f2);

  border: 1px solid rgba(8, 113, 79, 0.1);
  border-radius: 36px;

  overflow: hidden;
}

.products::before {
  content: "";

  position: absolute;
  top: -90px;
  right: -70px;

  width: 260px;
  height: 260px;

  border: 42px solid rgba(244, 190, 74, 0.08);
  border-radius: 50%;

  pointer-events: none;
}

.products > h2{
position: relative;
  z-index: 1;

  max-width: 780px;
  margin: 0 auto clamp(30px, 4vw, 46px);

  color: var(--ink);

  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
  text-wrap: balance;
}

.products > h2 span {
  color: var(--green);
}

.product-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;

  display: flex;
  grid-column: span 2;
  flex-direction: column;

  min-width: 0;
  min-height: 430px;

  color: var(--ink);
  background: var(--white);

  border: 1px solid rgba(8, 113, 79, 0.14);
  border-radius: 24px;

  box-shadow: 0 12px 30px rgba(0, 61, 46, 0.06);

  overflow: hidden;

  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;

  height: 5px;

  background: linear-gradient(90deg, var(--green), #f4be4a);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.3s ease;
}

.product-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.product-card:nth-child(5) {
  grid-column: span 2;
}

.product-card > img {
  order: -1;

  display: block;

  width: 100%;
  height: 190px;
  min-width: 0;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.45s ease,
    filter 0.3s ease;
}

.product-card .product-copy {
  position: relative;
  z-index: 2;

  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  padding: 22px;

  color: var(--ink);
  background: var(--white);

  transition: background-color 0.3s ease;
}

.product-card .product-icon {
  display: grid;
  place-items: center;

  width: 50px;
  height: 50px;
  margin-top: -50px;
  margin-bottom: 18px;

  color: var(--green);
  background: var(--white);

  border: 5px solid var(--white);
  border-radius: 17px;

  box-shadow: 0 10px 24px rgba(0, 61, 46, 0.18);

  font-size: 21px;
  font-weight: 800;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

.product-card h3 {
  margin: 0 0 10px;

  color: var(--green-dark);

  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
}

.product-card p {
  margin: 0 0 18px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}

.product-card strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: auto;

  color: var(--green);

  font-size: 14px;
  font-weight: 800;

  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.product-card:hover,
.product-card.is-current {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(8, 113, 79, 0.38);

  box-shadow: 0 22px 50px rgba(0, 61, 46, 0.15);

  transform: translateY(-7px);
}

.product-card:hover::before,
.product-card.is-current::before {
  transform: scaleX(1);
}

.product-card:hover > img,
.product-card.is-current > img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

.product-card:hover .product-copy h3,
.product-card.is-current .product-copy h3 {
  color: var(--green-dark);
}

.product-card:hover .product-copy p,
.product-card.is-current .product-copy p {
  color: var(--muted);
}

.product-card:hover .product-copy strong,
.product-card.is-current .product-copy strong {
  gap: 14px;
  color: var(--green-dark);
}

.product-card:hover .product-icon,
.product-card.is-current .product-icon {
  color: var(--white);
  background: var(--green);

  transform: translateY(-3px);
}

.product-coming {
  cursor: default;
}

.product-coming > img {
  filter: grayscale(0.45) saturate(0.55);
}

.product-coming strong {
  padding: 7px 13px;

  color: var(--muted);
  background: #edf4f1;

  border-radius: 999px;

  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-coming:hover {
  border-color: rgba(8, 113, 79, 0.14);
  box-shadow: 0 12px 30px rgba(0, 61, 46, 0.06);
  transform: none;
}

.product-coming:hover::before {
  transform: scaleX(0);
}

.product-coming:hover > img {
  filter: grayscale(0.45) saturate(0.55);
  transform: none;
}

.product-coming:hover .product-icon {
  color: var(--green);
  background: var(--white);
  transform: none;
}

@media (max-width: 1100px) {

  .slide {
    grid-template-columns: 55% 45%;
  }

  .slide-copy {
    padding: 60px;
  }

  .trust {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust article:nth-child(2) {
    border-right: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card:nth-child(n) {
    grid-column: auto;
  }

  .product-card:last-child {
    grid-column: 1 / -1;

    width: calc((100% - 20px) / 2);
    justify-self: center;
  }

}

@media (max-width: 780px) {

  /* Menú hamburguesa */

  /* Contenido */

  main {
    padding-right: 10px;
    padding-left: 10px;
  }

  /* Hero */

  .hero-banner {
    align-items: flex-end;
    min-height: 610px;
    padding: 115px 24px 40px;
  }

  .hero-banner::after {
    background: linear-gradient(
      90deg,
      rgba(0, 61, 50, 0.94) 0%,
      rgba(0, 61, 50, 0.82) 100%
    );
  }

  

  .hero-banner__title {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    letter-spacing: -1px;
  }

  .hero-banner__title br,
  .hero-banner__description br {
    display: none;
  }

  .hero-banner__description {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero-banner__button,
  .hero-banner__button2 {
    min-height: 54px;
    padding: 10px 18px;
  }

  .hero-banner__benefits {
    margin: 24px 0 20px;
    font-size: 1rem;
  }

  .hero-banner__check {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
  }

  /* Confianza */

  .trust {
    grid-template-columns: 1fr;

    margin-top: 15px;
  }

  .trust article {
    border-right: 0;
    border-bottom: 1px solid #dce5e1;
  }

  .trust article:last-child {
    border-bottom: 0;
  }

  /* Productos */

  .products {
    width: min(calc(100% - 24px), 1380px);
    padding: 38px 22px;

    border-radius: 28px;
  }

  .products > h2 {
    margin-bottom: 30px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card:nth-child(n),
  .product-card:last-child {
    grid-column: auto;

    width: 100%;
  }

}

@media (max-width: 480px) {

  .app-downloads {
    flex-direction: column;
    align-items: stretch;
  }

  .store-button {
    width: 100%;
    justify-content: center;
  }

  .products {
    width: min(calc(100% - 20px), 1380px);
    padding: 34px 14px;

    border-radius: 26px;
  }

  .products > h2 {
    margin-bottom: 28px;

    font-size: clamp(28px, 9vw, 38px);
  }

  .product-card {
    min-height: 400px;

    border-radius: 20px;
  }

  .product-card > img {
    height: 175px;
  }

  .product-card .product-copy {
    padding: 20px;
  }

  .product-card .product-icon {
    width: 48px;
    height: 48px;
    margin-top: -47px;
  }

}

/* =========================================================
   BLOG
========================================================= */

/* =========================================================
   HERO BLOG
========================================================= */

.magno-blog {
    background: var(--page);
}

.blog-hero {
    position: relative;
    min-height: clamp(420px, 40vw, 590px);
    overflow: hidden;
    padding: clamp(160px, 16vw, 235px) clamp(24px, 7vw, 110px) 80px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 64% 112%,
            rgba(40, 158, 116, 0.3) 0 18%,
            transparent 18.4%
        ),
        radial-gradient(
            circle at 64% 112%,
            transparent 0 28%,
            rgba(40, 158, 116, 0.12) 28.4% 38%,
            transparent 38.4%
        ),
        linear-gradient(125deg, #003d2e 0%, #005b43 58%, #08714f 100%);
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: -145px;
    right: -120px;
    width: 360px;
    height: 360px;
    border: 30px solid var(--gold);
    border-radius: 50%;
}

.blog-hero::after {
    content: "";
    position: absolute;
    top: 44%;
    right: 20%;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: -52vw 170px 0 -4px var(--gold);
}

.blog-hero__content {
    position: relative;
    z-index: 2;
    width: min(880px, 100%);
}

.blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #b8ead6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-hero__eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--gold);
}

.blog-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(48px, 6.5vw, 94px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.blog-hero__content > p:last-child {
    max-width: 650px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 1.5vw, 23px);
    line-height: 1.55;
}

/* =========================================================
   CONTENIDO Y FILTROS DEL BLOG
========================================================= */

.blog-content {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 88px;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.blog-filter {
    min-height: 42px;
    padding: 0 24px;
    color: var(--green-dark);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.blog-filter:hover,
.blog-filter.is-active {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-2px);
}

/* =========================================================
   ARTÍCULO DESTACADO
========================================================= */

.featured-article {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.featured-article__media,
.article-card__media {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent),
        var(--mint);
}

.featured-article__media::before,
.article-card__media::before {
    content: "Imagen";
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 10px 18px;
    color: rgba(0, 79, 58, 0.5);
    border: 1px dashed rgba(0, 79, 58, 0.38);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transform: translate(-50%, -50%);
}

.featured-article__media img,
.article-card__media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(32px, 5vw, 72px);
}

.article-category {
    margin: 0 0 16px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-article h2,
.article-card h3 {
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.035em;
}

.featured-article h2 {
    font-size: clamp(15px, 1.5vw, 42px);
    line-height: 1.08;
}

.article-description {
    min-height: 52px;
    color: var(--muted);
    line-height: 1.65;
}

.article-description:empty,
.article-description:not(:has(*)):not(:has(text)) {
    width: 100%;
}

/* =========================================================
   CUADRÍCULA DE ARTÍCULOS
========================================================= */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0, 70, 50, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.article-card:hover {
    box-shadow: 0 18px 38px rgba(0, 70, 50, 0.13);
    transform: translateY(-6px);
}

.article-card__media {
    aspect-ratio: 16 / 10;
}

.article-card__body {
    padding: 25px;
}

.article-card h3 {
    font-size: 22px;
    line-height: 1.2;
}

.article-card .article-description {
    min-height: 72px;
    margin-top: 15px;
    font-size: 14px;
}

.article-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 800;
}

.article-more:hover {
    color: var(--green);
}


@media (max-width: 1050px) {

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article__media {
        min-height: 350px;
    }

    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 780px) {

    .blog-hero {
        min-height: 470px;
        padding: 165px 22px 62px;
    }

    .blog-hero::before {
        top: -75px;
        right: -95px;
        width: 230px;
        height: 230px;
        border-width: 20px;
    }

    .blog-content {
        width: min(100% - 24px, 1280px);
        padding-top: 28px;
    }

    .blog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 9px;
    }

    .blog-filter {
        flex: 0 0 auto;
    }

    .featured-article__media {
        min-height: 250px;
    }

    .featured-article__body {
        padding: 30px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}


/* =========================================================
   TESTIMONIOS
========================================================= */

.testimonials {
  width: min(100% - 40px, 1440px);
  margin: 70px auto;
  padding: clamp(30px, 4vw, 52px);
  background: var(--mint-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}

.testimonials-header {
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
}

.testimonials-eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testimonials-header h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 43px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.testimonials-header h2 span {
  color: var(--green);
}

.testimonials-description {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.testimonials-carousel {
  position: relative;
}

.testimonials-track {
  --visible-cards: 3;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns:
    calc(
      (100% - (20px * (var(--visible-cards) - 1)))
      / var(--visible-cards)
    );

  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  overflow: hidden;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 64, 46, 0.08);
  scroll-snap-align: start;
}

.testimonial-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dce9e3;
}

.testimonial-media img,
.testimonial-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.testimonial-media img {
  object-fit: contain;
  object-position: center;
}

.testimonial-content {
  padding: 20px;
}

.testimonial-rating {
  color: var(--green);
  font-size: 16px;
  letter-spacing: 3px;
}

.testimonial-content blockquote {
  margin: 13px 0 18px;
}

.testimonial-content blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 11px;
}

.testimonial-client > img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-client div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-client cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.testimonial-client span {
  color: var(--muted);
  font-size: 13px;
}

.testimonials-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 64, 46, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
}

.testimonials-button:hover {
  background: var(--green-dark);
}

.testimonials-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.testimonials-button--previous {
  left: -23px;
}

.testimonials-button--next {
  right: -23px;
}

.testimonials-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}


@media (max-width: 1000px) {
  .testimonials-track {
    --visible-cards: 2;
  }
}

@media (max-width: 680px) {
  .testimonials {
    width: min(100% - 20px, 600px);
    padding: 28px 16px;
  }

  .testimonials-track {
    --visible-cards: 1;
    gap: 16px;
  }

  .testimonials-button {
    width: 42px;
    height: 42px;
  }

  .testimonials-button--previous {
    left: -12px;
  }

  .testimonials-button--next {
    right: -12px;
  }
}

/* =========================================================
  CARRUSEL  ALIADOS 
========================================================= */

.partners {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f3f8fb);
}

.partners h2 {
  color: #2d2f2e;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
}

.partners-viewport {
  width: 100%;
  overflow: hidden;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5.5vw, 90px);
  width: max-content;
  padding: 14px 0;
  will-change: transform;
}

.partner-logo {
   display: grid;
  flex: 0 0 200px;
  place-items: center;
  height: 110px;
}

.partner-logo img {
 display: block;
  width: auto;
  max-width: 155px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 780px) {
  .partners-track {
    gap: 36px;
  }

  .partner-logo {
    flex-basis: 155px;
    height: 90px;
  }
}




.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;

    width: 100%;
    height: 96px;
    min-height: 0;

    display: flex;
    grid-template-columns: none;
    align-items: center;

    padding: 0 clamp(28px, 6vw, 90px);

    color: #ffffff;
    background: linear-gradient(
        180deg,
        rgba(5, 39, 30, 0.62),
        rgba(5, 39, 30, 0)
    );
    border: 0;
    box-shadow: none;
    backdrop-filter: none;

    transition:
        height 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    height: 96px;
    min-height: 0;

    color: #ffffff;
    background: rgba(0, 73, 52, 0.96);

    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
    backdrop-filter: none;
}

.brand {
     position: relative;
    z-index: auto;

    width: 172px;
    height: 100%;
    flex: 0 0 172px;

    overflow: visible;
}

.brand img,
.site-header.is-scrolled .brand img {
  position: absolute;
    top: 50%;
    left: 0;

    display: block;

    width: clamp(260px, 18vw, 380px);
    height: auto;
    max-width: none;
    max-height: none;

    object-fit: contain;
    object-position: left center;

    filter: brightness(0) invert(1);

    transform: translateY(-50%);
}

.main-nav {
    position: static;

    width: auto;
    margin-left: auto;

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

    gap: clamp(20px, 1vw, 56px);
    padding: 0;

    color: #ffffff;
    background: transparent;
    border: 0;
    box-shadow: none;

    font-size: 16px;
    font-weight: 700;
}

.main-nav a,
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a.active {
    position: relative;

    width: auto;
    padding: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";

    position: absolute;
    right: auto;
    bottom: -14px;
    left: 50%;

    display: block;

    width: 0;
    height: 3px;

    border-radius: 3px;

    background: #ffffff;

    transform: translateX(-50%);

    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    right: auto;
    left: 50%;
    width: 24px;
}

.site-header .header-cta {
    display: none;
}

.menu-toggle {
    position: static;
    z-index: auto;

    display: none;

    width: auto;
    margin-left: auto;
    padding: 8px;

    color: #ffffff;
    background: transparent;
    border: 0;

    cursor: pointer;
}

.menu-toggle > span:not(.sr-only),
.site-header.is-scrolled .menu-toggle > span:not(.sr-only) {
    display: block;

    width: 26px;
    height: 2px;

    margin: 5px;

    background: #ffffff;
}

@media (min-width: 2200px) {
    .site-header {
        height: 120px;
        padding-right: 5vw;
    }

    .site-header.is-scrolled {
        height: 145px;
    }

    .main-nav a,
    .site-header.is-scrolled .main-nav a {
        font-size: 20px;
    }
}

@media (max-width: 1200px) {
    .site-header,
    .site-header.is-scrolled {
        height: 108px;
        min-height: 0;

        padding: 0 20px;

        color: #ffffff;
        background: rgba(0, 73, 52, 0.92);
    }

    .brand img,
    .site-header.is-scrolled .brand img {
           width: clamp(210px, 24vw, 270px);
    height: auto;
    max-width: none;
    max-height: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: auto;
        left: 0;

        width: 100%;
        margin-left: 0;

        display: none;
        flex-direction: column;
        align-items: center;

        gap: 0;
        padding: 12px 20px;

        color: #ffffff;
        background: #005a42;

        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .site-header.is-scrolled .main-nav a,
    .site-header.is-scrolled .main-nav a:hover,
    .site-header.is-scrolled .main-nav a.active {
        width: 100%;
        padding: 13px;

        color: #ffffff;

        font-size: 16px;
        text-align: center;
    }

    .main-nav a::after {
        display: none;
    }
}

@media (max-width: 780px) {
    .menu-toggle span:not(.sr-only) {
        display: block;
        height: 2px;
        background: var(--white);
    }

    .header-cta {
        display: none;
    }
}

    .article-details {
        margin-top: 20px;
    }

    .article-details summary {
        display: inline-flex;
        min-height: 44px;
        padding: 10px 18px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: var(--white, #ffffff);
        background: var(--green, #087652);
        border: 1px solid var(--green, #087652);
        border-radius: 8px;
        font-weight: 800;
        line-height: 1.3;
        list-style: none;
        cursor: pointer;
        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            transform 0.2s ease;
    }

    .article-details summary::-webkit-details-marker {
        display: none;
    }

    .article-details summary::after {
        content: "+";
        font-size: 20px;
        line-height: 1;
    }

    .article-details[open] summary::after {
        content: "−";
    }

    .article-details summary:hover {
        color: var(--green, #087652);
        background: var(--white, #ffffff);
        transform: translateY(-1px);
    }

    .article-details__label--open {
        display: none;
    }

    .article-details[open] .article-details__label--closed {
        display: none;
    }

    .article-details[open] .article-details__label--open {
        display: inline;
    }

    .article-details__content {
        margin-top: 22px;
        padding-top: 22px;
        border-top: 1px solid var(--line, #d6e2dd);
        animation: articleDetailsIn 0.25s ease;
    }

    .article-details__content h4 {
        margin: 24px 0 12px;
        color: var(--green-deep, #003f2f);
    }

    .article-details__content h4:first-child {
        margin-top: 0;
    }

    .credit-tips {
        display: grid;
        gap: 16px;
        margin: 0;
        padding-left: 24px;
    }

    .credit-tips li {
        padding-left: 5px;
        line-height: 1.65;
    }

    .credit-tips li p {
        margin: 6px 0 0;
    }

    .golden-rule {
        margin-top: 24px;
        padding: 18px 20px;
        background: rgba(185, 223, 69, 0.18);
        border-left: 5px solid var(--lime, #b9df45);
        border-radius: 8px;
    }

    .golden-rule p {
        margin: 7px 0 0;
    }

    @keyframes articleDetailsIn {
        from {
            opacity: 0;
            transform: translateY(-6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

     /* ======================================================
               PROCESO DEL CRÉDITO
            ======================================================= */
            .credit-process {
                --process-green: var(--green, #08714f);
                --process-dark: var(--dark, #004f3a);
                --process-deep: var(--deep, #003d2e);
                --process-mint: var(--mint, #eaf7f1);
                --process-ink: var(--ink, #101413);
                --process-muted: var(--muted, #59635f);

                position: relative;
                isolation: isolate;
                overflow: hidden;
                padding: clamp(60px, 6vw, 90px) clamp(22px, 5vw, 78px);
                background:
                    radial-gradient(circle at 88% 12%, rgba(8, 113, 79, .11), transparent 30%),
                    linear-gradient(180deg, #f8fcfa 0%, var(--process-mint) 100%);
            }

            .credit-process::before {
                content: "";
                position: absolute;
                z-index: -1;
                top: -150px;
                right: -120px;
                width: 390px;
                height: 390px;
                border: 1px solid rgba(8, 113, 79, .14);
                border-radius: 50%;
                box-shadow:
                    0 0 0 50px rgba(8, 113, 79, .035),
                    0 0 0 100px rgba(8, 113, 79, .025);
            }

            .credit-process__inner {
                width: min(100%, 1260px);
                margin-inline: auto;
            }

            .credit-process__header {
                display: grid;
                grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
                align-items: end;
                gap: clamp(24px, 5vw, 70px);
                margin-bottom: clamp(36px, 4.5vw, 56px);
            }

            .credit-process__eyebrow {
                margin: 0 0 13px;
                color: var(--process-green);
                font-size: .78rem;
                font-weight: 800;
                letter-spacing: .18em;
                text-transform: uppercase;
            }

            .credit-process h2 {
                max-width: 650px;
                margin: 0;
                color: var(--process-ink);
                font-size: clamp(1.8rem, 3.6vw, 3.4rem);
                font-weight: 500;
                line-height: 1.02;
                letter-spacing: -.045em;
            }

            .credit-process h2 strong {
                color: var(--process-green);
                font-weight: 800;
            }

            .credit-process__intro {
                max-width: 610px;
                margin: 0 0 5px;
                padding-left: 24px;
                color: var(--process-muted);
                border-left: 3px solid var(--process-green);
                font-size: clamp(.95rem, 1.25vw, 1.05rem);
                line-height: 1.75;
            }

            .credit-process__steps {
                position: relative;
                display: grid;
                grid-template-columns: repeat(5, minmax(0, 1fr));
                gap: clamp(10px, 1.4vw, 18px);
                margin: 0;
                padding: 0;
                list-style: none;
            }

            .credit-process__steps::before {
                content: "";
                position: absolute;
                top: 27px;
                left: 5%;
                right: 5%;
                height: 2px;
                background: linear-gradient(90deg, var(--process-green), rgba(8, 113, 79, .2));
            }

            .credit-process__step {
                --process-delay: 0s;
                position: relative;
                z-index: 1;
                padding-top: 66px;
            }

            .credit-process__step:nth-child(2) {
                --process-delay: 2.5s;
            }

            .credit-process__step:nth-child(3) {
                --process-delay: 5s;
            }

            .credit-process__step:nth-child(4) {
                --process-delay: 7.5s;
            }

            .credit-process__step:nth-child(5) {
                --process-delay: 10s;
            }

            .credit-process__step:nth-child(even) {
                padding-top: 90px;
            }

            .credit-process__number {
                position: absolute;
                top: 0;
                left: 0;
                display: grid;
                width: 50px;
                height: 50px;
                place-items: center;
                color: var(--process-green);
                background: #fff;
                border: 2px solid var(--process-green);
                border-radius: 16px;
                box-shadow: 0 10px 24px rgba(0, 79, 58, .11);
                font-size: .82rem;
                font-weight: 800;
                letter-spacing: .05em;
                animation: credit-process-number 12.5s var(--process-delay) infinite ease-in-out;
            }

            .credit-process__card {
                height: 100%;
                min-height: 225px;
                padding: clamp(20px, 1.9vw, 26px);
                background: rgba(255, 255, 255, .88);
                border: 1px solid rgba(8, 113, 79, .14);
                border-radius: 12px 32px 12px 12px;
                box-shadow: 0 18px 46px rgba(0, 61, 46, .08);
                backdrop-filter: blur(8px);
                transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
                animation: credit-process-card 12.5s var(--process-delay) infinite ease-in-out;
            }

            .credit-process__step:hover .credit-process__card {
                transform: translateY(-7px);
                border-color: rgba(8, 113, 79, .42);
                box-shadow: 0 24px 52px rgba(0, 61, 46, .13);
            }

            .credit-process__card::before {
                content: "";
                display: block;
                width: 34px;
                height: 4px;
                margin-bottom: 19px;
                background: var(--process-green);
                border-radius: 999px;
                animation: credit-process-accent 12.5s var(--process-delay) infinite ease-in-out;
            }

            .credit-process__card h3 {
                margin: 0 0 12px;
                color: var(--process-deep);
                font-size: clamp(1.05rem, 1.45vw, 1.3rem);
                line-height: 1.15;
                animation: credit-process-title 12.5s var(--process-delay) infinite ease-in-out;
            }

            .credit-process__card p {
                margin: 0;
                color: var(--process-muted);
                font-size: .88rem;
                line-height: 1.7;
                animation: credit-process-text 12.5s var(--process-delay) infinite ease-in-out;
            }

            @keyframes credit-process-number {
                0%, 16% {
                    color: #fff;
                    background-color: var(--process-green);
                    box-shadow: 0 12px 28px rgba(8, 113, 79, .28);
                }

                20%, 100% {
                    color: var(--process-green);
                    background-color: #fff;
                    box-shadow: 0 10px 24px rgba(0, 79, 58, .11);
                }
            }

            @keyframes credit-process-card {
                0%, 16% {
                    background-color: var(--process-green);
                    border-color: transparent;
                    box-shadow: 0 24px 52px rgba(0, 61, 46, .2);
                }

                20%, 100% {
                    background-color: rgba(255, 255, 255, .88);
                    border-color: rgba(8, 113, 79, .14);
                    box-shadow: 0 18px 46px rgba(0, 61, 46, .08);
                }
            }

            @keyframes credit-process-accent {
                0%, 16% {
                    background-color: rgba(255, 255, 255, .86);
                }

                20%, 100% {
                    background-color: var(--process-green);
                }
            }

            @keyframes credit-process-title {
                0%, 16% {
                    color: #fff;
                }

                20%, 100% {
                    color: var(--process-deep);
                }
            }

            @keyframes credit-process-text {
                0%, 16% {
                    color: rgba(255, 255, 255, .84);
                }

                20%, 100% {
                    color: var(--process-muted);
                }
            }

            @media (max-width: 1050px) {
                .credit-process__steps {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }

                .credit-process__steps::before {
                    display: none;
                }

                .credit-process__step,
                .credit-process__step:nth-child(even) {
                    padding: 62px 0 0;
                }

                .credit-process__step:last-child {
                    grid-column: 1 / -1;
                }

                .credit-process__step:last-child .credit-process__card {
                    min-height: auto;
                }
            }

            @media (max-width: 720px) {
                .credit-process {
                    padding-block: 54px;
                }

                .credit-process__header {
                    grid-template-columns: 1fr;
                    gap: 20px;
                    margin-bottom: 34px;
                }

                .credit-process__intro {
                    padding-left: 18px;
                }

                .credit-process__steps {
                    grid-template-columns: 1fr;
                    gap: 18px;
                    padding-left: 76px;
                }

                .credit-process__steps::before {
                    display: block;
                    top: 16px;
                    bottom: 16px;
                    left: 27px;
                    right: auto;
                    width: 2px;
                    height: auto;
                    background: linear-gradient(180deg, var(--process-green), rgba(8, 113, 79, .15));
                }

                .credit-process__step,
                .credit-process__step:nth-child(even) {
                    padding: 0;
                }

                .credit-process__step:last-child {
                    grid-column: auto;
                }

                .credit-process__number {
                    top: 18px;
                    left: -76px;
                }

                .credit-process__card {
                    min-height: 0;
                }
            }


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 24px;

  margin-top: 14px;
  padding: 27px clamp(28px, 5vw, 80px);

  color: var(--white);
  background: linear-gradient(105deg, #003d2e, #00664a);
  border-radius: 34px 34px 0 0;
}

.footer-brand img {
  width: 180px;
  height: auto;
  max-height: 90px;
  padding: 0;

  background: transparent;
  border-radius: 0;

  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  margin: 9px 0 0;

  font-size: 12px;
  line-height: 1.55;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, .9vw, 30px);

  font-size: 13px;
}

.legal-nav .legal-nav__new-row {
  text-align: center;
}

.legal-nav button {
  padding: 6px 0;

  color: var(--white);
  background: transparent;
  border: 0;

  cursor: pointer;
}

.legal-nav a:hover,
.legal-nav button:hover {
  text-decoration: underline;
}

.regulators {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.regulators .footer-socials {
  grid-column: 1 / -1;
  justify-self: end;
}

.regulators > a {
  display: grid;
  place-items: center;

  width: 72px;
  height: 50px;
  padding: 6px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;

  transition: transform 0.2s ease;
}

.regulators > a:hover {
  transform: translateY(-3px);
}

.regulators > a img {
  display: block;

  width: auto;
  max-width: 100%;
  height: 34px;
  max-height: 100%;

  object-fit: contain;
}

/* =========================================================
   MODAL LEGAL
========================================================= */

body.modal-open {
  overflow: hidden;
}

.legal-modal {
  width: min(820px, calc(100% - 32px));
  max-height: 80vh;
  padding: 34px;

  border: 0;
  border-radius: 24px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.legal-modal::backdrop {
  background: rgba(0, 30, 22, 0.68);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: sticky;
  top: 0;

  float: right;

  width: 40px;
  height: 40px;

  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 50%;

  font-size: 25px;

  cursor: pointer;
}

.legal-modal h2 {
  margin-top: 0;
  color: var(--green-dark);
}

.legal-modal p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-modal b,
.legal-modal strong {
  color: #000000;
  font-weight: bolder;
}

/* =========================================================
   BOTÓN ACEPTAR DEL MODAL
========================================================= */

.legal-modal .close2 {
  display: flex;
  justify-content: flex-end;

  margin-top: 30px;
  padding-top: 22px;

  border-top: 1px solid rgba(8, 113, 79, 0.14);
}

.legal-modal .close2 .boxed-btn3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 145px;
  min-height: 48px;
  padding: 0 28px;

  color: #ffffff;
  background: linear-gradient(135deg, #08714f, #004f3a);

  border: 1px solid #08714f;
  border-radius: 9px;

  box-shadow: 0 8px 20px rgba(0, 79, 58, 0.18);

  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.legal-modal .close2 .boxed-btn3:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #006247, #003d2e);
  border-color: #004f3a;

  box-shadow: 0 12px 25px rgba(0, 79, 58, 0.25);

  transform: translateY(-2px);
}

.legal-modal .close2 .boxed-btn3:hover::after {
  transform: translateX(3px);
}

.legal-modal .close2 .boxed-btn3:active {
  box-shadow: 0 5px 12px rgba(0, 79, 58, 0.2);
  transform: translateY(0);
}

.legal-modal .close2 .boxed-btn3:focus-visible {
  outline: 3px solid #f4be4a;
  outline-offset: 4px;
}

/* =========================================================
   RESPONSIVE DEL FOOTER Y LOS MODALES
========================================================= */

@media (max-width: 1100px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .legal-nav {
    justify-content: flex-end;
  }

  .regulators {
    grid-column: 1 / -1;
    justify-content: center;
  }

.regulators .footer-socials {
  justify-self: center;
}
}

@media (max-width: 780px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand img {
    margin: auto;
    object-position: center;
  }

  .legal-nav {
    flex-direction: column;
    gap: 10px;
  }

  .regulators {
  grid-column: auto;
}

.regulators .footer-socials {
  justify-self: center;
}
}

@media (max-width: 520px) {
  .legal-modal .close2 {
    justify-content: stretch;
  }

  .legal-modal .close2 .boxed-btn3 {
    width: 100%;
  }
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-socials__title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-socials__links {
    display: flex;
    gap: 8px;
}

.footer-socials__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.footer-socials__links a:hover {
    color: #075747;
    background: #ffc653;
    border-color: #ffc653;
    transform: translateY(-3px);
}

.footer-socials__links svg {
    width: 18px;
    height: 18px;
}

/* =========================================================
   SECCIÓN DE DINÁMICAS
========================================================= */

.community-dynamics {
    position: relative;
    width: min(calc(100% - 32px), 1380px);
    margin: clamp(50px, 7vw, 90px) auto;
    padding: clamp(28px, 4vw, 54px);
    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(123, 201, 78, 0.18),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f4fbf7 0%,
            #eaf7f1 100%
        );

    border: 1px solid rgba(8, 113, 79, 0.16);
    border-radius: 32px;

    box-shadow: 0 20px 48px rgba(0, 79, 58, 0.09);
}

.community-dynamics::before {
    content: "";

    position: absolute;
    right: -110px;
    bottom: -140px;

    width: 340px;
    height: 340px;

    background: rgba(123, 201, 78, 0.1);
    border-radius: 50%;

    pointer-events: none;
}

.community-dynamics__inner {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(310px, 0.75fr);
    align-items: center;
    gap: clamp(28px, 4vw, 58px);
}

.community-dynamics__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 14px;

    color: #08714f;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.community-dynamics__eyebrow::before {
    content: "";

    width: 34px;
    height: 3px;

    background: #ffc653;
    border-radius: 999px;
}

.community-dynamics h2 {
    margin: 0 0 18px;

    color: #003d2e;

    font-size: clamp(2.1rem, 4.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.community-dynamics h2 span {
    color: #08714f;
}

.community-dynamics__lead {
    margin: 0 0 18px;

    color: #27332f;

    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.7;
}

.community-dynamics__copy {
    display: grid;
    gap: 13px;
}

.community-dynamics__copy p {
    margin: 0;

    color: #515b57;

    font-size: .94rem;
    line-height: 1.75;
}

.community-dynamics__highlight {
    padding: 15px 18px;

    background: rgba(255, 255, 255, 0.72);
    border-left: 5px solid #ffc653;
    border-radius: 0 16px 16px 0;

    box-shadow: 0 10px 24px rgba(0, 79, 58, 0.06);
}

.community-dynamics__copy .community-dynamics__closing {
    color: #004f3a;
    font-weight: 800;
}

.community-dynamics__social-card {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 100%;
    padding: clamp(24px, 3.2vw, 36px);
    overflow: hidden;

    color: #ffffff;
    background: linear-gradient(145deg, #08714f, #003d2e);

    border-radius: 26px;

    box-shadow: 0 20px 40px rgba(0, 61, 46, 0.2);
}

.community-dynamics__social-card::after {
    content: "";

    position: absolute;
    top: -80px;
    right: -70px;

    width: 210px;
    height: 210px;

    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;

    pointer-events: none;
}

.community-dynamics__social-card > * {
    position: relative;
    z-index: 1;
}

.community-dynamics__social-label {
    margin: 0 0 10px;

    color: #b7e59d;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.community-dynamics__social-card h3 {
    margin: 0 0 11px;

    color: #ffffff;

    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.12;
}

.community-dynamics__social-card
> p:not(.community-dynamics__social-label) {
    margin: 0 0 22px;

    color: rgba(255, 255, 255, 0.82);

    line-height: 1.65;
}

.community-dynamics__social-links {
    display: grid;
    gap: 10px;
}

.community-dynamics__social-link {
    display: flex;
    align-items: center;
    gap: 13px;

    min-height: 54px;
    padding: 8px 14px;

    color: #004f3a;
    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;

    font-size: 14px;
    font-weight: 800;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.community-dynamics__social-link:hover {
    color: #003d2e;
    background: #ffc653;

    transform: translateY(-3px);
}

.community-dynamics__social-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #08714f;
    background: #eaf7f1;

    border-radius: 50%;
}

.community-dynamics__social-link:hover
.community-dynamics__social-icon {
    background: rgba(255, 255, 255, 0.76);
}

.community-dynamics__social-icon svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .community-dynamics__inner {
        grid-template-columns: 1fr;
    }

    .community-dynamics__social-card {
        min-height: auto;
    }

    .community-dynamics__social-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .community-dynamics {
        width: min(calc(100% - 20px), 1380px);
        padding: 24px 18px;

        border-radius: 24px;
    }

    .community-dynamics__social-links {
        grid-template-columns: 1fr;
    }

    .community-dynamics__social-card {
        padding: 22px 18px;

        border-radius: 20px;
    }
}


@media (prefers-reduced-motion: reduce) {
  html {
      scroll-behavior: auto;
    }

  *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

  .partners-viewport {
      overflow-x: auto;
    }

  .partners-track {
      transform: none !important;
    }

  .credit-process__card {
                      transition: none;
                  }

  .credit-process__number,
                  .credit-process__card,
                  .credit-process__card::before,
                  .credit-process__card h3,
                  .credit-process__card p {
                      animation: none;
                  }

  .security-floating-button,
      .security-floating-button__arrow {
          transition: none;
      }
}

/*BOTON AFILIATE*/ 
.site-header .main-nav a.main-nav__affiliate,
.site-header .main-nav a.main-nav__affiliate:hover,
.site-header .main-nav a.main-nav__affiliate:focus,
.site-header .main-nav a.main-nav__affiliate:focus-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 225px;
    min-height: 46px;

    margin-left: 12px;
    padding: 11px 22px !important;

    box-sizing: border-box;

    color: #08714f;
    background: #ffffff;

    border: 2px solid #ffffff;
    border-radius: 999px;

    box-shadow: 0 8px 20px rgba(0, 61, 46, 0.25);

    font-weight: 800;
    line-height: 1;
    white-space: nowrap;

    transform: none !important;
}

.site-header .main-nav a.main-nav__affiliate:hover,
.site-header .main-nav a.main-nav__affiliate:focus-visible {
    padding: 11px 22px !important;

    color: #004f3a;
    background: #eaf7f1;
    border-color: #ffffff;

    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.24),
        0 0 0 4px rgba(255, 255, 255, 0.16);
}

.site-header .main-nav a.main-nav__affiliate::before,
.site-header .main-nav a.main-nav__affiliate::after {
    display: none !important;
}

@media (max-width: 900px) {
    .site-header .main-nav a.main-nav__affiliate {
        width: 100%;
        min-width: 0;
        margin: 12px 0 0;
    }
}

.afiliate-process__intro {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    width: fit-content;
    max-width: 760px;

    margin: 12px 0 22px;
    padding: 11px 18px;

    color: #004f3a;
    background: linear-gradient(
        135deg,
        #ffffff,
        #eaf7f1
    );

    border: 1px solid rgba(8, 113, 79, 0.3);
    border-radius: 999px;

    box-shadow:
        0 8px 20px rgba(0, 79, 58, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.afiliate-process__intro::before {
    content: "";

    flex: 0 0 auto;

    width: 10px;
    height: 10px;

    background: #08714f;
    border-radius: 50%;

    box-shadow: 0 0 0 5px rgba(8, 113, 79, 0.12);
}

.afiliate-process__intro {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


.afiliate-process__intro:hover {
    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #ffffff,
        #dff3e9
    );

    border-color: #08714f;

    box-shadow:
        0 14px 28px rgba(0, 79, 58, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.afiliate-process__intro::before {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.afiliate-process__intro:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 7px rgba(8, 113, 79, 0.14);
}

@media (max-width: 600px) {
    .afiliate-process__intro {
        width: 100%;
        padding: 11px 16px;
        border-radius: 18px;
    }
}

.testimonial-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;

    display: grid;
    place-items: center;

    overflow: hidden;
    border-radius: 20px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.testimonial-media::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.22);
    transition: background-color 0.3s ease;
}

.testimonial-media:hover::before {
    background: rgba(0, 0, 0, 0.35);
}

.testimonial-play {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 76px;
    height: 76px;
    padding: 0;

    color: #08714f;
    background: #ffffff;
    border: 0;
    border-radius: 50%;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    cursor: pointer;

    transition:
        transform 0.3s ease,
        color 0.3s ease,
        background-color 0.3s ease;
}

.testimonial-play svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
    fill: currentColor;
}

.testimonial-play:hover {
    color: #ffffff;
    background: #08714f;
    transform: scale(1.12);
}

/* Modal */
.testimonial-video-modal {
    width: min(920px, calc(100% - 32px));
    max-width: none;
    padding: 0;

    overflow: visible;
    background: transparent;
    border: 0;
}

.testimonial-video-modal::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
}

.testimonial-video-modal__content {
    position: relative;
    width: 100%;

    padding: 8px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.testimonial-video-modal__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;
    background: #000000;
    border-radius: 12px;
}

.testimonial-video-modal__player iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    border: 0;
}

.testimonial-video-modal__close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    padding: 0;

    color: #ffffff;
    background: #08714f;
    border: 3px solid #ffffff;
    border-radius: 50%;

    font-size: 28px;
    line-height: 1;
    cursor: pointer;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.testimonial-video-modal__close:hover {
    background: #004f3a;
}

@media (max-width: 600px) {
    .testimonial-play {
        width: 62px;
        height: 62px;
    }

    .testimonial-play svg {
        width: 28px;
        height: 28px;
    }

    .testimonial-video-modal__close {
        top: -14px;
        right: -8px;
    }
}

.floating-buttons {
    position: fixed;
    right: 22px;
    bottom: 25px;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-button {
    width: 56px;
    height: 56px;

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

    overflow: hidden;

    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;

    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);

    transition:
        width 0.4s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}



.floating-button--security {
    background: #08714f;
}

.floating-button__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    font-size: 24px;
}

.floating-button__text {
    padding-left: 20px;

    font-size: 14px;
    font-weight: 700;

    opacity: 0;
    transform: translateX(15px);

    transition:
        opacity 0.25s ease 0.1s,
        transform 0.3s ease 0.1s;
}

.floating-button:hover,
.floating-button:focus-visible {
    width: 230px;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.floating-button:hover .floating-button__text,
.floating-button:focus-visible .floating-button__text {
    opacity: 1;
    transform: translateX(0);
}

/* Ajuste para celular */
@media (max-width: 600px) {
    .floating-buttons {
        right: 14px;
        bottom: 18px;
    }

    .floating-button:hover,
    .floating-button:focus-visible {
        width: 210px;
    }
}




/* =========================================================
   SIMULADOR DE CRÉDITO
========================================================= */

.simulator-wrap {
    --sim-green: #087652;
    --sim-dark: #00583f;
    --sim-ink: #0c211b;
    --sim-line: #cbd9d4;
    --sim-mint: #f2f9f6;
    --sim-white: #ffffff;

    isolation: isolate;
    width: 100%;
    padding: 70px clamp(18px, 5vw, 80px);

    color: var(--sim-ink);
    background:
        linear-gradient(
            180deg,
            #8da39b 0,
            #edf7f3 17%,
            #f5fbf8 100%
        );

    font-family: Manrope, Arial, sans-serif;
}

.simulator-wrap,
.simulator-wrap *,
.simulator-wrap *::before,
.simulator-wrap *::after {
    box-sizing: border-box;
}

.simulator-wrap button,
.simulator-wrap select,
.simulator-wrap input {
    margin: 0;
    font: inherit;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.simulator-wrap .simulator-heading {
    max-width: 900px;
    margin: 0 auto 46px;
    text-align: center;
}

.simulator-wrap .eyebrow {
    margin: 0;

    color: var(--sim-green);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.simulator-wrap .simulator-heading h2 {
    margin: 4px 0 16px;

    color: var(--sim-ink);

    font-size: clamp(40px, 4vw, 62px);
    font-weight: 800;
    line-height: 1;
}

.simulator-wrap .simulator-heading > p:last-child {
    margin: 0;

    color: #4d5d58;

    font-size: 18px;
    line-height: 1.5;
}


/* =========================================================
   TARJETA PRINCIPAL
========================================================= */

.simulator-wrap .simulator-card {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);

    width: min(92%, 1600px);
    margin: auto;

    overflow: hidden;

    background: var(--sim-white);
    border: 1px solid var(--sim-line);
    border-radius: 32px;

    box-shadow: 0 20px 55px rgba(31, 80, 66, 0.08);
}


/* =========================================================
   CONTROLES
========================================================= */

.simulator-wrap .controls {
    min-width: 0;
    padding: 66px clamp(36px, 5vw, 66px);
}

.simulator-wrap .controls > label,
.simulator-wrap .label-row label,
.simulator-wrap .interest-field label,
.simulator-wrap fieldset legend {
    color: var(--sim-ink);
    font-size: 16px;
    font-weight: 800;
}

.simulator-wrap .controls select {
    width: 100%;
    height: 65px;
    margin: 11px 0 40px;
    padding: 0 24px;

    color: #111111;
    background: var(--sim-white);
    border: 1px solid var(--sim-line);
    border-radius: 12px;

    font-size: 17px;
    cursor: pointer;
}

.simulator-wrap .controls select:focus-visible {
    border-color: var(--sim-green);
    outline: 3px solid rgba(8, 118, 82, 0.18);
    outline-offset: 2px;
}

.simulator-wrap .interest-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;

    margin: -15px 0 36px;
    padding: 16px 20px;

    background: #f5faf8;
    border: 1px solid var(--sim-line);
    border-radius: 12px;
}

.simulator-wrap .interest-field label {
    font-size: 15px;
}

.simulator-wrap .interest-field input {
    width: 120px;
    padding: 10px 12px;

    color: var(--sim-green);
    background: var(--sim-white);
    border: 1px solid var(--sim-line);
    border-radius: 8px;

    font-size: 17px;
    font-weight: 800;
    text-align: center;
}

.simulator-wrap .interest-field input:focus {
    outline: none;
}

.simulator-wrap .label-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 12px;
}

.simulator-wrap .label-row output {
    color: var(--sim-green);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.simulator-wrap input[type="range"] {
    width: 100%;
    height: 8px;
    margin: 0;

    accent-color: var(--sim-green);
    cursor: pointer;
}

.simulator-wrap .range-labels {
    display: flex;
    justify-content: space-between;

    margin-top: 9px;

    color: #586661;
    font-size: 13px;
}

.simulator-wrap fieldset {
    min-width: 0;
    margin: 38px 0 34px;
    padding: 0;
    border: 0;
}

.simulator-wrap fieldset legend {
    width: 100%;
    margin-bottom: 12px;
    padding: 0;
}

.simulator-wrap .term-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.simulator-wrap .term-grid button {
    appearance: none;
    min-height: 55px;
    padding: 8px;

    color: var(--sim-ink);
    background: var(--sim-white);
    border: 1px solid var(--sim-line);
    border-radius: 11px;

    font-weight: 800;
    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.simulator-wrap .term-grid button:hover {
    color: var(--sim-green);
    border-color: var(--sim-green);
    transform: translateY(-1px);
}

.simulator-wrap .term-grid button.selected {
    color: var(--sim-white);
    background: var(--sim-green);
    border-color: var(--sim-green);
}

.simulator-wrap .term-grid button:focus-visible {
    outline: 3px solid rgba(8, 118, 82, 0.22);
    outline-offset: 3px;
}


/* =========================================================
   RESULTADO
========================================================= */

.simulator-wrap .result {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 62px clamp(38px, 4vw, 62px);

    color: var(--sim-white);
    background: linear-gradient(145deg, #087956, #005a42);
}

.simulator-wrap .result > p:first-child {
    margin: 0 0 10px;
    font-size: 17px;
}

.simulator-wrap .result > strong {
    color: var(--sim-white);
    font-size: clamp(52px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.simulator-wrap .result > span {
    margin: 12px 0 32px;
    font-size: 17px;
}

.simulator-wrap .detail-button,
.simulator-wrap .contact-button {
    appearance: none;
    width: 100%;
    min-height: 62px;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    color: #075d45;
    background: var(--sim-white);
    border: 2px solid var(--sim-white);
    border-radius: 10px;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;

    cursor: pointer;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.simulator-wrap .detail-button:hover,
.simulator-wrap .contact-button:hover {
    color: #064d39;
    background: #e9f7f1;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.simulator-wrap .detail-button:active,
.simulator-wrap .contact-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.simulator-wrap .detail-button:focus-visible,
.simulator-wrap .contact-button:focus-visible {
    outline: 3px solid #8ee2c6;
    outline-offset: 4px;
}

.simulator-wrap .result-disclaimer {
    margin: 22px 0 0;

    color: var(--sim-white);
    font-size: 12px;
    line-height: 1.55;
    text-align: justify;
}

.simulator-wrap .result-disclaimer a {
    color: #a9e8ff;
    font-weight: 800;
    text-underline-offset: 3px;
}

.simulator-wrap .result-disclaimer a:hover {
    color: var(--sim-white);
}

.simulator-wrap .result > p:empty {
    display: none;
}

.simulator-wrap .contact-button {
    margin-top: 22px;
}


/* =========================================================
   PANTALLAS GRANDES
========================================================= */

@media (min-width: 2200px) {
    .simulator-wrap {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .simulator-wrap .simulator-heading {
        max-width: 1200px;
        margin-bottom: 55px;
    }

    .simulator-wrap .eyebrow {
        font-size: 16px;
    }

    .simulator-wrap .simulator-heading h1 {
        font-size: 72px;
    }

    .simulator-wrap .simulator-heading > p:last-child {
        font-size: 23px;
    }

    .simulator-wrap .simulator-card {
        width: min(82%, 2200px);
        min-height: 760px;
        grid-template-columns: minmax(0, 1.65fr) minmax(500px, 1fr);
    }

    .simulator-wrap .controls {
        padding: 85px clamp(60px, 5vw, 100px);
    }

    .simulator-wrap .controls > label,
    .simulator-wrap .label-row label,
    .simulator-wrap fieldset legend {
        font-size: 20px;
    }

    .simulator-wrap .controls select {
        height: 78px;
        font-size: 21px;
    }

    .simulator-wrap .label-row output {
        font-size: 38px;
    }

    .simulator-wrap input[type="range"] {
        height: 12px;
    }

    .simulator-wrap .range-labels {
        font-size: 17px;
    }

    .simulator-wrap .term-grid button {
        min-height: 68px;
        font-size: 18px;
    }

    .simulator-wrap .result {
        padding: 80px clamp(55px, 4vw, 90px);
    }

    .simulator-wrap .result > p:first-child {
        font-size: 22px;
    }

    .simulator-wrap .result > strong {
        font-size: 82px;
    }

    .simulator-wrap .result > span {
        font-size: 21px;
    }

    .simulator-wrap .detail-button,
    .simulator-wrap .contact-button {
        min-height: 75px;
        padding: 20px 28px;
        font-size: 20px;
    }

    .simulator-wrap .result-disclaimer {
        font-size: 15px;
    }
}


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

@media (max-width: 1200px) {
    .simulator-wrap {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .simulator-wrap .simulator-heading {
        margin-bottom: 28px;
    }

    .simulator-wrap .simulator-heading h1 {
        font-size: 40px;
    }

    .simulator-wrap .simulator-card {
        grid-template-columns: 1fr;
        width: 100%;
        border-radius: 22px;
    }

    .simulator-wrap .controls,
    .simulator-wrap .result {
        padding: 38px 28px;
    }

    .simulator-wrap .term-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .simulator-wrap .detail-button {
        margin-top: 15px;
    }
}


/* =========================================================
   TELÉFONOS
========================================================= */

@media (max-width: 520px) {
    .simulator-wrap {
        padding: 46px 12px;
    }

    .simulator-wrap .simulator-heading h1 {
        font-size: 34px;
    }

    .simulator-wrap .controls,
    .simulator-wrap .result {
        padding: 30px 20px;
    }

    .simulator-wrap .interest-field {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .simulator-wrap .interest-field input {
        width: 100%;
        text-align: left;
    }

    .simulator-wrap .label-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .simulator-wrap .label-row output {
        font-size: 23px;
    }

    .simulator-wrap .term-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .simulator-wrap .detail-button,
    .simulator-wrap .contact-button {
        min-height: 58px;
        padding: 16px 18px;
        font-size: 15px;
    }
}


/* =========================================================
   MODAL DE TABLA DE PAGOS
========================================================= */

.payment-modal,
.payment-modal *,
.payment-modal *::before,
.payment-modal *::after {
    box-sizing: border-box;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: grid;
    place-items: center;

    width: 100%;
    height: 100%;
    padding: 24px;

    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
}

.payment-modal[hidden] {
    display: none !important;
}

.payment-modal .modal-panel {
    position: relative;

    width: min(100%, 1000px);
    max-height: calc(100vh - 48px);
    padding: 32px;

    overflow: hidden;

    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.payment-modal .modal-panel h2 {
    margin: 0 50px 24px 0;

    color: #004f3a;
    font-family: Manrope, Arial, sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.payment-modal .table-scroll {
    width: 100%;
    max-height: calc(100vh - 170px);
    overflow: auto;
}

.payment-modal table {
    width: 100%;
    border-collapse: collapse;

    font-family: Manrope, Arial, sans-serif;
}

.payment-modal th,
.payment-modal td {
    padding: 13px 16px;

    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid #dce6e2;
}

.payment-modal th:first-child,
.payment-modal td:first-child {
    text-align: center;
}

.payment-modal th {
    color: #ffffff;
    background: #08714f;
}

.payment-modal .modal-close {
    appearance: none;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;

    color: #ffffff;
    background: #08714f;
    border: 0;
    border-radius: 50%;

    font: 28px/1 Manrope, Arial, sans-serif;
    cursor: pointer;
}

.payment-modal .modal-close:hover {
    background: #004f3a;
}

@media (max-width: 700px) {
    .payment-modal {
        padding: 14px;
    }

    .payment-modal .modal-panel {
        max-height: calc(100vh - 28px);
        padding: 24px 16px;
        border-radius: 14px;
    }

    .payment-modal .table-scroll {
        max-height: calc(100vh - 135px);
    }
}


@media (prefers-reduced-motion: reduce) {
    .simulator-wrap *,
    .payment-modal * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   BOTONES FLOTANTES
========================================================= */
:root {
    --branches-green: #08714f;
    --branches-dark: #004f3a;
    --branches-deep: #003d2e;
    --branches-mint: #eaf7f1;
    --branches-line: #ccdad4;
    --branches-muted: #59635f;
    --branches-white: #ffffff;
}

.branches-float,
.security-floating-button{
    position: fixed;
    left: 5px;
    z-index: 50;

    width: 56px;
    height: 56px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;

    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;

    color: var(--branches-white);
    background: linear-gradient(135deg, var(--branches-green), var(--branches-dark));

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;

    box-shadow:
        0 12px 30px rgba(0, 61, 46, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    font-family: Manrope, sans-serif;
    text-decoration: none;

    cursor:pointer;

    transition: width 0.4s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}

.preregistro-float{
  position: fixed;
  left:auto;
  flex-direction: row-reverse;
    right: 5px;
    z-index: 50;

    width: 56px;
    height: 56px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;

    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;

    color: var(--branches-white);
    background: linear-gradient(135deg, var(--branches-green), var(--branches-dark));

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;

    box-shadow:
        0 12px 30px rgba(0, 61, 46, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    font-family: Manrope, sans-serif;
    text-decoration: none;

    cursor:pointer;

    transition: width 0.4s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;  
}
/* =========================================================
  BOTÓN FLOTANTE DE WHATSAPP
========================================================= */
.floating-button--whatsapp {
    background: #25d366;
}
.whatsapp-btn {
    position: fixed;
    z-index: 19;
    right: 5px;
    bottom: 50px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.28);
}

.whatsapp-btn img { width: 32px; height: 32px; }
/*---------FIN WHATSAPP---------------*/


/* =========================================================
  BOTÓN FLOTANTE DE PREREGISTRO
========================================================= */

.preregistro-float {
    bottom: 110px;
}

.preregistro-float svg {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 16px;

    fill: currentColor;
    box-sizing: border-box;
}

.preregistro-float span{
    flex: 0 0 112px;
    padding-right: 18px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    opacity: 0;
    transform: translateX(-12);
    transition:
        opacity 0.25s ease 0.1s,
        transform 0.3s ease 0.1s;
}

.preregistro-float:hover,
.preregistro-float:focus-visible{
    width: 168px;
    transform: translateY(-3px);
    background: linear-gradient(
        135deg,
        #09966a,
        var(--branches-green)
        );
    box-shadow:
        0 16px 36px rgba(0, 61, 46, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.preregistro-float:hover span,
.preregistro-float:focus-visible span{
    opacity: 1;
    transform: translateX(0);
}

.preregistro-float:focus-visible{
    outline: 3px solid rgba(8, 113, 79, 0.3);
    outline-offset: 4px;
}



/* BOTÓN FLOTANTE SUCURSALES */

.branches-float {
    bottom: 50px;
}

.branches-float svg {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 16px;

    fill: currentColor;
    box-sizing: border-box;
}

.branches-float span{
    flex: 0 0 112px;
    padding-right: 18px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    opacity: 0;
    transform: translateX(-12);
    transition:
        opacity 0.25s ease 0.1s,
        transform 0.3s ease 0.1s;
}

.branches-float:hover,
.branches-float:focus-visible{
    width: 168px;
    transform: translateY(-3px);
    background: linear-gradient(
        135deg,
        #09966a,
        var(--branches-green)
        );
    box-shadow:
        0 16px 36px rgba(0, 61, 46, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.branches-float:hover span,
.branches-float:focus-visible span{
    opacity: 1;
    transform: translateX(0);
}

.branches-float:focus-visible{
    outline: 3px solid rgba(8, 113, 79, 0.3);
    outline-offset: 4px;
}

/* BOTÓN FLOTANTE TIPS DE SEGURIDAD */

.security-floating-button {
    bottom: 110px;

    width: 66px;
    height: 66px;
    padding: 8px;

    gap: 12px;

    overflow: hidden;
    isolation: isolate;

    background: linear-gradient(
        135deg,
        #08714f 0%,
        #006047 55%,
        #176946 100%
    );

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    box-shadow:
        0 16px 34px rgba(0, 61, 46, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


.security-floating-button::before {
    content: "";

    position: absolute;
    top: -70px;
    right: 35px;
    z-index: 0;

    width: 130px;
    height: 130px;

    background: rgba(244, 190, 74, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

.security-floating-button::after {
    content: "";

    position: absolute;
    right: -75px;
    bottom: -115px;
    z-index: 0;

    width: 200px;
    height: 200px;

    background: rgba(0, 44, 33, 0.17);
    border-radius: 50%;

    pointer-events: none;
}

.security-floating-button__icon {
    position: relative;
    z-index: 1;

    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    color: var(--branches-dark);
    background: var(--branches-white);
    border-radius: 50%;

    box-shadow: 0 5px 15px rgba(0, 35, 26, 0.2);
}

.security-floating-button__icon::after {
    content: "";

    position: absolute;
    top: 4px;
    right: 4px;

    width: 9px;
    height: 9px;

    background: #f4be4a;
    border: 2px solid var(--branches-white);
    border-radius: 50%;
}

.security-floating-button__icon svg {
    width: 29px;
    height: 29px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-floating-button__content {
    position: relative;
    z-index: 1;

    flex: 0 0 205px;

    padding-right: 16px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1.08;

    opacity: 0;
    transform: translateX(-12px);

    transition:
        opacity 0.25s ease 0.12s,
        transform 0.3s ease 0.12s;
}

.security-floating-button__content small {
    color: rgba(255, 255, 255, 0.72);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.security-floating-button__content strong {
    margin-top: 2px;

    color: var(--branches-white);

    font-size: 19px;
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
}

.security-floating-button:hover,
.security-floating-button:focus-visible {
    width: 292px;

    transform: translateY(-3px);

    background: linear-gradient(
        135deg,
        #08714f 0%,
        #006047 55%,
        #176946 100%
    );

    box-shadow:
        0 20px 42px rgba(0, 61, 46, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.security-floating-button:hover
.security-floating-button__content,
.security-floating-button:focus-visible
.security-floating-button__content {
    opacity: 1;
    transform: translateX(0);
}

.security-floating-button:focus-visible {
    outline: 3px solid rgba(244, 190, 74, 0.55);
    outline-offset: 4px;
}

/* MODAL */

.branches-modal {
    width: min(760px, calc(100% - 32px));
    max-height: 86vh;
    margin: auto;
    padding: 0;

    color: #101413;
    background: var(--branches-white);

    border: 0;
    border-radius: 20px;

    box-shadow: 0 28px 80px rgba(0, 38, 28, 0.3);
    overflow: hidden;

    font-family: Manrope, sans-serif;
}

.branches-modal::backdrop {
    background: rgba(0, 26, 19, 0.7);
    backdrop-filter: blur(3px);
}

.branches-modal[open] {
    animation: branchesModalShow 0.25s ease;
}

@keyframes branchesModalShow {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.branches-modal,
.branches-modal * {
    box-sizing: border-box;
}


/* ENCABEZADO DEL MODAL */

.branches-modal__header {
    position: relative;

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

    min-height: 96px;
    padding: 24px 70px;

    border-bottom: 1px solid #edf2ef;
}

.branches-modal__header h2 {
    margin: 0;

    color: var(--branches-deep);

    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.branches-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;
    padding: 0;

    color: var(--branches-deep);
    background: var(--branches-white);

    border: 1px solid var(--branches-green);
    border-radius: 50%;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.branches-modal__close:hover {
    color: var(--branches-white);
    background: var(--branches-green);
    transform: rotate(90deg);
}


/* CONTENIDO */

.branches-modal__body {
    max-height: calc(86vh - 96px);
    padding: 24px 28px 30px;
    overflow-y: auto;
}


/* BUSCADOR */

.branches-search {
    position: relative;
}

.branches-search svg {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);

    width: 21px;
    height: 21px;

    fill: var(--branches-muted);
    pointer-events: none;
}

.branches-search input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 50px;

    color: #101413;
    background: var(--branches-white);

    border: 1px solid var(--branches-line);
    border-radius: 10px;
    outline: none;

    font: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.branches-search input:focus {
    border-color: var(--branches-green);
    box-shadow: 0 0 0 4px rgba(8, 113, 79, 0.12);
}


/* FILTROS */

.branches-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 18px 0 24px;
}

.branches-filter {
    min-width: 130px;
    padding: 10px 20px;

    color: var(--branches-dark);
    background: var(--branches-mint);

    border: 1px solid transparent;
    border-radius: 999px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.branches-filter:hover,
.branches-filter.is-active {
    color: var(--branches-white);
    background: var(--branches-green);
    border-color: var(--branches-green);
}


/* TARJETAS */

.branches-list {
    display: grid;
    gap: 16px;
}

.branch-card {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(175px, 0.75fr)
        130px;

    align-items: center;
    gap: 20px;

    padding: 20px;

    background: var(--branches-white);
    border: 1px solid var(--branches-line);
    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(0, 61, 46, 0.06);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.branch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 113, 79, 0.5);
    box-shadow: 0 10px 24px rgba(0, 61, 46, 0.1);
}

.branch-card__location {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.branch-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    color: var(--branches-green);
    background: var(--branches-mint);
    border-radius: 50%;
}

.branch-card__icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.branch-card h3 {
    margin: 0 0 6px;

    color: var(--branches-green);

    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.branch-card p {
    margin: 0;

    color: var(--branches-muted);

    font-size: 13px;
    line-height: 1.55;
}

.branch-card__contact {
    padding-left: 20px;
    border-left: 1px solid var(--branches-line);
}

.branch-card__contact a {
    display: inline-block;
    margin-bottom: 8px;

    color: var(--branches-dark);

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.branch-card__contact a:hover {
    color: var(--branches-green);
    text-decoration: underline;
}

.branch-card__actions {
    display: grid;
    gap: 9px;
}

.branch-card__button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 9px 13px;

    border: 1px solid var(--branches-green);
    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.branch-card__button--primary {
    color: var(--branches-white);
    background: var(--branches-green);
}

.branch-card__button--primary:hover {
    background: var(--branches-dark);
}

.branch-card__button--outline {
    color: var(--branches-green);
    background: var(--branches-white);
}

.branch-card__button--outline:hover {
    color: var(--branches-white);
    background: var(--branches-green);
}

.branches-empty {
    margin: 24px 0 0;
    padding: 18px;

    color: var(--branches-muted);
    background: var(--branches-mint);
    border-radius: 10px;

    text-align: center;
}

.branches-empty[hidden],
.branch-card[hidden] {
    display: none;
}


/* RESPONSIVE */

@media (max-width: 760px) {
 .branches-float {
        left: 16px;
        bottom: 16px;

        width: 52px;
        height: 52px;
        padding: 0;
    }

    .branches-float svg {
        flex-basis: 52px;

        width: 52px;
        height: 52px;
    }

    .branches-float:hover,
    .branches-float:focus-visible {
        width: 164px;
    }

    .security-floating-button {
        left: 16px;
        bottom: 80px;

        width: 58px;
        height: 58px;
        padding: 7px;

        gap: 11px;
    }

    .security-floating-button__icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .security-floating-button__icon svg {
        width: 25px;
        height: 25px;
    }

    .security-floating-button__content {
        flex-basis: 195px;
    }

    .security-floating-button__content small {
        font-size: 9px;
    }

    .security-floating-button__content strong {
        font-size: 17px;
    }

    .security-floating-button:hover,
    .security-floating-button:focus-visible {
        width: 270px;
    }

    
    
    .branches-modal__header {
        min-height: 82px;
        padding: 20px 60px 20px 20px;
        justify-content: flex-start;
    }

    .branches-modal__header h2 {
        font-size: 24px;
        text-align: left;
    }

    .branches-modal__close {
        top: 18px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .branches-modal__body {
        max-height: calc(92vh - 82px);
        padding: 20px 16px 24px;
    }

    .branches-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .branches-filter {
        min-width: max-content;
    }

    .branch-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .branch-card__contact {
        padding: 14px 0 0;
        border-top: 1px solid var(--branches-line);
        border-left: 0;
    }

    .branch-card__actions {
        grid-template-columns: 1fr 1fr;
    }

    .branches-float {
        left: 16px;
        bottom: 16px;
        min-height: 50px;
        padding: 11px 18px;
    }
}

@media (max-width: 420px) {
    .branch-card__actions {
        grid-template-columns: 1fr;
    }
    .whatsapp-btn { right: 16px; bottom: 16px; }


}