/* ==========================================================================
   Kairós Centro · estilos
   Mobile-first. Tokens → base → layout → componentes → páginas.
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, subconjunto latino) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic-var.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-var.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Marca (tomados del logo) */
  --petrol: #0b4d70;
  --petrol-deep: #073049;
  --petrol-soft: #e3eef3;
  --orange: #f68a4b;
  --orange-soft: #ffd9bf;
  --olive: #8a8f2a;
  --olive-deep: #5f6314;
  --olive-soft: #eef0cf;
  --orange-deep: #b84c10;
  /* Superficies */
  --cream: #fff8ee;
  --sand: #f9ebd8;
  --white: #ffffff;
  /* Texto */
  --ink: #12303e;
  --muted: #4b6573;
  --line: #e6d9c4;
  --focus: var(--petrol);
  --danger: #b3261e;

  --grad-sun: linear-gradient(90deg, #ff8247 0%, #f6993b 48%, #8f942e 100%);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --max: 72rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 18px 40px -22px rgba(7, 48, 73, 0.35);
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --header-h: 4.5rem;
}

/* ---------- 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-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--petrol);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6.4vw, 4.1rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--orange-deep, #c4561a); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

a { color: var(--petrol); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--petrol-deep); color: var(--cream);
  border-radius: 999px; font-weight: 600; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; fill: none; stroke: currentColor; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 46rem); }

.section { position: relative; padding-block: clamp(3.25rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--sand { background: var(--sand); }
.section--dark {
  background: var(--petrol-deep); color: #e8f0f4; --focus: var(--orange);
}
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark a { color: var(--orange); }

/* Bordes ondulados entre secciones (el color lo define --wave) */
.wave-top::before, .wave-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: clamp(1.5rem, 4vw, 3rem);
  background: var(--wave, var(--cream));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V40C160 8 320 8 480 32s320 40 480 16 320-40 480-8v40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V40C160 8 320 8 480 32s320 40 480 16 320-40 480-8v40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.wave-top::before { top: calc(-1 * clamp(1.5rem, 4vw, 3rem) + 1px); }
.wave-bottom::after { bottom: calc(-1 * clamp(1.5rem, 4vw, 3rem) + 1px); transform: scaleY(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--olive-deep);
}
.eyebrow::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--grad-sun); flex: none;
}
.section--dark .eyebrow { color: var(--orange-soft); }

.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.section--dark .lead { color: #c9dbe4; }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .split--reverse > :first-child { order: 2; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; align-items: end; }
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 999px;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease);
  touch-action: manipulation;
}
.btn--primary { background: var(--orange); color: var(--petrol-deep); }
.btn--primary:hover { background: #ff9a60; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(217, 101, 32, 0.7); text-decoration: none; }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn--ghost:hover { background: var(--petrol); color: var(--cream); text-decoration: none; }
.section--dark .btn--ghost { border-color: var(--cream); color: var(--cream); }
.section--dark .btn--ghost:hover { background: var(--cream); color: var(--petrol-deep); }
.btn--sm { min-height: 2.75rem; padding: 0.55rem 1.25rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem;
  font-weight: 700; color: var(--petrol); text-decoration: none;
  border-bottom: 2px solid var(--orange); padding-block: 0.1rem;
}
.link-arrow::after {
  content: ""; width: 1.1rem; height: 1.1rem; background: currentColor;
  -webkit-mask: url("/assets/icons/arrow.svg") center / contain no-repeat; mask: url("/assets/icons/arrow.svg") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(7, 48, 73, 0.45); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 8.5rem; height: auto; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-right: -0.5rem;
  background: transparent; border: 0; border-radius: 50%; color: var(--petrol); cursor: pointer;
}
.nav-toggle:hover { background: var(--sand); }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.main-nav__list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.main-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 3rem; padding: 0.5rem 1rem;
  border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.main-nav a:not(.btn):hover { background: var(--sand); }
.main-nav a[aria-current="page"] { background: var(--petrol-soft); color: var(--petrol); }
.main-nav__cta { margin-top: 0.75rem; }
.main-nav__cta .btn { width: 100%; }

/* móvil con JS: menú desplegable */
html.js .main-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 0.75rem var(--gutter) 1.5rem; background: var(--cream);
  border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(7, 48, 73, 0.5);
  visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s 0.22s;
}
html.js .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.5rem; }

