/* ==========================================================================
   Luz de Dos — hoja de estilos principal
   Compartida por todas las páginas (español e inglés).
   ========================================================================== */

/* ---------- Fuentes autoalojadas (sin peticiones a Google: más rápido y sin cesión de datos, RGPD) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jost-latin-500-normal.woff2") format("woff2");
}

/* ---------- Tokens de diseño: cambiar aquí cambia toda la web ---------- */
:root {
  --c-bg: #f5f1e9;        /* blanco roto: fondo predominante */
  --c-bg-2: #e8ded0;      /* beige: separar secciones */
  --c-sand: #d6c7b4;      /* arena: bloques destacados */
  --c-earth: #a8957e;     /* beige tostado */
  --c-taupe: #786b5b;     /* tierra: botones, iconos y detalles */
  --c-ink: #29251f;       /* negro cálido: titulares, logo y navegación */
  --c-ink-2: #5f574d;     /* texto secundario (algo más oscuro que #6F665B para cumplir contraste AA en textos pequeños) */
  --c-line: #bdb2a3;      /* líneas y bordes */
  --c-white: #ffffff;

  --f-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1320px;
  --header-h: 104px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
/* backdrop-filter convierte la cabecera en contenedor de los elementos fijos:
   se desactiva con el menú abierto para que el panel ocupe toda la pantalla. */
body.menu-open .site-header {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

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

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--c-taupe);
  outline-offset: 4px;
  border-radius: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: .8125rem;
  letter-spacing: .08em;
  border-radius: 999px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía reutilizable ---------- */
.eyebrow {
  font-family: var(--f-sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.display {
  font-family: var(--f-serif);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.04;
  color: var(--c-ink);
  text-wrap: balance;
}

.caps {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.lead {
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--c-ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.rule {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--c-taupe);
}

/* ---------- Enlaces y botones ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding-block: 6px;
}
.link-arrow > span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease);
}
.link-arrow:hover > span { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow .icon-arrow { transition: transform .45s var(--ease); }
.link-arrow:hover .icon-arrow { transform: translateX(6px); }

.icon-arrow { width: 22px; height: 10px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--solid {
  background: var(--c-taupe);
  color: var(--c-white);
}
.btn--solid:hover { background: var(--c-ink); }
.btn--outline {
  border-color: var(--c-ink);
  color: var(--c-ink);
  background: transparent;
}
.btn--outline:hover { background: var(--c-ink); color: var(--c-bg); }
.btn .icon-arrow { width: 18px; transition: transform .45s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: height .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 80px;
  background: rgba(245, 241, 233, .94);
  box-shadow: 0 1px 0 rgba(120, 107, 91, .18);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  position: relative;
  z-index: 60; /* sigue visible sobre el menú móvil abierto */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--c-ink);
  flex: none;
}
.brand__logo {
  width: 92px;
  height: auto;
  transition: width .45s var(--ease);
}
.is-scrolled .brand__logo { width: 86px; }
.brand__tag {
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  line-height: 1;
  padding-left: .34em; /* compensa el espaciado final para centrar ópticamente */
  transition: opacity .3s var(--ease);
}

.main-nav { display: none; }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}
.main-nav__link {
  position: relative;
  display: inline-block;
  padding-block: 10px;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: .22em; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.main-nav__link:hover::after,
.main-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .18em;
}
.lang-switch a { color: var(--c-ink-2); padding: 8px 2px; }
.lang-switch a:hover { color: var(--c-ink); }
.lang-switch a[aria-current="true"] { color: var(--c-ink); }
.lang-switch__sep { width: 1px; height: 10px; background: var(--c-line); }

.header-cta { display: none; }

/* Botón de menú móvil */
.menu-toggle {
  position: relative;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 10px 10px;
  background: none;
  border: 0;
  color: var(--c-ink);
  font: 500 .625rem/1 var(--f-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__bars {
  position: relative;
  width: 26px;
  height: 9px;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

/* Panel de menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--c-bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .4s var(--ease), visibility 0s;
}
.mobile-menu__list { display: grid; gap: 4px; }
.mobile-menu__link {
  display: block;
  padding-block: 8px;
  font-family: var(--f-serif);
  font-size: clamp(2rem, 8.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--c-ink);
}
.mobile-menu__link[aria-current="page"] { color: var(--c-taupe); }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  gap: 28px;
  justify-items: start;
}
.mobile-menu .lang-switch { display: inline-flex; font-size: .75rem; }

/* ==========================================================================
   Portada (hero)
   ========================================================================== */
.hero {
  position: relative;
  background: #ece6dc;
}
.hero__text {
  padding: calc(var(--header-h) + 40px) var(--gutter) 44px;
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(2.875rem, 11.5vw, 4rem);
}
.hero__subtitle {
  margin-top: 22px;
  max-width: 17em;
  line-height: 1.9;
  color: var(--c-ink);
}
.hero__rule { margin-top: 26px; }
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--c-ink);
}
.hero__scroll .icon-down {
  width: 10px;
  height: 18px;
  transition: transform .45s var(--ease);
}
.hero__scroll:hover .icon-down { transform: translateY(5px); }

.hero__media img {
  width: 100%;
  aspect-ratio: 672 / 600;
  object-fit: cover;
}

/* Entrada de la portada: el único movimiento automático de la página */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * {
    opacity: 0;
    animation: rise 1.1s var(--ease) forwards;
  }
  .hero__text > :nth-child(2) { animation-delay: .12s; }
  .hero__text > :nth-child(3) { animation-delay: .3s; }
  .hero__text > :nth-child(4) { animation-delay: .42s; }
  .hero__text > :nth-child(5) { animation-delay: .6s; }
  .hero__media img { animation: settle 2.2s var(--ease) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: .001; transform: scale(1.045); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Qué hacemos
   ========================================================================== */
.section { padding-block: clamp(72px, 9vw, 128px); }

.services__intro {
  display: grid;
  gap: 28px;
}
.services__title {
  margin-top: 20px;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  max-width: 13em;
}
.services__aside {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.services__grid {
  display: grid;
  gap: 48px;
  margin-top: clamp(48px, 6vw, 72px);
}

.service-card { display: block; color: var(--c-ink); }
.service-card__media {
  overflow: hidden;
  background: var(--c-bg-2);
}
.service-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.035); }
.service-card__title {
  margin-top: 22px;
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.service-card__list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--c-ink-2);
}
.service-card__list li:not(:last-child)::after {
  content: "·";
  margin-inline: .45em;
  color: var(--c-earth);
}
.service-card .icon-arrow {
  margin-top: 18px;
  transition: transform .45s var(--ease);
}
.service-card:hover .icon-arrow { transform: translateX(8px); }

/* ==========================================================================
   Historias reales (banda con imagen)
   ========================================================================== */
.stories {
  position: relative;
  background: var(--c-bg-2);
}
.stories__media img {
  width: 100%;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  object-position: 62% 50%;
}
.stories__content {
  display: grid;
  gap: 32px;
  padding-block: 48px 64px;
}
.stories__main { display: grid; justify-items: start; }
.stories__title { font-size: clamp(2.5rem, 9vw, 3.75rem); }
.stories__subtitle {
  margin-top: 16px;
  line-height: 1.9;
  max-width: 18em;
}
.stories__main .btn { margin-top: 28px; }
.stories__aside {
  display: grid;
  gap: 18px;
  max-width: 19em;
}
.stories__aside p {
  font-size: .875rem;
  line-height: 1.85;
  color: var(--c-ink-2);
}
@media (min-width: 960px) {
  .stories__aside p { color: var(--c-ink); }
}

/* ==========================================================================
   Nuestras categorías
   ========================================================================== */
.categories__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.categories__layout > *,
.categories__body > * { min-width: 0; }
.categories__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.categories__title {
  font-size: clamp(2.25rem, 8vw, 3rem);
  line-height: 1.08;
}

.categories__rail {
  /* En móvil: dos filas que se deslizan en horizontal */
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 100px;
  gap: 30px 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.categories__rail::-webkit-scrollbar { display: none; }

.category {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  color: var(--c-ink);
  scroll-snap-align: start;
}
.category__photo {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-bg-2);
  box-shadow: 0 0 0 1px rgba(120, 107, 91, .14);
  transition: box-shadow .45s var(--ease);
}
.category__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.category:hover .category__photo { box-shadow: 0 0 0 1px var(--c-taupe), 0 0 0 6px var(--c-bg), 0 0 0 7px rgba(120, 107, 91, .35); }
.category:hover .category__photo img { transform: scale(1.06); }
.category__label {
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.6;
  padding-left: .2em;
}

.circle-link {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.circle-link:hover { background: var(--c-ink); color: var(--c-bg); }
.circle-link svg { width: 8px; height: 14px; }

/* ==========================================================================
   Nuestro estilo
   ========================================================================== */
.style {
  display: grid;
  background: var(--c-bg-2);
}
.style__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.style__content {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 56px var(--gutter) 72px;
}
.style__title {
  margin-top: 20px;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  line-height: 1.08;
}
.style__content .lead { margin-top: 26px; max-width: 30em; }
.style__content .btn { margin-top: 36px; }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(189, 178, 163, .55);
  padding-block: 48px 32px;
}
.site-footer__top {
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}
.site-footer .brand__logo { width: 84px; }
.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
}
.footer-nav__list a {
  display: inline-block;
  padding-block: 8px;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.footer-nav__list a:hover { color: var(--c-taupe); }

.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--c-ink);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.social a:hover { background: var(--c-ink); color: var(--c-bg); }
.social svg { width: 17px; height: 17px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(189, 178, 163, .4);
  font-size: .75rem;
  color: var(--c-ink-2);
}
.site-footer__bottom a { padding-block: 4px; }
.site-footer__bottom a:hover { color: var(--c-ink); }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }

