:root {
    --green: #08714f;
    --green-dark: #004f3a;
    --green-deep: #003d2e;
    --mint: #eaf7f1;
    --gold: #f4be4a;
    --ink: #101413;
    --muted: #5b6661;
    --line: #d8e4df;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
#FAQ span{
    display: block;
}
body {
    min-height: 100vh;
    margin: 0;

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

    font-family:
        "Manrope",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

main {
    width: 100%;
}

a {
    text-decoration: none;
}

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

button {
    font: inherit;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/* =========================================================
   PREGUNTAS FRECUENTES
========================================================= */

.security-faq {
    isolation: isolate;

    width: 100%;
    min-height: 700px;
    padding:
        145px
        clamp(18px, 5vw, 80px)
        80px;

    color: var(--ink);

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

.security-faq,
.security-faq *,
.security-faq *::before,
.security-faq *::after {
    box-sizing: border-box;
}

.security-faq__heading {
    max-width: 900px;
    margin: 0 auto 46px;

    text-align: center;
}

.security-faq .eyebrow {
    margin: 0;

    color: var(--green);

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

.security-faq__heading h2 {
    margin: 4px 0 16px;

    color: var(--ink);

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

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

.security-faq__heading > p:last-child {
    max-width: 680px;
    margin: 0 auto;

    color: #4d5d58;

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

.security-faq__items {
    width: min(92%, 1200px);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 36px);

    display: grid;
    gap: 15px;

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

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

.security-faq__items details {
    overflow: hidden;

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

    box-shadow: 0 5px 16px rgba(0, 61, 46, 0.04);

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

.security-faq__items details:hover {
    border-color: rgba(8, 113, 79, 0.55);
    box-shadow: 0 9px 24px rgba(0, 61, 46, 0.09);
    transform: translateY(-2px);
}

.security-faq__items details[open] {
    background: #f8fcfa;
    border-color: var(--green);
    box-shadow: 0 10px 28px rgba(0, 61, 46, 0.11);
}

.security-faq__items summary {
    min-height: 72px;
    padding: 18px 22px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 20px;

    color: var(--ink);

    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;

    list-style: none;
    cursor: pointer;

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

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

.security-faq__items summary::marker {
    content: "";
}

.security-faq__items summary:hover {
    color: var(--green);
    background: var(--mint);
}

.security-faq__items details[open] summary {
    color: var(--green);
    background: var(--mint);
    border-bottom: 1px solid var(--line);
}

.security-faq__items summary:focus-visible {
    outline: 3px solid rgba(8, 113, 79, 0.25);
    outline-offset: -3px;
}

.security-faq__items summary span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: var(--green);
    background: var(--white);
    border: 1px solid var(--green);
    border-radius: 50%;

    font-size: 26px;
    font-weight: 500;
    line-height: 1;

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

.security-faq__items details[open] summary span {
    color: var(--white);
    background: var(--green);
    transform: rotate(45deg);
}

.security-faq__items details > p {
    margin: 0;
    padding: 0 24px 18px;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.75;

    animation: faqContentShow 0.3s ease;
}

.security-faq__items details > p:first-of-type {
    padding-top: 22px;
}

.security-faq__items details > p:last-child {
    padding-bottom: 24px;
}

@keyframes faqContentShow {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }

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

@media (min-width: 2200px) {
    .security-faq {
        min-height: 950px;
        padding-top: 180px;
        padding-bottom: 110px;
    }

    .security-faq__heading {
        max-width: 1200px;
        margin-bottom: 55px;
    }

    .security-faq .eyebrow {
        font-size: 16px;
    }

    .security-faq__heading h2 {
        font-size: 72px;
    }

    .security-faq__heading > p:last-child {
        max-width: 850px;
        font-size: 23px;
    }

    .security-faq__items {
        width: min(82%, 1600px);
        padding: 45px;
        gap: 20px;
    }

    .security-faq__items summary {
        min-height: 90px;
        padding: 24px 30px;
        font-size: 20px;
    }

    .security-faq__items details > p {
        padding-right: 32px;
        padding-left: 32px;
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .security-faq {
        padding:
            135px
            20px
            65px;
    }

    .security-faq__heading {
        margin-bottom: 30px;
    }

    .security-faq__heading h2 {
        font-size: 40px;
    }

    .security-faq__items {
        width: 100%;
        border-radius: 22px;
    }
}

@media (max-width: 520px) {
    .security-faq {
        min-height: auto;
        padding:
            125px
            12px
            50px;
    }

    .security-faq__heading {
        margin-bottom: 25px;
    }

    .security-faq .eyebrow {
        font-size: 11px;
    }

    .security-faq__heading h2 {
        font-size: 34px;
        line-height: 1.05;
    }

    .security-faq__heading > p:last-child {
        font-size: 15px;
    }

    .security-faq__items {
        padding: 12px;
        gap: 11px;
        border-radius: 20px;
    }

    .security-faq__items summary {
        min-height: 65px;
        padding: 15px 14px;

        grid-template-columns: minmax(0, 1fr) 36px;
        gap: 12px;

        font-size: 14px;
    }

    .security-faq__items summary span {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .security-faq__items details > p {
        padding-right: 16px;
        padding-left: 16px;
        font-size: 14px;
        line-height: 1.65;
    }

    .security-faq__items details > p:first-of-type {
        padding-top: 18px;
    }
}


/* =========================================================
   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;
    align-items: center;

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

    color: var(--white);

    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: var(--white);
    background: rgba(0, 73, 52, 0.96);

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

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

    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;

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

    color: var(--white);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.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: var(--white);

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

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

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

    width: 0;
    height: 3px;

    background: var(--white);
    border-radius: 3px;

    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 24px;
}

.menu-toggle {
    position: static;

    display: none;

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

    color: var(--white);
    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: var(--white);
}

@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: var(--white);
        text-align: center;
    }

    .main-nav a::after {
        display: 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, var(--green-deep), #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 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 {
    width: 82px;
    height: 56px;
    padding: 7px;

    display: grid;
    place-items: center;

    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 {
    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 {
    width: 42px;
    height: 42px;

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

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

.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 {
    min-width: 145px;
    min-height: 48px;
    padding: 0 28px;

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

    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border: 1px solid var(--green);
    border-radius: 9px;

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

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;

    cursor: pointer;

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

.legal-modal .close2 .boxed-btn3:hover {
    color: var(--white);
    background: linear-gradient(135deg, #006247, var(--green-deep));
    border-color: var(--green-dark);

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

.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 var(--gold);
    outline-offset: 4px;
}


/* =========================================================
   RESPONSIVE DEL FOOTER Y MODAL
========================================================= */

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

@media (max-width: 520px) {
    .footer-socials {
        flex-direction: column;
    }

    .legal-modal .close2 {
        justify-content: stretch;
    }

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


/* =========================================================
   BOTÓN AFILIA TU EMPRESA
========================================================= */

.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 {
    min-width: 225px;
    min-height: 46px;
    margin-left: 12px;
    padding: 11px 22px !important;

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

    color: var(--green);
    background: var(--white);
    border: 2px solid var(--white);
    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 {
    color: var(--green-dark);
    background: var(--mint);
    border-color: var(--white);

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


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .security-faq *,
    .security-faq *::before,
    .security-faq *::after,
    .security-floating-button {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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


}