/* ==========================================================================
   JENNIFER & JOSÉ · estilo editorial marfil
   Marfil/crema dominante, verde oliva solo en detalles, SIN dorados.
   Tipografía: Cormorant Garamond (versalitas espaciadas + cursiva).
   ========================================================================== */
:root {
  --bg: #f6eee4;
  --bg-2: #efe5d6;
  --ink: #3f3d18;
  --olive: #656b32;
  --olive-d: #4c4b1b;
  --line: rgba(76, 75, 27, .42);
  --line-s: rgba(76, 75, 27, .2);
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-weight: 500;
  font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; text-align: center; overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
body.lock { overflow: hidden; }
/* papel: grano muy sutil sobre el marfil */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url('tex/paper.svg'); background-size: 420px;
  mix-blend-mode: multiply; opacity: .32;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
:focus-visible { outline: 2px solid var(--olive-d); outline-offset: 4px; }

/* ---------- Sombras de hojas (fijas y detrás del contenido, como en la maqueta) ---------- */
.hojas { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hojas i {
  position: absolute; width: min(86vw, 760px); aspect-ratio: 1; background-repeat: no-repeat; background-position: center; background-size: contain;
  mix-blend-mode: multiply; opacity: .9; animation: mecer 16s ease-in-out infinite;
}
/* sobre la foto del lugar (que tapa las fijas) se repite el racimo, como en la maqueta */
.foto::after {
  content: ''; position: absolute; top: -9%; left: -7%; width: min(62%, 480px); aspect-ratio: 1; pointer-events: none; mix-blend-mode: multiply; opacity: .95;
  background: url('img/hojas-a.svg') no-repeat center / contain;
}
.hojas__a { top: -13vw; left: -15vw; background-image: url('img/hojas-a.svg'); transform-origin: 0 0; }
.hojas__b { bottom: -13vw; right: -15vw; background-image: url('img/hojas-b.svg'); transform-origin: 100% 100%; animation-delay: -8s; }
@keyframes mecer { 0%, 100% { rotate: -.8deg; translate: 0 0; } 50% { rotate: 1deg; translate: 7px 5px; } }

/* ---------- Elementos comunes ---------- */
.sec { position: relative; z-index: 1; padding: clamp(78px, 13vw, 150px) 22px; scroll-margin-top: 10px; }
.wrap { max-width: 720px; margin: 0 auto; }
.wrap--m { max-width: 900px; margin: 0 auto; }
.wrap--l { max-width: 1020px; margin: 0 auto; }
.et {
  font-size: clamp(14px, 1.9vw, 17px); letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; color: var(--olive-d); font-weight: 500;
}
.regla { width: clamp(80px, 12vw, 120px); height: 1px; background: var(--line); border: 0; margin: clamp(24px, 4vw, 38px) auto; }
.caps { text-transform: uppercase; letter-spacing: .3em; padding-left: .3em; }
.cur { font-style: italic; }

/* aparición suave */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ri { opacity: 0; animation: subir 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em; padding: 19px clamp(28px, 5vw, 48px); cursor: pointer; text-decoration: none;
  background: var(--olive-d); color: #f6eee4; border: 1px solid var(--olive-d); border-radius: 2px;
  font: 500 clamp(14px, 1.9vw, 16px)/1.2 var(--serif); letter-spacing: .28em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(60, 58, 18, .26); animation: pulso 3.2s ease-out infinite; transition: background .35s, color .35s;
}
.btn span { display: inline-block; transition: translate .3s var(--ease); }
.btn:hover span { translate: 5px 0; }
.btn:hover, .btn:focus-visible { background: var(--olive); border-color: var(--olive); }
.btn--linea { background: transparent; color: var(--olive-d); box-shadow: none; animation: none; }
.btn--linea:hover, .btn--linea:focus-visible { background: var(--olive-d); border-color: var(--olive-d); color: #f6eee4; }
@keyframes pulso {
  0% { box-shadow: 0 10px 24px rgba(60, 58, 18, .26), 0 0 0 0 rgba(101, 107, 50, .45); }
  70%, 100% { box-shadow: 0 10px 24px rgba(60, 58, 18, .26), 0 0 0 18px rgba(101, 107, 50, 0); }
}
.enlace {
  display: inline-block; font-size: clamp(14px, 1.9vw, 16px); letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  color: var(--olive-d); border-bottom: 1px solid var(--olive-d); padding: 0 0 5px .26em; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: var(--serif); font-weight: 600; cursor: pointer; transition: opacity .3s;
}
.enlace:hover { opacity: .65; }
/* los botones y enlaces que también aparecen con .rv conservan su transición de aparición */
.btn.rv { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), background .35s, color .35s; }
.enlace.rv { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }

/* ---------- Menú ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) clamp(14px, 3vw, 34px) 0; pointer-events: none; transition: background .4s;
}
.top.is-on { background: linear-gradient(var(--bg) 50%, rgba(246, 238, 228, 0)); }
.top > * { pointer-events: auto; }
.volver { font-size: 14px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--olive-d); font-weight: 600; padding-left: 6px; }
.burger { width: 50px; height: 50px; border: 0; background: none; cursor: pointer; display: grid; place-content: center; gap: 8px; margin-left: auto; }
.burger i { display: block; width: 32px; height: 1.6px; background: var(--olive-d); transition: opacity .3s; }
.burger:hover i { opacity: .6; }
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; place-items: center; padding: 70px 22px 40px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; overflow-y: auto;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: clamp(14px, 3vw, 34px); width: 50px; height: 50px; border: 0; background: none; cursor: pointer; font: 300 44px/1 var(--serif); color: var(--olive-d); }
.menu nav { display: grid; gap: clamp(12px, 2.6vh, 22px); justify-items: center; }
.menu nav a { font-size: clamp(16px, 2.2vw, 19px); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; padding: 4px 0 4px .3em; color: var(--olive-d); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .3s; }
.menu nav a:hover { border-color: var(--olive-d); }
.menu .btn { margin-top: 12px; animation: none; }
.menu__sello { width: 78px; height: auto; margin: 0 auto clamp(14px, 3vh, 28px); filter: drop-shadow(0 6px 8px rgba(70, 64, 24, .25)); }

/* botón flotante */
.fab {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; white-space: nowrap; padding: 16px 28px; font-size: 14px;
  translate: -50% 150%; opacity: 0; pointer-events: none; transition: translate .5s var(--ease), opacity .4s, background .35s;
}
.fab.is-on { translate: -50% 0; opacity: 1; pointer-events: auto; }
body.lock .fab { display: none; }

/* ---------- Portada ---------- */
.hero {
  position: relative; z-index: 1; min-height: 100svh; display: grid; place-items: center; padding: clamp(70px, 8.5vh, 104px) 22px clamp(28px, 5vh, 50px);
}
.hero__in { display: grid; justify-items: center; width: 100%; max-width: 860px; }
.sello { width: clamp(124px, min(19vw, 17vh), 176px); height: auto; margin-bottom: clamp(14px, 2.8vh, 30px); filter: drop-shadow(0 10px 14px rgba(70, 64, 24, .3)); }
.para { font-size: clamp(14px, 1.8vw, 16px); letter-spacing: .3em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.nombres {
  font-size: clamp(30px, min(6.4vw, 7.4vh), 68px); letter-spacing: .16em; text-transform: uppercase; line-height: 1.15; color: var(--olive-d); font-weight: 500; text-wrap: balance;
  padding-left: .16em;
}
.nombres .amp { font-style: italic; text-transform: none; letter-spacing: 0; margin: 0 .22em; color: var(--olive); font-weight: 500; }
.hero .regla { margin: clamp(14px, 2.6vh, 26px) auto; }
.sub { font-style: italic; font-size: clamp(20px, min(3.1vw, 3.6vh), 30px); line-height: 1.4; max-width: 27em; margin: 0 auto; }
.fecha { letter-spacing: .34em; text-transform: uppercase; font-size: clamp(14px, 2.1vw, 20px); padding-left: .34em; }
.cd { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; margin: clamp(14px, 2.8vh, 26px) auto 0; font-variant-numeric: lining-nums tabular-nums; }
.cd > div { padding: 0 clamp(12px, 3vw, 34px); display: grid; justify-items: center; }
.cd > div + div { border-left: 1px solid var(--line); }
.cd b { font-weight: 500; font-size: clamp(38px, min(7vw, 7vh), 66px); line-height: 1.05; color: var(--olive-d); }
.cd small { font-size: clamp(10px, 1.5vw, 14px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; color: var(--ink); margin-top: 4px; }
.cd__msg { font-style: italic; font-size: clamp(24px, 4vw, 36px); }
.sitio { margin-top: clamp(16px, 3.2vh, 32px); }
.sitio b { display: block; font-weight: 500; font-size: clamp(22px, min(3.6vw, 3.6vh), 34px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; color: var(--olive-d); }
.sitio small { display: block; font-size: clamp(12px, 1.6vw, 15px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; margin-top: 4px; }
.hero__cta { margin-top: clamp(20px, 3.6vh, 36px); }

/* ---------- Nuestra boda ---------- */
.frase { font-style: italic; font-size: clamp(25px, 4.4vw, 38px); line-height: 1.35; max-width: 17em; margin: 0 auto; }
.texto { font-size: clamp(20px, 3vw, 26px); line-height: 1.5; max-width: 21em; margin: 0 auto; }
.despedida { font-size: clamp(20px, 3.8vw, 32px); letter-spacing: .34em; text-transform: uppercase; line-height: 1.7; padding-left: .34em; color: var(--olive-d); max-width: 12em; margin: 0 auto; }
.firma { font-size: clamp(14px, 2vw, 17px); letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; }

/* ---------- El lugar ---------- */
.sec--lugar { padding-top: 0; padding-left: 0; padding-right: 0; }
.foto { position: relative; width: 100%; max-width: 940px; margin: 0 auto clamp(52px, 9vw, 96px); aspect-ratio: 1200 / 630; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.sec--lugar .wrap { padding: 0 22px; }
.lugar__nombre { font-size: clamp(46px, 10vw, 98px); letter-spacing: .1em; padding-left: .1em; font-weight: 400; text-transform: uppercase; line-height: 1.05; margin: clamp(18px, 3vw, 30px) 0 clamp(14px, 2vw, 22px); }
.dir { font-size: clamp(13px, 1.8vw, 16px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; line-height: 1.9; }
.sec--lugar .frase { font-size: clamp(21px, 3.2vw, 28px); max-width: 20em; }
.mini { font-size: clamp(17px, 2.5vw, 22px); line-height: 1.6; max-width: 27em; margin: 0 auto; }
.sec--lugar .enlace { margin-top: clamp(26px, 4vw, 38px); }

/* ---------- El fin de semana ---------- */
.dias { margin-top: clamp(40px, 7vw, 70px); }
.dia {
  display: grid; grid-template-columns: clamp(92px, 20vw, 190px) 1px 1fr; gap: clamp(16px, 4vw, 46px); align-items: center; text-align: left;
  padding: clamp(28px, 5vw, 46px) 0; border-top: 1px solid var(--line-s);
}
.dia:last-child { border-bottom: 1px solid var(--line-s); }
.fch { text-align: center; display: grid; justify-items: center; }
.fch small { font-size: clamp(12px, 1.7vw, 15px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; }
.fch b { font-weight: 400; font-size: clamp(50px, 9vw, 86px); line-height: 1.05; }
.vl { align-self: stretch; background: var(--line); width: 1px; }
.dia h3 { font-style: italic; font-weight: 500; font-size: clamp(32px, 6vw, 58px); line-height: 1.08; margin-bottom: clamp(10px, 1.6vw, 18px); }
.ev1 { font-size: clamp(17px, 2.3vw, 22px); letter-spacing: .08em; }
.ev1 b { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .78em; margin-right: .9em; }
.ev1 .pt { margin: 0 .6em 0 0; }
.dia .desc { font-style: italic; font-size: clamp(17px, 2.3vw, 22px); line-height: 1.5; max-width: 27em; margin-top: clamp(10px, 1.6vw, 16px); }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tl li { display: grid; grid-template-columns: clamp(82px, 14vw, 120px) 16px 1fr; align-items: center; gap: 12px; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.7; }
.tl b { font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .8em; text-align: right; }
.tl .p { position: relative; height: 100%; display: grid; place-items: center; }
.tl .p::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--olive-d); }
.tl li:first-child .p::before { top: 50%; }
.tl li:last-child .p::before { bottom: 50%; }
.tl .p i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--olive-d); }
.nota { font-size: clamp(11px, 1.5vw, 13px); letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; margin-top: clamp(30px, 5vw, 46px); line-height: 1.9; }
.cal { margin-top: clamp(24px, 4vw, 34px); display: flex; gap: 14px 30px; justify-content: center; flex-wrap: wrap; }

/* ---------- Dress code ---------- */
.dc__estilo { font-style: italic; font-size: clamp(46px, 9.4vw, 92px); line-height: 1.05; color: var(--olive-d); margin-top: clamp(4px, 1vw, 12px); }
.dc__dia { font-size: clamp(12px, 1.6vw, 14px); letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; margin-top: 14px; }
.dc__frase { font-size: clamp(14px, 2vw, 17px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; line-height: 2; max-width: 30em; margin: 0 auto; font-weight: 600; }
.sil { display: grid; grid-template-columns: 1.16fr 1fr; gap: clamp(10px, 3vw, 36px); align-items: end; margin: clamp(26px, 4vw, 40px) auto 0; max-width: 600px; }
.sil h3 { font-size: clamp(14px, 2.4vw, 21px); letter-spacing: .22em; text-transform: uppercase; padding-left: .22em; font-weight: 600; color: var(--olive-d); }
.sil .regla { margin: 12px auto 14px; width: 54px; }
.sil img { width: 100%; height: auto; }
.pal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin-top: clamp(26px, 4vw, 40px); }
.pal div { display: grid; justify-items: center; gap: 10px; align-content: start; }
.pal i { display: block; width: clamp(40px, 7.4vw, 72px); aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 -7px 11px rgba(0, 0, 0, .1), inset 0 5px 9px rgba(255, 255, 255, .22), 0 4px 9px rgba(60, 50, 20, .16); }
.pal span { font-size: clamp(12px, 1.5vw, 15px); line-height: 1.15; font-weight: 500; }
.dcx { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: clamp(22px, 4vw, 52px); text-align: left; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(28px, 4vw, 42px); border-top: 1px solid var(--line-s); }
.dcx h3 { font-size: clamp(15px, 2.1vw, 19px); letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--olive-d); margin-bottom: 10px; }
.dcx p, .dcx li { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; }
.dcx ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.dcx li { padding-left: 1.5em; position: relative; }
.dcx li::before { content: ''; position: absolute; left: 0; top: .78em; width: .9em; height: 1px; background: var(--olive-d); }
.dc__cierre { font-style: italic; font-size: clamp(24px, 3.8vw, 34px); margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Guía, música, confirmar, contacto ---------- */
.band { background: rgba(101, 107, 50, .04); border-top: 1px solid var(--line-s); border-bottom: 1px solid var(--line-s); }
.titulo { font-style: italic; font-size: clamp(34px, 6.4vw, 62px); line-height: 1.1; color: var(--olive-d); }
.sec .frase + .btn, .sec .texto + .btn, .sec .mini + .btn { margin-top: clamp(28px, 4.6vw, 42px); }
.nota-rsvp { font-style: italic; font-size: clamp(18px, 2.6vw, 22px); margin-top: 14px; }
.contacto .nombre { font-weight: 600; letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; font-size: clamp(15px, 2vw, 18px); margin-top: 18px; color: var(--olive-d); }
.contacto .rol { font-style: italic; font-size: 18px; }
.contacto .btn { margin-top: 26px; animation: none; }
.pie { position: relative; z-index: 1; padding: clamp(46px, 7vw, 72px) 22px calc(clamp(60px, 8vw, 90px) + 60px); border-top: 1px solid var(--line-s); }
.pie img { width: 70px; margin: 0 auto 18px; filter: drop-shadow(0 5px 7px rgba(70, 64, 24, .25)); }
.pie p { font-size: clamp(12px, 1.6vw, 14px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; line-height: 2; }

/* ---------- Ventana del formulario ---------- */
dialog.modal { border: 0; padding: 0; width: min(700px, 94vw); max-height: 94dvh; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(40, 36, 10, .45); overflow: auto; text-align: center; }
dialog.modal::backdrop { background: rgba(48, 46, 18, .55); backdrop-filter: blur(3px); }
.modal__x { position: sticky; top: 0; float: right; width: 50px; height: 50px; border: 0; background: none; font: 300 40px/1 var(--serif); cursor: pointer; color: var(--olive-d); z-index: 2; }
.modal__b { padding: 30px clamp(16px, 4vw, 34px) 26px; clear: both; }
.m-t { font-style: italic; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; color: var(--olive-d); }
.m-p { font-size: 19px; margin-top: 10px; }
.m-n { font-style: italic; font-size: 18px; margin-top: 4px; opacity: .85; }
.gform { position: relative; margin-top: 18px; background: #fff; }
.gform__c { position: absolute; inset: 0; display: grid; place-items: center; font-style: italic; }
.gform iframe { position: relative; display: block; width: 100%; height: min(72dvh, 760px); border: 0; }
.gform__alt { margin-top: 16px; font-size: 16px; }

/* ---------- Página «Alojamiento y traslados» ---------- */
.cab { padding-top: clamp(110px, 16vw, 170px); }
.cab h1 { font-size: clamp(38px, 8vw, 80px); letter-spacing: .08em; padding-left: .08em; font-weight: 400; text-transform: uppercase; line-height: 1.08; margin: clamp(14px, 2vw, 22px) 0 6px; color: var(--olive-d); }
.sec--g { padding-top: clamp(52px, 8vw, 90px); padding-bottom: clamp(52px, 8vw, 90px); }
.g__t { font-style: italic; font-size: clamp(34px, 6vw, 54px); color: var(--olive-d); line-height: 1.1; }
.g__aviso { font-style: italic; font-size: clamp(17px, 2.4vw, 21px); margin-top: 16px; opacity: .9; }
.g__sub { font-size: clamp(15px, 2.1vw, 18px); letter-spacing: .28em; text-transform: uppercase; padding-left: .28em; font-weight: 600; color: var(--olive-d); margin: clamp(34px, 5vw, 50px) 0 12px; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 400px)); justify-content: center; gap: 18px; margin-top: 26px; text-align: center; }
.tarjeta { border: 1px solid var(--line); padding: 28px 20px 26px; display: grid; gap: 6px; align-content: start; justify-items: center; background: rgba(246, 238, 228, .55); }
.tarjeta h4 { margin: 0; font-weight: 600; font-size: clamp(15px, 2vw, 17px); letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; color: var(--olive-d); }
.tarjeta h5 { margin: 0; font-style: italic; font-weight: 500; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; }
.tarjeta p { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; }
.tarjeta a { word-break: break-word; }
.tarjeta .enlace { margin-top: 10px; }
.faq { text-align: left; margin-top: clamp(26px, 4vw, 40px); }
.faq details { border-top: 1px solid var(--line-s); }
.faq details:last-child { border-bottom: 1px solid var(--line-s); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: clamp(20px, 2.7vw, 25px); display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3em; line-height: 1; color: var(--olive); }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 0 22px; font-size: clamp(18px, 2.3vw, 21px); line-height: 1.55; max-width: 34em; }
.cierre-g { font-style: italic; font-size: clamp(22px, 3.4vw, 30px); }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 700px) {
  .dcx { grid-template-columns: 1fr; text-align: center; }
  .dcx ul { justify-items: start; max-width: 22em; margin-left: auto; margin-right: auto; text-align: left; }
  .pal { grid-template-columns: repeat(5, 1fr); row-gap: 20px; }
  .pal i { width: clamp(44px, 12.5vw, 62px); }
}
@media (max-width: 520px) {
  .cd > div { padding: 0 11px; }
  .cd small { letter-spacing: .12em; padding-left: .12em; }
  .dia { grid-template-columns: 88px 1px 1fr; gap: 14px; }
  .fch small { letter-spacing: .16em; padding-left: .16em; white-space: nowrap; }
  .tl li { grid-template-columns: 66px 14px 1fr; gap: 9px; }
  .tl b { letter-spacing: .1em; }
  .ev1 b { display: block; margin: 0 0 2px; }
  .ev1 .pt { display: none; }
  .nombres { letter-spacing: .12em; }
}
/* ---------- Sobre de bienvenida (animación) ---------- */
body.intro-on .ri { animation-play-state: paused; }
.intro { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 20px; overflow: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.intro::before { content: ''; position: absolute; inset: 0; background: url('tex/paper.svg'); background-size: 420px; mix-blend-mode: multiply; opacity: .32; pointer-events: none; }
.intro.fuera { opacity: 0; visibility: hidden; }
.intro .hojas { z-index: 0; }
.intro__in { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(22px, 4.6vh, 42px); --w: min(88vw, 540px, calc((47.7svh - 27px) * 1.386)); }
/* el último factor deja sitio para que la carta, al subir, quede entera en pantalla en cualquier altura */
.intro__t { font-size: clamp(14px, 2vw, 17px); letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; color: var(--olive-d); font-weight: 500; transition: opacity .5s; }
.intro__ayuda { font-style: italic; font-size: clamp(18px, 2.5vw, 21px); transition: opacity .5s; }
.intro__saltar { font: 600 13px/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; padding: 0 0 5px .26em; color: var(--olive-d); background: none; border: 0; border-bottom: 1px solid var(--olive-d); cursor: pointer; transition: opacity .5s; }
.abre .intro__t, .abre .intro__ayuda, .abre .intro__saltar { opacity: 0; pointer-events: none; }

.sobre { position: relative; width: var(--w); height: calc(var(--w) / 1.5); perspective: 1400px; transition: transform 1.1s var(--ease), opacity .9s; }
.sobre > * { position: absolute; }
.sobre__fondo { inset: 0; background: #8d915c; border-radius: 3px; box-shadow: 0 28px 46px rgba(60, 52, 20, .3), 0 5px 12px rgba(60, 52, 20, .2); }
.sobre__carta { left: 7%; right: 7%; top: 9%; height: 84%; z-index: 2; transition: transform 1.2s var(--ease) 1.1s; }
.abre .sobre__carta { transform: translateY(-80%); }
.carta__in {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: calc(var(--w) * .03); padding: 6%; text-align: center;
  background: linear-gradient(180deg, #fcf8ef, #f5ecdc); border: 1px solid rgba(76, 75, 27, .22); box-shadow: 0 3px 12px rgba(60, 52, 20, .2);
}
.carta__in::before { content: ''; position: absolute; inset: 4%; border: 1px solid rgba(76, 75, 27, .18); pointer-events: none; }
.c-et { font-size: calc(var(--w) * .027); letter-spacing: .34em; text-transform: uppercase; padding-left: .34em; color: var(--olive); }
.c-nom { font-size: calc(var(--w) * .055); letter-spacing: .14em; text-transform: uppercase; padding-left: .14em; line-height: 1.2; color: var(--olive-d); }
.c-nom i { font-style: italic; text-transform: none; letter-spacing: 0; margin: 0 .15em; color: var(--olive); }
.c-fecha { font-size: calc(var(--w) * .031); letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; }
.sobre__b { inset: 0; z-index: 3; }
.b-izq { background: linear-gradient(90deg, #e9ddc8, #efe4d1); clip-path: polygon(0 0, 52% 55%, 0 100%); }
.b-der { background: linear-gradient(270deg, #e5d9c3, #ece1cd); clip-path: polygon(100% 0, 48% 55%, 100% 100%); }
.b-aba { background: linear-gradient(0deg, #f6eede, #efe5d2); clip-path: polygon(0 100%, 50% 46%, 100% 100%); }
.sobre__aleta { left: 0; top: 0; width: 100%; height: 58%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .95s var(--ease) .35s; }
.abre .sobre__aleta { transform: rotateX(180deg); }
.abierta .sobre__aleta { z-index: 1; }
.cara { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cara--f { background: linear-gradient(180deg, #f7efe0, #f0e6d3); }
.cara--b { background: #858a55; transform: rotateX(180deg); }
.sobre__sello {
  left: 50%; top: 58%; width: 24%; z-index: 6; padding: 0; border: 0; background: none; cursor: pointer; translate: -50% -50%; transition: opacity .55s, scale .55s var(--ease);
  animation: latido 2.6s ease-in-out infinite;
}
.sobre__sello img { width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgba(60, 52, 20, .4)); }
.sobre__sello:hover { scale: 1.06; }
.intro:focus { outline: none; }
.sobre__sello { border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.sobre__sello:focus { outline: none; }
/* para quien navega con el teclado: un aro suave y redondo, no un cuadrado */
.sobre__sello:focus-visible { outline: 2px solid rgba(76, 75, 27, .55); outline-offset: 8px; }
.abre .sobre__sello { opacity: 0; scale: 1.15; animation: none; pointer-events: none; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.intro.fuera .sobre { transform: translateY(-3%) scale(1.3); opacity: 0; }

/* Con «reducir movimiento»: el sobre se abre con fundidos (sin giros ni desplazamientos bruscos). ?animar fuerza el movimiento completo. */
@media (prefers-reduced-motion: reduce) {
  html:not(.mov) .intro .sobre__sello, html:not(.mov) .intro .hojas i { animation: none; }
  html:not(.mov) .intro .sobre__sello { transition: opacity .6s; }
  html:not(.mov) .intro.abre .sobre__sello { scale: 1; }
  html:not(.mov) .intro .sobre__aleta { transition: opacity .7s .3s; }
  html:not(.mov) .intro.abre .sobre__aleta { transform: none; opacity: 0; }
  html:not(.mov) .intro .sobre__carta { transform: translateY(-80%); opacity: 0; transition: opacity 1s .9s; }
  html:not(.mov) .intro.abre .sobre__carta { opacity: 1; }
  html:not(.mov) .intro.fuera .sobre { transform: none; }
}

/* ---------- Aviso: para cuántas personas + solo adultos ---------- */
.sec--aviso { padding-top: 0; }
.aviso { position: relative; max-width: 560px; margin: 0 auto; padding: clamp(30px, 5vw, 46px) clamp(22px, 5vw, 48px); border: 1px solid var(--line); background: rgba(252, 248, 239, .6); }
.aviso::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--line-s); pointer-events: none; }
.aviso__t { font-size: clamp(15px, 2.3vw, 19px); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; color: var(--olive-d); line-height: 1.7; }
.aviso .regla { margin: clamp(16px, 2.6vw, 22px) auto; width: 70px; }
.aviso__e { font-size: clamp(13px, 1.8vw, 15px); letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; color: var(--olive); font-weight: 600; margin-bottom: 10px; }
.aviso__x { font-style: italic; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.5; max-width: 26em; margin: 0 auto; }

/* ---------- «Qué evitar»: círculos con el color exacto, como en el cartel de los novios ---------- */
.dcx .nolist li { display: flex; align-items: center; gap: 14px; padding-left: 0; }
.dcx .nolist li::before { display: none; }
.no { flex: none; position: relative; display: block; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #4a463a; background: var(--nc, #ddd); overflow: hidden; }
.no::before, .no::after { content: ''; position: absolute; left: 50%; top: 50%; width: 130%; height: 1.5px; background: #4a463a; opacity: 0; transform-origin: center; }
.no--azul { --nc: #cbdeea; }
.no--marfil { --nc: #f4e3c5; border-color: #8a7a58; }
.no--azul::before, .no--azul::after, .no--marfil::before, .no--marfil::after { opacity: .85; }
.no--azul::before, .no--marfil::before { transform: translate(-50%, -50%) rotate(45deg); }
.no--azul::after, .no--marfil::after { transform: translate(-50%, -50%) rotate(-45deg); }
.no--marfil::before, .no--marfil::after { background: #8a7a58; opacity: .45; }
.no--brillo { --nc: #f3dfba; border-color: #8a7a58; }
.no--brillo::before, .no--brillo::after { width: 9px; height: 9px; background: #6b5a2e; opacity: 1; border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.no--brillo::before { left: 32%; top: 36%; }
.no--brillo::after { left: 64%; top: 66%; width: 8px; height: 8px; }
.no--vibrante { border-color: #4a463a; background: linear-gradient(135deg, #fb4a92 0%, #e91f54 36%, #e8bd67 55%, #ddf272 72%, #d2eb6e 100%); }
.no--vibrante::before { display: none; }

/* ---------- Datos para regalos (ventana) ---------- */
.bank { margin: 22px 0 8px; text-align: left; }
.bank > div { display: grid; grid-template-columns: 6.2em 1fr; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-s); }
.bank > div:last-child { border-bottom: 1px solid var(--line-s); }
.bank dt { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--olive-d); }
.bank dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bank dd span { font-size: clamp(19px, 3.4vw, 23px); letter-spacing: .03em; word-break: break-all; }
.copy { font: 600 12px/1 var(--serif); letter-spacing: .18em; text-transform: uppercase; padding: 9px 13px; border: 1px solid var(--olive-d); background: transparent; color: var(--olive-d); cursor: pointer; min-width: 98px; transition: background .3s, color .3s; }
.copy:hover, .copy:focus-visible { background: var(--olive-d); color: #f6eee4; }
@media (max-width: 520px) { .bank > div { grid-template-columns: 1fr; } }

/* ---------- El lugar: vídeo oficial incrustado (la foto queda como reserva) ---------- */
@media (max-width: 640px) { .foto { aspect-ratio: 4 / 3; } .foto img { object-position: 46% 55%; } }
.foto.foto--video { aspect-ratio: auto; overflow: visible; margin-bottom: 16px; box-shadow: none; }
.foto--video::after { display: none; }
/* bordes difuminados: el vídeo se funde con el marfil de la página en los cuatro lados */
.video {
  position: relative; aspect-ratio: 16 / 9; background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 17%, #000 83%, transparent 100%), linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.foto__nota { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; padding-left: .2em; margin-bottom: clamp(48px, 8vw, 88px); color: var(--olive-d); }
.foto__nota a { color: inherit; font-weight: 600; text-underline-offset: 4px; }

/* ---------- Reproductor propio del vídeo de la finca ---------- */
.video__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; cursor: pointer; background: linear-gradient(rgba(30, 34, 12, .06), rgba(30, 34, 12, .3)); }
.video__play i { width: clamp(64px, 11vw, 88px); aspect-ratio: 1; border-radius: 50%; background: rgba(246, 238, 228, .95); box-shadow: 0 10px 28px rgba(30, 30, 10, .4); position: relative; transition: scale .3s var(--ease); }
.video__play i::after { content: ''; position: absolute; left: 53%; top: 50%; translate: -50% -50%; border-left: clamp(18px, 3vw, 26px) solid var(--olive-d); border-top: clamp(11px, 1.8vw, 15px) solid transparent; border-bottom: clamp(11px, 1.8vw, 15px) solid transparent; }
.video__play:hover i, .video__play:focus-visible i { scale: 1.07; }
.video.is-playing .video__play { display: none; }

/* ---------- El lugar: fotos de ambiente difuminadas a los lados del texto, fundidas con el marfil ---------- */
.sec--lugar { overflow: hidden; padding-bottom: clamp(48px, 7vw, 96px); }
.lugar__fondo { position: absolute; left: 0; right: 0; bottom: 0; top: calc(min(100vw, 940px) * .5625 + 70px); z-index: -1; pointer-events: none; }
.lugar__fondo i {
  position: absolute; display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; opacity: .78;
  animation: deriva 52s ease-in-out infinite alternate;
}
/* cada foto se desvanece hacia el lado del texto (la máscara está centrada en el borde exterior) */
.lugar__fondo .f1 { top: 2%; left: -5vw; width: min(540px, 44vw); -webkit-mask-image: radial-gradient(ellipse 80% 50% at 24% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 50% at 24% 50%, #000 30%, transparent 100%); }
.lugar__fondo .f2 { top: 30%; right: -6vw; width: min(580px, 47vw); animation-delay: -17s; -webkit-mask-image: radial-gradient(ellipse 80% 50% at 76% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 50% at 76% 50%, #000 30%, transparent 100%); }
.lugar__fondo .f3 { bottom: 0; left: -4vw; width: min(500px, 42vw); animation-delay: -34s; -webkit-mask-image: radial-gradient(ellipse 80% 50% at 24% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 50% at 24% 50%, #000 30%, transparent 100%); }
@media (max-width: 760px) {
  .lugar__fondo i { opacity: .62; }
  .lugar__fondo .f1 { top: -2%; left: -30vw; width: 92vw; }
  .lugar__fondo .f2 { top: 36%; right: -34vw; width: 96vw; }
  .lugar__fondo .f3 { bottom: 0; left: -34vw; width: 90vw; }
}
@keyframes deriva { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(2%, -1.5%, 0) scale(1.06); } }

/* ventanas bajas (portátiles, zoom): la portada se compacta para que «Confirmar asistencia» siga a la vista */
@media (min-width: 701px) and (max-height: 700px) {
  .hero { padding-top: 62px; padding-bottom: 24px; }
  .sello { width: 104px; margin-bottom: 12px; }
  .hero .regla { margin: 12px auto; }
  .cd { margin-top: 12px; }
  .sitio { margin-top: 14px; }
  .hero__cta { margin-top: 18px; }
  .hero .btn { padding-top: 16px; padding-bottom: 16px; }
}
/* móviles pequeños y bajos */
@media (max-width: 700px) and (max-height: 700px) {
  .hero { padding-top: 62px; padding-bottom: 20px; }
  .sello { width: 96px; margin-bottom: 10px; }
  .hero .regla { margin: 10px auto; }
  .nombres { font-size: 28px; }
  .sub { font-size: 19px; line-height: 1.3; }
  .cd { margin-top: 10px; }
  .cd b { font-size: 36px; }
  .sitio { margin-top: 10px; }
  .sitio b { font-size: 20px; }
  .hero__cta { margin-top: 14px; }
}
@media (max-width: 400px) {
  .btn { letter-spacing: .18em; padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hojas i, .btn, .lugar__fondo i { animation: none; }
  .rv, .ri { opacity: 1; transform: none; animation: none; transition: none; }
  .fab { transition: opacity .2s; }
}