/* ==========================================================================
   Tableta (≥ 700px)
   ========================================================================== */
@media (min-width: 700px) {
  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

  .stories__content {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .categories__rail { grid-auto-columns: 124px; }
  .category__photo { width: 112px; }

  .style__media img { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Portátil y escritorio (≥ 960px): composición del modelo
   ========================================================================== */
@media (min-width: 960px) {
  /* Portada: la foto ocupa todo el fondo y el texto se apoya en la pared libre */
  .hero {
    min-height: clamp(640px, 94vh, 920px);
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .hero__media {
    position: absolute;
    inset: 0;
  }
  .hero__media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 100% 72%;
  }
  .hero__text {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: calc(var(--maxw) + var(--gutter) * 2);
    margin-inline: auto;
    padding: calc(var(--header-h) + 24px) var(--gutter) 150px;
  }
  .brand__logo { width: 104px; }
  .hero__title {
    margin-top: 26px;
    font-size: clamp(4rem, 5.6vw, 5.5rem);
    max-width: 7.2em;
  }
  .hero__subtitle { margin-top: 30px; }
  .hero__rule { margin-top: 30px; }
  .hero__scroll {
    position: absolute;
    left: var(--gutter);
    bottom: 56px;
    margin-top: 0;
  }

  .services__intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: 64px;
  }
  .services__aside { padding-bottom: 10px; }
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

  /* Historias reales: texto sobre la imagen, como en el modelo */
  .stories {
    min-height: clamp(380px, 32vw, 500px);
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .stories__media {
    position: absolute;
    inset: 0;
  }
  /* Velo suave a ambos lados para que los textos se lean sobre la foto */
  .stories__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240, 234, 224, .72) 0%, rgba(240, 234, 224, 0) 34%, rgba(240, 234, 224, 0) 58%, rgba(240, 234, 224, .86) 82%);
    pointer-events: none;
  }
  .stories__media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 50%;
  }
  .stories__content {
    position: relative;
    z-index: 1;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-block: 64px;
  }
  .stories__aside { justify-self: end; }

  .categories__layout {
    grid-template-columns: minmax(180px, 230px) 1fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
  .categories__head { padding-top: 22px; }
  .categories__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
  }
  .categories__rail {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 44px 12px;
    margin-inline: 0;
    padding: 4px 0;
    overflow: visible;
  }
  .category__photo { width: clamp(92px, 8vw, 124px); }
  .categories__body .circle-link { margin-top: calc(clamp(92px, 8vw, 124px) / 2 - 18px); }
  .categories__head .circle-link { display: none; }

  .style {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    min-height: clamp(480px, 40vw, 620px);
  }
  .style__media { position: relative; }
  .style__media img {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
  .style__content { padding: 72px clamp(40px, 6vw, 104px); }

  .site-footer { padding-block: 44px 28px; }
  .site-footer__top {
    grid-template-columns: auto 1fr auto;
    justify-items: stretch;
    text-align: left;
    gap: 40px;
  }
  .site-footer__top .brand { justify-self: start; }
  .footer-nav__list { gap: 6px clamp(20px, 3vw, 44px); }
  .site-footer__bottom { justify-content: space-between; }
}

