:root {
    --green-deep: #003f2f;
    --green-dark: #00533e;
    --dark: #00583f;
    --green: #087652;
    --green-bright: #19c875;
    --lime: #b9df45;
    --ink: #10251f;
    --muted: #5b6c66;
    --line: #d6e2dd;
    --soft: #f2f7f4;
    --white: #ffffff;
    --shadow: 0 22px 55px rgba(0, 63, 47, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Manrope", system-ui, sans-serif;
}
a {  text-decoration: none; }
a:hover { text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.FAQ span{
    display: block;
}
/* =========================================
   HEADER 
========================================= */
.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;
    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;
}

.social-nav { display: none; }

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px;
    background: #ffffff;
}
.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%);
}

.contact-hero {
    position: relative;
    min-height: 500px;
    margin-top: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--green-deep) url("../images/contactoimg.jpg") center 42% / cover no-repeat;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,35,27,.93) 0%, rgba(0,53,39,.72) 48%, rgba(0,53,39,.16) 100%);
}
.contact-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -40%;
    width: 420px;
    aspect-ratio: 1;
    border: 34px solid rgba(185,223,69,.78);
    border-radius: 50%;
}
.hero-copy {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 76px auto 0;
}
.eyebrow {
    margin: 0 0 13px;
    color: #28e08b;
    font-size: 13px;
    letter-spacing: .08em;
}
.eyebrow.green { color: var(--green); }
.hero-copy h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 1;
    font-weight: 820;
}
.hero-copy > p:last-child {
    max-width: 640px;
    margin: 25px 0 0;
    color: rgba(255,255,255,.9);
    font-size: 18px;
    line-height: 1.7;
}

