:root {
    --bg-main: #edf1f3;
    --surface: #fbfcfd;
    --text-main: #536173;
    --text-soft: #6f7d8d;
    --line: #b9c3ce;
    --title-red: #6f8096;
    --turquoise: #7a8da3;
    --shadow-soft: 0 6px 14px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 10px 22px rgba(0, 0, 0, 0.14);
    --radius-button: 16px;
    --max-page: 1140px;
    --max-content: 980px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.08em;
}

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

a {
    text-decoration: none;
}

.page {
    width: min(100%, var(--max-page));
    min-height: 100vh;
    margin: 0 auto;
    background: transparent;
}

/* HEADER */

.topbar {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 12px;
}

.topbar-agent {
    grid-template-columns: 116px 1fr 116px;
}

.topbar-side {
    min-height: 44px;
}

.topbar-side-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand img {
    width: min(100%, 345px);
    height: auto;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    background: #8797aa;
    color: #fbfcfd;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.mini-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
    opacity: 0.96;
}

.header-divider {
    width: min(calc(100% - 36px), 100%);
    margin: 0 auto;
    border-top: 2px solid var(--line);
    opacity: 0.72;
}

/* CONTENT */

.agent-intro,
.agent-content {
    width: min(calc(100% - 40px), 760px);
    margin: 0 auto;
}

.agent-intro {
    padding-top: 18px;
    text-align: center;
}

.agent-intro h1 {
    margin: 0;
    color: var(--title-red);
    font-size: clamp(1.24rem, 0.96rem + 1.16vw, 2.1rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: 0.2em;
}

.agent-subtitle {
    width: min(92%, 760px);
    margin: 16px auto 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 0.82rem + 0.5vw, 1.28rem);
    line-height: 1.42;
    letter-spacing: 0.106em;
    text-align: center;
}

.agent-content {
    margin-top: 22px;
}

.agent-hero {
    margin: 0;
    overflow: hidden;
    border-radius: 30px;
}

.agent-hero img {
    width: 100%;
    aspect-ratio: 16 / 9.1;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
}



.agent-description {
    margin-top: 26px;
    color: var(--text-main);
    text-align: justify;
    hyphens: auto;
}

.agent-description p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.78;
    letter-spacing: 0.045em;
    text-align: justify;
    text-align-last: left;
}

.agent-description p + p {
    margin-top: 18px;
}

.agent-points {
    margin-top: 28px;
}

.agent-points p {
    margin: 0 0 26px;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: 0.16em;
}

.agent-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 242px;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--turquoise);
    color: #ffffff;
    box-shadow: var(--shadow-strong);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: lowercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    opacity: 0.98;
}

.agent-actions-secondary {
    justify-content: flex-end;
    margin-top: 46px;
}

.mini-pill-return {
    min-width: 122px;
}

.agent-location {
    margin: 34px 0 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0.16em;
}

.agent-location strong {
    color: #536173;
    font-weight: 700;
}

/* FOOTER */

.site-footer {
    width: 100%;
    margin-top: 28px;
    padding-bottom: 56px;
}

.site-footer-line,
.site-footer-inner {
    width: min(calc(100% - 40px), var(--max-content));
    margin: 0 auto;
}

.site-footer-line {
    border-top: 2px solid var(--line);
    opacity: 0.72;
}

.site-footer-inner {
    padding-top: 24px;
}

.site-footer-address {
    margin: 0;
    color: var(--text-soft);
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
}

.site-footer-contact {
    margin: 14px auto 0;
    color: var(--text-soft);
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.55;
    letter-spacing: 0.055em;
}

.site-footer-contact p {
    margin: 2px 0;
}

.site-footer-contact strong {
    color: #536173;
    font-weight: 700;
}

.site-footer-contact a {
    color: #536173;
    font-weight: 700;
    text-decoration: none;
}

.site-footer-contact a:hover,
.site-footer-contact a:focus-visible {
    text-decoration: underline;
    outline: none;
}


.site-footer-row {
    width: 100%;
    margin-top: 26px;
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2.9fr);
    align-items: center;
    column-gap: 0;
}

