:root {
    --blue: #075db3;
    --blue-dark: #07386c;
    --blue-deep: #06294f;
    --blue-soft: #eaf3fc;
    --blue-pale: #f3f8fd;
    --ink: #102542;
    --muted: #65768b;
    --line: #dce7f1;
    --white: #ffffff;
    --gold: #e8bd48;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 12% 18%, rgba(7, 93, 179, .035) 0 1px, transparent 1.7px) 0 0 / 18px 18px,
        #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 44px), var(--max));
    margin: 0 auto;
}

.section {
    padding: 92px 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: #dbeeff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.eyebrow.blue {
    color: var(--blue);
}

/* Navegación */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(7, 93, 179, .11);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(calc(100% - 80px), 1760px);
    max-width: none;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 265px;
}

.brand img {
    width: 255px;
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.7vw, 28px);
    font-size: 16px;
    font-weight: 500;
    color: #263b56;
}

.nav nav>a:not(.nav-whatsapp) {
    position: relative;
    padding: 12px 0;
}

.nav nav>a:not(.nav-whatsapp)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav nav>a:hover::after {
    transform: scaleX(1);
}

.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 8px 20px rgba(7, 93, 179, .18);
    white-space: nowrap;
}

.menu {
    display: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--blue);
    padding: 9px 12px;
    font-size: 20px;
}

/* Cintilla informativa debajo de la navegación */
.news-ticker {
    position: relative;
    z-index: 8;
    height: 43px;
    overflow: hidden;
    border-top: 1px solid rgba(112, 190, 255, .22);
    border-bottom: 2px solid #1687df;
    color: #fff;
    background: radial-gradient(circle at 12% 50%, rgba(80, 174, 255, .13) 0 1px, transparent 2px) 0 0 / 18px 18px,
        repeating-linear-gradient(115deg, transparent 0 64px, rgba(255, 255, 255, .035) 65px 66px, transparent 67px 130px),
        linear-gradient(100deg, #06284d 0%, #074b88 48%, #062d57 100%);
    box-shadow: 0 7px 18px rgba(4, 39, 76, .12);
}

.news-ticker::before,
.news-ticker::after {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 44px;
    content: '';
    pointer-events: none;
}

.news-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #06284d, transparent);
}

.news-ticker::after {
    right: 0;
    background: linear-gradient(270deg, #062d57, transparent);
}

.news-ticker-track {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    animation: ticker-scroll 42s linear infinite;
    will-change: transform;
}

.news-ticker-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: max-content;
}

.news-ticker:hover .news-ticker-track {
    animation-play-state: paused;
}

.news-ticker-item {
    flex: 0 0 auto;
    padding: 0 22px;
    color: rgba(255, 255, 255, .94);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .13em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-ticker-separator {
    flex: 0 0 auto;
    color: #55baff;
    font-size: 15px;
    line-height: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Cotizador de divisas */
.calculator-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, .78fr) minmax(0, 1.7fr);
    align-items: center;
    gap: 34px;
    margin: 28px auto 0;
    padding: 30px 34px 24px;
    overflow: hidden;
    border: 1px solid rgba(7, 93, 179, .14);
    border-radius: 24px;
    background: linear-gradient(115deg, #ffffff 0%, #f3f8fe 100%);
    box-shadow: 0 16px 38px rgba(17, 65, 111, .09);
}

.calculator-panel::after {
    content: '';
    position: absolute;
    top: -90px;
    right: -35px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(7, 93, 179, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(7, 93, 179, .025), 0 0 0 46px rgba(7, 93, 179, .02);
    pointer-events: none;
}

.calculator-copy,
.calculator-controls,
.calculator-note {
    position: relative;
    z-index: 1;
}

.calculator-copy .eyebrow {
    margin-bottom: 7px;
}

.calculator-copy h3 {
    margin: 0 0 8px;
    color: var(--blue-deep);
    font: 500 clamp(25px, 2.8vw, 34px)/1.12 'Manrope', sans-serif;
    letter-spacing: -.045em;
}

.calculator-copy p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.calculator-controls {
    display: grid;
    grid-template-columns: 1.05fr 1.5fr .9fr 1.15fr;
    align-items: end;
    gap: 12px;
}

.calculator-controls label {
    display: grid;
    gap: 7px;
    color: #294563;
    font-size: 11px;
    font-weight: 500;
}

.calculator-controls select,
.calculator-controls input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #d5e3f1;
    border-radius: 11px;
    outline: none;
    color: #15375f;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
}

.calculator-controls select:focus,
.calculator-controls input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(7, 93, 179, .1);
}

