/* Home de nuestravidajuntos.com · misma identidad que el template Sereno (no la de Angie y Erick).
   Fuentes locales con licencia OFL (fuentes/): Fraunces para títulos, Manrope para texto. */

@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fuentes/fraunces-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url("/fuentes/fraunces-latin-wght-italic.woff2") format("woff2-variations"); }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/fuentes/manrope-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  --fondo: #f4f2ee;
  --superficie: #fbfaf8;
  --texto: #1e2320;
  --suave: #5a645e;
  --linea: #d8dcd5;
  --acento: #36574a;
  --acento-suave: #e3e9e4;
  --sobre-acento: #f7f5f1;
  --papel: #e8e3d9;
  --papel-borde: #d6d0c3;
  --f-titulos: "Fraunces", Georgia, "Times New Roman", serif;
  --f-texto: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #121513;
    --superficie: #1a1e1b;
    --texto: #e7eae6;
    --suave: #a2aca5;
    --linea: #2b322e;
    --acento: #9ec3ae;
    --acento-suave: #1f2a24;
    --sobre-acento: #102019;
    --papel: #252a26;
    --papel-borde: #343b36;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acento); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-titulos); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
.saltar { position: absolute; left: 1rem; top: -3rem; padding: .5rem 1rem; background: var(--acento); color: var(--sobre-acento); z-index: 5; }
.saltar:focus { top: 1rem; }

/* Barra */
.barra {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.marca { font-family: var(--f-titulos); font-style: italic; font-size: 1.15rem; color: var(--texto); text-decoration: none; }
.barra-cta {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .5rem 1rem;
  border: 1px solid var(--acento);
  border-radius: 999px;
}

main { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Portada */
.portada {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(3.5rem, 9vw, 6rem);
}
@media (min-width: 56rem) {
  .portada { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
}
.sobretitulo {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--acento);
  margin-bottom: 1.25rem;
}
.portada h1 { font-size: clamp(2.8rem, 8.5vw, 5.2rem); line-height: 1.02; }
.portada h1 em { color: var(--acento); }
.entrada { margin-top: 1.5rem; font-size: 1.15rem; color: var(--suave); max-width: 36rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.boton {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--acento);
  background: var(--acento);
  color: var(--sobre-acento);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter .2s ease;
}
.boton:hover { filter: brightness(1.12); }
.boton.secundario { background: transparent; color: var(--acento); }
.direccion { margin-top: 1.75rem; font-size: .95rem; color: var(--suave); }
.direccion span, .mono { font-family: var(--f-titulos); font-style: italic; color: var(--texto); }

/* Sobre postal (ilustración) */
.sobre {
  position: relative;
  width: min(25rem, 100%);
  aspect-ratio: 10 / 7;
  margin: 4.5rem auto 0;
  transform: rotate(-2deg);
}
.sobre-tarjeta {
  position: absolute;
  inset: 5% 7% 6%;
  transform: translateY(-48%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.25rem 1rem 0;
  text-align: center;
  background: var(--superficie);
  border: 1px solid var(--linea);
  box-shadow: 0 10px 24px -16px rgb(30 35 32 / .4);
}
.sobre-tarjeta-clase { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--acento); }
.sobre-tarjeta-titulo { font-family: var(--f-titulos); font-size: clamp(1.3rem, 5vw, 1.7rem); line-height: 1.1; }
.sobre-frente {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--papel);
  border: 1px solid var(--papel-borde);
  box-shadow: 0 30px 55px -28px rgb(30 35 32 / .55);
  color: var(--acento);
  overflow: hidden;
}
.sobre-frente::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(rgb(0 0 0 / .08), transparent); }
.sobre-timbre {
  position: absolute;
  top: 9%;
  right: 7%;
  width: 19%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--acento);
  color: var(--sobre-acento);
  outline: 5px dotted var(--papel);
  outline-offset: -2px;
  font-family: var(--f-titulos);
  line-height: 1;
}
.sobre-timbre span:first-child { font-size: clamp(1.3rem, 5vw, 1.8rem); }
.sobre-timbre span + span { font-family: var(--f-texto); font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: .3rem; }
.sobre-matasellos {
  position: absolute;
  top: 6%;
  right: 24%;
  width: 24%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .6;
  transform: rotate(-12deg);
  font-size: clamp(.5rem, 1.6vw, .6rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
}
.sobre-matasellos span { max-width: 74%; }
.sobre-matasellos::after {
  content: "";
  position: absolute;
  left: 75%;
  top: 28%;
  width: 120%;
  height: 44%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M0 6q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3Cpath d='M0 20q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3Cpath d='M0 34q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M0 6q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3Cpath d='M0 20q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3Cpath d='M0 34q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(12deg);
}
.sobre-destinatario { position: absolute; left: 11%; right: 30%; bottom: 15%; display: grid; gap: .2rem; color: var(--texto); }
.sobre-para { font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--acento); }
.sobre-nombre { font-family: var(--f-titulos); font-style: italic; font-size: clamp(1.1rem, 4.6vw, 1.5rem); line-height: 1.2; padding-bottom: .4rem; border-bottom: 1px solid var(--papel-borde); }

/* Secciones */
.seccion { padding: clamp(3rem, 8vw, 5rem) 0; border-top: 1px solid var(--linea); }
.num { font-size: .72rem; font-weight: 600; letter-spacing: .22em; color: var(--acento); margin-bottom: .6rem; }
.seccion h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); max-width: 40rem; }
.seccion .entrada { margin-top: 1rem; }

.pasos { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 2rem; counter-reset: paso; }
@media (min-width: 48rem) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.pasos li { counter-increment: paso; padding-top: 1.25rem; border-top: 1px solid var(--acento); }
.pasos h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.pasos h3::before { content: counter(paso) ". "; font-style: italic; color: var(--acento); }
.pasos p { color: var(--suave); }

.momentos { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.momentos li {
  padding: .6rem 1.1rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--superficie);
  font-family: var(--f-titulos);
  font-size: 1.15rem;
}

.incluye { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; }
@media (min-width: 48rem) { .incluye { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.incluye li { padding: 1rem 0 1rem 1.75rem; border-bottom: 1px solid var(--linea); position: relative; color: var(--suave); }
.incluye li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.55rem;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  border: 1px solid var(--acento);
}
.incluye strong { color: var(--texto); font-weight: 600; }

.linea-de-vida { list-style: none; padding: 0 0 0 1.75rem; margin: 2.5rem 0 0; position: relative; max-width: 30rem; }
.linea-de-vida::before { content: ""; position: absolute; left: .3rem; top: .7rem; bottom: .7rem; width: 1px; background: var(--linea); }
.linea-de-vida li { position: relative; display: flex; align-items: baseline; gap: 1.25rem; padding: .7rem 0; }
.linea-de-vida li::before {
  content: "";
  position: absolute;
  left: -1.72rem;
  top: 1.25rem;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--fondo);
  border: 1px solid var(--acento);
}
.anio { font-family: var(--f-titulos); font-style: italic; color: var(--acento); font-size: 1.3rem; min-width: 3.5rem; }
.hito { font-family: var(--f-titulos); font-size: 1.35rem; }

.cierre {
  margin: 1rem 0 4rem;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  background: var(--acento-suave);
  border-radius: 1rem;
  text-align: center;
}
.cierre h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.cierre p { margin-top: .9rem; color: var(--suave); }
.cierre .acciones { justify-content: center; }

.pie { text-align: center; padding: 0 1.25rem 3rem; color: var(--suave); font-size: .9rem; }
.pie .marca { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}
