/* Red de Servicios — sitio público
   Paleta tomada del sitio anterior: verde petróleo #004344, oliva #8F9136, salvia #CFDAB8 */

:root {
    --teal-950: #002324;
    --teal-900: #00302f;
    --teal-800: #004344;
    --teal-700: #0b5a5b;
    --teal-100: #dcebea;
    --olive-700: #6b6d22;
    --olive-600: #8f9136;
    --olive-300: #c9cb86;
    --sage-50: #f5f8ef;
    --sage-100: #ebf1df;
    --sage-300: #cfdab8;
    --ink: #142120;
    --text: #33403f;
    --muted: #5d6b69;
    --line: #dfe6e1;
    --white: #fff;
    --danger: #b42318;
    --success: #1f7a4d;

    --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Source Serif 4", Georgia, serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0, 35, 36, .06), 0 1px 3px rgba(0, 35, 36, .06);
    --shadow: 0 10px 30px -12px rgba(0, 35, 36, .22);
    --container: 1180px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-800); text-underline-offset: 3px; }
a:hover { color: var(--olive-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--olive-600); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--primary { background: var(--teal-800); color: var(--white); }
.btn--primary:hover { background: var(--teal-700); color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--teal-800); background: var(--white); }
.btn--ghost:hover { border-color: var(--teal-800); color: var(--teal-800); }
.btn--light { background: var(--white); color: var(--teal-900); }
.btn--light:hover { background: var(--sage-100); color: var(--teal-900); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }

.eyebrow {
    display: inline-block; margin: 0 0 .75rem;
    font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
    color: var(--olive-700);
}
.eyebrow--light { color: var(--olive-300); }