@media (max-width: 959.98px) {
  .categories__body > .circle-link { display: none; }
  /* En móvil la foto aparece justo debajo: el aviso de desplazamiento sobra */
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Escritorio amplio (≥ 1140px): menú completo visible
   ========================================================================== */
@media (min-width: 1140px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .site-header .lang-switch { display: inline-flex; }
  .menu-toggle,
  .mobile-menu { display: none; }
}

/* ---------- Movimiento reducido: sin animaciones ni transiciones largas ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Página 404 ---------- */
.not-found {
  display: grid;
  justify-items: center;
  gap: 28px;
  min-height: 70vh;
  align-content: center;
  text-align: center;
}
.not-found__title { font-size: clamp(2.5rem, 7vw, 4rem); }
.not-found__link { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Páginas interiores (Servicios y fichas)
   ========================================================================== */

/* ---------- Encabezado de página: texto + foto ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 16px);
}
.page-hero__grid {
  display: grid;
  gap: 36px;
}
.page-hero__text {
  display: grid;
  justify-items: start;
  align-content: center;
}
.page-hero__title {
  margin-top: 18px;
  font-size: clamp(2.75rem, 10vw, 4.25rem);
}
.page-hero__text .lead { margin-top: 22px; }
.page-hero__text .btn { margin-top: 32px; }
.page-hero__down {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 6px 10px 0;
  color: var(--c-ink);
}
.page-hero__down .icon-down { width: 10px; height: 18px; transition: transform .45s var(--ease); }
.page-hero__down:hover .icon-down { transform: translateY(5px); }
.page-hero__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.page-hero__media img.is-wide { object-position: 70% 50%; }

/* Migas de pan */
.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .75rem;
  color: var(--c-ink-2);
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-inline: .7em;
  color: var(--c-line);
}
.breadcrumbs a { padding-block: 6px; }
.breadcrumbs a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--c-ink); }