@media (min-width: 60rem) {
  .brand img { width: 9.5rem; }
  .nav-toggle { display: none; }
  html.js .main-nav, .main-nav {
    position: static; padding: 0; background: none; border: 0; box-shadow: none;
    visibility: visible; opacity: 1; transform: none;
  }
  .main-nav__list { flex-direction: row; align-items: center; gap: 0.25rem; }
  .main-nav__cta { margin: 0 0 0 0.75rem; }
  .main-nav__cta .btn { width: auto; }
}

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }
.hero__copy .lead { margin-bottom: 0; }
.hero__note { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.hero__note .icon { color: var(--olive-deep); }

.hero__art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2.5vw, 1.25rem); padding-bottom: 2.5rem; }
.hero__art .arch:nth-of-type(2) { margin-top: clamp(2rem, 7vw, 3.5rem); }
.hero__sun {
  position: absolute; z-index: 0; top: -2.5rem; right: -3rem;
  width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--grad-sun); opacity: 0.92;
}
.hero__art .arch { position: relative; z-index: 1; }
.hero__badge {
  position: absolute; z-index: 2; left: 0; bottom: 0; max-width: 16.5rem;
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1.25rem 0.7rem 0.8rem;
  background: var(--white); border-radius: 999px; box-shadow: var(--shadow);
  font-size: 0.9rem; line-height: 1.3; font-weight: 600; color: var(--petrol);
}
.hero__badge .icon { width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 50%; background: var(--olive-soft); color: var(--olive-deep); }

@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .hero__badge { left: -1.5rem; }
}

/* Marcos de imagen */
.arch {
  margin: 0; overflow: hidden; background: var(--sand);
  border-radius: 50% 50% 1.75rem 1.75rem / 34% 34% 1.75rem 1.75rem;
  aspect-ratio: 2 / 3;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.photo { margin: 0; overflow: hidden; background: var(--sand); box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--leaf { border-radius: clamp(4rem, 14vw, 9rem) 1.75rem clamp(4rem, 14vw, 9rem) 1.75rem; }
.photo--leaf-r { border-radius: 1.75rem clamp(4rem, 14vw, 9rem) 1.75rem clamp(4rem, 14vw, 9rem); }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--32 { aspect-ratio: 3 / 2; }
.photo--45 { aspect-ratio: 4 / 5; }

/* ---------- Cifras ---------- */
.facts-wrap { position: relative; z-index: 2; margin-top: -1.5rem; }
.facts {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.facts li { display: flex; flex-direction: column; gap: 0.2rem; }
.facts strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1; color: var(--petrol); }
.facts li:last-child strong { font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.15; padding-top: 0.25rem; }
.facts span { font-size: 0.92rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 56rem) {
  .facts { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .facts li { padding-inline: 1.5rem; border-left: 1px solid var(--line); }
  .facts li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Texto + imagen ---------- */
.prose p:last-child { margin-bottom: 0; }
.prose .btn-row, .prose .link-arrow { margin-top: 1.25rem; }

.quote {
  margin: 1.75rem 0 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--orange);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.4; color: var(--petrol);
}

/* ---------- Lista de síntomas ---------- */
.checklist { list-style: none; display: grid; gap: 1rem 3rem; }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; }
.checklist .icon { width: 1.9rem; height: 1.9rem; padding: 0.4rem; margin-top: 0.1rem; border-radius: 50%; background: var(--olive-soft); color: var(--olive-deep); stroke-width: 2.4; }
@media (min-width: 48rem) { .checklist { grid-template-columns: 1fr 1fr; } }
.closing-note { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 1.1rem; max-width: 40rem; }

/* ---------- Servicios (vista previa) ---------- */
.services { display: grid; gap: 2.75rem 2rem; }
.service { display: flex; flex-direction: column; gap: 0.7rem; }
.service h3 { margin: 0.5rem 0 0; }
.service .photo { transition: transform 0.5s var(--ease); }
.service:hover .photo { transform: translateY(-4px); }
.service__who { margin: 0 0 0.25rem; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive-deep); }
.service p { margin: 0; color: var(--muted); }
.service .link-arrow { align-self: flex-start; margin-top: 0.25rem; }
@media (min-width: 56rem) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Principios (sección oscura) ---------- */
.principles { list-style: none; counter-reset: p; display: grid; gap: 0; }
.principles li {
  counter-increment: p; position: relative; padding: 1.4rem 0 1.4rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.principles li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.principles li::before {
  content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 1.3rem;
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--orange);
}
.principles h3 { margin-bottom: 0.35rem; font-size: 1.3rem; }
.principles p { margin: 0; color: #c9dbe4; }

.aside-quote {
  position: relative; overflow: hidden; padding: clamp(1.75rem, 4vw, 2.75rem);
  background: rgba(255, 255, 255, 0.07); border-radius: var(--radius-lg);
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 1.4; color: var(--cream);
}
.aside-quote::after {
  content: ""; position: absolute; width: 9rem; aspect-ratio: 1; right: -3rem; bottom: -3rem;
  border-radius: 50%; background: var(--grad-sun); opacity: 0.85;
}
.aside-quote p { position: relative; z-index: 1; margin: 0 0 1em; }
.aside-quote p:last-child { margin: 0; }

/* ---------- Equipo ---------- */
.team { display: grid; gap: 3rem 2rem; max-width: 52rem; margin-inline: auto; }
.person { display: flex; flex-direction: column; gap: 1.25rem; }
.person__role { margin: -0.5rem 0 0.5rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--olive-deep); }
.person h3 { margin-bottom: 0.4rem; }
.person p { margin: 0; color: var(--muted); }
@media (min-width: 48rem) {
  .team { grid-template-columns: 1fr 1fr; }
  .team .person:nth-child(2) { margin-top: 3rem; }
}

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.gallery .photo { aspect-ratio: 4 / 3; }
.gallery .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .gallery .photo:first-child { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
  .gallery .photo { grid-column: span 2; aspect-ratio: auto; min-height: 12rem; }
  .gallery .photo:nth-child(n + 4) { grid-column: span 3; }
}

.place-card { display: grid; gap: 1rem; margin-top: 2rem; }
.place-card address { font-weight: 600; color: var(--petrol); }

/* ---------- Bloque de contacto (CTA) ---------- */
.cta-band {
  position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 4rem);
  background: var(--orange-soft); border-radius: 2.5rem;
}
.cta-band__sun {
  position: absolute; width: clamp(12rem, 32vw, 22rem); aspect-ratio: 1; right: -4rem; top: -4rem;
  border-radius: 50%; background: var(--grad-sun); opacity: 0.55;
}
.cta-band__body { position: relative; max-width: 38rem; }
.cta-band h2 { margin-bottom: 0.5em; }
.cta-band p { color: var(--ink); }
.cta-band .btn--ghost:hover { color: var(--cream); }
.cta-band__note { margin: 1.25rem 0 0; font-size: 0.92rem; color: var(--petrol-deep); }