/* ---------- Topbar y header ---------- */
.topbar { background: var(--teal-950); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__item, .topbar__links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__links { display: flex; gap: 20px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar .icon { width: 15px; height: 15px; opacity: .8; }

.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { width: 190px; height: auto; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav__link {
    display: block; padding: 8px 12px; border-radius: 999px;
    color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.nav__link:hover { color: var(--teal-800); background: var(--sage-50); }
.nav__link.is-active { color: var(--teal-800); background: var(--sage-100); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(143, 145, 54, .14), transparent 60%),
        linear-gradient(180deg, var(--sage-50), var(--white));
    padding: 72px 0 88px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero__title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.01em; line-height: 1.08;
    color: var(--teal-900); margin-bottom: .45em;
}
.hero__lead { font-size: 1.15rem; max-width: 36em; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { position: relative; }
.hero__media img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 28px 28px 28px 120px; box-shadow: var(--shadow);
}
.hero__media::before {
    content: ""; position: absolute; inset: -18px -18px auto auto; width: 55%; height: 55%;
    border-radius: 28px; background: var(--sage-300); z-index: -1;
}
.hero__badge {
    position: absolute; left: -28px; bottom: 32px;
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    font-size: .9rem; color: var(--muted); line-height: 1.35;
}
.hero__badge strong { display: block; color: var(--ink); }
.hero__badge-icon {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: var(--teal-800); color: var(--white);
}

/* ---------- Franja de respaldo ---------- */
.trust { background: var(--teal-800); color: var(--white); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; gap: 14px; align-items: center; padding: 26px 20px; border-left: 1px solid rgba(255, 255, 255, .12); }
.trust__item:first-child { border-left: 0; padding-left: 0; }
.trust__item .icon { width: 30px; height: 30px; color: var(--olive-300); }
.trust__item strong { display: block; font-size: .98rem; line-height: 1.3; }
.trust__item span { font-size: .85rem; color: rgba(255, 255, 255, .72); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 48px 0 72px; }
.section--alt { background: var(--sage-50); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--teal-900); letter-spacing: -.01em; }
.section__title--sm { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.section__head .section__title, .section__head--row .section__title { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; color: var(--text); text-decoration: none;
}
.card p { margin-bottom: 0; font-size: 1rem; }
.card__icon {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
    border-radius: 14px; background: var(--sage-100); color: var(--teal-800);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__title { font-size: 1.2rem; margin-bottom: .45em; }
.card__more { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--teal-800); }
.card__more .icon { transition: transform .2s; }
.card--link { transition: border-color .2s, box-shadow .2s, transform .2s; }
.card--link:hover { color: var(--text); border-color: var(--sage-300); box-shadow: var(--shadow); transform: translateY(-3px); }
.card--link:hover .card__more .icon { transform: translateX(4px); }
.section--alt .card { border-color: transparent; box-shadow: var(--shadow-sm); }

/* ---------- Pasos (envío de muestras) ---------- */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: -2px;
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--sage-300); color: var(--teal-800); font-weight: 900;
}
.steps strong { display: block; color: var(--ink); }

/* ---------- Documentos ---------- */
.doc-panel { background: var(--teal-800); color: var(--white); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.doc-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.doc-panel__head h3 { color: var(--white); margin: 0; font-size: 1.2rem; }
.doc-panel__head a { color: var(--olive-300); font-weight: 700; font-size: .9rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-panel .doc { background: rgba(255, 255, 255, .07); color: var(--white); border-color: transparent; }
.doc-panel .doc:hover { background: rgba(255, 255, 255, .14); }
.doc-panel .doc__name { color: var(--white); }
.doc-panel .doc__meta { color: rgba(255, 255, 255, .65); }
.doc-panel .doc__action { color: var(--olive-300); }

.doc {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border-radius: 12px; border: 1px solid var(--line); background: var(--white);
    text-decoration: none; color: var(--text); transition: background .2s, border-color .2s, box-shadow .2s;
}
.doc:hover { border-color: var(--sage-300); box-shadow: var(--shadow-sm); color: var(--text); }
.doc__kind {
    flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 52px;
    border-radius: 8px; background: var(--olive-600); color: var(--white);
    font-size: .72rem; font-weight: 900; letter-spacing: .04em;
}
.doc__kind--pdf { background: #b5442f; }
.doc__kind--doc, .doc__kind--docx { background: #2f5ea8; }
.doc__kind--xls, .doc__kind--xlsx { background: #1f7a4d; }
.doc__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.doc__meta { font-size: .85rem; color: var(--muted); }
.doc__detail { font-size: .9rem; margin-top: 4px; }
.doc__action { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--teal-800); }
.doc--card .doc__action { background: var(--sage-100); }
.doc--card:hover .doc__action { background: var(--teal-800); color: var(--white); }

.doc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doc-group + .doc-group { margin-top: 48px; }
.doc-group__title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--olive-700); margin-bottom: 16px; }

.note {
    display: flex; gap: 14px; align-items: flex-start; margin-top: 48px; padding: 20px 24px;
    background: var(--sage-50); border-radius: var(--radius); color: var(--text);
}
.note .icon { width: 24px; height: 24px; color: var(--olive-700); margin-top: 2px; }
.note p { margin: 0; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--sage-50); border-radius: var(--radius); }

/* ---------- Novedades ---------- */
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card__media { display: block; aspect-ratio: 16 / 10; background: var(--sage-100); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--sage-300); }
.news-card__placeholder .icon { width: 56px; height: 56px; }
.news-card__body { padding: 22px 24px 26px; }
.news-card__date { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--olive-700); }
.news-card__title { font-size: 1.15rem; margin: .35em 0 .5em; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card__title a:hover { color: var(--teal-800); }
.news-card__excerpt { font-size: .95rem; color: var(--muted); margin: 0; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager__link { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.pager__link.is-active { background: var(--teal-800); border-color: var(--teal-800); color: var(--white); }

.article__image { margin: 0 0 36px; }
.article__image img { width: 100%; border-radius: var(--radius); }
.article__back { margin-top: 48px; }

/* Texto largo (novedades, acreditación) */
.prose { font-size: 1.08rem; color: var(--text); }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--olive-600); color: var(--ink); font-style: italic; }
.prose a { word-break: break-word; }

/* ---------- Encabezado de páginas internas ---------- */
.page-header {
    position: relative; overflow: hidden; color: var(--white);
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(143, 145, 54, .35), transparent 70%),
        linear-gradient(135deg, var(--teal-900), var(--teal-800));
    padding: 56px 0 64px;
}
.page-header__title { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.01em; margin-bottom: .3em; max-width: 22em; }
.page-header__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .82); max-width: 44em; margin: 0; }
.page-header--article .page-header__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 22px; color: rgba(255, 255, 255, .55); }
.breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb a:last-child { color: var(--white); }

/* ---------- Listas ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004344' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.checklist--cols { grid-template-columns: repeat(2, 1fr); gap: 8px 28px; font-size: .97rem; }
.checklist--boxed { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; gap: 14px; }

.pill-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { padding: 8px 16px; border-radius: 999px; background: var(--sage-100); color: var(--teal-900); font-weight: 700; font-size: .95rem; }

/* ---------- Servicios: buscador + acordeón ---------- */
.services { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.services__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.services__figure { margin: 28px 0 0; }
.services__figure img { border-radius: var(--radius); }
.search input {
    width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px; border: 1px solid var(--line);
    font: inherit; font-size: 1rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b69' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 16px center / 20px no-repeat;
}
.search input:focus { outline: none; border-color: var(--teal-800); box-shadow: 0 0 0 4px var(--teal-100); }
.search__empty { margin-top: 12px; font-size: .95rem; color: var(--muted); }

.accordion { display: grid; gap: 12px; }
.accordion__item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.accordion__item summary {
    display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none;
    font-weight: 700; color: var(--ink);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--sage-100); color: var(--teal-800); }