/* ---------- Cabecera de sección: título a la izquierda, texto a la derecha ---------- */
.section-head {
  display: grid;
  gap: 20px;
}
.section-head__title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.08;
}

/* ---------- Cómo funciona ---------- */
.steps {
  background: var(--c-bg-2);
  padding-block: clamp(64px, 8vw, 104px);
}
.steps__list {
  display: grid;
  gap: 36px;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .8125rem;
  letter-spacing: .08em;
  color: var(--c-ink);
  /* Línea fina junto al número, como en el modelo */
  background: linear-gradient(var(--c-taupe), var(--c-taupe)) 34px 50% / 60px 1px no-repeat;
}
.step__title {
  margin-top: 18px;
  font-family: var(--f-serif);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.2;
}
.step p {
  margin-top: 10px;
  max-width: 24em;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--c-ink-2);
}

/* ---------- Galería ---------- */
.gallery__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  margin: clamp(40px, 5vw, 56px) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery__grid::-webkit-scrollbar { display: none; }
.gallery__grid:focus-visible { outline-offset: 2px; }
.gallery__item {
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--c-bg-2);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Preguntas frecuentes ---------- */
.faq { padding-top: 0; }
.faq__list {
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--c-line);
}
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 3.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--c-taupe); }
.icon-plus {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform .4s var(--ease);
}
.faq__item[open] .icon-plus { transform: rotate(45deg); }
.faq__item p {
  max-width: 46em;
  padding-bottom: 24px;
  font-size: .9375rem;
  line-height: 1.8;
  color: var(--c-ink-2);
}