.calculator-result {
    min-width: 0;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 6px 13px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(110deg, #075db3, #07386c);
}

.calculator-result span {
    font-size: 9px;
    line-height: 1.3;
    opacity: .86;
}

.calculator-result strong {
    overflow: hidden;
    font: 500 20px/1.25 'Manrope', sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calculator-note {
    grid-column: 2;
    margin: -20px 0 0;
    color: #75869a;
    font-size: 10px;
}

/* Portada */
.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    isolation: isolate;
    background: var(--blue-deep);
    color: white;
}

.hero-shape {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.hero-shape-one {
    top: -260px;
    right: 5%;
    width: 660px;
    height: 660px;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .025), 0 0 0 58px rgba(255, 255, 255, .02);
}

.hero-shape-two {
    right: 24%;
    bottom: -360px;
    width: 520px;
    height: 520px;
    border-color: rgba(117, 190, 244, .18);
    box-shadow: 0 0 0 25px rgba(117, 190, 244, .035), 0 0 0 52px rgba(117, 190, 244, .025);
}

.hero-image {
    position: absolute;
    z-index: -3;
    inset: 0;
    background-size: cover;
    background-position: center 48%;
    opacity: .92;
}

.hero::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 31, 61, .93) 0%, rgba(4, 48, 91, .82) 43%, rgba(4, 55, 100, .25) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -160px;
    width: 70%;
    height: 250px;
    background: linear-gradient(105deg, rgba(36, 144, 221, .86), rgba(7, 93, 179, .94));
    transform: rotate(-8deg);
    border-radius: 50% 0 0 0;
    opacity: .88;
}

.hero-content {
    min-height: 610px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding-top: 64px;
    padding-bottom: 78px;
}

.hero-copy {
    width: min(690px, 65%);
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    font: 500 clamp(42px, 5.2vw, 72px)/1.02 'Manrope', sans-serif;
    letter-spacing: -.055em;
}

.hero-slogan {
    margin: 16px 0 12px;
    color: #f4f8ff;
    font-size: clamp(18px, 2vw, 25px);
    font-style: italic;
}

.hero-description {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: var(--blue);
    box-shadow: 0 10px 25px rgba(0, 28, 62, .24);
}

.button-outline {
    border-color: rgba(255, 255, 255, .8);
    color: white;
    background: rgba(255, 255, 255, .08);
}

.hero-stamp {
    width: 290px;
    min-height: 290px;
    flex: 0 0 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    color: #163d68;
    text-align: center;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, .08), inset 0 0 0 8px rgba(255, 255, 255, .08);
    backdrop-filter: blur(5px);
}

.hero-stamp img {
    width: 205px;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .12));
}

.stamp-eyebrow {
    color: #54708e;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.stamp-title {
    max-width: 180px;
    color: #163d68;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
}

.stamp-line {
    width: 54px;
    height: 3px;
    margin: 4px 0 8px;
    background: var(--blue);
}

