/* ==========================================================================
   Its Ariel Rodriguez · Fotografía documental de matrimonios
   Hoja de estilos — versión 3

   Inspirada en el lenguaje de Jose Villa, Victor Lax, Fer Juaristi y El
   Marco Rojo: fondo blanco, fotos grandes y sin descripciones, títulos en
   una serif cálida y de carácter (Fraunces) y etiquetas en mayúsculas con una
   sans condensada (Archivo).
   ========================================================================== */

/* --- 1. Fuentes (alojadas en el sitio) ---------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* --- 2. Tokens ---------------------------------------------------------- */
:root {
  /* Color */
  --fondo:  #FFFFFF;
  --tinta:  #151413;
  --gris:   #6E6A65;
  --linea:  #E4E1DC;
  --arena:  #F2EEE8;   /* panos de color, como los de Fer Juaristi */
  --negro:  #0E0E0E;

  /* Tipografía */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-etiqueta: 0.75rem;                                       /* 12px, mayúsculas */
  --t-chico:    0.875rem;
  --t-cuerpo:   clamp(1rem, 0.15vw + 0.96rem, 1.0625rem);
  --t-lead:     clamp(1.3rem, 0.9vw + 1.05rem, 1.75rem);
  --t-h3:       clamp(1.4rem, 1vw + 1.1rem, 1.9rem);
  --t-h2:       clamp(2.1rem, 3.2vw + 0.9rem, 3.9rem);
  --t-display:  clamp(2.6rem, 5.6vw + 0.6rem, 6.6rem);

  /* Espacio */
  --margen:  clamp(1.25rem, 4vw, 3.5rem);
  --hueco:   clamp(0.6rem, 1.2vw, 1.25rem);   /* separación entre fotos */
  --seccion: clamp(5rem, 11vw, 10rem);
  --max:     1440px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 3. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--t-cuerpo);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, figure, blockquote, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--tinta); color: var(--fondo); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: var(--margen); top: -100px; z-index: 300;
  background: var(--tinta); color: var(--fondo); padding: 0.9em 1.2em;
}
.saltar:focus { top: 1rem; }