.contact-layout {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: -70px auto 90px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 28px;
    align-items: stretch;
}
.contact-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(214,226,221,.9);
    border-radius: 25px;
    box-shadow: var(--shadow);
}
.form-card { padding: clamp(32px, 5vw, 62px); }
.section-heading { max-width: 650px; margin-bottom: 34px; }
.section-heading h2 {
    margin: 0;
    color: var(--green-deep);
    font-size: clamp(30px, 3.4vw, 47px);
    line-height: 1.12;
}
.section-heading > p:last-child {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.7;
}
#contactForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.full-field { grid-column: 1 / -1; }
.field label {
    margin: 0;
    color: var(--green-deep);
    font-size: 14px;
    font-weight: 750;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 17px;
    color: var(--ink);
    background: #fbfdfc;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 145px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(8,118,82,.09);
}
.help-block { margin: 0; }
.form-actions { padding-top: 5px; }
#enviar {
    min-width: 180px;
    min-height: 54px;
    padding: 0 30px;
    color: var(--white);
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
#enviar:hover {
    color: var(--green);
    background: var(--white);
    transform: translateY(-2px);
}
.details-card { background: var(--green-deep); color: var(--white); }
.details-photo { height: 235px; overflow: hidden; }
.details-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-detail {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 25px 28px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.contact-detail:last-child { border-bottom: 0; }
.detail-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--green-deep);
    background: var(--lime);
    border-radius: 50%;
    font-size: 19px;
}
.contact-detail h3 {
    margin: 2px 0 8px;
    color: var(--white);
    font-size: 16px;
    line-height: 1.35;
}
.contact-detail p,
.contact-detail a {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.contact-detail a[href^="tel:"],
.contact-detail a[href^="mailto:"] {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    background: var(--lime);
    border: 1px solid var(--lime);
    border-radius: 8px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-detail a[href^="tel:"]:hover,
.contact-detail a[href^="mailto:"]:hover {
    color: var(--green-deep);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.contact-detail a[href^="tel:"]:focus-visible,
.contact-detail a[href^="mailto:"]:focus-visible {
    outline: 3px solid rgba(185, 223, 69, 0.38);
    outline-offset: 3px;
}
.gallery { display: none; }


/* =========================================
   RESPONSIVE DEL HEADER Y CONTACTO
========================================= */
@media (min-width: 2200px) {
    .site-header {
        height: 120px;
        padding-right: 5vw;
        padding-left: 5vw;
    }
    .site-header.is-scrolled { height: 95px; }
    .brand img { width: 150px; max-height: 85px; }
}

@media (max-width: 1050px) {
    .contact-layout { grid-template-columns: 1fr; }
    .details-card { display: grid; grid-template-columns: repeat(3, 1fr); }
    .details-photo { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
    .site-header {
        height: 98px;
        padding: 0 20px;
        background: rgba(0, 73, 52, 0.92);
    }
    .site-header.is-scrolled { height: 98px; }
    .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,
    .main-nav.show { display: flex; }
    .main-nav a {
        width: 100%;
        padding: 13px;
        text-align: center;
    }
    .main-nav a::after { display: none; }
    .contact-hero { min-height: 450px; }
    .details-card { grid-template-columns: 1fr; }
    .details-photo { grid-column: auto; }
    .brand img,
  .site-header.is-scrolled .brand img {
       width: clamp(210px, 24vw, 270px);
    height: auto;
    max-width: none;
    max-height: none;
  }
}

@media (max-width: 640px) {
    .contact-hero::after { display: none; }
    .hero-copy { width: calc(100% - 36px); }
    .hero-copy > p:last-child { font-size: 16px; }
    .contact-layout {
        width: calc(100% - 28px);
        margin-top: -42px;
        margin-bottom: 60px;
    }
    .form-card { padding: 29px 20px; }
    #contactForm { grid-template-columns: 1fr; }
    .field,
    .full-field { grid-column: 1; }
    #enviar { width: 100%; }
}

.loader-correo {
    position: fixed;
    z-index: 20000;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;

    color: #ffffff;
    background: rgba(0, 35, 27, 0.78);
}

.loader-correo__spinner {
    width: 58px;
    height: 58px;

    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #b9df45;
    border-radius: 50%;

    animation: girarLoader 0.8s linear infinite;
}

.loader-correo p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

@keyframes girarLoader {
    to {
        transform: rotate(360deg);
    }
}


@media (min-width: 1800px) {
    .site-header {
        height: clamp(96px, 5vw, 260px);
        padding-inline: clamp(80px, 4.7vw, 360px);
    }

    .site-header.is-scrolled {
        height: clamp(76px, 4vw, 210px);
    }

    .brand img {
        width: clamp(172px, 8.8vw, 460px);
        max-height: none;
    }

    .main-nav {
        gap: clamp(20px, 1.45vw, 96px);
        font-size: clamp(16px, 0.78vw, 42px);
    }

    .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 {
        font-size: clamp(16px, 0.78vw, 42px);
    }

    .main-nav a::after {
        bottom: clamp(-22px, -0.7vw, -14px);
        height: clamp(3px, 0.16vw, 8px);
    }

    .main-nav a:hover::after,
    .main-nav a.active::after {
        width: clamp(24px, 1.25vw, 64px);
    }

    .contact-hero {
        min-height: clamp(500px, 26vw, 1400px);
    }

    .contact-hero::after {
        width: clamp(420px, 22vw, 1180px);
        border-width: clamp(34px, 1.8vw, 92px);
    }

    .hero-copy,
    .contact-layout {
        width: clamp(1180px, 62vw, 4200px);
    }

    .hero-copy {
        margin-top: clamp(76px, 4vw, 220px);
    }

    .eyebrow {
        margin-bottom: clamp(13px, 0.7vw, 36px);
        font-size: clamp(13px, 0.7vw, 38px);
    }

    .hero-copy h1 {
        font-size: clamp(64px, 3.8vw, 200px);
    }

    .hero-copy > p:last-child {
        max-width: clamp(640px, 34vw, 1800px);
        margin-top: clamp(25px, 1.3vw, 70px);
        font-size: clamp(18px, 0.95vw, 50px);
    }

    .contact-layout {
        grid-template-columns:
            minmax(0, 1.7fr)
            minmax(clamp(360px, 18vw, 1000px), 0.85fr);
        gap: clamp(28px, 1.45vw, 78px);
        margin-top: clamp(-190px, -3.7vw, -70px);
        margin-bottom: clamp(90px, 4.7vw, 250px);
    }

    .contact-card {
        border-radius: clamp(25px, 1.3vw, 70px);
    }

    .form-card {
        padding: clamp(48px, 3vw, 180px);
    }

    .section-heading {
        max-width: clamp(650px, 34vw, 1800px);
        margin-bottom: clamp(34px, 1.8vw, 96px);
    }

    .section-heading h2 {
        font-size: clamp(40px, 2.4vw, 126px);
    }

    .section-heading > p:last-child {
        margin-top: clamp(18px, 0.95vw, 50px);
        font-size: clamp(16px, 0.9vw, 48px);
    }

    #contactForm {
        gap: clamp(20px, 1.05vw, 56px);
    }

    .field {
        gap: clamp(8px, 0.42vw, 22px);
    }

    .field label {
        font-size: clamp(14px, 0.72vw, 38px);
    }

    .field input,
    .field select,
    .field textarea {
        min-height: clamp(54px, 2.8vw, 150px);
        padding: clamp(14px, 0.75vw, 40px) clamp(17px, 0.9vw, 48px);
        border-radius: clamp(10px, 0.52vw, 28px);
        font-size: clamp(15px, 0.78vw, 42px);
    }

    .field textarea {
        min-height: clamp(145px, 7.5vw, 400px);
    }

    .form-actions {
        padding-top: clamp(5px, 0.28vw, 15px);
    }

    #enviar {
        min-width: clamp(180px, 9.4vw, 500px);
        min-height: clamp(54px, 2.8vw, 150px);
        padding-inline: clamp(30px, 1.6vw, 84px);
        border-radius: clamp(8px, 0.42vw, 22px);
        font-size: clamp(16px, 0.78vw, 42px);
    }

    .details-photo {
        height: clamp(235px, 12.2vw, 650px);
    }

    .contact-detail {
        grid-template-columns: clamp(48px, 2.5vw, 132px) 1fr;
        gap: clamp(16px, 0.85vw, 45px);
        padding: clamp(25px, 1.3vw, 70px) clamp(28px, 1.45vw, 78px);
    }

    .detail-icon {
        width: clamp(48px, 2.5vw, 132px);
        height: clamp(48px, 2.5vw, 132px);
        font-size: clamp(19px, 1vw, 54px);
    }

    .contact-detail h3 {
        margin-top: clamp(2px, 0.12vw, 6px);
        margin-bottom: clamp(8px, 0.42vw, 22px);
        font-size: clamp(16px, 0.84vw, 45px);
    }

    .contact-detail p,
    .contact-detail a {
        font-size: clamp(14px, 0.74vw, 40px);
    }

    .contact-detail a[href^="tel:"],
    .contact-detail a[href^="mailto:"] {
        min-height: clamp(44px, 2.3vw, 122px);
        margin-top: clamp(6px, 0.32vw, 17px);
        padding: clamp(10px, 0.52vw, 28px) clamp(16px, 0.84vw, 45px);
        border-radius: clamp(8px, 0.42vw, 22px);
        font-size: clamp(14px, 0.74vw, 40px);
    }



    .loader-correo__spinner {
        width: clamp(58px, 3vw, 160px);
        height: clamp(58px, 3vw, 160px);
        border-width: clamp(6px, 0.32vw, 17px);
    }

    .loader-correo {
        gap: clamp(16px, 0.85vw, 45px);
    }

    .loader-correo p {
        font-size: clamp(16px, 0.84vw, 45px);
    }
}


   /* =========================================================
   BOTÓN FLOTANTE — TIPS DE SEGURIDAD
========================================================= */

.security-floating-button {
    position: fixed;
    right: 26px;
    bottom: 160px;
    z-index: 900;

    display: inline-flex;
    align-items: center;
    gap: 13px;

    min-height: 66px;
    padding: 8px 17px 8px 9px;

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

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

    box-shadow:
        0 14px 35px rgba(0, 61, 46, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

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

    overflow: hidden;
    isolation: isolate;

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


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

    position: absolute;
    top: -35px;
    right: -25px;
    z-index: -1;

    width: 85px;
    height: 85px;

    background: rgba(244, 190, 74, 0.16);
    border: 14px solid rgba(244, 190, 74, 0.12);
    border-radius: 50%;
}


.security-floating-button__icon {
    position: relative;

    display: grid;
    place-items: center;
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    color: #004f3a;
    background: #ffffff;
    border-radius: 14px;

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

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

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

    width: 8px;
    height: 8px;

    background: #f4be4a;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

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

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


.security-floating-button__content {
    display: grid;
    gap: 1px;
    line-height: 1.15;
}

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

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.security-floating-button__content strong {
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}


.security-floating-button__arrow {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;
    margin-left: 2px;

    color: #004f3a;
    background: #f4be4a;
    border-radius: 50%;

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

    transition: transform 0.25s ease;
}


.security-floating-button:hover {
    color: #ffffff;

    transform: translateY(-4px);

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

.security-floating-button:hover .security-floating-button__arrow {
    transform: translateX(3px);
}

.security-floating-button:focus-visible {
    outline: 3px solid #f4be4a;
    outline-offset: 5px;
}


@media (max-width: 600px) {
    .security-floating-button {
        right: 14px;
        bottom: 14px;

        min-height: 58px;
        padding: 7px 13px 7px 7px;

        border-radius: 16px;
    }

    .security-floating-button__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

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

    .security-floating-button__content small {
        display: none;
    }

    .security-floating-button__content strong {
        font-size: 13px;
    }

    .security-floating-button__arrow {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .security-floating-button,
    .security-floating-button__arrow {
        transition: none;
    }
}

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

@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;
    flex-wrap: wrap;
    justify-content: 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;
    }
}

/* =========================================================
 CARERUSEL  ALIADOS 
========================================================= */

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

.partners h2 {
  color: #2d2f2e;
  font-size: clamp(32px, 4vw, 62px);
  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(50px, 7vw, 120px);
  width: max-content;
  padding: 20px 0;
  will-change: transform;
}

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

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

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

  .partner-logo {
    flex-basis: 180px;
    height: 110px;
  }
}

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


}