/* ==========================================================================
   Construcciones Natybab · sistema de diseño (Clean Corporate + Bento)
   Sin dependencias: sustituye a Bootstrap 3, jQuery, animate.css y wow.js.
   Colores corporativos: burdeos #821A1A y dorado #ECB731.
   Contraste verificado (WCAG AA/AAA):
     blanco sobre burdeos 10.8:1 · tinta sobre crema 14:1 · dorado sobre burdeos 5.5:1
     texto oscuro sobre dorado 9.9:1  (el dorado nunca se usa como texto sobre fondo claro)
   ========================================================================== */

:root {
	--brand: #821A1A;
	--brand-dark: #5c1010;
	--brand-ink: #ffffff;
	--accent: #ecb731;
	--accent-ink: #2a1c00;
	--accent-text: #7a5600;          /* dorado oscuro apto como texto sobre fondo claro (6:1) */
	--bg: #faf7f2;
	--surface: #ffffff;
	--surface-alt: #f2ece2;
	--ink: #1f1a1a;
	--muted: #5a5050;
	--line: #e4dccf;
	--focus: #0b57d0;
	--radius: 1.25rem;
	--radius-sm: .75rem;
	--shadow: 0 1px 2px rgba(31, 26, 26, .06), 0 8px 24px rgba(31, 26, 26, .08);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 4.5rem;
}

/* Tamaño de texto elegido por la persona usuaria (todo el diseño usa rem) */
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 131.25%; }

/* Alto contraste (botón de accesibilidad o preferencia del sistema) */
html[data-contrast="high"] {
	--brand: #000000;
	--brand-dark: #000000;
	--accent: #ffd400;
	--accent-ink: #000000;
	--accent-text: #000000;
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-alt: #ffffff;
	--ink: #000000;
	--muted: #000000;
	--line: #000000;
	--focus: #0000ee;
}
@media (prefers-contrast: more) {
	html:not([data-contrast]) {
		--muted: #2b2323;
		--line: #7a6e5c;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
picture { height: auto; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
main:focus { outline: none; }

html[data-contrast="high"] a:not(.btn):not(.nav__link):not(.bento__link):not(.card):not(.quickbar__btn) { text-decoration: underline; }

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 4px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible { outline-color: var(--accent); }
html[data-contrast="high"] .site-header :focus-visible,
html[data-contrast="high"] .site-footer :focus-visible,
html[data-contrast="high"] .hero :focus-visible,
html[data-contrast="high"] .cta-band :focus-visible { outline-color: #ffd400; }

.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.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; }
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--accent); color: var(--accent-ink); padding: .75rem 1.25rem;
	border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.75rem; height: 1.75rem; }

/* ---------- Botones (objetivo táctil mínimo 48px) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 3rem; padding: .7rem 1.4rem;
	font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
	border: 2px solid transparent; border-radius: 999px; cursor: pointer;
	background: var(--brand); color: var(--brand-ink);
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--brand-dark); color: var(--brand-ink); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--accent); color: var(--accent-ink); }
.btn--gold:hover { background: #f5c94f; color: var(--accent-ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: var(--brand-ink); }
.btn--sm { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }
html[data-contrast="high"] .btn { border-color: currentColor; }
html[data-contrast="high"] .btn--gold { border-color: #000; }

.icon-btn {
	display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
	background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .45); border-radius: 50%; cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }

/* ---------- Cabecera y navegación ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.header__bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand__logo { width: 8.5rem; height: auto; }
.header__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.header__phone { display: none; align-items: center; gap: .5rem; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.header__cta { display: none; }

.nav__list { display: flex; flex-direction: column; }
.nav__link {
	display: flex; align-items: center; gap: .4rem; width: 100%; min-height: 3rem; padding: .6rem .9rem;
	background: none; border: 0; border-radius: var(--radius-sm); font: inherit; font-weight: 600;
	color: #fff; text-decoration: none; text-align: left; cursor: pointer;
}
.nav__link:hover, .nav__toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.nav__link[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.nav__sub a { display: block; padding: .6rem .9rem; text-decoration: none; color: #fff; border-radius: var(--radius-sm); }
.nav__sub a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav__sub a[aria-current="page"] strong { color: var(--accent); }
.nav__sub strong { display: block; font-weight: 700; }
.nav__sub span { display: block; font-size: .85rem; opacity: .85; line-height: 1.4; }
.nav__extra { display: grid; gap: .6rem; padding: 1rem 0 1.25rem; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Móvil / tablet: panel desplegable. Sin JS el menú queda visible y utilizable */
@media (max-width: 62rem) {
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand-dark); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: .5rem 1rem 0; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
	html.js .nav { display: none; }
	html.js .nav.is-open { display: block; }
	.nav__sub { padding: 0 0 .5rem 1rem; }
	html.js .nav__sub { display: none; }
	html.js .nav__sub.is-open { display: block; }
}
@media (max-width: 62rem) {
	/* Sin JavaScript: el menú pasa a una segunda fila, siempre visible */
	html:not(.js) .header__bar { flex-wrap: wrap; padding-block: .5rem; }
	html:not(.js) .nav { position: static; flex-basis: 100%; max-height: none; padding-inline: 0; box-shadow: none; }
	html:not(.js) .nav-toggle { display: none; }
}
/* Escritorio: barra horizontal con mega-menú de servicios */
@media (min-width: 62.01rem) {
	.nav-toggle, .nav__extra { display: none; }
	.header__phone, .header__cta { display: inline-flex; }
	.nav { margin-left: 1rem; }
	.nav__list { flex-direction: row; gap: .15rem; }
	.nav__link { width: auto; }
	.nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
	.has-sub { position: relative; }
	.nav__sub {
		position: absolute; left: 0; top: 100%; z-index: 5; display: none; width: 22rem; padding: .5rem;
		background: var(--brand-dark); border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
		box-shadow: 0 16px 32px rgba(0, 0, 0, .3);
	}
	.has-sub:hover > .nav__sub,
	.has-sub:focus-within > .nav__sub,
	.nav__sub.is-open { display: block; }
}

