:root {
  --green: #08714f;
  --green-dark: #004f3a;
  --green-deep: #003d2e;
  --mint: #eaf7f1;
  --mint-light: #f4fbf7;
  --ink: #101413;
  --muted: #56625d;
  --line: #cfddd7;
  --white: #ffffff;
  --danger: #b42318;
  --gold: #f4be4a;
  --shadow: 0 24px 64px rgba(0, 61, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7faf8;
  font-family: "Manrope", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}
.FAQ span{
    display: block;
}
img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

.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 {
  margin-left: auto;

  display: flex;
  align-items: center;

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

.main-nav a {
  position: relative;

  padding: 0;

  color: #ffffff;

  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

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

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

  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 {
  width: 24px;
}

.menu-toggle {
  display: none;

  margin-left: auto;
  padding: 8px;

  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;
}

.registration-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  min-height: 100vh;
  padding: calc(clamp(50px, 7vw, 100px) + 96px) max(24px, calc((100vw - 1420px) / 2)) clamp(50px, 7vw, 100px);
  background:
    radial-gradient(circle at 12% 82%, rgba(8, 113, 79, 0.13), transparent 30%),
    linear-gradient(120deg, #eef8f3 0 52%, #ffffff 52% 100%);
}

.registration-intro {
  max-width: 620px;
}

.eyebrow,
.form-heading > p {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.registration-intro h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.registration-intro h1 span {
  color: var(--green);
}

.registration-lead {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.registration-benefits {
  display: grid;
  gap: 13px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.registration-benefits li {
  position: relative;
  padding-left: 32px;
  font-weight: 700;
}

.registration-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
}

.contact-summary {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-summary p {
  margin: 5px 0;
  color: var(--muted);
}

.contact-summary strong {
  margin-right: 10px;
  color: var(--ink);
}

.contact-summary a:hover {
  color: var(--green);
  text-decoration: underline;
}

.registration-card {
  width: 100%;
  max-width: 720px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.form-heading {
  margin-bottom: 30px;
}

.form-heading h2 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.035em;
}

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

.registration-form {
  display: grid;
  gap: 28px;
}

.registration-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.registration-form legend {
  width: 100%;
  margin-bottom: 17px;
  padding-bottom: 10px;
  color: var(--green-dark);
  border-bottom: 1px solid #e1e9e5;
  font-size: 16px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
    align-items: start;

}

.form-field {
  display: grid;
  gap: 7px;
    grid-template-rows: auto auto auto;
  align-content: start;
}

.form-field--full {
  margin-top: 18px;
}

.form-field label {
  font-size: 13px;
  font-weight: 800;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #bbcfc6;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-field input:user-invalid {
  border-color: var(--danger);
}

.form-field small {
  color: var(--muted);
  font-size: 11px;
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.consent-field input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.consent-field a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
}

.submit-button {
  min-height: 54px;
  padding: 0 25px;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.submit-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.form-notice {
  margin: -13px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}



a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #00a878;
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .registration-hero {
    grid-template-columns: 1fr;
    background: linear-gradient(180deg, #eef8f3, #ffffff);
  }

  .registration-intro,
  .registration-card {
    max-width: 760px;
    margin-inline: auto;
  }

}

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

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

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

@media (max-width: 1200px) {
  .site-header,
  .site-header.is-scrolled {
    height: 98px;
    padding: 0 20px;
    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%;
    left: 0;

    width: 100%;
    margin-left: 0;

    display: none;
    flex-direction: column;

    gap: 0;
    padding: 12px 20px;

    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;
    text-align: center;
  }

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

@media (max-width: 780px) {
  .registration-hero {
    min-height: 0;
    padding: 120px 18px 60px;
  }

  .registration-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

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

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


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

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

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

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

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

  background: transparent;
  border-radius: 0;

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

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

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

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 1vw, 38px);

  font-size: 14px;
}

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

.legal-nav button {
  padding: 8px 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, 82px);
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

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

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

  width: 82px;
  height: 56px;
  padding: 7px;

  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: 38px;
  max-height: 100%;

  object-fit: contain;
}

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

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

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

.footer-socials__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    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: 21px;
    height: 21px;
}


/* =========================================================
   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 {
  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%;
  }
}

/*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;
    }
}

/* =========================================================
   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; }


}