/* ---------- Otras historias ---------- */
.related {
  background: var(--c-bg-2);
  padding-block: clamp(64px, 8vw, 104px);
}
.related__head {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.related__grid {
  display: grid;
  gap: 20px;
  margin-top: clamp(36px, 4vw, 48px);
}
.related-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: var(--c-bg);
  color: var(--c-ink);
  height: 100%;
}
.related-card__media { overflow: hidden; }
.related-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.related-card:hover .related-card__media img { transform: scale(1.04); }
.related-card__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
}
.related-card__title {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.related-card__desc {
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--c-ink-2);
}
.related-card .icon-arrow {
  margin-top: auto;
  transition: transform .45s var(--ease);
}
.related-card:hover .icon-arrow { transform: translateX(6px); }

/* ---------- Banda final con foto de fondo ---------- */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  background: var(--c-sand);
}
.cta-band__media {
  position: absolute;
  inset: 0;
}
.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 50%;
}
.cta-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* En móvil el texto ocupa todo el ancho: velo uniforme para que se lea sobre cualquier foto */
  background: rgba(245, 241, 233, .86);
}
.cta-band__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  padding-block: 72px;
}
.cta-band__title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 7.5vw, 3.5rem);
  max-width: 12em;
}
.cta-band__content .lead { margin-top: 18px; max-width: 26em; color: var(--c-ink); }
.cta-band__content .btn { margin-top: 30px; }

/* ---------- Página Servicios ---------- */
.jump-nav {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(189, 178, 163, .55);
}
.jump-nav__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jump;
}
.jump-nav__list li { counter-increment: jump; }
.jump-nav__list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--c-line);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.jump-nav__list a::before {
  content: counter(jump, decimal-leading-zero);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--c-ink-2);
}
.jump-nav__list a:hover { color: var(--c-taupe); }

.service-group { padding-bottom: clamp(48px, 6vw, 72px); }
.service-group__band {
  background: var(--c-bg-2);
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: clamp(40px, 5vw, 56px);
}
.service-group__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.service-group__text { display: grid; justify-items: start; }
.service-group__num {
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--c-ink-2);
}
.service-group__title {
  margin-top: 12px;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
}
.service-group__text .lead { margin-top: 18px; max-width: 28em; }
.service-group__text .link-arrow { margin-top: 24px; }
.service-group__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
  margin-top: clamp(28px, 4vw, 40px);
}
.service-tile { display: block; color: var(--c-ink); }
.service-tile__media {
  display: block;
  overflow: hidden;
  background: var(--c-bg-2);
}
.service-tile__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.service-tile:hover .service-tile__media img { transform: scale(1.04); }
.service-tile__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.service-tile__label .icon-arrow { width: 18px; transition: transform .45s var(--ease); }
.service-tile:hover .icon-arrow { transform: translateX(5px); }

.split-cta {
  display: grid;
  background: var(--c-bg-2);
}
.split-cta__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-cta__content {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 56px var(--gutter) 72px;
}
.split-cta__title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.08;
}
.split-cta__content .lead { margin-top: 18px; max-width: 28em; }
.split-cta__content .btn { margin-top: 30px; }

/* ---------- Tableta ---------- */
@media (min-width: 700px) {
  .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .gallery__grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related__head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .service-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .jump-nav__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .page-hero { padding-top: calc(var(--header-h) + 8px); }
  .page-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
  .page-hero__text { padding-block: 24px; }
  .page-hero__title { font-size: clamp(3.5rem, 5vw, 4.75rem); }
  .page-hero--service .page-hero__title { font-size: clamp(3.25rem, 4.6vw, 4.5rem); }

  .section-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }
  .section-head .lead { padding-bottom: 8px; }

  .service-group__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 64px;
  }

  .split-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 440px; }
  .split-cta__media { position: relative; }
  .split-cta__media img { position: absolute; inset: 0; aspect-ratio: auto; }
  .split-cta__content { padding: 64px clamp(40px, 6vw, 104px); }

  .cta-band { min-height: 460px; }
  .cta-band__media::after {
    background: linear-gradient(90deg, rgba(245, 241, 233, .92) 0%, rgba(245, 241, 233, .7) 38%, rgba(245, 241, 233, 0) 70%);
  }
}

