/* ==========================================================================
   PROTEBA S.A.P.I. — Hoja de estilos principal
   ========================================================================== */

:root {
	--navy-950: #050f26;
	--navy-900: #081840;
	--navy-800: #0b1f4d;
	--navy-700: #13306f;
	--blue-600: #1f3f99;
	--blue-100: #e6ecfa;
	--gold-500: #f5b50a;
	--gold-400: #ffc633;
	--gold-100: #fff4d1;
	--ink: #0f1a33;
	--text: #3b4559;
	--muted: #667089;
	--line: #e2e7f1;
	--bg: #ffffff;
	--bg-alt: #f4f6fb;
	--success: #127a46;
	--danger: #b42318;

	--font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(11, 31, 77, .06), 0 2px 8px rgba(11, 31, 77, .06);
	--shadow: 0 10px 30px -10px rgba(11, 31, 77, .25);
	--shadow-lg: 0 24px 60px -20px rgba(5, 15, 38, .45);

	--header-h: 76px;
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(64px, 9vw, 112px);
}

/* Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; letter-spacing: .01em; }
strong { color: var(--ink); font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.sr-only {
	position: absolute !important; 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: 16px; top: -100px; z-index: 1000;
	background: var(--gold-500); color: var(--navy-900); font-weight: 600;
	padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

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

/* Botones
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .7em 1.4em;
	border: 2px solid transparent; border-radius: 999px;
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: .85em 1.7em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 8px 20px -8px rgba(245, 181, 10, .7); }
.btn--gold:hover { background: var(--gold-400); }
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.link { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Barra superior
   ========================================================================== */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .8); font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__item, .topbar__links a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a { transition: color .2s; }
.topbar__links a:hover { color: var(--gold-400); }
.topbar .icon { color: var(--gold-500); }

@media (max-width: 720px) {
	.topbar__item, .topbar__links a[href^="mailto"] { display: none; }
	.topbar__inner { justify-content: center; }
}

/* Encabezado
   ========================================================================== */
.header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
	position: relative; display: block; padding: 10px 12px;
	font-weight: 600; color: var(--ink); transition: color .2s;
}
.nav__list a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
	background: var(--gold-500); border-radius: 2px;
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--blue-600); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
	display: none; width: 46px; height: 46px; padding: 12px 11px;
	border: 0; border-radius: var(--radius-sm); background: var(--bg-alt); cursor: pointer;
	flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: flex; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px;
		background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
		max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
	.nav__list a::after { display: none; }
	.nav__cta { width: 100%; }
}

@media (max-width: 480px) {
	:root { --header-h: 66px; }
	.brand img { height: 44px; }
}

/* Encabezados de sección
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .78); }
.section--dark .title, .section--dark h3 { color: #fff; }

.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__lead { margin-top: 14px; font-size: 1.125rem; color: var(--muted); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
	font-family: var(--font-head); font-weight: 700; font-size: .95rem;
	letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold-500); border-radius: 2px; }
.eyebrow--light { color: var(--gold-400); }

.title { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; text-wrap: balance; }

.muted { color: var(--muted); }

/* Hero
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center;
	min-height: min(88vh, 760px);
	padding-block: clamp(72px, 10vw, 120px) clamp(120px, 14vw, 170px);
	color: #fff;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -2; }
.hero__bg img { object-fit: cover; object-position: 60% 30%; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(95deg, rgba(5, 15, 38, .94) 0%, rgba(8, 24, 64, .86) 42%, rgba(8, 24, 64, .35) 100%),
		linear-gradient(0deg, rgba(5, 15, 38, .6), transparent 40%);
}
.hero__content { max-width: var(--container); }
.hero h1 {
	max-width: 15ch; color: #fff;
	font-size: clamp(2.6rem, 6.4vw, 4.75rem); font-weight: 700; line-height: 1.02; text-wrap: balance;
}
.hero h1 span { color: var(--gold-500); }
.hero__lead { max-width: 54ch; margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.hero__badges li {
	display: flex; align-items: center; height: 60px; padding: 8px 16px;
	background: rgba(255, 255, 255, .95); border-radius: var(--radius-sm);
}
.hero__badges img { height: 40px; width: auto; }

/* Cifras
   ========================================================================== */