/* ---------- Pie ---------- */
.site-footer { position: relative; margin-top: clamp(3rem, 7vw, 5rem); padding-top: clamp(2.5rem, 6vw, 4rem); background: var(--petrol-deep); color: #c9dbe4; --focus: var(--orange); --wave: var(--petrol-deep); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * clamp(1.5rem, 4vw, 3rem) + 1px); height: clamp(1.5rem, 4vw, 3rem);
  background: var(--petrol-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V40C160 8 320 8 480 32s320 40 480 16 320-40 480-8v40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V40C160 8 320 8 480 32s320 40 480 16 320-40 480-8v40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.site-footer__grid { display: grid; gap: 2.25rem 2rem; padding-bottom: 2.5rem; }
.site-footer__logo { display: inline-block; padding: 0.6rem 1rem; margin-bottom: 1rem; background: var(--cream); border-radius: 1rem; line-height: 0; }
.site-footer__logo img { width: 7.5rem; height: auto; }
.site-footer__brand p { max-width: 22rem; margin: 0; font-size: 0.97rem; }
.site-footer__title { margin: 0 0 0.9rem; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-soft); }
.site-footer__address { margin-bottom: 0.75rem; line-height: 1.6; }
.site-footer a { color: var(--cream); }
.site-footer .link-arrow { color: var(--cream); }
.site-footer__list { list-style: none; display: grid; gap: 0.35rem; }
.site-footer__list a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.site-footer__label { display: block; font-size: 0.8rem; color: #9fb8c6; }
.site-footer__bottom { display: grid; gap: 0.35rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: #9fb8c6; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: grid; gap: 0.35rem; justify-items: start; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 2rem; color: #c9dbe4; }
.site-footer__legal a:hover { color: var(--cream); }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; } .site-footer__bottom { grid-template-columns: 1fr auto; } }

/* ---------- Encabezado de páginas interiores ---------- */
.page-hero { position: relative; overflow: clip; padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: clamp(10rem, 28vw, 20rem); aspect-ratio: 1; right: -3rem; top: -3rem;
  border-radius: 50%; background: var(--grad-sun); opacity: 0.85;
}
.page-hero__inner { position: relative; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero { isolation: isolate; }

/* ---------- Servicios (página) ---------- */
.service-row { display: grid; gap: 1.75rem; align-items: center; }
.service-row + .service-row { margin-top: clamp(3rem, 7vw, 5rem); }
.service-row h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.2em; }
.service-row .person__role { margin: 0 0 1rem; }
.service-row ul.dots { margin: 1.25rem 0 0; }
@media (min-width: 56rem) {
  .service-row { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .service-row:nth-child(even) > :first-child { order: 2; }
}
ul.dots { list-style: none; display: grid; gap: 0.5rem; }
ul.dots li { position: relative; padding-left: 1.5rem; }
ul.dots li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--grad-sun); }

