/* ==========================================================================
   Tipografías autoalojadas (Instrument Serif y Archivo, SIL Open Font License).
   Subconjuntos latin y latin-ext. Se sirven desde este mismo dominio para no
   enviar la IP del visitante a Google Fonts.
   ========================================================================== */

/* Archivo 400 — latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo 400 — latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo 500 — latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo 500 — latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo 600 — latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo 600 — latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/archivo-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Serif 400 italic — latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif 400 italic — latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Serif 400 — latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Serif 400 — latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Patio Ventures — hoja de estilos única
   Valores tomados literalmente del handoff (design_handoff_patio_ventures).
   Sin border-radius y sin sombras en ninguna parte: es deliberado.
   ========================================================================== */

:root {
  --cal:            #F5F1E9;
  --tinta:          #17150F;
  --almagre:        #B0472B;
  --almagre-claro:  #C8613F;
  --almagre-oscuro: #8E3620;
  --arena:          #E3DBC9;
  --arena-media:    #E9E3D5;
  --grafito:        #3D382C;
  --piedra:         #6B6455;
  --hueso:          #BDB6A5;
  --linea:          rgba(23, 21, 15, 0.16);
  --linea-header:   rgba(23, 21, 15, 0.1);
  --linea-footer:   rgba(245, 241, 233, 0.14);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Archivo', system-ui, sans-serif;

  --foto: saturate(1.04) contrast(1.05) brightness(1.02);
}

/* --------------------------------------------------------------- Base --- */

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--cal);
}

body {
  font-family: var(--sans);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }

a {
  color: var(--almagre);
  text-decoration: none;
}

a:hover {
  color: var(--almagre-oscuro);
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--almagre);
  color: var(--cal);
}

:focus-visible {
  outline: 2px solid var(--almagre);
  outline-offset: 2px;
}

/* El header sticky mide 76px: los saltos a un ancla no deben quedar debajo. */
:target { scroll-margin-top: 100px; }

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

/* --------------------------------------------------------- Animación --- */

@keyframes pvRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pvFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------- Layout ----- */

.contenedor {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

main { flex: 1; }

/* Utilidades tipográficas compartidas */

.eyebrow {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--piedra);
}

.eyebrow--regla {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.eyebrow--regla::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--almagre);
  flex: 0 0 auto;
}

.entradilla {
  font-size: 19px;
  line-height: 1.6;
  color: var(--grafito);
  text-wrap: pretty;
}

/* Marco de foto: fondo arena mientras carga, filtro común a todas */

.foto {
  width: 100%;
  background: var(--arena);
  overflow: hidden;
}

.foto > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--foto);
}

/* Botones */

.boton {
  display: inline-block;
  padding: 15px 30px;
  background: var(--tinta);
  color: var(--cal);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}

.boton:hover {
  background: var(--almagre);
  color: var(--cal);
  text-decoration: none;
}

/* ---------------------------------------------------------- Header ----- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 233, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea-header);
}

.header__barra {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Lockup del logo — nunca debe partir en dos líneas */

.marca {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  color: var(--tinta);
}

.marca:hover { color: var(--tinta); text-decoration: none; }

.marca svg { flex: 0 0 auto; display: block; }

.marca__texto {
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
}

.marca__nombre {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 0.9;
  letter-spacing: 0.005em;
}

.marca__sufijo {
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--piedra);
  line-height: 1;
}

/* Nav ancha (>=1040px) */

.nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.nav__enlace {
  position: relative;
  padding: 8px 12px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tinta);
  white-space: nowrap;
}

.nav__enlace:hover {
  color: var(--almagre);
  text-decoration: none;
}

.nav__enlace[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background: var(--almagre);
}

.nav__cta {
  margin-left: 10px;
  padding: 10px 18px;
  border: 1px solid var(--tinta);
  color: var(--tinta);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--tinta);
  color: var(--cal);
  text-decoration: none;
}

/* Menú compacto (<1040px) — <details>, sin JS */

.menu { display: none; }

.menu__boton {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--tinta);
  cursor: pointer;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 44px;
  list-style: none;
}

.menu__boton::-webkit-details-marker { display: none; }
.menu__boton::marker { content: ""; }

.menu__boton:hover {
  background: var(--tinta);
  color: var(--cal);
}

.menu__barras {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu__barras span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.menu__etiqueta--cerrar { display: none; }
.menu[open] .menu__etiqueta--abrir  { display: none; }
.menu[open] .menu__etiqueta--cerrar { display: inline; }

/* El panel se ancla al <header> (sticky ⇒ bloque contenedor), así ocupa
   todo el ancho por debajo de la barra de 76px. */
.menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--linea-header);
  background: var(--cal);
  animation: pvFade 0.2s ease both;
}

