/* ==========================================================================
   Tubos y Herrajes Laguneros — Hoja de estilos principal
   ========================================================================== */

:root {
  --navy-950: #06111d;
  --navy-900: #0b1d30;
  --navy-800: #102a44;
  --navy-700: #173a5c;
  --steel-500: #5b6b7b;
  --steel-300: #a9b5c1;
  --steel-100: #e6ebf0;
  --accent: #f5b301;
  --accent-600: #d99a00;
  --accent-50: #fff7dc;

  --bg: #ffffff;
  --bg-tint: #f4f6f9;
  --surface: #ffffff;
  --text: #0e1b28;
  --muted: #566476;
  --border: #e2e7ed;

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

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 48, .06), 0 2px 8px rgba(11, 29, 48, .05);
  --shadow: 0 10px 30px -10px rgba(11, 29, 48, .22);
  --shadow-lg: 0 24px 60px -20px rgba(11, 29, 48, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; color: var(--navy-900); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.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: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--navy-950); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 40px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow .icon { display: none; }
.eyebrow--light { color: var(--accent); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: .005em;
}
.section__head { max-width: 760px; margin-bottom: 44px; }
.lead { font-size: 1.15rem; color: var(--navy-800); font-weight: 500; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--navy-950); box-shadow: 0 8px 24px -8px rgba(245, 179, 1, .6); }
.btn--accent:hover { background: #ffc21f; color: var(--navy-950); }
.btn--primary { background: var(--navy-900); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-weight: 600; color: var(--navy-800); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-950); color: var(--steel-300); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__group { display: flex; gap: 24px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar a.topbar__item:hover { color: var(--accent); }
.topbar .icon { color: var(--accent); width: 14px; height: 14px; }

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

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand__mark { width: 44px; height: 44px; flex: none; transition: transform .3s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); text-transform: uppercase; }
.brand__text strong { font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; }
.brand__text span { font-size: .95rem; font-weight: 600; letter-spacing: .32em; color: var(--accent-600); margin-top: 3px; }
.brand--light { color: #fff; }
.brand--light .brand__text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 10px 14px;
  font-weight: 600; font-size: .95rem; color: var(--navy-800); text-decoration: none;
  border-radius: 8px; transition: color .2s, background .2s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__list a:hover { color: var(--navy-950); background: var(--bg-tint); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--navy-950); }

.nav-toggle {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; color: var(--navy-900);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .nav-toggle__open { display: inline-flex; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--navy-950);
}
.hero__bg, .page-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  animation: slowzoom 18s ease-out both;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 17, 29, .94) 0%, rgba(6, 17, 29, .78) 42%, rgba(6, 17, 29, .25) 100%),
    linear-gradient(0deg, rgba(6, 17, 29, .6), transparent 40%);
}
.hero__inner { padding-top: 96px; padding-bottom: 120px; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: .92; letter-spacing: .005em;
  color: #fff; max-width: 12ch; margin-bottom: 18px;
}
.hero__title span { color: var(--accent); display: block; }
.hero__tagline {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 600;
  color: #fff; letter-spacing: .02em; margin-bottom: 14px;
}
.hero__lead { max-width: 560px; font-size: 1.08rem; color: rgba(255, 255, 255, .82); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0 clamp(64px, 9vw, 110px);
  color: #fff; background: var(--navy-950);
}
.page-hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: .95; color: #fff; margin-bottom: 16px;
}
.page-hero__lead { max-width: 640px; font-size: 1.1rem; color: rgba(255, 255, 255, .82); margin: 0; }
.breadcrumb { display: flex; gap: 10px; font-size: .85rem; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -64px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { display: flex; flex-direction: column; gap: 4px; padding: 30px 28px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat__icon { width: 30px; height: 30px; color: var(--accent-600); margin-bottom: 10px; }
.stat strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--navy-900); line-height: 1.05; }
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tint { background: var(--bg-tint); }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split__text p { color: var(--muted); }
.split__text .lead { color: var(--navy-800); }
.split__media { position: relative; }
.split__media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.split__media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%;
  border: 3px solid var(--accent); border-radius: var(--radius-lg); z-index: -1;
}
.split__media { isolation: isolate; }
.badge-float {
  position: absolute; left: -24px; bottom: 32px;
  display: flex; flex-direction: column; padding: 18px 24px;
  background: var(--navy-900); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.badge-float strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.badge-float span { font-size: .85rem; color: var(--steel-300); }

.checklist { display: grid; gap: 10px; margin-top: 22px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--navy-800); }
.checklist .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent-600);
}

/* ---------- Tarjetas con foto ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-card {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); background: var(--navy-900);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-card:hover img { transform: scale(1.06); }
.photo-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 17, 29, .88));
}
.photo-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px;
  display: flex; flex-direction: column; color: #fff;
}
.photo-card figcaption strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.photo-card figcaption span { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.photo-card figcaption::before { content: ""; width: 36px; height: 3px; background: var(--accent); margin-bottom: 12px; }

/* ---------- Familias (home) ---------- */
.family-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.family-chip {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--navy-900); font-weight: 600; text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s, background .2s;
}
.family-chip .icon {
  width: 34px; height: 34px; padding: 8px; border-radius: 10px;
  background: var(--accent-50); color: var(--accent-600); transition: background .2s, color .2s;
}
.family-chip:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy-950); }
.family-chip:hover .icon { background: var(--accent); color: var(--navy-950); }