/* --- 4. Piezas de texto ------------------------------------------------- */
/* Etiqueta: la letra chica en mayúsculas de los referentes */
.etiqueta, .menu a, .boton, .enlace, .filtro, .pie__nav a, .tarjeta__nombre, .historia__dato {
  font-family: var(--sans);
  font-stretch: 75%;
  font-weight: 600;
  font-size: var(--t-etiqueta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.etiqueta { display: block; color: var(--gris); }

.display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.lead { font-family: var(--display); font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.sec { color: var(--gris); }
.medida { max-width: 36em; }
.centro { text-align: center; }
.centro .medida, .centro .display, .centro .h2 { margin-inline: auto; }

.enlace {
  display: inline-block;
  padding-bottom: 0.45em;
  background: linear-gradient(currentColor, currentColor) center bottom / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.enlace:hover { background-size: 30% 1px; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9em 2.2em;
  border: 1px solid var(--tinta);
  background: var(--tinta);
  color: var(--fondo);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.boton:hover { background: transparent; color: var(--tinta); }
.boton--borde { background: transparent; color: var(--tinta); }
.boton--borde:hover { background: var(--tinta); color: var(--fondo); }
.boton[disabled] { opacity: 0.6; cursor: progress; }

/* --- 5. Contenedores ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margen); }
.wrap--angosto { max-width: 980px; }
.seccion { padding-block: var(--seccion); }
.seccion--arena { background: var(--arena); }
.cabeza { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.cabeza .etiqueta { margin-bottom: 1.25rem; }
.cabeza p:not(.etiqueta) { margin-top: 1.25rem; }

/* --- 6. Cabecera: logo al centro, menú a los lados --------------------- */
.cabecera {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: calc(0.9rem + env(safe-area-inset-top, 0px)) var(--margen) 0.9rem;
  background: var(--fondo);
  color: var(--tinta);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), min-height 0.4s var(--ease);
}
.cabecera.is-pegada { border-bottom-color: var(--linea); min-height: 4.5rem; }
.cabecera--sobre-foto:not(.is-pegada) { background: transparent; color: #fff; }

.marca {
  position: absolute;
  left: 50%;
  top: calc(50% + env(safe-area-inset-top, 0px) / 2);
  transform: translate(-50%, -50%);
  line-height: 0;
  z-index: 130;
}
.marca__logo { height: clamp(48px, 4.4vw, 64px); width: auto; transition: height 0.4s var(--ease); }
.cabecera.is-pegada .marca__logo { height: clamp(40px, 3.4vw, 48px); }
.marca__logo--blanco { display: none; }
.cabecera--sobre-foto:not(.is-pegada) .marca__logo--negro { display: none; }
.cabecera--sobre-foto:not(.is-pegada) .marca__logo--blanco { display: block; }

.menu { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 2rem; }
.menu__grupo { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
.menu a {
  padding-block: 0.4em;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.menu a:hover, .menu a[aria-current="page"] { background-size: 100% 1px; }
.menu .menu__cta { padding: 0.75em 1.3em; border: 1px solid currentColor; background: none; }
.menu .menu__cta:hover { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }
.cabecera--sobre-foto:not(.is-pegada) .menu__cta:hover { background: #fff; color: var(--tinta); border-color: #fff; }
.idioma { display: flex; align-items: center; gap: 0.5em; font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: var(--t-etiqueta); letter-spacing: 0.16em; }
.menu .idioma a { opacity: 0.6; }
.menu .idioma a:hover { opacity: 1; }
.idioma span[aria-hidden] { opacity: 0.4; }

.boton-menu {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.4rem 0;
  font-family: var(--sans); font-stretch: 75%; font-weight: 600;
  font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 130;
}

@media (max-width: 960px) {
  .boton-menu { display: block; }
  .marca { position: relative; left: auto; top: auto; transform: none; }
  .menu {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 6rem var(--margen) 3rem;
    background: var(--fondo);
    color: var(--tinta);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    overflow-y: auto;
  }
  .menu__grupo { flex-direction: column; gap: 1rem; }
  .menu .menu__cta { margin-top: 1.25rem; }
  .menu .menu__grupo > li > a, .menu .menu__grupo > a:not(.menu__cta) {
    font-family: var(--display);
    font-stretch: 100%;
    font-weight: 400;
    font-size: clamp(2rem, 9vw, 2.6rem);
    letter-spacing: -0.01em;
    text-transform: none;
  }
  .menu__grupo ul, ul.menu__grupo { display: flex; flex-direction: column; gap: 1rem; }
  body.menu-abierto .menu { opacity: 1; visibility: visible; }
  body.menu-abierto .cabecera { color: var(--tinta); background: var(--fondo); }
  body.menu-abierto .cabecera .marca__logo--negro { display: block; }
  body.menu-abierto .cabecera .marca__logo--blanco { display: none; }
}

/* --- 7. Portada (carrusel) --------------------------------------------- */
.portada {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  max-height: 1200px;
  overflow: hidden;
  color: #fff;
  background: #262321;
}
.portada__fotos { position: absolute; inset: 0; }
.portada__foto { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.portada__foto.is-activa { opacity: 1; }
.portada__foto img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
}
.portada__foto.is-activa:first-child img { animation: aparecer 1.4s var(--ease) both; }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.portada::before, .portada::after { content: ""; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
.portada::before { top: 0; height: 220px; background: linear-gradient(rgba(10,9,8,0.5), rgba(10,9,8,0)); }
.portada::after { bottom: 0; height: 60%; background: linear-gradient(rgba(10,9,8,0), rgba(10,9,8,0.6)); }

.portada__texto {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  padding: 0 var(--margen) clamp(1.75rem, 4.5vh, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: aparecer 1.4s 0.35s var(--ease) both;
}
.portada__frases { display: grid; justify-items: center; }
.portada__frase {
  grid-area: 1 / 1;
  align-self: end;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.2vw + 0.6rem, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 17ch;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.portada__frase.is-activa { opacity: 1; transform: none; transition-delay: 0.3s; }
.portada .portada__bajada {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-stretch: 75%;
  font-weight: 600;
  font-size: var(--t-etiqueta);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}
.portada__control { display: flex; align-items: center; justify-content: center; gap: 0.2rem; margin-top: 1.75rem; }
.portada__punto { position: relative; width: 1.9rem; height: 1.6rem; padding: 0; border: 0; background: none; cursor: pointer; }
.portada__punto::before {
  content: ""; position: absolute; left: 0.2rem; right: 0.2rem; top: 50%; height: 1px;
  background: rgba(255,255,255,0.4); transition: background 0.3s var(--ease);
}
.portada__punto.is-activa::before, .portada__punto:hover::before { background: #fff; }
.portada__pausa {
  margin-left: 0.8rem; padding: 0.3rem 0; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,0.8);
  font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.portada__pausa:hover { color: #fff; }
@media (max-width: 760px) {
  .portada__foto img { object-position: 50% 50%; }
  .portada__foto.foco-der img { object-position: 72% 50%; }
  .portada__foto.foco-izq img { object-position: 15% 50%; }
  .portada__punto { width: 1.5rem; }
}

/* --- 8. Fotos ----------------------------------------------------------- */
.foto { margin: 0; }
.foto img { width: 100%; background: #ECE9E4; }
.foto--abre { cursor: zoom-in; }

/* Pares y filas de fotos (portfolio y bloques) */
.filas { display: grid; gap: var(--hueco); }
.fila { display: grid; gap: var(--hueco); }
.fila--par { grid-template-columns: 1fr 1fr; }
.fila--centro { justify-items: center; }
.fila--centro .foto { width: min(100%, 560px); }
@media (max-width: 600px) { .fila--par { grid-template-columns: 1fr; } }

/* --- 9. Introducción ---------------------------------------------------- */
.intro { padding-block: var(--seccion) clamp(3.5rem, 7vw, 6rem); }
.intro .h2 { max-width: 19ch; }
.intro p:not(.etiqueta) { margin-top: 2rem; }
.intro .enlace { margin-top: 2.25rem; }

.duo {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--hueco);
  align-items: end;
}
.duo--al-reves { grid-template-columns: 7fr 5fr; }
@media (max-width: 760px) { .duo, .duo--al-reves { grid-template-columns: 1fr; } }

/* --- 10. Historias (tarjetas) ------------------------------------------ */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
.tarjeta { display: block; }
.tarjeta img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity 0.4s var(--ease); }
.tarjeta:hover img { opacity: 0.88; }
.tarjeta__pie { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--tinta); }
.tarjeta__nombre { display: block; font-size: 0.875rem; letter-spacing: 0.12em; color: var(--tinta); }
.tarjeta__dato { display: block; margin-top: 0.3rem; font-size: var(--t-chico); color: var(--gris); }
@media (max-width: 900px) {
  .tarjetas {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    margin-inline: calc(var(--margen) * -1);
    padding-inline: var(--margen);
    scrollbar-width: thin;
  }
  .tarjeta { scroll-snap-align: start; }
}

/* --- 11. Bandas a todo el ancho ---------------------------------------- */
.banda {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: min(88svh, 900px);
  padding: var(--seccion) var(--margen);
  color: #fff;
  text-align: center;
  background: #262321;
}
.banda__fondo, .banda__fondo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.banda__fondo img { object-fit: cover; }
.banda::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,9,8,0.42); }
.banda blockquote, .banda .display {
  font-family: var(--display);
  font-size: var(--t-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-inline: auto;
}
.banda .etiqueta { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.banda .sec { color: rgba(255,255,255,0.85); }

/* --- 12. Mosaico (galería sin textos) ---------------------------------- */
.mosaico { columns: 3; column-gap: var(--hueco); }
.mosaico .foto { break-inside: avoid; margin-bottom: var(--hueco); }
@media (max-width: 760px) { .mosaico { columns: 2; } }

/* --- 13. Sobre mí (pano arena con foto montada) ------------------------ */
.pano {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--hueco);
  align-items: center;
}
.pano__foto { grid-column: 1 / 6; }
.pano__texto { grid-column: 7 / 12; }
.pano__texto .h2 { margin-bottom: 1.75rem; }
.pano__texto .enlace { margin-top: 2rem; }
.pano--al-reves .pano__foto { grid-column: 8 / 13; order: 2; }
.pano--al-reves .pano__texto { grid-column: 2 / 7; }
@media (max-width: 760px) {
  .pano { grid-template-columns: 1fr; gap: 2.5rem; }
  .pano__foto, .pano__texto, .pano--al-reves .pano__foto, .pano--al-reves .pano__texto { grid-column: auto; order: 0; }
}

/* --- 14. Pasos ----------------------------------------------------------- */
.pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 3rem); counter-reset: paso; }
.paso { counter-increment: paso; text-align: center; }
.paso::before {
  content: counter(paso, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.paso h3 { font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.4; }
.paso p, .paso ul { margin-top: 0.75rem; color: var(--gris); font-size: var(--t-chico); line-height: 1.7; }
.paso li + li { margin-top: 0.4rem; }
@media (max-width: 900px) { .pasos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pasos { grid-template-columns: 1fr; } }

/* --- 15. Cierre con la foto de las manos -------------------------------- */
.cierre__form { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 0.75rem; }
.cierre__campo { display: grid; gap: 0.5rem; text-align: left; }
.cierre__campo label { font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase; }
.cierre__campo input {
  min-height: 3.25rem; min-width: 15rem; padding: 0.7em 0.9em;
  border: 1px solid currentColor; border-radius: 0; background: transparent; font-size: 1rem;
}
.banda .cierre__campo label { color: rgba(255,255,255,0.85); }
.banda .cierre__campo input { color: #fff; border-color: rgba(255,255,255,0.85); color-scheme: dark; }
.banda .boton { background: #fff; border-color: #fff; color: var(--tinta); }
.banda .boton:hover { background: transparent; color: #fff; }
.cierre__nota { margin-top: 1.75rem; font-size: var(--t-chico); }
.banda .cierre__nota a { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 520px) { .cierre__campo, .cierre__campo input, .cierre__form .boton { width: 100%; min-width: 0; } }

/* --- 16. Instagram ------------------------------------------------------ */
.insta { padding-top: var(--seccion); text-align: center; }
.insta .h2 { margin-bottom: 1rem; }
.insta__cabeza { margin-bottom: clamp(2rem, 4vw, 3rem); }
.insta__grilla { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.insta__item { display: block; aspect-ratio: 1; overflow: hidden; background: #ECE9E4; }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s var(--ease); }
.insta__item:hover img { opacity: 0.85; }
@media (max-width: 760px) { .insta__grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- 17. Pie de página -------------------------------------------------- */
.pie { padding-block: clamp(4rem, 8vw, 6rem) 2rem; text-align: center; }
.pie__logo { width: 160px; height: auto; margin-inline: auto; }
.pie__lema { margin-top: 1.25rem; color: var(--gris); font-size: var(--t-chico); }
.pie__nav { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; }
.pie__nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.pie__contacto { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; font-size: var(--t-chico); color: var(--gris); }
.pie__contacto a:hover { color: var(--tinta); }
.pie__abajo {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--linea);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  font-size: 0.8125rem; color: var(--gris);
}

/* --- 18. WhatsApp ------------------------------------------------------- */
.wa {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 90;
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--tinta); color: #fff; box-shadow: 0 6px 24px rgba(20,16,12,0.22);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.wa.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa svg { width: 24px; height: 24px; fill: currentColor; }
body.menu-abierto .wa, body.visor-abierto .wa { opacity: 0; pointer-events: none; }

/* --- 19. Páginas interiores -------------------------------------------- */
.encabezado { padding-top: clamp(9rem, 16vw, 12.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.encabezado .etiqueta { margin-bottom: 1.5rem; }
.encabezado .lead { margin-top: 1.75rem; }

.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin-top: 2.5rem; }
.filtro { background: none; border: 0; padding: 0.4em 0; cursor: pointer; color: var(--gris);
  background-image: linear-gradient(currentColor, currentColor); background-position: left bottom; background-size: 0 1px; background-repeat: no-repeat;
  transition: color 0.3s var(--ease), background-size 0.3s var(--ease); }
.filtro:hover { color: var(--tinta); }
.filtro[aria-pressed="true"] { color: var(--tinta); background-size: 100% 1px; }

.historia { padding-block: clamp(4rem, 9vw, 8rem); }
.historia + .historia { border-top: 1px solid var(--linea); }
.historia__cabeza { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.historia__cabeza .h2 { margin-bottom: 1rem; }
.historia__dato { display: block; color: var(--gris); }

/* Sobre mí */
.texto-largo { max-width: 38em; margin-inline: auto; }
.texto-largo .h2 { text-align: center; margin-bottom: 2.5rem; }

/* Preguntas */
.preguntas { max-width: 50rem; margin-inline: auto; border-top: 1px solid var(--linea); }
.pregunta { border-bottom: 1px solid var(--linea); }
.pregunta summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--display); font-size: clamp(1.15rem, 0.6vw + 1rem, 1.45rem); line-height: 1.35;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; font-family: var(--sans); font-size: 1.25rem; color: var(--gris); transition: transform 0.3s var(--ease); }
.pregunta[open] summary::after { transform: rotate(45deg); }
.pregunta__resp { padding-bottom: 1.6rem; color: var(--gris); max-width: 40em; }

/* Contacto: formulario de líneas, como el de Jose Villa */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(1.5rem, 3vw, 2.5rem); max-width: 48rem; margin-inline: auto; }
.campo { display: grid; gap: 0.35rem; align-content: start; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 2.9rem; padding: 0.55em 0; border: 0; border-bottom: 1px solid #C9C5BF; border-radius: 0;
  background: transparent; font-size: 1rem; transition: border-color 0.25s var(--ease);
}
.campo textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.campo select {
  appearance: none; cursor: pointer; padding-right: 1.8em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23151413' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 0.2em center;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--tinta); box-shadow: 0 1px 0 var(--tinta); }
.form__acciones { grid-column: 1 / -1; display: grid; justify-items: center; gap: 1rem; margin-top: 1rem; text-align: center; }
.form__nota { font-size: var(--t-chico); color: var(--gris); }
.form__nota--error { color: #9B2C1C; }
.form__nota--ok { color: var(--tinta); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.directo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 48rem; margin: 0 auto clamp(3.5rem, 7vw, 5rem); text-align: center; }
.directo a { display: grid; gap: 0.35rem; }
.directo__que { font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); }
.directo__valor { font-family: var(--display); font-size: 1.15rem; }
.directo a:hover .directo__valor { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 640px) { .directo { grid-template-columns: 1fr; } }

/* Galerías */
.buscador { margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 34rem; }
.buscador input {
  width: 100%; border: 0; border-bottom: 1px solid var(--tinta); border-radius: 0; background: transparent;
  padding: 0.5em 0; text-align: center; font-family: var(--display); font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
}
.buscador input::placeholder { color: #A29D96; }
.buscador input:focus { outline: none; box-shadow: 0 1px 0 var(--tinta); }
.resultados { margin: 1.5rem auto 0; max-width: 34rem; text-align: left; }
.resultado { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linea); }
.resultado__nombre { font-family: var(--display); font-size: 1.4rem; }
.resultado__dato { display: block; font-size: var(--t-chico); color: var(--gris); margin-top: 0.2rem; }
.resultado__ir { font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.resultado:hover .resultado__ir { text-decoration: underline; text-underline-offset: 0.3em; }
.resultados__vacio { color: var(--gris); padding: 1rem 0; text-align: center; }

.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); text-align: center; }
.tres h3 { font-size: var(--t-h3); }
.tres p { margin-top: 0.75rem; color: var(--gris); font-size: var(--t-chico); }
@media (max-width: 760px) { .tres { grid-template-columns: 1fr; } }

/* Página privada */
.puerta { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--margen); text-align: center; }
.puerta__caja { width: 100%; max-width: 24rem; }
.puerta__logo { width: 150px; height: auto; margin: 0 auto 2.5rem; }
.puerta__caja h1 { font-size: var(--t-h2); }
.puerta__caja p { margin-top: 1rem; color: var(--gris); }
.puerta form { margin-top: 2rem; display: grid; gap: 0.75rem; }
.puerta input { min-height: 3.25rem; padding: 0.6em 0; border: 0; border-bottom: 1px solid var(--tinta); border-radius: 0; text-align: center; font-size: 1.05rem; letter-spacing: 0.1em; background: transparent; }
.puerta input:focus { outline: none; box-shadow: 0 1px 0 var(--tinta); }
.puerta__error { min-height: 1.4em; font-size: var(--t-chico); color: #9B2C1C; }
.puerta__ayuda { font-size: var(--t-chico); }

.planes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hueco); }
.plan { border: 1px solid var(--linea); padding: clamp(2rem, 3.5vw, 3.25rem); text-align: center; display: flex; flex-direction: column; }
.plan--destacado { border-color: var(--tinta); }
.plan__marca { display: block; margin-bottom: 1rem; }
.plan h2 { font-size: var(--t-h2); }
.plan__precio { margin-top: 0.75rem; font-family: var(--display); font-size: var(--t-h3); }
.plan__precio small { font-family: var(--sans); font-size: var(--t-chico); color: var(--gris); margin-left: 0.3em; }
.plan__para { margin-top: 1.25rem; color: var(--gris); font-size: var(--t-chico); max-width: 30em; margin-inline: auto; }
.plan__para strong { display: block; color: var(--tinta); font-weight: 600; margin-bottom: 0.4rem; }
.plan__incluye { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--linea); font-size: var(--t-chico); line-height: 1.6; }
.plan__incluye li + li { margin-top: 0.45rem; }
.plan__incluye strong { font-weight: 600; }
@media (max-width: 760px) { .planes { grid-template-columns: 1fr; } }

/* --- 20. Visor de fotos ------------------------------------------------- */
.visor {
  position: fixed; inset: 0; z-index: 200; background: #0E0D0C; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.visor.is-abierto { opacity: 1; visibility: visible; }
.visor__barra { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--margen);
  font-family: var(--sans); font-stretch: 75%; font-weight: 600; font-size: var(--t-etiqueta); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.visor__escenario { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(0.5rem, 5vw, 5rem); }
.visor__escenario img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.visor__pie { min-height: 2.5rem; }
.visor button { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0.6rem 0.4rem; }
.visor__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3.25rem; height: 5rem; opacity: 0.7; }
.visor__nav:hover { opacity: 1; }
.visor__nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.visor__ant { left: clamp(0rem, 1.5vw, 1.5rem); }
.visor__sig { right: clamp(0rem, 1.5vw, 1.5rem); }

/* --- 21. Movimiento reducido ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* --- 22. Ajustes de filas y bandas ------------------------------------- */
.filas { max-width: 1240px; margin-inline: auto; }
.fila--h img { aspect-ratio: 3 / 2; object-fit: cover; }
.fila--v img { aspect-ratio: 4 / 5; object-fit: cover; }
.foto--banda img { aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 760px) { .foto--banda img { aspect-ratio: 4 / 3; } }
.mas { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.banda .boton.boton--borde { background: transparent; color: #fff; border-color: #fff; }
.banda .boton.boton--borde:hover { background: #fff; color: var(--tinta); }
.encabezado--arena { background: var(--arena); padding-bottom: var(--seccion); }
.banda__texto { margin: 2rem auto 0; }
.separado { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.pie-seccion { padding-bottom: var(--seccion); }

/* Banda de cierre: velo café cálido y texto blanco (foto de alto contraste) */
.banda--cierre::after { background: rgba(46,40,36,0.38); }
.banda--cierre .cierre__campo input { background: transparent; }
/* Encuadre: que las manos queden al centro del bloque (escritorio y celular) */
.banda--cierre .banda__fondo img { object-position: 47% 50%; }
@media (max-width: 760px) { .banda--cierre .banda__fondo img { object-position: 45% 50%; } }

/* --- 23. Aviso de cookies (solo aparece si hay píxel de Meta y desde la
       fecha de CONFIG.pedirPermisoDesde en sitio.js) ---------------------- */
.cookies {
  position: fixed; z-index: 150; left: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem);
  width: min(25rem, calc(100vw - 2rem)); padding: 1.1rem 1.25rem;
  background: var(--fondo); color: var(--tinta); border: 1px solid var(--linea);
  box-shadow: 0 10px 34px rgba(20,16,12,0.16); font-size: 0.875rem; line-height: 1.55;
}
.cookies__texto { margin: 0; }
.cookies__texto a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookies__botones { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.cookies__boton {
  flex: 1; padding: 0.7em 1em; cursor: pointer; font: inherit; letter-spacing: 0.04em;
  background: transparent; color: var(--tinta); border: 1px solid var(--tinta);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.cookies__boton:hover, .cookies__boton:focus-visible { background: var(--tinta); color: #fff; }

/* --- 24. Página de privacidad ------------------------------------------ */
.legal h2 {
  font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.25;
  letter-spacing: -0.01em; margin: 2.75rem 0 0.9rem;
}
.legal__fecha { color: var(--gris); font-size: 0.875rem; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal__eleccion { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--arena); }
.legal__eleccion .boton { margin-top: 1rem; }

/* --- 25. Blog ------------------------------------------------------------ */
.blog-lista { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.blog-lista--dos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); max-width: 980px; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.entrada { display: block; }
.entrada img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity 0.4s var(--ease); }
.entrada:hover img { opacity: 0.88; }
.entrada__titulo { display: block; margin-top: 1.1rem; font-family: var(--display); font-size: clamp(1.3rem, 1.6vw, 1.5rem);
  line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.entrada__resumen { display: block; margin-top: 0.6rem; color: var(--gris); font-size: var(--t-chico); line-height: 1.6; }
.entrada--chica .entrada__titulo { font-size: 1.25rem; }

.articulo-cabeza .migas { margin-bottom: 1.5rem; color: var(--gris); }
.articulo-cabeza .migas a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.articulo-cabeza .h2 { margin-inline: auto; }
.articulo__meta { margin-top: 1.5rem; color: var(--gris); font-size: var(--t-chico); }
.articulo__meta a { text-decoration: underline; text-underline-offset: 3px; }
.articulo__foto { max-width: 1100px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); padding-inline: var(--margen); }
.articulo__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.articulo { font-size: 1.0625rem; line-height: 1.75; }
.articulo h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.2;
  letter-spacing: -0.015em; margin: 2.75rem 0 1rem; text-wrap: balance; }
.articulo ul, .articulo ol { margin: 1em 0; padding-left: 1.25em; }
.articulo ul { list-style: disc; } .articulo ol { list-style: decimal; }
.articulo li + li { margin-top: 0.55em; }
.articulo li::marker { color: var(--gris); }
.articulo a { text-decoration: underline; text-underline-offset: 3px; }
.articulo strong { font-weight: 600; }
.articulo ul + p, .articulo ol + p, .articulo dl + p { margin-top: 1em; }
.articulo__corto { background: var(--arena); padding: 1.5rem 1.75rem; margin-bottom: 2.25rem; }
.articulo__corto .etiqueta { margin-bottom: 0.6rem; }
.articulo__corto p + p { margin-top: 0; }
.horario { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.4rem; margin: 1.4rem 0; padding: 1.25rem 0;
  border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.horario dt { font-family: var(--sans); font-stretch: 75%; font-weight: 600; letter-spacing: 0.08em; color: var(--gris); }
.articulo__cta { margin-top: 3.25rem; padding: 2.5rem 1.5rem; text-align: center; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.articulo__cta-titulo { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; margin-bottom: 0.75rem; }
.articulo__cta .botones { margin-top: 1.5rem; }
.articulo__cta a.boton { text-decoration: none; }