.menu__panel-interior {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px 20px;
  display: flex;
  flex-direction: column;
}

.menu__enlace {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--linea-header);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tinta);
  min-height: 44px;
}

.menu__enlace:hover { color: var(--almagre); text-decoration: none; }
.menu__enlace[aria-current="page"] { color: var(--almagre); }

.menu__cta {
  margin-top: 18px;
  padding: 16px;
  background: var(--tinta);
  color: var(--cal);
  text-align: center;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 44px;
}

.menu__cta:hover { background: var(--almagre); color: var(--cal); text-decoration: none; }

@media (max-width: 1039px) {
  .nav  { display: none; }
  .menu { display: block; }
}

/* ---------------------------------------------------------- Footer ----- */

.footer {
  background: var(--tinta);
  color: var(--hueso);
  margin-top: auto;
}

.footer__interior {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 32px 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 48px;
  padding-bottom: 56px;
}

.footer .marca { color: var(--cal); }
.footer .marca:hover { color: var(--cal); }
.footer .marca__nombre { font-size: 23px; color: var(--cal); }

.footer__descripcion {
  margin: 20px 0 0;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.6;
}

.footer__columna {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__titulo {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--piedra);
}

.footer__enlace,
.footer__dato {
  font-size: 15.5px;
  color: var(--hueso);
}

.footer__enlace:hover { color: var(--cal); }

.footer__dato { line-height: 1.5; }

.footer__barra {
  border-top: 1px solid var(--linea-footer);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ============================================================ Inicio === */

.hero { padding-top: 112px; padding-bottom: 88px; }

.hero__eyebrow { animation: pvFade 0.6s ease both; }

.hero__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
  animation: pvRise 0.7s ease both;
}

.hero__entradilla {
  margin: 36px 0 0;
  max-width: 52ch;
  animation: pvRise 0.7s 0.1s ease both;
}

.hero-foto { padding-bottom: 24px; }

.hero-foto figure { margin: 0; }

.hero-foto .foto { height: clamp(320px, 46vw, 560px); }

.hero-foto figcaption {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--piedra);
}

/* Franja de valores sobre tinta */

.valores {
  margin-top: 96px;
  background: var(--tinta);
  color: var(--cal);
}

.valores__grid {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 56px;
}

.valor {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.valor__num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--almagre-claro);
  line-height: 1;
}

.valor__titulo {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.valor__texto {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--hueso);
  text-wrap: pretty;
}

/* Dos líneas, un mismo oficio */

.lineas { padding-top: 104px; padding-bottom: 104px; }

.lineas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 64px;
  align-items: start;
}

.lineas__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 22px 0 0;
  max-width: 16ch;
}

.lineas__lista {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.linea-bloque {
  border-top: 1px solid var(--linea);
  padding-top: 22px;
}

.linea-bloque :is(h2, h3) {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
}

.linea-bloque p {
  margin: 12px 0 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--grafito);
  text-wrap: pretty;
}

/* CTA de home */

.cta { background: var(--arena-media); }

.cta__grid {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.cta__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.1;
  margin: 0;
  max-width: 18ch;
}

.cta__texto {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grafito);
  text-wrap: pretty;
}

.cta .boton { margin-top: 34px; }

.cta .foto { height: 380px; }

/* ========================================================= Filosofía === */

.cabecera { padding-top: 96px; }

.cabecera__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
  text-wrap: balance;
}

.filosofia .cabecera { padding-bottom: 72px; }
.filosofia .cabecera__titulo { max-width: 15ch; }
.filosofia .cabecera .entradilla { margin: 34px 0 0; max-width: 56ch; }

.filosofia-foto .foto { height: clamp(300px, 40vw, 480px); }

.principios {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 56px;
}

.principio__num {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--almagre);
}

.principio :is(h2, h3) {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.principio p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grafito);
  text-wrap: pretty;
}

.cita {
  background: var(--tinta);
  color: var(--cal);
}

.cita__interior {
  max-width: 900px;
  margin: 0 auto;
  padding: 104px 32px;
  text-align: center;
}

.cita blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.25;
  text-wrap: balance;
}

.cita blockquote p { margin: 0; }

.cita figcaption {
  margin: 32px 0 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hueso);
}

/* ======================================================== Estrategia === */