.hero-stamp small {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Catálogo de monedas */
.currency-strip {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 58px 0 72px;
    background: radial-gradient(circle at 92% 18%, transparent 0 82px, rgba(7, 93, 179, .055) 83px 84px, transparent 85px 112px, rgba(7, 93, 179, .04) 113px 114px, transparent 115px),
        radial-gradient(circle at 8% 88%, rgba(7, 93, 179, .045) 0 2px, transparent 2.5px) 0 0 / 18px 18px,
        linear-gradient(180deg, #fff 0%, var(--blue-pale) 100%);
}

.section-kicker {
    margin-bottom: 25px;
    text-align: center;
}

.section-kicker .eyebrow {
    margin-bottom: 4px;
}

.section-kicker h2 {
    margin: 0;
    color: var(--ink);
    font: 500 clamp(23px, 2.6vw, 32px) 'Manrope', sans-serif;
    letter-spacing: -.04em;
}

.currency-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin-inline: auto;
}

.currency-card {
    flex: 1 1 155px;
    max-width: 190px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 17px 10px;
    border: 1px solid #e3edf7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(22, 67, 111, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.currency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(22, 67, 111, .1);
}

.currency-card img {
    width: 53px;
    height: 35px;
    object-fit: contain;
    border-radius: 8px;
}

.currency-flag-fallback {
    display: inline-grid;
    width: 53px;
    height: 35px;
    place-items: center;
    border: 1px solid #dce8f5;
    border-radius: 8px;
    color: #075db3;
    background: #edf5fd;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
}

.rate-currency .currency-flag-fallback {
    width: 65px;
    height: 45px;
    flex: 0 0 65px;
    border-radius: 8px;
}

.currency-card strong {
    color: #17385f;
    font-size: 13px;
    text-align: center;
}

.currency-card small {
    color: #7b8da3;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
}

.gold-banner {
    position: relative;
    min-height: 102px;
    display: grid;
    grid-template-columns: 120px 48px 1fr 1px 1fr 35px;
    align-items: center;
    gap: 22px;
    margin-top: 24px;
    padding: 13px 28px 13px 18px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(100deg, #07386c, #075db3);
    box-shadow: 0 12px 25px rgba(7, 93, 179, .18);
}

.gold-banner::after {
    content: '';
    position: absolute;
    top: -100px;
    right: 10%;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(255, 255, 255, .035), 0 0 0 46px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.gold-banner img {
    width: 116px;
    height: 76px;
    object-fit: contain;
}

.gold-icon {
    color: #ffe07a;
    font-size: 35px;
    text-align: center;
}

.gold-banner strong {
    font: 500 20px/1.2 'Manrope', sans-serif;
}

.gold-divider {
    height: 48px;
    background: rgba(255, 255, 255, .45);
}

.gold-banner small {
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

.gold-arrow {
    font-size: 23px;
    text-align: right;
}

/* Tabla de cotizaciones */
.rates-section {
    position: relative;
    isolation: isolate;
    padding-top: 48px;
    padding-bottom: 92px;
    overflow: hidden;
    background: radial-gradient(circle at 5% 12%, transparent 0 105px, rgba(7, 93, 179, .055) 106px 107px, transparent 108px 137px, rgba(7, 93, 179, .035) 138px 139px, transparent 140px),
        radial-gradient(circle at 94% 78%, rgba(7, 93, 179, .045) 0 2px, transparent 2.5px) 0 0 / 20px 20px,
        repeating-linear-gradient(135deg, transparent 0 46px, rgba(7, 93, 179, .018) 47px 48px, transparent 49px 94px),
        #f8fbff;
}

.rates-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 35px;
    text-align: center;
}

.rates-heading h2 {
    margin: 0;
    color: #092e5c;
    font: 500 clamp(36px, 5vw, 60px)/1.06 'Manrope', sans-serif;
    letter-spacing: -.055em;
}

.heading-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 12px;
}

.heading-slogan span {
    width: 76px;
    height: 3px;
    border-radius: 3px;
    background: var(--blue);
}

.heading-slogan p {
    margin: 0;
    color: #173b69;
    font-size: clamp(16px, 2vw, 23px);
    font-style: italic;
}

.rates-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid #e0eaf4;
    border-radius: 27px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 55px rgba(17, 68, 119, .13);
}

.rates-table-wrap {
    overflow-x: auto;
    padding: 16px 18px 0;
}

.rates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.rates-table thead th {
    padding: 18px 24px;
    color: white;
    background: linear-gradient(100deg, #075db3, #064783);
    font: 500 17px 'Manrope', sans-serif;
    text-align: left;
}

.rates-table thead th:first-child {
    width: 42%;
    border-radius: 15px 0 0 15px;
}

.rates-table thead th:nth-child(2),
.rates-table thead th:nth-child(3) {
    text-align: center;
}

.rates-table thead th:last-child {
    border-radius: 0 15px 15px 0;
}

.rates-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid #e1eaf3;
}

.rates-table tbody td {
    padding: 13px 24px;
}

.rate-currency {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rate-flag-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 65px;
    width: 65px;
    height: 45px;
    overflow: hidden;
    border-radius: 8px;
    line-height: 0;
}

.rate-flag-frame img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    border-radius: 8px !important;
    clip-path: inset(0 round 8px);
}

