:root {
    --primary-dark: #143b62;
    --primary-light: #133a61;
    --primary-deep: #0d2a47;
    --accent-light: #bbcad6;
    --accent-medium: #8fabc3;
    --accent-dark: #5e7d97;
    --border-light: #5e7d97;
    --text-dark: #1a1a1a;
    --text-body: #4a5563;
    --text-light: #f5f5f5;
    --surface: #f5f7fa;
    /* Gold accent. --gold is for lines, icons and bullets; --gold-deep is the
       lightest shade that still holds white button text at WCAG AA (4.7:1);
       --gold-light is for text on navy. */
    --gold: #b0814a;
    --gold-deep: #976a37;
    --gold-deeper: #7f5a2e;
    --gold-light: #d2ad78;

    --nav-h: 76px;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(13, 42, 71, 0.06), 0 2px 8px rgba(13, 42, 71, 0.06);
    --shadow-md: 0 4px 12px rgba(13, 42, 71, 0.08), 0 12px 32px rgba(13, 42, 71, 0.10);
    --font-serif: 'DM Serif Display', Georgia, Garamond, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* The html background shows during overscroll/rubber-banding, so keep it
   navy to match the navbar and footer instead of flashing white. */
html {
    scroll-behavior: smooth;
    background-color: var(--primary-deep);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
}

section,
header.hero {
    scroll-margin-top: var(--nav-h);
}

:focus-visible {
    outline: 2px solid var(--accent-medium);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background: var(--primary-dark);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 60px;
    width: auto;
    -webkit-user-drag: none;
    user-select: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: #fff;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border-radius: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--accent-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }

    .logo img {
        height: 48px;
    }

    .hamburger {
        display: flex;
    }

    /* Drop-down panel that starts right under the navbar and fills the rest
       of the screen, so nothing is cut off or peeking out. */
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        height: calc(100vh - var(--nav-h));
        height: calc(100dvh - var(--nav-h));
        background: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
        z-index: 99;
        overflow-y: auto;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links a {
        display: block;
        padding: 1.15rem 24px;
        font-family: var(--font-serif);
        font-size: 1.6rem;
        font-weight: 400;
        color: #fff;
    }

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

/* HERO */
.hero {
    color: var(--text-light);
    padding: 96px 20px;
    text-align: center;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-dark);
    background-image: url('../imgs/hero.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Parallax only where it works reliably: iOS/Android ignore or badly scale
   fixed backgrounds, which is what made the hero look zoomed on phones. */
@media (hover: hover) and (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(13, 42, 71, 0.45) 0%, rgba(13, 42, 71, 0.75) 100%),
        linear-gradient(180deg, rgba(20, 59, 98, 0.35) 0%, rgba(13, 42, 71, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
    padding: 0.45rem 1rem;
    border: 1px solid rgba(210, 173, 120, 0.4);
    border-radius: 999px;
    margin-bottom: 1.75rem;
    background: rgba(13, 42, 71, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-content h1 {
    font-size: clamp(2.4rem, 1.2rem + 5vw, 4.5rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-lead {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
    margin: 0 auto 2.25rem;
    opacity: 0.92;
    max-width: 580px;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 32px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta-button {
    gap: 0.6rem;
    background: var(--gold-deep);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.cta-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.cta-button:hover {
    background: var(--gold-deeper);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: progress;
    transform: none;
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
}

.ghost-button:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-trust {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: var(--accent-light);
}

.hero-trust li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.hero-trust strong {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
}

/* SECTION HEADINGS (shared) */
.services h2,
.allies h2,
.about h2,
.contact h2 {
    font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
    color: var(--primary-dark);
    text-wrap: balance;
}

.services h2,
.allies h2,
.contact h2 {
    text-align: center;
}

.services h2::after,
.allies h2::after,
.about h2::after,
.contact h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 1rem auto 0;
}

.about h2::after {
    margin-left: 0;
}

.section-subtitle {
    font-size: 1.05rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-wrap: balance;
}

/* SERVICES */
.services {
    padding: 96px 0;
    background-color: var(--surface);
}

.services h2 {
    margin-bottom: 1rem;
}

.services .section-subtitle {
    text-align: center;
    color: var(--accent-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(20, 59, 98, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(176, 129, 74, 0.1);
    color: var(--gold-deep);
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.service-card p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* ALLIES */
.allies {
    padding: 96px 0;
    background: #fff;
}

.allies h2 {
    margin-bottom: 1rem;
}

.allies .section-subtitle {
    text-align: center;
    color: var(--accent-dark);
    margin-bottom: 3rem;
}

/* Logos sit at one optical size: wide wordmarks get a lower height than
   square marks so none of them shouts over the others. */
.allies-logos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.ally-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    padding: 0 2.25rem;
}

.ally-logo + .ally-logo {
    border-left: 1px solid rgba(20, 59, 98, 0.12);
}

.ally-logo img {
    display: block;
    height: 64px;
    width: auto;
    max-width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.ally-el-potosi img {
    height: 38px;
}

.ally-banorte img {
    height: 46px;
}

.ally-mapfre img {
    height: 30px;
}

.ally-qualitas img {
    height: 84px;
}

/* ABOUT */
.about {
    padding: 96px 0;
    background: var(--surface);
}

.about h2 {
    margin-bottom: 1.75rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.075rem;
    color: var(--text-body);
    margin-bottom: 1.75rem;
    line-height: 1.8;
}

.about-subhead {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.1rem;
}

.about-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
}

.about-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--primary-dark);
    font-weight: 500;
    line-height: 1.45;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid var(--accent-medium);
    border-radius: var(--radius);
    z-index: 0;
}

.about-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 1;
}

/* CONTACT */
.contact {
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
    color: var(--text-light);
    padding: 96px 0;
    text-align: center;
}

.contact h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.contact h2::after {
    background: var(--gold-light);
}

.contact .section-subtitle {
    color: var(--accent-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.contact-content > noscript {
    grid-column: 1 / -1;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.25rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 0.45rem;
    color: var(--accent-light);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(187, 202, 214, 0.2);
}

.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.form-notice {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 1rem;
    text-align: center;
}

.form-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.form-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-methods {
    display: grid;
    gap: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.07);
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    display: block;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:visited {
    color: inherit !important;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.contact-card h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-medium);
    margin-bottom: 0.35rem;
}

.contact-card p {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* FOOTER */
footer {
    background: var(--primary-deep);
    color: var(--accent-medium);
    text-align: center;
    padding: 2rem 0;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
}

/* PRIVACY CONSENT */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.25rem 0 1.25rem;
}

.form-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    padding: 0;
    border: 1.5px solid rgba(187, 202, 214, 0.6);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07) center / 70% no-repeat;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-consent input[type="checkbox"]:hover {
    border-color: var(--accent-light);
}

.form-consent input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143b62' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.form-consent input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(187, 202, 214, 0.35);
}

.contact-form .form-consent label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--accent-light);
    cursor: pointer;
}

.form-consent a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* FOOTER LINKS */
.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(187, 202, 214, 0.4);
    text-underline-offset: 3px;
}

.footer-links a:hover {
    color: #fff;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 56px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: var(--gold-deep);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, background 0.2s ease, visibility 0s linear 0.3s;
}

.whatsapp-float.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float[hidden] {
    display: none;
}

.whatsapp-float.is-visible:hover {
    background: var(--gold-deeper);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

body.menu-open .whatsapp-float {
    display: none;
}

/* LEGAL PAGE */
.legal {
    background: #fff;
    padding: 72px 0 96px;
}

.legal .container {
    max-width: 760px;
}

.legal h1 {
    font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.legal .legal-updated {
    color: var(--accent-dark);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.legal h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 2.5rem 0 0.75rem;
}

.legal p,
.legal li {
    color: var(--text-body);
    font-size: 1.02rem;
    line-height: 1.75;
}

.legal p + p {
    margin-top: 0.9rem;
}

.legal ul {
    margin: 0.75rem 0 0 1.25rem;
}

.legal li + li {
    margin-top: 0.4rem;
}

.legal a {
    color: var(--primary-dark);
    text-underline-offset: 2px;
}

.legal-back {
    display: inline-block;
    margin-top: 3rem;
    font-weight: 600;
}

/* ERROR PAGES (404 / 403) */
.error-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        radial-gradient(ellipse at top, rgba(143, 171, 195, 0.18) 0%, transparent 60%),
        linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
    color: var(--text-light);
    text-align: center;
}

.error-card {
    max-width: 480px;
}

.error-logo img {
    display: block;
    margin: 0 auto;
    height: 84px;
    width: auto;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(187, 202, 214, 0.12);
}

.error-code {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 3rem + 10vw, 8rem);
    line-height: 1;
    color: rgba(187, 202, 214, 0.35);
    margin: 1.5rem 0 0.5rem;
}

.error-page h1 {
    font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem);
    color: #fff;
    margin-bottom: 1rem;
}

.error-text {
    color: var(--accent-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    text-wrap: pretty;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .ally-logo {
        padding: 0 1.5rem;
    }

    .about-content {
        gap: 3rem;
    }

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

}

@media (max-width: 768px) {
    .hero {
        padding: 56px 20px 48px;
    }

    .hide-sm {
        display: none;
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-trust {
        gap: 1rem;
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .hero-trust li {
        flex: 1;
    }

    .hero-trust strong {
        font-size: 1.6rem;
    }

    .services,
    .allies,
    .about,
    .contact {
        padding: 64px 0;
    }

    .section-subtitle,
    .services .section-subtitle,
    .allies .section-subtitle {
        margin-bottom: 2rem;
    }

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

    .service-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
        align-items: start;
        padding: 1.25rem;
    }

    .service-card:hover {
        transform: none;
    }

    .service-icon {
        grid-row: span 2;
        width: 46px;
        height: 46px;
        margin-bottom: 0;
    }

    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .service-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    /* Two per row, no dividers: a wrapped row of pipes looks broken. */
    .allies-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
    }

    .ally-logo {
        height: 72px;
        padding: 0;
    }

    .ally-logo + .ally-logo {
        border-left: none;
    }

    .ally-logo:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .ally-logo img {
        height: 52px;
    }

    .ally-el-potosi img {
        height: 30px;
    }

    .ally-banorte img {
        height: 34px;
    }

    .ally-mapfre img {
        height: 24px;
    }

    .ally-qualitas img {
        height: 72px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-list {
        grid-template-columns: 1fr;
    }

    .about-image::before {
        inset: 12px -12px -12px 12px;
    }

    .about-image {
        margin-right: 12px;
    }

    .about-image img {
        aspect-ratio: 4 / 3;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .whatsapp-float {
        width: 56px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-label {
        display: none;
    }

    footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .legal {
        padding: 48px 0 72px;
    }
}

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

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

/* Contact form spam trap: off-screen, not display:none (some bots skip those). */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