.site-footer-label {
    color: var(--line);
    font-size: 0.92rem;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.site-footer-social {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
}

.site-footer-link {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--line);
    text-decoration: none;
    opacity: 0.96;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-footer-link:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.site-footer-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* RESPONSIVE */

@media (min-width: 768px) {
    body {
        padding: 0 18px 26px;
    }

    .topbar {
        padding: 24px 20px 14px;
    }

    .topbar-agent {
        grid-template-columns: 132px 1fr 132px;
    }

    .brand img {
        width: min(100%, 380px);
    }

    .header-divider {
        width: min(calc(100% - 40px), 100%);
    }

    .agent-intro,
    .agent-content {
        width: min(calc(100% - 68px), 780px);
    }

    .agent-intro {
        padding-top: 26px;
    }

    .agent-intro h1 {
        font-size: clamp(1.7rem, 1.48rem + 0.86vw, 2.3rem);
    }

    .agent-subtitle {
        margin-top: 18px;
        font-size: clamp(1.08rem, 0.98rem + 0.28vw, 1.32rem);
    }

    .agent-content {
        margin-top: 24px;
    }

    .agent-points {
        margin-top: 30px;
    }

    .agent-points p {
        font-size: 1.02rem;
    }

    .agent-location {
        font-size: 1.04rem;
    }

    .site-footer {
        margin-top: 30px;
        padding-bottom: 72px;
    }

    .site-footer-line,
    .site-footer-inner {
        width: min(calc(100% - 68px), 1020px);
    }

    .site-footer-inner {
        padding-top: 28px;
    }

    .site-footer-address {
        font-size: 1.06rem;
        letter-spacing: 0.09em;
    }

    .site-footer-row {
        margin-top: 30px;
    }

    .site-footer-label {
        font-size: 0.94rem;
        letter-spacing: 0.22em;
    }

    .site-footer-link {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 640px) {
    .topbar {
        gap: 8px;
        padding: 14px 10px 10px;
    }

    .topbar-agent {
        grid-template-columns: 82px 1fr 82px;
    }

    .brand img {
        width: min(100%, 255px);
    }

    .mini-pill {
        min-width: 74px;
        min-height: 28px;
        padding: 0 12px;
        font-size: 0.76rem;
        letter-spacing: 0.16em;
    }

    .header-divider {
        width: 100%;
    }

    .agent-intro,
    .agent-content {
        width: calc(100% - 30px);
    }

    .agent-intro {
        padding-top: 14px;
    }

    .agent-intro h1 {
        font-size: 1rem;
        letter-spacing: 0.13em;
        line-height: 1.24;
    }

    .agent-subtitle {
        width: 98%;
        margin-top: 12px;
        font-size: 0.78rem;
        letter-spacing: 0.046em;
        line-height: 1.5;
    }

    .agent-content {
        margin-top: 18px;
    }

    .agent-hero,
    .agent-hero img {
        border-radius: 24px;
    }



    .agent-description {
        margin-top: 20px;
    }

    .agent-description p {
        font-size: 0.76rem;
        line-height: 1.66;
        letter-spacing: 0.032em;
    }

    .agent-points {
        margin-top: 22px;
    }

    .agent-points p {
        margin-bottom: 22px;
        font-size: 0.78rem;
        letter-spacing: 0.14em;
    }

    .cta-primary {
        min-width: 194px;
        min-height: 42px;
        padding: 10px 18px;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        border-radius: 10px;
    }

    .agent-actions-secondary {
        margin-top: 34px;
    }

    .mini-pill-return {
        min-width: 106px;
    }

    .agent-location {
        margin-top: 28px;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        line-height: 1.5;
    }

    .site-footer {
        margin-top: 18px;
        padding-bottom: 38px;
    }

    .site-footer-line,
    .site-footer-inner {
        width: calc(100% - 30px);
    }

    .site-footer-inner {
        padding-top: 18px;
    }

    .site-footer-address {
        font-size: 0.8rem;
        letter-spacing: 0.045em;
        line-height: 1.4;
    }

    .site-footer-contact {
        margin-top: 12px;
        font-size: 0.72rem;
        line-height: 1.5;
        letter-spacing: 0.035em;
    }


    .site-footer-row {
        margin-top: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .site-footer-label {
        font-size: 0.78rem;
        letter-spacing: 0.14em;
    }

    .site-footer-social {
        width: auto;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .site-footer-link {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 430px) {
    .topbar-agent {
        grid-template-columns: 72px 1fr 72px;
    }

    .brand img {
        width: min(100%, 220px);
    }

    .mini-pill {
        min-width: 66px;
        min-height: 26px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .agent-intro h1 {
        font-size: 0.94rem;
    }

    .agent-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.04em;
    }

    .agent-description p {
        font-size: 0.72rem;
        line-height: 1.62;
        letter-spacing: 0.026em;
    }

    .agent-points p {
        font-size: 0.74rem;
    }

    .agent-location {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .site-footer-address {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }

    .site-footer-row {
        gap: 12px;
    }

    .site-footer-label {
        font-size: 0.72rem;
        letter-spacing: 0.11em;
    }

    .site-footer-social {
        gap: 12px;
    }

    .site-footer-link {
        width: 19px;
        height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* FOOTER - TELÉFONOS ÚTILES EN FRONTERA */

.site-footer-useful {
    margin-top: 26px;
}

.site-footer-useful-title {
    margin: 0 0 16px;
    color: var(--line);
    font-size: 0.86rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
}

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

.useful-contact {
    min-height: 86px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-soft);
    text-decoration: none;
    background: rgba(251, 252, 253, 0.72);
    border: 1px solid rgba(170, 170, 170, 0.26);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.useful-contact:hover,
.useful-contact:focus-visible {
    transform: translateY(-1px);
    background: rgba(251, 252, 253, 0.94);
    box-shadow: 0 13px 28px rgba(0, 0, 0, 0.07);
    outline: none;
}

.useful-contact-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6f8096;
    opacity: 0.9;
}

.useful-contact-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.useful-contact-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.useful-contact-copy strong {
    color: #536173;
    font-size: 0.78rem;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.useful-contact-copy span {
    color: #41566f;
    font-size: 0.88rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.045em;
    white-space: nowrap;
}

.site-footer-note {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.055em;
    text-align: center;
}

@media (max-width: 760px) {
    .site-footer-useful {
        margin-top: 18px;
    }

    .site-footer-useful-title {
        margin-bottom: 12px;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .useful-contacts {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .useful-contact {
        min-height: 64px;
        padding: 10px 12px;
        justify-content: flex-start;
        border-radius: 15px;
    }

    .useful-contact-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .useful-contact-copy strong {
        font-size: 0.72rem;
    }

    .useful-contact-copy span {
        font-size: 0.8rem;
    }

    .site-footer-note {
        margin-top: 12px;
        font-size: 0.64rem;
        letter-spacing: 0.035em;
    }
}