.rate-flag-frame.has-error {
    display: none;
}

.rate-currency>.currency-flag-fallback {
    display: none;
}

.rate-currency>.currency-flag-fallback.is-visible {
    display: inline-grid;
}

.rate-currency img {
    width: 65px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
}

.rate-currency strong,
.rate-currency small {
    display: block;
}

.rate-currency strong {
    color: #10294c;
    font: 500 18px 'Manrope', sans-serif;
}

.rate-currency small {
    margin-top: 1px;
    color: #60738c;
    font-size: 12px;
}

.rates-table tbody td:nth-child(2),
.rates-table tbody td:nth-child(3) {
    text-align: center;
}

.rate-amount {
    display: block;
    min-width: 155px;
    padding: 9px 12px;
    border: 1px solid #dcebf8;
    border-radius: 13px;
    color: #092e5c;
    background: linear-gradient(180deg, #edf6fd, #e2effa);
    font: 500 clamp(21px, 2.4vw, 31px) 'Manrope', sans-serif;
    letter-spacing: -.035em;
}

.rates-empty {
    padding: 40px !important;
    color: var(--muted);
    text-align: center;
}

.rates-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    padding: 23px 30px 26px;
    border-top: 1px solid #e5edf5;
    color: #536982;
}

.updated-info,
.rates-disclaimer {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 50%;
    font-size: 12px;
}

.updated-info strong {
    display: block;
    color: #142d50;
    font-size: 13px;
}

.info-symbol {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 2px solid var(--blue);
    border-radius: 50%;
    color: var(--blue);
    font-size: 19px;
    font-weight: 500;
}

.rates-wave {
    position: absolute;
    right: -5%;
    bottom: -125px;
    left: -5%;
    height: 200px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(100deg, #064783, #0874c7);
    transform: rotate(-2deg);
}

/* Carrusel / contenido destacado */
.feature-slides {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 68px 0;
    background:
        radial-gradient(circle at 7% 50%, transparent 0 90px, rgba(7, 93, 179, .055) 91px 92px, transparent 93px 122px, rgba(7, 93, 179, .035) 123px 124px, transparent 125px),
        radial-gradient(circle at 96% 15%, rgba(7, 93, 179, .045) 0 2px, transparent 2.5px) 0 0 / 19px 19px,
        #fff;
}

.feature-slides-viewport {
    position: relative;
    width: 100%;
    height: clamp(300px, 31vw, 420px);
    overflow: hidden;
    border: 1px solid rgba(7, 93, 179, .08);
    border-radius: 26px;
    background: #f7faff;
    isolation: isolate;
}

.feature-slides-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    height: 100%;
    gap: 0;
    transition: transform .55s cubic-bezier(.22, .75, .25, 1);
    will-change: transform;
}

.feature-slide {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #f7faff;
}

.feature-slide img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    /* object-fit: contain; */
    object-position: center;
    background: #f7faff;
}

.feature-slide.has-caption::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 35, 70, .9), rgba(4, 35, 70, .18));
    pointer-events: none;
}

.feature-slide-caption {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 54px;
    color: white;
}

.feature-slide-caption span {
    color: #bcddff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.feature-slide-caption h2 {
    margin: 9px 0;
    font: 500 clamp(28px, 4vw, 44px)/1.1 'Manrope', sans-serif;
}