.stats { position: relative; z-index: 2; margin-top: clamp(-90px, -8vw, -64px); }
.stats__grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { display: flex; flex-direction: column; gap: 2px; padding: clamp(20px, 3vw, 34px) clamp(16px, 2.5vw, 30px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; color: var(--navy-800); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-weight: 500; color: var(--muted); }
.stat:last-child { background: var(--navy-800); }
.stat:last-child .stat__num { color: var(--gold-500); }
.stat:last-child .stat__label { color: rgba(255, 255, 255, .8); }

@media (max-width: 760px) {
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Bloques de dos columnas
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(36px, 6vw, 80px); }
.split--reverse { grid-template-columns: 1fr 1.05fr; }
.split__text > p + p, .split__text > .title + p { margin-top: 18px; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (max-width: 900px) {
	.split, .split--reverse { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 2; }
}

#nosotros { padding-top: calc(var(--section-y) * .9); }

.mission {
	margin-top: 28px; padding: 22px 24px;
	background: var(--bg-alt); border-left: 4px solid var(--gold-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.mission h3 { font-size: 1.5rem; margin-bottom: 8px; }

.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.values li {
	padding: 6px 14px; border-radius: 999px;
	background: var(--blue-100); color: var(--navy-700); font-weight: 600; font-size: .95rem;
}

.media-badge {
	position: absolute; left: -18px; bottom: -22px;
	display: flex; flex-direction: column; padding: 16px 22px;
	background: var(--gold-500); color: var(--navy-900); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.media-badge strong { font-family: var(--font-head); font-size: 2.25rem; line-height: 1; color: var(--navy-900); }
.media-badge span { font-weight: 600; font-size: .9rem; }
@media (max-width: 900px) { .media-badge { left: 16px; } }

/* Servicios
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
	position: relative; padding: 30px 28px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::after {
	content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px;
	background: var(--gold-500); border-radius: 0 0 3px 3px; transform: scaleX(0); transition: transform .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card h3 { font-size: 1.5rem; margin: 18px 0 8px; }
.card p { color: var(--muted); }
.card__icon {
	display: grid; place-items: center; width: 56px; height: 56px;
	background: var(--navy-800); color: var(--gold-500); border-radius: 14px;
}
.card__icon svg { width: 28px; height: 28px; }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Por qué elegirnos
   ========================================================================== */
.why { position: relative; overflow: hidden; }
.why::before {
	content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px;
	background: radial-gradient(circle, rgba(31, 63, 153, .55), transparent 65%);
	pointer-events: none;
}
.why .container { position: relative; }
.why__media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; box-shadow: var(--shadow-lg); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.why__item { display: flex; gap: 16px; }
.why__item h3 { font-size: 1.375rem; margin-bottom: 6px; }
.why__item p { font-size: 1rem; }
.why__icon {
	display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px;
	border: 1px solid rgba(245, 181, 10, .35); background: rgba(245, 181, 10, .1);
	color: var(--gold-500); border-radius: 12px;
}
.why__icon svg { width: 24px; height: 24px; }

@media (max-width: 900px) { .why__media img { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .why__list { grid-template-columns: 1fr; } }

/* Cobertura
   ========================================================================== */
.coverage { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 28px 0; }
.coverage li {
	position: relative; padding: 14px 18px 14px 38px; background: var(--bg-alt); border-radius: var(--radius-sm);
	font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600);
}
.coverage li::before {
	content: ""; position: absolute; left: 18px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
	background: var(--gold-500); border-radius: 50%;
}
.coverage small { font-family: inherit; font-size: .75em; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }

@media (max-width: 520px) { .coverage { grid-template-columns: 1fr 1fr; } }

.map { overflow: hidden; border-radius: var(--radius); }
.map img { box-shadow: none; border-radius: 0; }
.map__video { width: 100%; height: auto; aspect-ratio: 1200 / 821; object-fit: cover; background: #86b2f2; }

/* Galería
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery__item { overflow: hidden; border-radius: var(--radius-sm); background: var(--line); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item a, .gallery__item picture { position: relative; display: block; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item a::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(5, 15, 38, .55), transparent 55%);
	opacity: 0; transition: opacity .3s;
}
.gallery__zoom {
	position: absolute; right: 12px; bottom: 12px; z-index: 1;
	display: grid; place-items: center; width: 40px; height: 40px;
	background: var(--gold-500); color: var(--navy-900); border-radius: 50%;
	opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.gallery__item a:hover img, .gallery__item a:focus-visible img { transform: scale(1.05); }
.gallery__item a:hover::after, .gallery__item a:focus-visible::after,
.gallery__item a:hover .gallery__zoom, .gallery__item a:focus-visible .gallery__zoom { opacity: 1; transform: none; }

@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery { grid-auto-rows: 140px; gap: 10px; } }
@media (hover: none) { .gallery__zoom { opacity: .9; transform: none; width: 34px; height: 34px; } }

.guards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
.guards li {
	display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
	padding-top: 16px; border-radius: var(--radius);
	background: #fff; border: 1px solid var(--line); border-bottom: 4px solid var(--navy-800);
}
.guards img { width: 92%; transition: transform .4s; }
.guards li:hover img { transform: translateY(-6px); }
@media (max-width: 760px) { .guards { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Visor de galería */
.lightbox {
	width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(5, 15, 38, .94); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5, 15, 38, .6); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 72px; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100dvh - 160px); width: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: rgba(255, 255, 255, .8); text-align: center; }
.lightbox__btn {
	position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
	transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.lightbox figure { padding: 64px 12px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}

/* Clientes
   ========================================================================== */
.clients { padding-bottom: calc(var(--section-y) * .8); }
.clients .section__head { margin-bottom: 32px; }
.marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee.is-ready .marquee__track { animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
html:not(.js) .marquee { overflow-x: auto; }
.marquee__track li { flex: 0 0 auto; padding: 0 clamp(16px, 2.5vw, 32px); }
.marquee__track img {
	height: clamp(52px, 6vw, 70px); width: auto;
	transition: transform .3s;
}
.marquee__track li:hover img { transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contacto
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact__info > p { margin-top: 14px; font-size: 1.125rem; }
.contact__cards { display: grid; gap: 14px; margin-top: 28px; }
.mini-card { display: flex; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.mini-card h3 { font-size: 1.25rem; margin-bottom: 2px; }
.mini-card p { font-size: .975rem; color: var(--muted); }
.mini-card__icon {
	display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px;
	background: var(--gold-100); color: var(--navy-800); border-radius: 12px;
}
.mini-card__icon svg { width: 22px; height: 22px; }

.contact__list { display: grid; gap: 14px; margin-top: 28px; }
.contact__list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; color: var(--ink); }
.contact__list .icon { margin-top: .25em; color: var(--blue-600); }
.contact__list a:hover { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }

.form-card { padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--gold-500); }
.form-card__title { font-size: 1.75rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.field label span { color: var(--danger); }
.field label .optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 11px 14px;
	background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
	appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f4d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; background-color: #fff; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(31, 63, 153, .12);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background-color: #fff; }
.field__error { margin-top: 4px; font-size: .875rem; color: var(--danger); }
.g-recaptcha { min-height: 78px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { margin: 16px 0; font-size: .875rem; color: var(--muted); }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 12px 16px; background: #e7f6ee; color: var(--success); border-radius: var(--radius-sm); }
.form-status.is-error { padding: 12px 16px; background: #fdecea; color: var(--danger); border-radius: var(--radius-sm); }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .g-recaptcha { transform: scale(.88); transform-origin: 0 0; } }

.map-embed { margin-top: clamp(40px, 6vw, 64px); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--line); }
.map-embed iframe { width: 100%; height: clamp(280px, 40vw, 380px); border: 0; }

/* Pie de página
   ========================================================================== */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); font-size: .975rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-block: clamp(48px, 7vw, 80px); }
.footer__brand img { width: 220px; }
.footer__brand p { max-width: 38ch; margin: 18px 0 20px; }
.footer h2 { font-size: 1.25rem; margin-bottom: 16px; color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a:hover { color: var(--gold-400); }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .icon { margin-top: .3em; color: var(--gold-500); }
.social {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s, color .2s;
}
.social:hover { background: var(--gold-500); color: var(--navy-900); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; }
.footer__bottom a { color: #fff; font-weight: 600; }
.footer__bottom a:hover { color: var(--gold-400); }

@media (max-width: 900px) {
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante
   ========================================================================== */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90;
	display: grid; place-items: center; width: 58px; height: 58px;
	background: #25d366; color: #fff; border-radius: 50%;
	box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6);
	transition: transform .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }

/* Animaciones al hacer scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.marquee { -webkit-mask-image: none; mask-image: none; }
	.marquee__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; }
	.marquee__track li[aria-hidden="true"] { display: none; }
}
