/* Llausás Peniche Asociados — estilos del sitio
   Valores tomados del diseño exportado de Claude Design. */

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/mulish-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../assets/fonts/outfit-latin.woff2') format('woff2');
}

:root {
  /* Foto del hero (index.html). Para cambiarla, sustituye las URL. */
  --hero-bg: url('../assets/img/hero-1400.jpg');
  --hero-bg-sm: url('../assets/img/hero-700.jpg');

  --bg: #FBF9F6;
  --sand: #F2EEE8;
  --card: #FDFCFA;
  --white: #FFFFFF;
  --ink: #182A48;
  --ink-hover: #0E2038;
  /* Tonos de texto del diseño, oscurecidos lo mínimo para cumplir contraste AA (4.5:1). */
  --muted: #626D7A;        /* diseño: #6B7684 */
  --label: #6D737A;        /* diseño: #8B929B */
  --accent-text: #965F38;  /* diseño: #A96B3F (texto) */
  --hint: #76716B;         /* diseño: #A9A29A */
  --accent: #A96B3F;       /* hover y elementos decorativos */
  --accent-line: #C89068;
  --line: #E9E3DB;
  --line-soft: #EFEAE3;
  --line-strong: #C4B9AB;
  --line-hover: #D8CFC2;
  --field-line: #DCD5CA;
  --divider: #D6CEC3;
  --whatsapp: #25D366;

  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Outfit', 'Mulish', system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 28px);
  --radius: 5px;
  --t: 180ms ease;
}

@supports (background-image: image-set(url('x.webp') type('image/webp'))) {
  :root {
    --hero-bg: image-set(url('../assets/img/hero-1400.webp') type('image/webp'), url('../assets/img/hero-1400.jpg') type('image/jpeg'));
    --hero-bg-sm: image-set(url('../assets/img/hero-700.webp') type('image/webp'), url('../assets/img/hero-700.jpg') type('image/jpeg'));
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.fade { animation: fadeUp .6s ease both; }
.fade-0 { animation-duration: .5s; }
.fade-1 { animation-delay: .05s; }
.fade-2 { animation-delay: .1s; }
.fade-3 { animation-delay: .16s; }

/* Aparición al hacer scroll (solo si hay JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease, background var(--t), border-color var(--t);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; }
.section-x { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Navegación ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 249, 246, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.brand { margin-right: auto; display: flex; align-items: center; line-height: 0; }
.brand img { height: clamp(42px, 7vw, 64px); width: auto; display: block; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.nav-link {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 12px 0;
  color: var(--ink);
  transition: color var(--t);
}
.nav-link[aria-current="page"] { color: var(--accent-text); }
.nav-link:hover { color: var(--accent); }
.lang { display: flex; align-items: center; gap: 7px; }
.lang button {
  background: none;
  border: none;
  padding: 12px 6px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--label);
}
.lang button[aria-pressed="true"] { color: var(--accent-text); }
.lang button:hover { color: var(--accent); }
.lang-sep { width: 1px; height: 11px; background: var(--divider); }
.nav-cta {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Menú: en escritorio el contenedor no existe a efectos de layout (los enlaces
   siguen siendo hijos directos de .nav-links) y el botón hamburguesa se oculta. */
.nav-menu { display: contents; }
.nav-toggle { display: none; }

/* ---------- Encabezado móvil (≤640px): una sola fila ---------- */
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; gap: 0; padding-top: 10px; padding-bottom: 10px; }
  /* Con JS el menú es un panel aparte: la barra nunca se parte en dos filas, el logo se encoge. */
  .js .nav-inner { flex-wrap: nowrap; }
  .nav-links { display: contents; }
  .brand { flex: 1 1 auto; min-width: 0; margin-right: 8px; }
  .brand img { height: auto; width: auto; max-width: 100%; max-height: 42px; }

  .lang { gap: 0; flex-shrink: 0; }
  .lang button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    margin-left: 2px;
  }

  .nav-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: 4px;
    margin-right: -10px; /* el icono queda alineado con el margen; el área táctil sigue siendo 44px */
    padding: 0;
    border: none;
    background: none;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }
  .js .nav-toggle { display: inline-flex; }
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 200ms ease, background-color 200ms ease;
  }
  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-icon::before { transform: translateY(-6px); }
  .nav-toggle-icon::after { transform: translateY(6px); }
  .site-nav.is-open .nav-toggle-icon { background-color: transparent; }
  .site-nav.is-open .nav-toggle-icon::before { transform: rotate(45deg); }
  .site-nav.is-open .nav-toggle-icon::after { transform: rotate(-45deg); }
  .nav-toggle:hover { color: var(--accent); }

  /* Sin JavaScript: los enlaces quedan visibles en una segunda fila. */
  .no-js .site-nav { position: relative; } /* sin JS la barra puede ocupar varias filas */
  .nav-menu {
    order: 10;
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 26px;
  }
  .nav-menu .nav-link { min-height: 44px; display: inline-flex; align-items: center; }

  /* Con JavaScript: panel desplegable bajo la barra. */
  .js .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }
  .js .site-nav.is-open .nav-menu {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s;
  }
  .js .nav-menu .nav-link {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .js .nav-menu .nav-link:last-child { border-bottom: none; }
}

