/* ==========================================================================
   CATAF-REY — estilos del sitio
   ========================================================================== */

:root {
  --navy: #2e485b;
  --navy-900: #1f303d;
  --navy-950: #172531;
  --accent: #669fc9;
  --accent-600: #4a86b3;
  --ink: #23292f;
  --muted: #5d6874;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --footer: #22252c;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(23, 37, 49, .10);
  --container: 1180px;
  --header-h: 76px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::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.7;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-600); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy-950); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--soft { background: var(--bg-soft); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Encabezado de sección: título + subtítulo + línea */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: .25em; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.section-head::after {
  content: ""; display: block; width: 120px; height: 3px; margin: 22px auto 0;
  background: var(--accent); border-radius: 2px;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 6px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-950); color: #c9d6e2; font-size: .875rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; padding-block: 6px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { width: 190px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: #fff;
}
.nav-toggle svg { width: 28px; height: 28px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a, .main-nav .submenu-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 6px;
  color: #fff; text-decoration: none; font-size: .98rem; font-weight: 500;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .submenu-toggle:hover,
.main-nav [aria-current="page"], .main-nav .is-active > .submenu-toggle { background: var(--navy-900); color: #fff; }
.main-nav [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.submenu-toggle svg { width: 12px; height: 12px; transition: transform .2s; }

.has-submenu { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.submenu a { color: var(--ink); font-weight: 400; padding: 10px 14px; }
.submenu a:hover, .submenu [aria-current="page"] { background: var(--bg-soft); color: var(--navy); box-shadow: none; }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-submenu.open .submenu-toggle svg { transform: rotate(180deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h)) 0 0 0; background: var(--navy);
    overflow-y: auto; padding: 12px 20px 40px;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav .submenu-toggle { width: 100%; padding: 14px 12px; font-size: 1.05rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: var(--navy-900); display: none; min-width: 0;
  }
  .has-submenu:hover .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }
  .submenu a { color: #dfe8f0; }
  .submenu a:hover, .submenu [aria-current="page"] { background: var(--navy-950); color: #fff; }
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero (portada) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px); display: grid; align-items: center;
  color: #fff; background: var(--navy-950);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.hero__slides li {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: heroFade 28s infinite;
}
.hero__slides li:nth-child(1) { opacity: 1; }
.hero__slides li:nth-child(2) { animation-delay: 7s; }
.hero__slides li:nth-child(3) { animation-delay: 14s; }
.hero__slides li:nth-child(4) { animation-delay: 21s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  32% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(23, 37, 49, .92) 0%, rgba(23, 37, 49, .72) 45%, rgba(23, 37, 49, .25) 100%);
}
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(180deg, rgba(23, 37, 49, .55) 0%, rgba(23, 37, 49, .85) 100%); }
}
.hero__content { max-width: 680px; padding-block: 80px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__years {
  display: flex; align-items: stretch; margin-bottom: 26px; width: fit-content;
  font-weight: 700; text-transform: uppercase; line-height: 1;
}
.hero__years strong {
  background: var(--accent); padding: 12px 18px; font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.hero__years > span {
  background: rgba(0, 0, 0, .55); padding: 10px 16px; display: flex; align-items: center;
  font-size: clamp(.95rem, 1.8vw, 1.3rem); letter-spacing: .02em; line-height: 1.15;
}
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #dbe5ee; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .hero__slides li { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cifras ---------- */
.stats { background: var(--navy); color: #fff; }
.stats ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats li { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .12); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: #fff; }
.stats strong small { font-size: .5em; font-weight: 500; color: var(--accent); margin-left: 2px; }
.stats li > span { display: block; margin-top: 8px; color: #b9cad9; font-size: .95rem; line-height: 1.35; }
@media (max-width: 760px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}

/* ---------- Tarjetas de servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23, 37, 49, .16); }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; border-top: 4px solid var(--navy); }
.card__body h3 { margin-bottom: .4em; }
.card__body h3 a { color: inherit; text-decoration: none; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__body p { color: var(--muted); font-size: 1rem; }
.card__more {
  margin-top: auto; font-weight: 700; font-size: .9rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent-600); display: inline-flex; align-items: center; gap: 6px;
}
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__more svg { transform: translateX(4px); }

/* ---------- Video (carga diferida) ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .25); display: grid; place-items: center; transition: background .2s;
}
.video button:hover { background: rgba(0, 0, 0, .1); }
.video button span {
  width: 84px; height: 84px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.video button svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }

/* ---------- Frase / visión ---------- */
.quote {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  background: var(--navy-950) center / cover no-repeat;
}
.quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(23, 37, 49, .82); }
.quote blockquote { margin: 0 auto; max-width: 900px; }
.quote p {
  font-size: clamp(1.4rem, 3.2vw, 2.3rem); font-weight: 700; line-height: 1.3;
  text-transform: uppercase; margin: 0;
}
.quote p em { font-style: normal; color: var(--accent); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-950) 100%); color: #fff; }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { color: #c3d3e1; margin: 0; }

/* ---------- Cabecera de página interna ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff;
  background: var(--navy-950) center / cover no-repeat;
  padding-block: clamp(48px, 8vw, 90px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 25, 34, .6); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .5em 0 0; color: #dbe5ee; font-size: 1.15rem; max-width: 720px; }
.breadcrumb ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--accent); }
.breadcrumb a { color: #c9d6e2; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Contenido de página ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
@media (max-width: 920px) { .content-grid { grid-template-columns: 1fr; gap: 40px; } }
.prose { max-width: 760px; }
.prose .lead { font-size: 1.25rem; color: var(--navy); font-weight: 500; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; fill: var(--accent); }
.check-list--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 32px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 1.8em 0; }
.fact { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px 18px; }
.fact strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--navy); }
.fact span { font-size: .92rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.side-box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.side-box h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .98rem;
}
.side-nav a:hover { background: #fff; color: var(--navy); }
.side-nav [aria-current="page"] { background: var(--navy); color: #fff; }
.side-nav svg { width: 14px; height: 14px; flex: none; }
.side-box--dark { background: var(--navy); color: #dbe5ee; }
.side-box--dark h2 { color: #fff; }
.side-box--dark a.tel { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; display: block; }
.side-box--dark .btn { margin-top: 16px; width: 100%; justify-content: center; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }
.value-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.value-card h2 { font-size: 1.4rem; }
.value-card p:last-child { margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.timeline li { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.timeline strong { display: block; font-size: 2rem; color: var(--accent-600); line-height: 1.1; }
.timeline span { color: var(--muted); font-size: .98rem; line-height: 1.45; display: block; margin-top: 6px; }

/* ---------- Política de calidad ---------- */
.quality-hero {
  position: relative; isolation: isolate; color: #fff;
  background: var(--navy-950) center / cover no-repeat;
  padding-block: clamp(64px, 9vw, 110px);
}
.quality-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(23, 37, 49, .95) 0%, rgba(23, 37, 49, .82) 55%, rgba(46, 72, 91, .7) 100%);
}
.quality-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: center; }
.quality-hero h2 { color: #fff; margin: .3em 0 .7em; }
.purpose { margin: 0; padding-left: 24px; border-left: 4px solid var(--accent); }
.purpose p { margin: 0; font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.35; font-weight: 300; color: #e6eef5; }
.purpose em { font-style: normal; font-weight: 700; color: #fff; }
.seal-wrap { margin: 0; text-align: center; }
.seal { width: 100%; max-width: 230px; margin: 0 auto; font-family: var(--font); }
.seal__ring { transform-box: view-box; transform-origin: 100px 100px; animation: sealSpin 40s linear infinite; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.seal-wrap figcaption { margin-top: 14px; font-size: .85rem; color: #b9cad9; line-height: 1.4; }
@media (max-width: 760px) {
  .quality-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .seal { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .seal__ring { animation: none; } }

.values-grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.value-tile {
  flex: 1 1 230px; max-width: 270px;
  background: #fff; border-radius: var(--radius); padding: 28px 22px 24px; text-align: center;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.value-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23, 37, 49, .16); }
.value-tile__icon {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
}
.value-tile__icon svg { width: 32px; height: 32px; }
.value-tile h3 { font-size: 1.12rem; margin-bottom: .3em; }
.value-tile p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }

.pdca-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 860px) { .pdca-grid { grid-template-columns: 1fr; gap: 40px; } }
.pdca-wrap { max-width: 420px; margin: 0 auto; width: 100%; }
.pdca { width: 100%; height: auto; font-family: var(--font); }
.pdca__ring { transform-box: view-box; transform-origin: 160px 160px; }
.js .pdca-wrap .pdca__ring { transform: rotate(-120deg); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .pdca-wrap.is-visible .pdca__ring { transform: none; }
.commit-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.commit-list li {
  display: flex; align-items: center; gap: 16px; font-size: 1.08rem; font-weight: 500; color: var(--navy-950);
  background: var(--bg-soft); border-radius: var(--radius); padding: 14px 18px;
}
.commit-list span {
  flex: none; width: 44px; height: 44px; border-radius: 10px; background: #fff; color: var(--accent-600);
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(23, 37, 49, .08);
}
.commit-list svg { width: 24px; height: 24px; }

/* ---------- Galería ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.gallery a, .gallery figure { display: block; margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; aspect-ratio: 255 / 208; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: ""; position: absolute; inset: 0; background: rgba(46, 72, 91, .0); transition: background .25s;
}
.gallery a:hover::after { background: rgba(46, 72, 91, .25); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 16, 22, .9); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; border-radius: 6px; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lightbox button {
  position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 50%;
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
}
.lightbox button:hover { background: var(--accent); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px); display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .95rem; color: var(--navy-950); }
.field label span { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cdd6df; border-radius: 6px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 159, 201, .25);
}
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 6px; font-weight: 500; }
.form-status.is-ok { background: #e8f5ec; color: #1e6b3a; border-left: 4px solid #2e9d58; }
.form-status.is-error { background: #fdecea; color: #8c2a1e; border-left: 4px solid #c0392b; }
.locations { display: grid; gap: 18px; }
.location { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; }
.location h3 { margin-bottom: .4em; color: var(--navy); }
.location p { margin: 0; color: var(--muted); }
.location a { text-decoration: none; }

.map { border-radius: var(--radius); overflow: hidden; height: clamp(280px, 40vw, 440px); background: var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #aeb6bf; font-size: .97rem; }
.footer-main { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 40px; padding-block: 64px 48px; }
@media (max-width: 920px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-brand img { width: 180px; margin-bottom: 16px; }
.footer-brand p { margin: 0; }
.footer-locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.footer-locations h3 { color: var(--accent); font-size: 1rem; margin-bottom: 6px; }
.footer-locations p { margin: 0; line-height: 1.6; }
.footer-email { margin: 20px 0 0; display: flex; align-items: center; gap: 8px; }
.footer-email svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.site-footer a { color: #d5dde4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  padding-block: 20px; font-size: .88rem; color: #868f99;
}
.footer-bottom a { color: #a9b3bd; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: 120px; }
.not-found strong { display: block; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--accent); }

/* Revelado suave al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