.topics { display: grid; gap: 2rem 3rem; }
.topic { padding-top: 1.25rem; border-top: 2px solid var(--petrol); }
.topic h3 { margin-bottom: 0.7rem; }
.topic p { color: var(--muted); }
@media (min-width: 48rem) { .topics { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; counter-reset: s; display: grid; gap: 2rem; }
.steps > li { counter-increment: s; position: relative; padding-top: 3.75rem; }
.steps > li::before {
  content: counter(s); position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--orange); color: var(--petrol-deep);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0 0 0.75rem; color: var(--muted); }
.steps ul.dots { margin-top: 0.5rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.notice { display: grid; gap: 1.75rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.notice h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.notice ul.dots { color: var(--muted); }
@media (min-width: 48rem) { .notice { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.inline-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; background: var(--olive-soft); border-radius: var(--radius); }
.inline-note .icon { width: 1.75rem; height: 1.75rem; margin-top: 0.15rem; color: var(--olive-deep); }
.inline-note p { margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); } }

.contact-list { list-style: none; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { width: 3rem; height: 3rem; padding: 0.8rem; border-radius: 50%; background: var(--sand); color: var(--petrol); }
.contact-list h2 { margin: 0 0 0.15rem; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-deep); }
.contact-list p, .contact-list address { margin: 0; font-size: 1.1rem; }
.contact-list a { font-weight: 700; }
.contact-list small { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: var(--muted); }

.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.form-card > p { color: var(--muted); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.4rem; font-weight: 700; font-size: 0.97rem; color: var(--petrol); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: 0.7rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 2px solid #7c95a3; border-radius: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field select { appearance: none; padding-right: 2.75rem; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230b4d70' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 1.2rem no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--petrol); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-color: var(--petrol); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0.4rem 0 0; font-size: 0.92rem; font-weight: 600; color: var(--danger); }
.field__error[hidden] { display: none; }
.field__hint { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--muted); }
.form-card .btn { width: 100%; }
.form-card .form-note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }

.map-frame { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--sand); aspect-ratio: 4 / 3; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 48rem) { .map-frame { aspect-ratio: 16 / 7; } }

/* ---------- Mapa del sitio ---------- */
.sitemap-list { list-style: none; display: grid; gap: 0; max-width: 46rem; }
.sitemap-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.sitemap-list li:last-child { border-bottom: 1px solid var(--line); }
.sitemap-list a { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--petrol); text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.sitemap-list p { margin: 0.25rem 0 0; color: var(--muted); }

/* ---------- Animación de entrada (solo con JS y sin preferencia de movimiento reducido) ---------- */
/* Solo escritorio (≥ 60rem) y sin preferencia de movimiento reducido. En tablet y móvil el contenido siempre es visible. */
@media (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.45s ease, transform 0.45s ease; }
  html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* utilidades de proporción añadidas */
.photo--sq { aspect-ratio: 1; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; z-index: 60; display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  border-radius: 50%; background: #128c7e; color: #fff; box-shadow: 0 10px 22px -10px rgba(7, 48, 73, 0.55);
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease); touch-action: manipulation;
}
.wa-float:hover { background: #0f7a6e; transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(7, 48, 73, 0.6); }
.wa-float:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.wa-float .icon { fill: currentColor; stroke: none; }
/* deja espacio al final de la página para que el botón no tape el texto del pie */
@media (max-width: 80rem) { .site-footer__bottom { padding-bottom: 5.5rem; } }