.accordion__title { flex: 1; }
.accordion__count { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--sage-50); color: var(--muted); }
.accordion__chevron { transition: transform .25s; color: var(--muted); }
.accordion__item[open] .accordion__chevron { transform: rotate(180deg); }
.accordion__item .checklist { padding: 4px 22px 24px 74px; }
.accordion__item li.is-hidden { display: none; }
.accordion__item.is-hidden { display: none; }
mark { background: var(--olive-300); color: var(--ink); border-radius: 3px; padding: 0 2px; }

/* ---------- Acreditación ---------- */
.accred-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); text-align: center; }
.accred-card img { margin: 0 auto 28px; width: 220px; }
.accred-card dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 22px; }
.accred-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.accred-card dd { margin: 4px 0 0; font-weight: 900; color: var(--teal-800); font-size: 1.1rem; }

/* ---------- Imágenes, galería, equipo, sitios ---------- */
.media-frame { margin: 0; }
.media-frame img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-100); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 20, 20, .88); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
.lightbox button { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: var(--white); cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }

.team { margin: 28px 0 0; border-top: 1px solid var(--line); }
.team__row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team dt { font-weight: 700; color: var(--olive-700); }
.team dd { margin: 0; color: var(--ink); }

.partner { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.partner:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.partner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.partner__name { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 700; color: var(--ink); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__hp { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
    font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-800); box-shadow: 0 0 0 4px var(--teal-100); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .88rem; }
.form .btn { justify-self: start; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; }
.alert .icon { margin-top: 3px; }
.alert--success { background: #e7f5ed; color: #14532d; }
.alert--error { background: #fdecea; color: var(--danger); }

.contact__info { display: grid; gap: 24px; }
.contact-list { list-style: none; margin: 0; padding: 28px; display: grid; gap: 20px; background: var(--sage-50); border-radius: var(--radius); }
.contact-list li { display: flex; gap: 14px; }
.contact-list strong { display: block; color: var(--ink); font-size: .9rem; }
.contact-list__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--white); color: var(--teal-800); flex-shrink: 0; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-100); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA y footer ---------- */
.cta { background: linear-gradient(120deg, var(--olive-700), var(--olive-600)); color: var(--white); padding: 56px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta__title { color: var(--white); font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer { background: var(--teal-950); color: rgba(255, 255, 255, .72); padding: 72px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer__brand img { width: 190px; margin-bottom: 20px; }
.footer__brand p { max-width: 30em; }
.footer__title { color: var(--white); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 4px; color: var(--olive-300); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .5); }

.whatsapp {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: var(--white); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
    transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); color: var(--white); }
.whatsapp svg { width: 30px; height: 30px; }

.notfound { text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--sage-300); margin: 0 0 12px; font-weight: 700; }
.notfound__actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .nav-toggle {
        display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
        border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
    }
    .nav-toggle .icon { width: 24px; height: 24px; }
    .nav-toggle .icon--close, .nav-open .nav-toggle .icon--open { display: none; }
    .nav-open .nav-toggle .icon--close { display: block; }
    .nav {
        position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0; max-height: calc(100vh - var(--header-h) - 38px); overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 28px;
        background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
    }
    .header.is-scrolled .nav { inset-block-start: var(--header-h); }
    .nav-open .nav { visibility: visible; opacity: 1; transform: none; }
    .nav__list { flex-direction: column; }
    .nav__link { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
    .nav__cta { align-self: stretch; padding: .9em; }

    .trust__grid { grid-template-columns: repeat(2, 1fr); }
    .trust__item, .trust__item:first-child { border-left: 0; padding: 20px 0; }
    .cards--4 { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: 1fr; gap: 32px; }
    .services__intro { position: static; }
    .services__figure { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .topbar__item { display: none; }
    .topbar__inner { justify-content: center; }
    .hero { padding: 48px 0 64px; }
    .hero__grid, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
    .hero__media { max-width: 440px; margin: 0 auto; }
    .hero__badge { left: 0; }
    .section { padding: 64px 0; }
    .cards--3 { grid-template-columns: repeat(2, 1fr); }
    .doc-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .container { padding: 0 16px; }
    .topbar__links a:not([aria-label]) { font-size: 0; gap: 0; }
    .topbar__links a .icon { width: 18px; height: 18px; }
    .topbar__links { gap: 28px; }
    .brand img { width: 160px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__media::before { display: none; }
    .trust__grid, .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
    .checklist--cols { grid-template-columns: 1fr; }
    .accordion__item .checklist { padding: 4px 18px 20px 22px; }
    .accordion__item summary { padding: 16px 18px; gap: 10px; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .form__row { grid-template-columns: 1fr; }
    .form .btn { justify-self: stretch; }
    .team__row { grid-template-columns: 1fr; gap: 2px; }
    .accred-card { padding: 28px 20px; }
    .footer__grid { grid-template-columns: 1fr; }
    .cta__actions .btn { flex: 1; }
    .page-header { padding: 40px 0 48px; }
}

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