.estrategia .cabecera { padding-bottom: 64px; }
.estrategia .cabecera__titulo { max-width: 14ch; }
.estrategia .cabecera .entradilla { margin: 30px 0 0; max-width: 54ch; }

.pasos { padding-bottom: 96px; }

.paso {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  border-top: 1px solid var(--linea);
  padding: 34px 0;
}

.paso:hover { background: rgba(176, 71, 43, 0.04); }

.paso__num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--almagre);
  line-height: 1;
}

.paso__cuerpo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 32px;
  align-items: start;
}

.paso__cuerpo :is(h2, h3) {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}

.paso__cuerpo p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--grafito);
  text-wrap: pretty;
}

/* Con 88px + gap el cuerpo se queda sin sitio por debajo de ~700px:
   el numeral pasa arriba y la fila se apila. */
@media (max-width: 700px) {
  .paso { grid-template-columns: 1fr; gap: 14px; }
}

.criterios { background: var(--arena-media); }

.criterios__interior {
  padding-top: 88px;
  padding-bottom: 88px;
}

.criterios__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  margin: 0 0 44px;
}

.criterios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 40px;
}

.criterio {
  border-top: 1px solid rgba(23, 21, 15, 0.2);
  padding-top: 18px;
}

.criterio :is(h3, h4) {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.criterio p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grafito);
  text-wrap: pretty;
}

/* ========================================================= Portfolio === */

.portfolio .cabecera { padding-bottom: 56px; }
.portfolio .cabecera__titulo { max-width: 16ch; }
.portfolio .cabecera .entradilla { margin: 30px 0 0; max-width: 54ch; }

.obras {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.obra__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--linea);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.obra__titulo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
}

.obra__meta {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--piedra);
}

.obra__par {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
  align-items: end;
}

/* Cada foto se muestra entera, a su proporción natural, con altura
   compartida por el par y alineada por la base. El aire sobrante es fondo
   de página (sin panel gris) y la regla de la etiqueta mide el ancho real
   de la imagen. */
.obra__foto {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.obra__foto img {
  height: clamp(340px, 38vw, 480px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: var(--foto);
}

.obra__foto figcaption {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--linea);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--piedra);
}

.obra__foto--despues figcaption {
  border-top-color: rgba(176, 71, 43, 0.5);
  color: var(--almagre);
}

.obra__texto {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--grafito);
  text-wrap: pretty;
}

/* ========================================================== Contacto === */

.contacto {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 72px;
  align-items: start;
}

.contacto__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
  max-width: 13ch;
  text-wrap: balance;
}

.contacto__texto {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--grafito);
  text-wrap: pretty;
}

.contacto__datos {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.dato {
  border-top: 1px solid var(--linea);
  padding-top: 14px;
}

.dato dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--piedra);
}

.dato dd {
  margin: 8px 0 0;
  font-size: 19px;
}

/* Tarjeta del formulario */

.formulario {
  background: var(--arena-media);
  padding: 40px;
}

.formulario h2 {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
}

.formulario form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo > span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--piedra);
}

.campo input,
.campo textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(23, 21, 15, 0.22);
  background: var(--cal);
  color: var(--tinta);
  outline: none;
  width: 100%;
}

.campo textarea { resize: vertical; }

.campo input:focus,
.campo textarea:focus { border-color: var(--almagre); }

.campo input[aria-invalid="true"],
.campo textarea[aria-invalid="true"] { border-color: var(--almagre); }

.campo__error {
  font-size: 13px;
  line-height: 1.4;
  color: var(--almagre-oscuro);
}

.campo__error:empty { display: none; }

.consentimiento {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--grafito);
}

.consentimiento input {
  margin-top: 3px;
  accent-color: var(--almagre);
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

/* Honeypot antispam: fuera de la vista y fuera del tab order */
.trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulario .boton {
  margin-top: 6px;
  padding: 16px;
  width: 100%;
  text-align: center;
  font-size: 13.5px;
  min-height: 44px;
}

.formulario .boton[disabled] {
  opacity: 0.65;
  cursor: default;
}

.formulario__estado {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--grafito);
}

.formulario__estado:empty { display: none; }
.formulario__estado[data-tipo="error"] { color: var(--almagre-oscuro); }

/* ======================================================== Privacidad === */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 32px 104px;
}

.legal__titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
}

.legal__fecha {
  margin: 20px 0 0;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--piedra);
}

.legal__cuerpo {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.legal__cuerpo h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.legal__cuerpo p {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--grafito);
  text-wrap: pretty;
}

.legal__cuerpo p:last-child { margin-bottom: 0; }