.feature-slide-caption p {
    max-width: 520px;
    color: rgba(255, 255, 255, .88);
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 18px;
}

.slide-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c6d5e5;
    cursor: pointer;
}

.slide-dots button.active {
    width: 24px;
    border-radius: 8px;
    background: var(--blue);
}

/* Sucursales */
.branches-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(circle at 100% 10%, transparent 0 120px, rgba(7, 93, 179, .05) 121px 122px, transparent 123px 153px, rgba(7, 93, 179, .03) 154px 155px, transparent 156px),
        radial-gradient(circle at 4% 88%, rgba(7, 93, 179, .04) 0 2px, transparent 2.5px) 0 0 / 18px 18px,
        #fff;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.section-heading h2,
.about-copy h2 {
    max-width: 760px;
    margin: 0;
    color: #102b4e;
    font: 500 clamp(34px, 4.4vw, 52px)/1.08 'Manrope', sans-serif;
    letter-spacing: -.05em;
}

.section-heading>p {
    max-width: 300px;
    margin: 0 0 5px;
    color: var(--muted);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.branch-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid #dce8f3;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: 0 10px 25px rgba(20, 64, 108, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(20, 64, 108, .1);
}

.branch-photo {
    height: 215px;
    margin: -25px -25px 20px;
    overflow: hidden;
    border-radius: 17px 17px 0 0;
    background: #e5eff8;
}

.branch-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.branch-card:hover .branch-photo img {
    transform: scale(1.045);
}

.branch-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.branch-card-top {
    min-height: 16px;
}

.branch-card.has-photo .branch-card-top {
    margin-top: 0;
}

.branch-index {
    color: #94a8bf;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
}

.branch-card h3 {
    margin: 18px 0 8px;
    color: #10345f;
    font: 500 20px 'Manrope', sans-serif;
}

.branch-address,
.branch-hours {
    color: #5b6f87;
    font-size: 12px;
}

.branch-hours {
    margin-top: 9px;
    line-height: 1.65;
}

.branch-hours strong {
    display: block;
    margin-bottom: 3px;
    color: #163e6c;
}

.branch-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid #e6eef6;
    color: var(--blue);
    font-size: 12px;
    font-weight: 500;
}

.empty-message {
    color: var(--muted);
}

/* Nosotros y galería */
.about-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 90px 0;
    background: radial-gradient(circle at 90% 18%, transparent 0 100px, rgba(7, 93, 179, .07) 101px 102px, transparent 103px 132px, rgba(7, 93, 179, .045) 133px 134px, transparent 135px),
        repeating-linear-gradient(135deg, transparent 0 54px, rgba(7, 93, 179, .025) 55px 56px, transparent 57px 110px),
        var(--blue-pale);
}

.about-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
}

.about-copy {
    max-width: 900px;
}

.about-copy h2 {
    max-width: 900px;
}

.about-copy p {
    max-width: 720px;
}

.about-copy p {
    max-width: 720px;
    margin: 18px 0 24px;
    color: #5c7089;
}

.text-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 500;
}

.text-link span {
    padding-left: 8px;
}

.gallery-grid {
    width: 100%;
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 230px;
    gap: 16px;
}

.gallery-photo-1 {
    grid-row: auto;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-photo.image-missing {
    display: none;
}

.gallery-grid.gallery-no-photos::after {
    content: 'Las fotografías no están disponibles. Vuelve a cargarlas desde el administrador.';
    display: block;
    grid-column: 1 / -1;
    padding: 45px 20px;
    border: 1px dashed #b8cde2;
    border-radius: 18px;
    color: #53708e;
    text-align: center;
}

.gallery-empty {
    grid-column: 1 / -1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed #b8cde2;
    border-radius: 18px;
    color: #53708e;
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.gallery-empty span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--blue);
    font-size: 27px;
}

.gallery-empty strong {
    margin-top: 10px;
    color: #153a65;
}

.gallery-empty p {
    margin: 3px 0 0;
}

.gallery-photo,
.gallery-placeholder {
    position: relative;
    min-height: 150px;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #dce9f5;
}