/* ==========================================================================
   Quiénes somos, Portfolio, Blog, Contacto y legales
   ========================================================================== */

.page-hero__link { margin-top: 28px; }

/* ---------- Historia (Quiénes somos) ---------- */
.story__grid { display: grid; gap: 36px; align-items: center; }
.story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__text { display: grid; justify-items: start; gap: 18px; }
.story__text .section-head__title { margin-top: 0; margin-bottom: 6px; }
.story__text .link-arrow { margin-top: 10px; }

/* ---------- Valores ---------- */
.values {
  background: var(--c-bg-2);
  padding-block: clamp(64px, 8vw, 104px);
}
.values__list {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 5vw, 56px);
}
.value {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.value svg { width: 46px; height: 46px; color: var(--c-ink); }
.value__title {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.value p {
  max-width: 22em;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--c-ink-2);
}

/* ---------- Dos fotos (Quiénes somos) ---------- */
.duo { display: grid; gap: 12px; padding-block: 12px; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo__wide img { aspect-ratio: 3 / 2; }
.duo__tall img { aspect-ratio: 4 / 5; }

/* ---------- Llamada a la acción solo con texto ---------- */
.text-cta {
  background: var(--c-bg-2);
  padding-block: clamp(64px, 8vw, 96px);
}
.text-cta__grid { display: grid; gap: 28px; align-items: center; }
.text-cta__title {
  margin-top: 16px;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  line-height: 1.06;
}
.text-cta__side { display: grid; justify-items: start; gap: 26px; }
.text-cta__side .lead { color: var(--c-ink); }

/* ---------- Portfolio ---------- */
.page-hero--panel { padding-top: var(--header-h); }
.page-hero--panel .page-hero__grid { gap: 0; align-items: stretch; }
.page-hero--panel .page-hero__text {
  background: var(--c-bg-2);
  padding: 48px var(--gutter);
}
.page-hero--panel .page-hero__media img { aspect-ratio: 5 / 4; }

.portfolio__bar {
  display: grid;
  gap: 20px;
  align-items: center;
}
.portfolio__label {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.portfolio__label::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: var(--c-taupe);
}
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio__filters[hidden] { display: none; }
.chip {
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink);
  font: 500 .625rem/1.2 var(--f-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--c-taupe); }
.chip[aria-pressed="true"] { background: var(--c-taupe); color: var(--c-white); }

.portfolio__grid {
  columns: 2;
  column-gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}
.portfolio__item {
  break-inside: avoid;
  margin-bottom: 28px;
}
.portfolio__item[hidden] { display: none; }
.portfolio__item a { display: block; color: var(--c-ink); }
.portfolio__media { display: block; overflow: hidden; background: var(--c-bg-2); }
.portfolio__media img { width: 100%; transition: transform 1.1s var(--ease); }
.portfolio__item a:hover img { transform: scale(1.035); }
.portfolio__group {
  display: block;
  margin-top: 14px;
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.portfolio__title {
  display: block;
  margin-top: 4px;
  font-size: .875rem;
  color: var(--c-ink-2);
}

/* ---------- Portada con foto de fondo (Blog, Contacto) ---------- */
.image-hero {
  position: relative;
  /* La foto empieza debajo de la cabecera, como en los modelos: el menú nunca queda sobre la imagen */
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  min-height: clamp(420px, 60vh, 560px);
  overflow: hidden;
  background: var(--c-bg-2);
}
.image-hero__media { position: absolute; inset: 0; }
.image-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.image-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 241, 233, .8);
}
.image-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 56px;
}
.image-hero__title {
  margin-top: 18px;
  font-size: clamp(2.75rem, 10vw, 4.5rem);
}
.image-hero__content .lead { margin-top: 20px; max-width: 28em; color: var(--c-ink); }

/* ---------- Blog ---------- */
.featured__grid { display: grid; gap: 32px; align-items: center; }
.featured__media { display: block; overflow: hidden; }
.featured__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.featured__media:hover img { transform: scale(1.03); }
.featured__text { display: grid; justify-items: start; }
.featured__title {
  margin-top: 16px;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.08;
}
.featured__title a:hover { color: var(--c-taupe); }
.featured__text .lead { margin-top: 20px; }
.featured__text .btn { margin-top: 30px; }