/* Pantallas muy angostas: se reduce el relleno de "Agendar" (no las áreas táctiles). */
@media (max-width: 359px) {
  .nav-cta { padding: 0 8px; }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .js .nav-menu,
  .js .site-nav.is-open .nav-menu,
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { transition: none; }
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.display {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
}
.h1-page { font-size: clamp(28px, 4.2vw, 50px); line-height: 1.1; letter-spacing: 0.05em; }
.h2 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; letter-spacing: 0.06em; }
.h2-banner { max-width: 26ch; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.25; letter-spacing: 0.06em; }
.h3-card {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.num { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; color: var(--accent-text); flex-shrink: 0; }
.body-sm { font-size: 14.5px; font-weight: 400; line-height: 1.7; color: var(--muted); }
.body-lg { font-size: 16.5px; font-weight: 400; line-height: 1.75; color: var(--muted); }
.statement {
  max-width: 26ch;
  font-weight: 400;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-primary { background: var(--ink); color: var(--bg); border: none; }
.btn-primary:hover { background: var(--ink-hover); color: var(--bg); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { color: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-line {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: color var(--t), border-color var(--t);
}
.link-line:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Encabezado de páginas internas ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px); }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }

.banner { padding: 0 var(--gutter); }
.banner img {
  display: block;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  height: clamp(120px, 20vw, 230px);
  object-fit: cover;
  background: var(--sand);
  border-radius: var(--radius);
}

/* ---------- Inicio: hero ---------- */
.hero { padding: clamp(52px, 8vw, 104px) var(--gutter) clamp(36px, 5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(20px, 2.6vw, 28px); }
.hero h1 {
  max-width: 19ch;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0.02em;
}
.hero-sub { max-width: 42ch; font-size: clamp(16px, 1.5vw, 18px); font-weight: 400; line-height: 1.7; color: var(--muted); }
.hero-copy .btn-row { margin-top: 4px; }
.hero-media { position: relative; padding: 0 0 14px 14px; }
.hero-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 62%;
  height: 64%;
  border-left: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
  border-bottom-left-radius: var(--radius);
  pointer-events: none;
}
.hero-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 200px;
  background-color: var(--sand);
  background-image: var(--hero-bg-sm);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}
