:root {
    --navy: #0b2545;
    --navy-soft: #16355c;
    --teal: #0d9488;
    --teal-dark: #0a5c56;
    --paper: #f6f8f7;
    --white: #ffffff;
    --ink: #132033;
    --muted: #334155;
    --line: rgba(11, 37, 69, 0.12);
    --font: "Manrope", sans-serif;
    --serif: "Source Serif 4", Georgia, serif;
    --max: 1120px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

:focus-visible {
    outline: 3px solid #0a5c56;
    outline-offset: 3px;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 17px;
}

body.nav-lock { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    background: var(--navy);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    z-index: 200;
}

.skip-link:focus,
.skip-link:focus-visible { top: 0.75rem; }

[aria-invalid="true"] {
    outline: 2px solid #9f1239;
    outline-offset: 2px;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--navy);
}

.logo-mark { width: 52px; height: 52px; object-fit: contain; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text strong { font-size: 1.05rem; letter-spacing: 0.04em; }
.logo-text small { color: var(--muted); font-size: 0.72rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.85rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.15rem;
    line-height: 1.2;
}

.nav-links a.highlight,
.nav-links a:hover { color: var(--teal-dark); }

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.lang-switch button {
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border: 0;
    background: transparent;
    color: var(--navy);
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.lang-switch button.is-active {
    background: var(--navy);
    color: #fff;
}

.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}

.lang-note {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    background: #eef6f4;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

[data-lang-block="en"] { display: none; }
html[data-lang="en"] [data-lang-block="en"] { display: block; }
html[data-lang="en"] [data-lang-block="es"] { display: none; }
[data-lang-block][hidden] { display: none !important; }

.kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

.kicker.left { text-align: left; }

.hero {
    background: linear-gradient(180deg, #ffffff 0%, #eef6f4 100%);
    padding: 2.5rem 0 3.5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 1rem;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 40rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.hero-brand {
    background: var(--white);
    border-radius: 28px;
    padding: 1.25rem;
    box-shadow: 0 18px 50px rgba(11, 37, 69, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); }
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line);
}

.btn-whatsapp {
    background: #146c5b;
    color: #fff !important;
    gap: 0.45rem;
}

.btn-whatsapp:hover {
    background: #0f5849;
    color: #fff;
}

.wa-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #146c5b;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    padding: 0.9rem 1.2rem 0.9rem 1rem;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(15, 88, 73, 0.4);
    font-size: 1rem;
}

.wa-float:hover { background: #0f5849; color: #fff; }

.wa-float i { font-size: 1.45rem; line-height: 1; }

.section { padding: clamp(3.5rem, 8vw, 5.25rem) 0; }
.section-alt { background: #e8f1ee; }

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    color: var(--navy);
    text-align: center;
    margin-bottom: 0.85rem;
}

.section-lead {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.2rem;
    color: var(--muted);
}

.mission-grid,
.cards,
.ways,
.contact-layout,
.footer-grid {
    display: grid;
    gap: 1.2rem;
}

.mission-grid { grid-template-columns: repeat(2, 1fr); }
.cards { grid-template-columns: repeat(2, 1fr); }
.ways { grid-template-columns: repeat(3, 1fr); margin-bottom: 2.25rem; }
.contact-layout { grid-template-columns: 0.75fr 1.25fr; align-items: start; }

.panel,
.card,
.ways article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.4rem 1.35rem;
}

.panel h3,
.card h3,
.ways h3 {
    color: var(--navy);
    margin-bottom: 0.45rem;
    font-size: 1.08rem;
}

.panel p,
.card p,
.ways p {
    color: var(--muted);
    font-size: 0.98rem;
}

.card i {
    color: var(--teal);
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.contact-info p {
    margin-bottom: 0.85rem;
    color: var(--muted);
}

.contact-info i { color: var(--teal); margin-right: 0.4rem; }

.form {
    display: grid;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    position: relative;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
}

.form input,
.form select,
.form textarea {
    font: inherit;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
}

.form .btn { width: 100%; }
.form-intro {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.footer {
    background: var(--navy);
    color: #d7e3ee;
    padding: 2.75rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    padding-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    width: 148px;
    max-width: 100%;
    margin: 0;
    background: #fff;
    border-radius: 14px;
    padding: 0.45rem;
}

.footer h3 { color: #fff; margin-bottom: 0.7rem; font-size: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.4rem; }
.footer a { color: #d7e3ee; text-decoration: none; }
.footer a:hover { color: #fff; }

.legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 1rem var(--gutter);
    font-size: 0.85rem;
    color: #c5d4e0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.consent {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.5;
}

.consent input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.form-feedback.is-error { color: #9f1239; }

.page-hero {
    padding: calc(var(--header-h) + 2rem) 0 1.5rem;
}

.page-banner {
    background: linear-gradient(180deg, #ffffff 0%, #eef6f4 100%);
    padding: calc(var(--header-h) + 2.2rem) 0 3.25rem;
}

.page-banner-copy { max-width: 40rem; }

.page-banner h1 {
    font-family: var(--serif);
    color: var(--navy);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.page-banner .lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1.15rem;
}

.page-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.6rem;
}

.page-facts article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.page-facts h2 {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 0.35rem;
}

.page-facts p {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.page-main {
    padding: 0 var(--gutter);
}

.page-sheet {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    max-width: 46rem;
    margin: -2.4rem auto 0;
    box-shadow: 0 18px 50px rgba(11, 37, 69, 0.07);
}

.page-sheet h2 {
    color: var(--navy);
    font-size: 1.15rem;
    margin: 1.6rem 0 0.55rem;
}

.page-sheet h2:first-child { margin-top: 0; }

.page-sheet p,
.page-sheet li { color: var(--muted); margin-bottom: 0.75rem; }

.page-sheet ul { padding-left: 1.2rem; margin-bottom: 1rem; }

.page-sheet .meta { font-size: 0.92rem; }

.map-cards {
    max-width: var(--max);
    margin: -2.4rem auto 0;
}

.map-cards a.card {
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}

.map-cards a.card:hover {
    border-color: rgba(10, 92, 86, 0.35);
}

.prose {
    max-width: 46rem;
    margin: 0 auto 4rem;
}

.prose h1 {
    font-family: var(--serif);
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.prose h2 {
    color: var(--navy);
    font-size: 1.2rem;
    margin: 1.75rem 0 0.6rem;
}

.prose p, .prose li { color: var(--muted); margin-bottom: 0.75rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.prose .meta { font-size: 0.92rem; }