.posts { padding-bottom: clamp(64px, 8vw, 104px); }
.rule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.rule-head__title {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.rule-head__line { flex: 1; min-width: 40px; height: 1px; background: var(--c-taupe); }
.posts__grid {
  display: grid;
  gap: 48px;
  margin-top: clamp(32px, 4vw, 48px);
}
.post-card { display: grid; align-content: start; justify-items: start; }
.post-card__media { display: block; width: 100%; overflow: hidden; background: var(--c-bg-2); }
.post-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.post-card__media:hover img { transform: scale(1.04); }
.post-card__cat {
  margin-top: 20px;
  font-size: .5625rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.post-card__title {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
}
.post-card__title a:hover { color: var(--c-taupe); }
.post-card__excerpt {
  margin-top: 12px;
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--c-ink-2);
}
.post-card .link-arrow { margin-top: 14px; }

.split-cta__rule { margin-top: 26px; }
.split-cta--reverse .split-cta__rule + .lead { margin-top: 22px; }

/* ---------- Artículo ---------- */
.article { padding-bottom: clamp(56px, 7vw, 88px); }
.article__head {
  max-width: calc(680px + var(--gutter) * 2);
  padding-top: calc(var(--header-h) + 24px);
}
.article__title {
  margin-top: 16px;
  font-size: clamp(2.5rem, 8vw, 4rem);
}
.article__meta { margin-top: 18px; font-size: .8125rem; color: var(--c-ink-2); }
.article__media { max-width: calc(1000px + var(--gutter) * 2); margin-top: 40px; }
.article__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article__body {
  max-width: calc(680px + var(--gutter) * 2);
  margin-top: 48px;
  font-size: 1.0625rem;
  line-height: 1.85;
}
.article__body > * + * { margin-top: 1.1em; }
.article__lead {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--c-ink);
}
.article__body h2 {
  margin-top: 1.8em;
  font-family: var(--f-serif);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.2;
}
.article__body p,
.article__body li { color: var(--c-ink-2); }
.article__body ul { padding-left: 1.2em; list-style: disc; }
.article__body li + li { margin-top: .4em; }
.article__body li::marker { color: var(--c-earth); }
.article__service { padding-top: 1em; }
.posts--related { background: var(--c-bg-2); padding-top: clamp(56px, 7vw, 88px); }
.posts--related .post-card__media { background: var(--c-sand); }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; gap: 48px; align-items: start; }
.contact__side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.contact__title {
  margin-top: 36px;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.08;
}
.contact__place {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: .9375rem;
  color: var(--c-ink-2);
}
.icon-pin { width: 16px; height: 20px; flex: none; color: var(--c-ink); }
.contact__line { margin-top: 8px; font-size: .9375rem; }
.contact__line a { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  display: grid;
  gap: 28px;
  padding: 40px clamp(24px, 5vw, 48px);
  background: var(--c-bg-2);
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.field__opt { font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--c-ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--c-taupe);
  border-radius: 0;
  background: transparent;
  color: var(--c-ink);
  font: 400 1rem/1.5 var(--f-sans);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: #8a7f72; opacity: 1; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--c-ink);
  box-shadow: 0 1px 0 var(--c-ink);
}
.select { position: relative; display: block; }
.select::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 24px; cursor: pointer; }
.field [aria-invalid="true"] { border-bottom-color: #8c3b2e; }
.field__error { font-size: .8125rem; color: #8c3b2e; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}
.field--check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid var(--c-taupe);
  background: var(--c-bg);
  cursor: pointer;
  appearance: auto;
  accent-color: var(--c-taupe);
}
.field--check label {
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-ink-2);
  cursor: pointer;
}
.field--check label a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { grid-column: 1 / -1; }
.contact-form__submit { width: 100%; min-height: 52px; }
.contact-form__submit[disabled] { opacity: .65; cursor: progress; }
.form-status {
  padding: 16px 18px;
  border-left: 2px solid var(--c-taupe);
  background: var(--c-bg);
  font-size: .9375rem;
  line-height: 1.6;
}
.form-status.is-error { border-left-color: #8c3b2e; }
.faq--contact { padding-top: clamp(32px, 5vw, 64px); }

/* ---------- Legales ---------- */
.legal { padding-bottom: clamp(64px, 8vw, 104px); }
.legal__inner {
  max-width: calc(720px + var(--gutter) * 2);
  padding-top: calc(var(--header-h) + 40px);
}
.legal__title { font-size: clamp(2.5rem, 8vw, 3.5rem); margin-bottom: 32px; }
.legal h2 {
  margin-top: 36px;
  font-family: var(--f-serif);
  font-size: 1.625rem;
  font-weight: 500;
}
.legal p { margin-top: 12px; line-height: 1.8; color: var(--c-ink-2); }
.pending {
  padding: 14px 16px;
  border: 1px dashed var(--c-taupe);
  background: var(--c-bg-2);
  color: var(--c-ink) !important;
}

/* ---------- Tableta ---------- */
@media (min-width: 700px) {
  .values__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .value { padding-inline: 28px; }
  .value + .value { border-left: 1px solid var(--c-line); }
  .duo { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .duo__wide img, .duo__tall img { aspect-ratio: auto; height: clamp(360px, 42vw, 620px); }
  .portfolio__grid { columns: 3; column-gap: 20px; }
  .posts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* ---------- Escritorio ---------- */
@media (min-width: 960px) {
  .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); }
  .text-cta__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }

  .page-hero--panel .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-hero--panel .page-hero__text {
    padding: 64px clamp(40px, 6vw, 96px) 64px max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  }
  .page-hero--panel .page-hero__media img { height: 100%; aspect-ratio: auto; min-height: 480px; }
  .portfolio__bar { grid-template-columns: 1fr auto; }

  .image-hero__media::after {
    background: linear-gradient(90deg, rgba(245, 241, 233, .9) 0%, rgba(245, 241, 233, .72) 40%, rgba(245, 241, 233, 0) 72%);
  }
  .image-hero__content { padding-bottom: 64px; }

  .featured__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); }
  .split-cta--reverse .split-cta__content { order: -1; }

  .contact__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); }
}