.gallery-photo img,
.gallery-placeholder img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-photo:hover img {
    transform: scale(1.04);
}

.gallery-photo::after {
    content: '';
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, rgba(4, 28, 55, .68));
}

.gallery-photo figcaption {
    position: absolute;
    z-index: 1;
    right: 15px;
    bottom: 13px;
    left: 15px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.gallery-placeholder {
    grid-column: 1 / -1;
}

.gallery-placeholder span {
    position: absolute;
    right: 22px;
    bottom: 20px;
    color: white;
    font-size: 20px;
    font-weight: 500;
    text-shadow: 0 2px 8px #0008;
}

/* Contacto y pie */
.contact-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 88px 0;
    background: radial-gradient(circle at 5% 18%, transparent 0 95px, rgba(7, 93, 179, .055) 96px 97px, transparent 98px 127px, rgba(7, 93, 179, .035) 128px 129px, transparent 130px),
        radial-gradient(circle at 94% 82%, rgba(7, 93, 179, .045) 0 2px, transparent 2.5px) 0 0 / 20px 20px,
        linear-gradient(180deg, #fff, var(--blue-pale));
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: start;
    gap: 55px;
}

.contact-intro {
    position: static;
    align-self: start;
    padding-top: 18px;
    margin-top: 0;
}

.contact-intro h2 {
    max-width: 440px;
    margin: 0;
    color: #102b4e;
    font: 500 clamp(34px, 4.2vw, 52px)/1.08 'Manrope', sans-serif;
    letter-spacing: -.05em;
}

.contact-intro p {
    max-width: 430px;
    margin: 18px 0 22px;
    color: #5c7089;
}

.contact-whatsapp {
    display: inline-flex;
    padding: 12px 17px;
    border-radius: 999px;
    color: #fff;
    background: #0b8c5b;
    font-size: 13px;
    font-weight: 500;
}

.contact-form {
    padding: 32px;
    border: 1px solid #dce8f3;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(17, 68, 119, .09);
}

.contact-form-heading h3 {
    margin: 0;
    color: #10345f;
    font: 500 25px 'Manrope', sans-serif;
}

.contact-form-heading p {
    margin: 7px 0 23px;
    color: #65768b;
    font-size: 13px;
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-fields label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #334f6e;
    font-size: 12px;
    font-weight: 500;
}

.contact-fields label span {
    color: #8a9aab;
    font-weight: 500;
}

.contact-fields input,
.contact-fields textarea {
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid #d7e3ef;
    border-radius: 10px;
    outline: none;
    color: #163653;
    background: #fbfdff;
    font: 500 14px 'DM Sans', sans-serif;
}

.contact-fields textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-fields input:focus,
.contact-fields textarea:focus {
    border-color: #438bd0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(7, 93, 179, .1);
}

.contact-message {
    grid-column: 1 / -1;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-form-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-form-bottom button:disabled {
    opacity: .65;
    cursor: wait;
}

.contact-feedback {
    margin: 0;
    color: #536982;
    font-size: 12px;
}

.contact-feedback.success {
    color: #087a4c;
}

.contact-feedback.error {
    color: #b42318;
}

.button-light {
    color: var(--blue-dark);
    background: white;
}

.site-footer {
    padding: 48px 0 18px;
    color: white;
    background: #061f3b;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-brand img {
    width: 235px;
    max-height: 75px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    color: #a8bfd8;
    font-size: 10px;
    letter-spacing: .05em;
    line-height: 1.8;
}

.footer-legal,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
}

.footer-legal strong,
.footer-contact strong {
    margin-bottom: 5px;
    color: #9bc9f2;
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.footer-legal span,
.footer-legal a,
.footer-contact a {
    color: #d4e1ee;
}

.footer-legal a {
    text-decoration: none;
    transition: color .2s ease;
}

.footer-legal a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #8ca5bf;
    font-size: 10px;
}

.whatsapp-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    vertical-align: middle;
}

.whatsapp-float .whatsapp-icon {
    width: 30px;
    height: 30px;
}