/* Panel de accesibilidad */
.a11y-panel { background: #fff; color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .18); }
.a11y-panel[hidden] { display: none; }
.a11y-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1rem; }
.a11y-panel__row { display: flex; align-items: center; gap: .9rem; font-weight: 600; }
.seg { display: inline-flex; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; }
.seg button { min-width: 3rem; min-height: 2.75rem; padding: 0 .9rem; font: inherit; font-weight: 700; background: #fff; color: var(--brand); border: 0; cursor: pointer; }
.seg button + button { border-left: 2px solid var(--brand); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.switch { position: relative; width: 3.5rem; height: 2rem; padding: 0; background: #7d7373; border: 0; border-radius: 999px; cursor: pointer; }
.switch__knob { position: absolute; left: .25rem; top: .25rem; width: 1.5rem; height: 1.5rem; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch[aria-checked="true"] { background: #000; }
.switch[aria-checked="true"] .switch__knob { transform: translateX(1.5rem); }
.link-btn { min-height: 2.75rem; padding: 0 .5rem; background: none; border: 0; font: inherit; font-weight: 600; color: var(--brand); text-decoration: underline; cursor: pointer; }
html[data-contrast="high"] .a11y-panel { border-top: 3px solid #000; }

/* ---------- Estructura de secciones ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--surface-alt); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: .9rem 0 0; }
.eyebrow { display: inline-block; margin-bottom: .75rem; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.on-dark .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--accent); }
html[data-contrast="high"] .on-dark .eyebrow, html[data-contrast="high"] .hero .eyebrow, html[data-contrast="high"] .cta-band .eyebrow { color: #ffd400; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: #26100f; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture { height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(60, 10, 10, .92) 0%, rgba(60, 10, 10, .72) 55%, rgba(60, 10, 10, .45) 100%); }
html[data-contrast="high"] .hero::after { background: rgba(0, 0, 0, .88); }
.hero__inner { display: grid; gap: 2rem; padding-block: clamp(3rem, 8vw, 6rem); align-items: center; }
.hero h1 { color: #fff; }
.hero__kicker { margin: 1rem 0 0; font-size: 1.15rem; font-weight: 600; color: var(--accent); }
html[data-contrast="high"] .hero__kicker { color: #ffd400; }
.hero__lead { margin: 1rem 0 0; font-size: 1.15rem; color: #fff; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; font-size: .9rem; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; }

.quick { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.quick .quick__title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.quick p { margin: .4rem 0 1rem; color: var(--muted); font-size: .95rem; }
.quick__list { display: grid; gap: .6rem; }
.quick__item { display: flex; align-items: center; gap: .9rem; min-height: 3.5rem; padding: .6rem 1rem; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; }
.quick__item:hover { border-color: var(--brand); color: var(--brand); }
.quick__item small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.quick__ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; background: var(--brand); color: #fff; border-radius: 50%; }
@media (min-width: 56rem) { .hero__inner { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; } }

/* Hero compacto de las páginas interiores */
.page-hero { background: var(--brand); color: #fff; padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-hero p { margin: 1rem 0 0; font-size: 1.1rem; color: #fff; opacity: .95; }
.breadcrumb { margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; opacity: .7; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Presentación de la empresa ---------- */
.intro { display: grid; gap: 1.5rem; }
.intro p { font-size: 1.15rem; color: var(--ink); }
@media (min-width: 56rem) { .intro { grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; } }

/* ---------- Bento grid de servicios ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.bento__tile {
	position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 15rem; padding: 1.5rem; overflow: hidden; color: #fff;
	background: var(--brand-dark); border-radius: var(--radius); box-shadow: var(--shadow);
}
.bento__tile > picture, .bento__tile > img { position: absolute; inset: 0; z-index: -2; height: 100%; }
.bento__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bento__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(40, 8, 8, .92) 8%, rgba(40, 8, 8, .35) 62%, rgba(40, 8, 8, .08)); }
html[data-contrast="high"] .bento__tile::after { background: linear-gradient(to top, #000 15%, rgba(0, 0, 0, .7) 100%); }
.bento__tile:hover img { transform: scale(1.04); }
.bento__tile h3 { color: #fff; font-size: 1.4rem; }
.bento__tile p { margin: .5rem 0 0; font-size: .98rem; color: #fff; opacity: .95; max-width: 34ch; }
.bento__link { color: inherit; text-decoration: none; }
.bento__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* tarjeta entera clicable */
.bento__link:focus-visible { outline: none; }
.bento__tile:has(.bento__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.bento__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-weight: 700; color: var(--accent); }
html[data-contrast="high"] .bento__more { color: #ffd400; }
.bento__chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.bento__chips a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .35rem 1rem; font-size: .92rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; text-decoration: none; }
.bento__chips a:hover { background: #f5c94f; color: var(--accent-ink); }
@media (min-width: 40rem) {
	.bento { grid-template-columns: repeat(2, 1fr); }
	.bento__tile--wide { grid-column: span 2; }
}
@media (min-width: 62rem) {
	.bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(13rem, auto); }
	.bento__tile { grid-column: span 3; }
	.bento__tile--tall { grid-row: span 2; }
	.bento__tile--tall h3 { font-size: 1.8rem; }
	.bento__tile--wide { grid-column: span 3; }
}

/* ---------- Ventajas ---------- */
.features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.feature { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__ico { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; background: var(--brand); color: #fff; border-radius: var(--radius-sm); }
.feature h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 40rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .features { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Visión y misión ---------- */
.vm { display: grid; gap: 1rem; }
.vm__card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.vm__card img { width: 100%; height: 11rem; object-fit: cover; }
.vm__body { padding: 1.5rem; }
.vm__body h3 { margin-bottom: .6rem; font-size: 1.4rem; }
.vm__body p { margin: 0; font-size: 1.05rem; }
.vm__card--brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.vm__card--brand h3 { color: var(--accent); }
html[data-contrast="high"] .vm__card--brand h3 { color: #ffd400; }
@media (min-width: 48rem) { .vm { grid-template-columns: 1fr 1fr; } }

/* ---------- Galería (masonry sin JS) ---------- */
.gallery { column-width: 15rem; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; overflow: hidden; background: var(--surface-alt); border-radius: var(--radius-sm); }
.gallery img { width: 100%; }
.gallery--strip { display: grid; grid-template-columns: repeat(2, 1fr); column-width: auto; gap: .75rem; }
.gallery--strip figure { margin: 0; }
.gallery--strip img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 48rem) { .gallery--strip { grid-template-columns: repeat(4, 1fr); } }
.more-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-weight: 700; }

/* ---------- Páginas de servicio ---------- */
.service { display: grid; gap: 2.5rem; }
.service__main > * + * { margin-top: 1rem; }
.service__main h2 { margin-top: 2.25rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.checklist { display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist .icon { margin-top: .2rem; padding: .15rem; width: 1.5rem; height: 1.5rem; background: var(--brand); color: #fff; border-radius: 50%; }
.steps { counter-reset: step; display: grid; gap: 1rem; }
.steps li { position: relative; padding: 1.1rem 1.25rem 1.1rem 4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1.1rem; top: 1rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; font-weight: 800; background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.steps strong { display: block; }
.steps span { color: var(--muted); }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.25rem); padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.aside-card h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.aside-card p { color: var(--muted); font-size: .98rem; }
.aside-card .btn { margin-top: .6rem; }
@media (min-width: 62rem) { .service { grid-template-columns: 1fr 22rem; gap: 3.5rem; align-items: start; } }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { position: relative; display: block; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card img { width: 100%; height: 11rem; object-fit: cover; }
.card__body { padding: 1.1rem 1.25rem 1.3rem; }
.card__body h3 { font-size: 1.15rem; }
.card__body p { margin: .35rem 0 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { background: var(--brand); color: #fff; }
.cta-band__inner { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: .75rem 0 0; color: #fff; opacity: .95; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 56rem) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band__actions { justify-content: flex-end; } }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 2rem; }
@media (min-width: 62rem) { .contact { grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; } }
.form-card { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
@media (min-width: 40rem) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
	display: block; width: 100%; min-height: 3rem; padding: .7rem .9rem; font: inherit; color: var(--ink);
	background: #fff; border: 2px solid #8b7f70; border-radius: var(--radius-sm);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field--error input, .field--error select, .field--error textarea { border-color: #b00020; }
.field__error { margin: .4rem 0 0; font-weight: 600; color: #b00020; font-size: .95rem; }
html[data-contrast="high"] .field__error { color: #b00020; text-decoration: underline; }
.field label.check { font-weight: 500; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; }
.check input { flex: none; width: 1.5rem; height: 1.5rem; margin-top: .1rem; accent-color: var(--brand); }
.check a { font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.25rem; margin-top: 1.25rem; border-radius: var(--radius-sm); border: 2px solid; font-weight: 600; }
.alert--ok { color: #0b4a1f; background: #e8f6ec; border-color: #1b7a3a; }
.alert--err { color: #7a0014; background: #fdecee; border-color: #b00020; }
.alert ul { margin: .4rem 0 0 1.1rem; list-style: disc; font-weight: 500; }
.alert:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

.direct { display: grid; gap: .8rem; }
.direct h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.direct__item { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
a.direct__item:hover { border-color: var(--brand); }
.direct__item strong { display: block; }
.direct__item span { color: var(--muted); font-size: .95rem; }
.direct__item .direct__ico { color: #fff; font-size: 1rem; }
.direct__ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; background: var(--brand); color: #fff; border-radius: 50%; }
.direct__item--main { background: var(--brand); color: #fff; border-color: var(--brand); }
.direct__item--main span { color: #fff; opacity: .9; }
.direct__item--main:hover { background: var(--brand-dark); color: #fff; }
.direct__item--main .direct__ico { background: var(--accent); color: var(--accent-ink); }
.map { margin-top: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.map iframe { display: block; width: 100%; height: 22rem; border: 0; }

/* ---------- Pie ---------- */
.site-footer { background: #2a0c0c; color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer__grid { display: grid; gap: 2rem; padding-block: 3rem; }
.footer__title { font-size: 1.4rem; margin-bottom: .75rem; color: #fff; }
.footer__heading { margin-bottom: .75rem; font-size: 1rem; letter-spacing: .02em; color: var(--accent); }
html[data-contrast="high"] .footer__heading { color: #ffd400; }
.footer__col li + li { margin-top: .15rem; }
.footer__col a { display: inline-block; padding-block: .3rem; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; padding-block: .25rem; }
.contact-list .icon { margin-top: .3rem; color: var(--accent); }
.footer__brand p { opacity: .9; }
.footer__cta p { opacity: .9; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .18); }
.footer__legal p { margin: 0; padding-block: 1.1rem; font-size: .9rem; opacity: .85; max-width: none; }
@media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
html[data-contrast="high"] .site-footer { background: #000; }

/* ---------- Barra de acciones fija (solo móvil) ---------- */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: .5rem; padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); }
.quickbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 3.25rem; font-size: .8rem; font-weight: 700; color: var(--brand); text-decoration: none; border: 2px solid var(--brand); border-radius: var(--radius-sm); }
.quickbar__btn--main { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
html[data-contrast="high"] .quickbar { border-top: 3px solid #000; }
html[data-contrast="high"] .quickbar__btn--main { border-color: #000; }
@media (max-width: 47.99rem) { body { padding-bottom: 5rem; } }
@media (min-width: 48rem) { .quickbar { display: none; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
	.bento__tile:hover img, .card:hover { transform: none; }
}
@media print {
	.site-header, .quickbar, .a11y-panel, .cta-band { display: none; }
}