@media (min-width: 700px) {
  .hero-photo { background-image: var(--hero-bg); }
}
.hero-tag {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 249, 246, 0.94);
  border-radius: var(--radius);
  padding: 9px 14px;
}
.hero-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-tag span:last-child {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- Inicio: cifras ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 4vw, 46px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: clamp(24px, 4vw, 40px);
  margin: 0 auto;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num {
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- Inicio: servicios ---------- */
.services { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.cards-outer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.cards-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 30px);
  transition: background var(--t), border-color var(--t);
}
a.card:hover, .card-ins:hover { background: var(--white); border-color: var(--line-hover); color: inherit; }
.card-ins {
  margin-top: clamp(14px, 1.6vw, 20px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 30px);
}
.card-ins-copy { display: flex; flex-direction: column; gap: 12px; }
.card-ins-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card-ins-copy p { max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; font-size: 13px; color: var(--ink); }

/* ---------- Inicio: puntos ---------- */
.about-strip { padding: 0 var(--gutter) clamp(56px, 8vw, 112px); }
.about-grid {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.points { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 26px); }
.point { display: flex; flex-direction: column; gap: 6px; }
.point h3 { font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.point p { max-width: 52ch; }

/* ---------- Banner de llamada a la acción ---------- */
.cta-section { padding: 0 var(--gutter) clamp(56px, 8vw, 104px); }
.cta-section.cta-pad-top { padding-top: clamp(56px, 8vw, 104px); }
.cta-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.cta-copy { display: flex; flex-direction: column; gap: 10px; }
.cta-copy p { max-width: 44ch; font-size: 15.5px; font-weight: 400; line-height: 1.7; color: var(--muted); }

/* ---------- Nosotros ---------- */
.story { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.story-grid .statement { max-width: 24ch; }
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
.stack-18 p { max-width: 56ch; }
.block { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.mv-grid {
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.mv { display: flex; flex-direction: column; gap: 12px; }
.mv p { max-width: 44ch; }
.values-head {
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(22px, 3vw, 32px);
}
.value {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: background var(--t), border-color var(--t);
}
.value h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.value p {
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  transition: opacity 220ms ease, max-height 260ms ease, padding-top 260ms ease;
}
.value:hover, .value:focus-within, .value.is-open { border-color: var(--line-hover); background: var(--white); }
.value:hover p, .value:focus p, .value.is-open p { opacity: 1; max-height: 160px; padding-top: 10px; }
.no-js .value p { opacity: 1; max-height: none; padding-top: 10px; }

/* ---------- Servicios ---------- */
.svc { padding: clamp(44px, 6vw, 80px) var(--gutter) 0; scroll-margin-top: 90px; }
.svc-grid {
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.svc-copy { display: flex; flex-direction: column; gap: 14px; }
.svc-copy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.svc-copy > p { max-width: 40ch; }
.svc-copy .link-line { margin-top: 4px; }
.svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px 32px;
}
.svc-list li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 9px;
}

/* ---------- Contacto ---------- */
.contact { padding: 0 var(--gutter) clamp(56px, 8vw, 104px); scroll-margin-top: 90px; }
.contact-grid {
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.form { display: flex; flex-direction: column; gap: 18px; }
.h2-form { font-size: clamp(17px, 2vw, 22px); line-height: 1.25; letter-spacing: 0.07em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; }
.field label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 16px; /* 16px evita el zoom automático en iOS (diseño: 15px) */
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--t);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field [aria-invalid="true"] { border-color: var(--accent-text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
.form .btn { align-self: flex-start; margin-top: 2px; padding: 15px 30px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-note { font-size: 12.5px; font-weight: 400; line-height: 1.6; color: var(--label); }
.form-note a { color: var(--ink); }
.form-ok { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.form-ok p { max-width: 44ch; font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--muted); }
.form-ok .btn { padding: 13px 24px; }
[hidden] { display: none !important; }

.contact-info { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 34px); }
.info-group { display: flex; flex-direction: column; gap: 12px; }
.info-list { display: flex; flex-direction: column; }
.info-list a {
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 0;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  transition: color var(--t);
  word-break: break-word;
}
.info-list a.email { font-size: 16px; }
.info-list a:hover { color: var(--accent); }
.info-hint { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hint); }
.cities { font-size: 16px; font-weight: 400; line-height: 1.8; color: var(--ink); }
.contact-info .btn { align-self: flex-start; padding: 14px 26px; }

/* ---------- Aviso de privacidad ---------- */
.legal-head { padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(24px, 3vw, 36px); }
.legal-head .wrap { display: flex; flex-direction: column; gap: 12px; }
.legal-head h1 { max-width: 22ch; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.12; letter-spacing: 0.05em; }
.legal { padding: 0 var(--gutter) clamp(56px, 8vw, 104px); }
.legal-intro {
  max-width: 70ch;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3.5vw, 44px);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--muted);
}
.legal-sections { display: flex; flex-direction: column; gap: clamp(26px, 3.5vw, 40px); max-width: 70ch; margin-top: clamp(28px, 3.5vw, 44px); }
.legal-sections section { display: flex; flex-direction: column; gap: 10px; }
.legal-sections h2 { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.legal-sections p, .legal-contact p { font-size: 16px; font-weight: 400; line-height: 1.8; color: var(--muted); }
.legal-contact {
  max-width: 70ch;
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-contact a { font-size: 16px; color: var(--ink); word-break: break-word; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(64px, 10vw, 140px) var(--gutter); }
.notfound .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.notfound p { max-width: 46ch; }

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 6vw, 72px) var(--gutter) 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-brand { gap: 14px; }
.footer-brand img { height: 96px; width: auto; align-self: flex-start; }
.footer-brand p { max-width: 28ch; }
.footer-title {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  padding: 5px 0;
  transition: color var(--t);
  word-break: break-word;
}
.footer-col a:hover { color: var(--accent); }
.footer-cities { display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; color: var(--ink); margin: 0; padding: 0; list-style: none; }
.footer-rule { max-width: 1180px; margin: clamp(30px, 4vw, 44px) auto 16px; border-top: 1px solid var(--line); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--label);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 150ms cubic-bezier(.4, 0, .2, 1);
  z-index: 20;
}
.wa-float:hover { box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
@media (max-width: 480px) {
  .wa-float { bottom: 16px; right: 16px; }
}