/* ---------- Contacto: teléfonos y WhatsApp ---------- */
.contact__phones { margin-top: 10px; font-size: .9375rem; color: var(--c-ink-2); }
.contact__phones a { color: var(--c-ink); white-space: nowrap; }
.contact__phones a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__wa { margin-top: 26px; }
.contact-form__note { margin-top: -12px; font-size: .8125rem; line-height: 1.6; color: var(--c-ink-2); text-align: center; }

/* ==========================================================================
   SEO: titular con palabra clave, bloque local y datos de contacto en el pie
   ========================================================================== */
.has-kicker { margin-top: 0; }
.h1-kicker {
  display: block;
  margin-bottom: 20px;
  font-family: var(--f-sans);
  line-height: 1.6;
  letter-spacing: .24em;
}

.local-block {
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid rgba(189, 178, 163, .55);
}
.local-block__grid { display: grid; gap: 20px; }
.local-block__text { display: grid; gap: 18px; }
.local-block__related { font-size: .9375rem; color: var(--c-ink-2); }
.local-block__related a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.local-block__related a:hover { color: var(--c-taupe); }

.site-footer__nap a:hover { color: var(--c-ink); }

/* Dónde trabajamos (inicio y contacto) */
.where { padding-block: clamp(64px, 8vw, 104px); background: var(--c-bg-2); }
.where__grid { display: grid; gap: 28px; }
.where__title { margin-top: 16px; font-size: clamp(2.25rem, 7vw, 3.25rem); line-height: 1.08; }
.where__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.where__list li {
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: .8125rem;
  color: var(--c-ink);
}
.where__list li.where__more { border-style: dashed; color: var(--c-ink-2); }
.where__side { display: grid; gap: 22px; align-content: start; }
.where__side .lead { color: var(--c-ink); }

@media (min-width: 960px) {
  .local-block__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: end; }
  .where__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
}

/* Botones con texto largo: en pantallas estrechas pueden partirse en dos líneas en vez de desbordar */
.btn { max-width: 100%; }
@media (max-width: 959.98px) {
  .split-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479.98px) {
  .btn { white-space: normal; text-align: center; }
}
