@font-face { font-family: 'Italiana'; src: url('/fonts/italiana-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/fonts/jost-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/fonts/jost-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/fonts/jost-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('/fonts/libre-baskerville-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ivory: #F3EBDD;
  --ivory-claro: #F8F3EA;
  --oliva: #66703A;
  --profundo: #3F4829;
  --salvia: #A5AB83;
  --madera: #A9957B;
  --madera-texto: #75644E; /* madera lavada oscurecida para texto legible */
  --burgundy: #6B2838;
  --dorado: #C2A269;

  --display: 'Italiana', 'Times New Roman', serif;
  --script: 'Libre Baskerville', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --ancho: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--profundo);
  background-color: var(--ivory);
  /* textura de papel */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.40 0 0 0 0 0.33 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; margin: 0; color: var(--profundo); }
h2 { font-size: clamp(30px, 4.5vw, 44px); }
h3 { font-size: 22px; }
.script { font-family: var(--script); font-style: italic; font-size: 19px; color: var(--oliva); margin: 0 0 .4em; letter-spacing: .02em; }
.sub { font-family: var(--display); text-transform: uppercase; letter-spacing: .22em; font-size: 15px; margin: 2.4em 0 1.2em; color: var(--madera-texto); }

a { color: var(--oliva); }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; }

/* ---------- botones ---------- */
.btn {
  display: inline-block; border: 1px solid var(--oliva); background: var(--oliva); color: var(--ivory-claro);
  font: 400 14px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  padding: 17px 34px; cursor: pointer; transition: background .25s, color .25s;
}
.btn:hover { background: var(--profundo); border-color: var(--profundo); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-full { width: 100%; margin-top: 8px; }
.enlace { background: none; border: 0; color: var(--oliva); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 0; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 28px 24px 48px; text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(169,149,123,.45); pointer-events: none; }
.nav { display: flex; gap: 28px; justify-content: center; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; padding-top: 14px; position: relative; }
.nav a { color: var(--profundo); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--dorado); }
.hero-inner { max-width: 760px; padding: 40px 0; }
.hero .script { font-size: clamp(20px, 2.6vw, 26px); }
.nombres { font-size: clamp(46px, 10vw, 104px); line-height: 1.02; letter-spacing: .12em; display: flex; flex-direction: column; align-items: center; }
.amp { font-family: var(--script); font-style: italic; text-transform: none; letter-spacing: 0; color: var(--burgundy); font-size: .5em; line-height: 1.2; }
.ramita { width: 220px; height: 40px; display: block; margin: 22px auto; }
.fecha { font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: .3em; font-size: clamp(13px, 1.8vw, 16px); margin: 0 0 18px; }
.frase { max-width: 520px; margin: 0 auto 34px; color: var(--madera-texto); }

.cuenta { display: flex; gap: clamp(20px, 6vw, 64px); position: relative; }
.cuenta div { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.cuenta strong { font-family: var(--sans); font-weight: 300; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; }
.cuenta span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--madera-texto); }

/* ---------- secciones ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 110px 24px; text-align: center; }
.seccion-alt { max-width: none; background: rgba(165,171,131,.16); border-top: 1px solid rgba(169,149,123,.35); border-bottom: 1px solid rgba(169,149,123,.35); }
.muestra-negro { display: block; width: 46px; height: 46px; margin: 28px auto 0; border-radius: 50%; background: #111; box-shadow: 0 0 0 5px var(--ivory-claro), 0 0 0 6px var(--dorado); }
.nota { max-width: 560px; margin: 16px auto 0; color: var(--madera-texto); }

.eventos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 56px; text-align: center; }
.evento { padding: 44px 28px; border: 1px solid rgba(169,149,123,.55); background: rgba(248,243,234,.6); position: relative; }
.evento::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(194,162,105,.35); pointer-events: none; }
.evento .hora { font-family: var(--script); font-style: italic; font-size: 26px; color: var(--burgundy); margin: 14px 0 4px; }
.evento .lugar { font-weight: 400; font-size: 18px; margin: 0; }
.evento .detalle { color: var(--madera-texto); margin: 6px 0 22px; }
.evento a { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--dorado); padding-bottom: 4px; position: relative; z-index: 1; }


/* ---------- formulario ---------- */
.tarjeta { max-width: 640px; margin: 48px auto 0; padding: clamp(28px, 5vw, 52px); background: var(--ivory-claro); border: 1px solid rgba(169,149,123,.5); text-align: left; }
.campo { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
label, legend { display: block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; color: var(--profundo); font-weight: 400; }
.opcional { text-transform: none; letter-spacing: 0; color: var(--madera-texto); font-weight: 300; }
input, select, textarea {
  width: 100%; font: 300 17px/1.4 var(--sans); color: var(--profundo); background: transparent;
  border: 0; border-bottom: 1px solid var(--madera); padding: 10px 2px; border-radius: 0; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--oliva) 50%), linear-gradient(135deg, var(--oliva) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; border: 1px solid var(--madera); padding: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--oliva); box-shadow: 0 1px 0 0 var(--oliva); }
input::placeholder, textarea::placeholder { color: #a39985; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opcion { margin: 0; text-transform: none; letter-spacing: .02em; font-size: 16px; font-weight: 300; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion span { display: block; text-align: center; padding: 14px 10px; border: 1px solid var(--madera); cursor: pointer; transition: all .2s; }
.opcion input:checked + span { background: var(--oliva); border-color: var(--oliva); color: var(--ivory-claro); }
.opcion input:focus-visible + span { outline: 2px solid var(--dorado); outline-offset: 2px; }
.ayuda { font-size: 14px; color: var(--madera-texto); margin: 6px 0 18px; }
.error { color: var(--burgundy); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--burgundy); }
.trampa { position: absolute; left: -9999px; }
.estado { text-align: center; margin: 14px 0 0; font-size: 15px; }
.estado.mal { color: var(--burgundy); }

.gracias { text-align: center; }
.gracias h3 { margin-bottom: 12px; }
.gracias p { color: var(--madera-texto); margin: 0 0 20px; }

/* ---------- pie ---------- */
.pie { text-align: center; padding: 40px 24px 70px; color: var(--madera-texto); font-size: 14px; letter-spacing: .24em; }
.pie p { margin: 4px 0; }
.monograma { font-family: var(--script); font-style: italic; letter-spacing: .1em; font-size: 24px; color: var(--profundo); }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: 18px; font-size: 12px; }
  .fila, .opciones { grid-template-columns: 1fr; }
  .seccion { padding: 80px 20px; }
  .hero::before { inset: 10px; }
}