/* ---------- Misión / Visión ---------- */
.wide-photo { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.wide-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.mv-card h2 { font-family: var(--font-display); font-size: 2.2rem; text-transform: uppercase; }
.mv-card p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.mv-card__icon {
  display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--accent); color: var(--navy-950); margin-bottom: 20px;
}
.mv-card__icon .icon { width: 26px; height: 26px; }
.mv-card--dark { background: var(--navy-900); border-color: var(--navy-900); }
.mv-card--dark h2 { color: #fff; }
.mv-card--dark p { color: var(--steel-300); }

/* ---------- Features (servicios) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 34px 30px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--navy-900); color: var(--accent); margin-bottom: 22px;
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Catálogo ---------- */
.section--catalog { position: relative; }
.anchor { position: absolute; top: calc(-1 * var(--header-h)); }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.search {
  position: relative; flex: 1 1 340px; max-width: 520px;
  display: flex; align-items: center;
}
.search .icon { position: absolute; left: 16px; color: var(--steel-500); pointer-events: none; }
.search input {
  width: 100%; padding: 14px 18px 14px 46px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 179, 1, .2); }
.catalog-count { margin: 0; color: var(--muted); font-size: .92rem; }
.catalog-count span { font-weight: 700; color: var(--navy-900); }

.filters {
  display: flex; gap: 8px; margin-bottom: 34px; padding-bottom: 6px;
  overflow-x: auto; scrollbar-width: thin; flex-wrap: wrap;
}
.filter {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--navy-800); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter span {
  font-size: .72rem; min-width: 22px; padding: 1px 7px; border-radius: 999px;
  background: var(--bg-tint); color: var(--muted); text-align: center;
}
.filter:hover { border-color: var(--navy-700); }
.filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter.is-active span { background: var(--accent); color: var(--navy-950); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.product__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 17, 29, .05), rgba(6, 17, 29, .45)); }
.product__tag {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--navy-950);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.product__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.product__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 12px; }
.product__label { margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-500); }
.keys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.keys li {
  padding: 3px 9px; border-radius: 6px; background: var(--bg-tint); border: 1px solid var(--border);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .76rem; color: var(--navy-800);
}
.keys--many { max-height: 128px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.product__note { font-size: .88rem; color: var(--navy-700); font-weight: 600; margin: 0 0 10px; }
.product__use { font-size: .93rem; color: var(--muted); margin: 0 0 16px; }
.product__use strong { color: var(--navy-900); }
.product__cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .9rem; color: var(--navy-800); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 1px;
}
.product__cta .icon { transition: transform .2s var(--ease); }
.product__cta:hover .icon { transform: translateX(4px); }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 22px; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list strong { display: block; color: var(--navy-900); margin-bottom: 2px; }
.contact-list p { margin: 0; color: var(--muted); }
.contact-list a { word-break: break-word; }
.contact-list__icon {
  display: inline-flex; flex: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--accent-50); color: var(--accent-600);
}
.contact-list__icon .icon { width: 22px; height: 22px; }
.contact-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.contact-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.form-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.form-card h2 { font-family: var(--font-display); font-size: 2.2rem; text-transform: uppercase; color: #fff; }
.form-card__lead { color: var(--steel-300); font-size: .95rem; margin-bottom: 26px; }
.form-card__lead strong { color: #fff; font-weight: 600; word-break: break-word; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .82rem; font-weight: 600; color: var(--steel-300); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(245, 179, 1, .18); }
.field textarea { resize: vertical; min-height: 120px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff7a6b; }
.form__error { margin: 0; color: #ffb4aa; font-size: .9rem; }

.map-section { line-height: 0; }
.map-section iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: clamp(56px, 8vw, 84px) 0;
}
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(245, 179, 1, .08);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: #fff; text-transform: uppercase; }
.cta-band p { color: var(--steel-300); margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.1fr 1.2fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer__brand p { margin: 18px 0 0; color: #fff; font-weight: 500; }
.footer__brand .footer__small { margin-top: 10px; color: var(--steel-300); font-weight: 400; font-size: .88rem; }
.footer__title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a, .footer__contact a { color: var(--steel-300); text-decoration: none; transition: color .2s; }
.footer__links a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { color: var(--accent); margin-top: 4px; width: 16px; height: 16px; }
.footer__contact a { word-break: break-word; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .84rem; color: var(--steel-500); }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: var(--navy-950); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.to-top .icon { transform: rotate(-90deg); width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--navy-950); background: #ffc21f; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__cta { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px var(--gutter) 28px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { padding: 14px 12px; font-size: 1.05rem; }
  .nav__list a::after { left: 12px; right: auto; width: 28px; bottom: 8px; }
  .nav__cta { display: inline-flex; }
  body.nav-open { overflow: hidden; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .badge-float { left: 16px; }
  .cards-3, .feature-grid { grid-template-columns: 1fr 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
}

@media (max-width: 640px) {
  .topbar__inner > .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__group { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .topbar__group a:last-child { display: none; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__text strong { font-size: 1.1rem; }
  .brand__text span { font-size: .8rem; }
  .hero__inner { padding-top: 64px; padding-bottom: 104px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 24px; }
  .stat:last-child { border-bottom: 0; }
  .cards-3, .feature-grid { grid-template-columns: 1fr; }
  .split__media::before { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .filters { flex-wrap: nowrap; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .map-section iframe { height: 320px; }
}