.whatsapp-float {
    position: fixed;
    z-index: 90;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 55px;
    height: 55px;
    place-items: center;
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    background: #0b9e63;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
    font-size: 28px;
}

/* Animación discreta */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal-ready .reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .reveal-ready .reveal {
        opacity: 1;
        transform: none;
    }

    .news-ticker-track {
        animation: none;
    }
}

@media (max-width: 1050px) {
    .brand {
        flex-basis: 210px;
    }

    .brand img {
        width: 205px;
    }

    .nav nav {
        gap: 14px;
        font-size: 14px;
    }

    .nav-whatsapp {
        padding: 10px 13px;
    }

    .hero-stamp {
        width: 220px;
        min-height: 220px;
        flex-basis: 220px;
    }

    .hero-stamp img {
        width: 160px;
        max-height: 150px;
    }

    .currency-card {
        flex-basis: 145px;
    }

    .gold-banner {
        grid-template-columns: 85px 35px 1fr 1px 1fr 25px;
        gap: 14px;
    }

    .gold-banner img {
        width: 85px;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 32px), var(--max));
    }

    .section {
        padding: 66px 0;
    }

    .nav {
        min-height: 72px;
    }

    .brand {
        flex-basis: 195px;
    }

    .brand img {
        width: 190px;
        max-height: 56px;
    }

    .menu {
        display: block;
    }

    .nav nav {
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        border-bottom: 1px solid var(--line);
        background: white;
        box-shadow: 0 14px 24px rgba(15, 50, 86, .1);
    }

    .nav nav.open {
        display: flex;
        flex-direction: column;
    }

    .nav nav>a:not(.nav-whatsapp) {
        padding: 12px 5px;
    }

    .nav-whatsapp {
        margin-top: 8px;
        text-align: center;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-image {
        background-position: 58% center;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(4, 31, 61, .92), rgba(4, 48, 91, .66));
    }

    .hero-content {
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 26px;
        padding-top: 62px;
        padding-bottom: 70px;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-copy h1 {
        max-width: 570px;
        font-size: clamp(39px, 10vw, 58px);
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-stamp {
        display: none;
    }

    .currency-strip {
        padding: 48px 0 56px;
    }

    .currency-cards {
        gap: 10px;
    }

    .currency-card {
        flex-basis: 125px;
        min-height: 116px;
    }

    .currency-card {
        min-height: 116px;
    }

    .gold-banner {
        grid-template-columns: 62px 1fr 22px;
        gap: 12px;
        padding: 13px;
    }

    .gold-banner img {
        width: 62px;
        height: 62px;
    }

    .gold-icon,
    .gold-divider,
    .gold-banner small {
        display: none;
    }

    .gold-banner strong {
        font-size: 15px;
    }

    .rates-section {
        padding-top: 65px;
        padding-bottom: 100px;
    }

    .rates-heading h2 {
        font-size: clamp(32px, 8vw, 46px);
    }

    .heading-slogan {
        gap: 10px;
    }

    .heading-slogan span {
        width: 35px;
    }

    .heading-slogan p {
        font-size: 15px;
    }

    .rates-panel {
        border-radius: 18px;
    }

    .rates-table-wrap {
        padding: 10px 9px 0;
    }

    .rates-table {
        min-width: 550px;
    }

    .rates-table thead th {
        padding: 14px 16px;
        font-size: 14px;
    }

    .rates-table tbody td {
        padding: 11px 14px;
    }

    .rate-currency {
        gap: 11px;
    }

    .rate-flag-frame {
        flex-basis: 45px;
        width: 45px;
        height: 32px;
        border-radius: 6px;
    }

    .rate-flag-frame img {
        width: 100%;
        height: 100%;
        border-radius: 6px !important;
        clip-path: inset(0 round 6px);
    }

    .rate-currency strong {
        font-size: 14px;
    }

    .rate-amount {
        min-width: 125px;
        padding: 8px;
        font-size: 21px;
    }

    .rates-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 18px;
    }

    .updated-info,
    .rates-disclaimer {
        max-width: none;
    }

    .feature-slides {
        padding: 46px 0;
    }

    .feature-slides-viewport {
        height: clamp(240px, 58vw, 340px);
        border-radius: 20px;
    }

    .feature-slide-caption {
        padding: 32px 25px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading h2,
    .about-copy h2 {
        font-size: 36px;
    }

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

    .branch-card {
        min-height: 0;
    }

    .about-layout {
        gap: 24px;
    }

    .gallery-grid {
        min-height: 220px;
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .contact-section {
        padding: 62px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-intro {
        position: static;
    }

    .contact-form {
        padding: 22px;
    }

    .contact-fields {
        grid-template-columns: 1fr;
    }

    .contact-message {
        grid-column: auto;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .brand {
        flex-basis: 170px;
    }

    .brand img {
        width: 168px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

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

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

/* Servicios destacados */
.services-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 82px 0 88px;
    background: radial-gradient(circle at 94% 22%, transparent 0 95px, rgba(7, 93, 179, .06) 96px 97px, transparent 98px 127px, rgba(7, 93, 179, .04) 128px 129px, transparent 130px),
        radial-gradient(circle at 7% 82%, rgba(7, 93, 179, .045) 0 2px, transparent 2.5px) 0 0 / 18px 18px,
        repeating-linear-gradient(135deg, transparent 0 60px, rgba(7, 93, 179, .018) 61px 62px, transparent 63px 122px),
        #f5f8fc;
}

.services-heading {
    margin-bottom: 34px;
}

.services-heading .eyebrow {
    margin-bottom: 12px;
}

.services-heading h2 {
    max-width: 760px;
    margin: 0;
    color: #172a45;
    font: 500 clamp(34px, 4.4vw, 52px)/1.08 'Manrope', sans-serif;
    letter-spacing: -.05em;
}

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

.service-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce7f1;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(20, 64, 108, .045);
    transition: transform .22s ease, box-shadow .22s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(20, 64, 108, .11);
}

.service-card-image {
    position: relative;
    height: 265px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #052d70;
}

.service-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .45s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.045);
}

.service-number {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #07518f;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(4, 42, 82, .18);
}

.service-card-copy {
    min-height: 132px;
    padding: 21px 25px 25px;
    text-align: center;
}

.service-card-copy h3 {
    margin: 0 0 7px;
    color: #075db3;
    font: 500 22px/1.2 'Manrope', sans-serif;
    letter-spacing: -.035em;
}

.service-card-copy p {
    margin: 0;
    color: #62748a;
    font-size: 14px;
    line-height: 1.55;
}

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

@media (max-width: 600px) {
    .services-section {
        padding: 58px 0 64px;
    }

    .services-heading h2 {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card-image {
        height: 210px;
    }

    .service-card-copy {
        min-height: 0;
        padding: 19px 20px 23px;
    }
}

@media (max-width: 1050px) {
    .calculator-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calculator-copy p {
        max-width: 650px;
    }

    .calculator-note {
        grid-column: 1;
        margin: -10px 0 0;
    }
}

@media (max-width: 700px) {
    .calculator-panel {
        margin-top: 20px;
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .calculator-controls {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .calculator-result {
        grid-column: 1 / -1;
    }

    .calculator-note {
        margin-top: -7px;
    }
}

@media (max-width: 420px) {
    .calculator-controls {
        grid-template-columns: 1fr;
    }

    .calculator-result {
        grid-column: auto;
    }
}

/* Sistema tipográfico público: peso máximo 500. */
.ds-site strong,
.ds-site b {
    font-weight: 500;
}

/* Los elementos semánticos también respetan el peso tipográfico máximo. */
.ds-site :is(h1, h2, h3, h4, h5, h6, strong, b, th) {
    font-weight: 500;
}

/* Imagen independiente para portada en móviles */
@media (max-width: 768px) {
    .hero-image {
        background-image: var(--hero-mobile-image);
        background-size: cover;
        background-position: center top;
    }
}

.feature-slide-picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.feature-slide-picture img {
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .feature-slide-picture img {
        object-fit: cover;
        object-position: center;
    }
}
