/* Web de la boda de María y Jose.
   Idea: pared encalada andaluza, tinta verde oliva, oro viejo. Un solo gesto grande (el arco de la portada);
   el resto, quieto y legible. Tipografía: Libre Caslon (Display para nombres y títulos, Text para lo demás). */

:root {
  --cal: #f2efe6;
  --cal-2: #e7e3d5;
  --papel: #fbfaf5;
  --tinta: #232a1e;
  --tinta-2: #565b4a;
  --aceituna: #2e3825;
  --oliva: #5b6b3f;
  --oro: #a9802f;
  --oro-texto: #7c5a17;
  --oro-claro: #dcc27f;
  --linea: #cdc7b2;
  --sobre-oscuro: #d9d4bf;
  --linea-osc: rgba(242, 239, 230, 0.28);
  --display: 'Libre Caslon Display', 'Libre Caslon Text', Georgia, serif;
  --texto: 'Libre Caslon Text', Georgia, serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --medida: 62ch;
}

/* Lo marcado con hidden (y data-oculto) no se ve; manda sobre cualquier display */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--cal); color: var(--tinta);
  font-family: var(--texto); font-weight: 400; line-height: 1.68;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
::selection { background: var(--oro-claro); color: var(--aceituna); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--aceituna); margin: 0; line-height: 1.08; }
h2 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); letter-spacing: -0.012em; text-wrap: balance; }
h3 { font-size: 1.65rem; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; }
em { font-style: italic; }
.lead { max-width: 46ch; margin: 0; color: var(--tinta-2); font-size: 1.08em; }

/* Ayudas de desarrollo (solo se ven en local) */
.dev .fic { border-bottom: 1px dotted #c9a24a; background: rgba(255, 241, 194, 0.35); }
.dev img.fic { border-bottom: 0; outline: 2px dotted #c9a24a; outline-offset: -2px; }
.ph { background: #fff1c2; color: #7a5a12; font-style: italic; border-radius: 3px; padding: 0 0.3em; }
.hidden-field { display: none; }

/* Enlaces */
.link, .link-btn {
  display: inline-block; margin-top: 0.7rem; color: var(--aceituna); text-decoration: underline;
  text-decoration-color: var(--oro); text-decoration-thickness: 1px; text-underline-offset: 0.26em;
  transition: text-decoration-thickness 0.15s, color 0.15s;
}
.link:hover, .link-btn:hover { color: var(--oliva); text-decoration-thickness: 2px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; margin: 0; }
.small { font-size: 0.9em; color: var(--tinta-2); max-width: var(--medida); margin: 1.2rem 0 0; }
.credit { font-size: 0.82em; }

/* Barra superior */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); transition: background 0.3s ease, box-shadow 0.3s ease;
}
.topbar.solid { background: rgba(242, 239, 230, 0.94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--linea); }
.brand { font-family: var(--display); font-size: 1.5rem; text-decoration: none; color: var(--aceituna); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 0.45rem; }
.brand span { color: var(--oro); font-style: italic; }
.brand-mark { display: inline-block; width: 17px; height: 17px; background-color: var(--oro); -webkit-mask: url('img/emblema/emblema-sello.svg') no-repeat center / contain; mask: url('img/emblema/emblema-sello.svg') no-repeat center / contain; }
.menu { display: flex; gap: 1.7rem; }
.menu a { text-decoration: none; font-size: 0.95rem; color: var(--tinta-2); padding: 0.3rem 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.menu a:hover { color: var(--aceituna); border-color: var(--oro); }
.burger { display: none; background: none; border: none; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--aceituna); transition: transform 0.25s, top 0.25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .menu { gap: 1.2rem; }
  .menu a.opt { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .menu {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--cal);
    padding: 0.5rem var(--gutter) 1.5rem; box-shadow: 0 12px 24px rgba(35, 42, 30, 0.12);
    transform: translateY(-120%); transition: transform 0.3s ease; visibility: hidden;
  }
  .menu.open { transform: none; visibility: visible; }
  .menu a, .menu a.opt { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--linea); font-size: 1.05rem; }
  .topbar.menu-open { background: var(--cal); }
}

/* Portada: un arco como ventana en la pared, con los nombres al lado */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: stretch; padding: 5.5rem var(--gutter) 0; position: relative; overflow: hidden; }
.hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: end; }
.hero-text { padding-bottom: 3rem; }
.hero-photo { order: -1; justify-self: center; width: min(74%, 330px); position: relative; margin-top: 0.8rem; }
.hero-photo::before { content: ''; position: absolute; inset: -12px -12px 0; border: 1px solid var(--oro); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero-photo .arch { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(4.6rem, 20vw, 7rem); line-height: 0.88; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.hero h1 .n1, .hero h1 .n2 { display: block; }
.hero h1 .n2 { padding-left: 0.5em; }
.amp-emblem { height: 0.68em; width: auto; vertical-align: -0.02em; margin-right: 0.1em; display: inline-block; }
.hero-invite { display: inline-block; margin: 0 0 1.1rem; padding: 0.45em 1.2em; border: 1px solid var(--oro); border-radius: 999px; font-size: 0.9rem; color: var(--aceituna); background: rgba(251, 250, 245, 0.7); }
.hero-invite[hidden] { display: none; }
.hero-date { font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; color: var(--tinta); margin: 0 0 0.5rem; }
.hero-place { color: var(--tinta-2); max-width: 36ch; margin: 0 0 1.3rem; }
.countdown { margin: 0 0 1.9rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.countdown b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--aceituna); margin-right: 0.15em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; }
  .hero-text { align-self: center; padding-bottom: 5rem; }
  .hero-photo { order: 0; justify-self: end; width: 100%; max-width: 480px; margin-top: 0; }
  .hero h1 { font-size: clamp(6.2rem, 11.8vw, 11.2rem); }
}

/* Un único momento de movimiento: la portada se abre al cargar */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .n1, .hero h1 .n2 { animation: sube 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero h1 .n2 { animation-delay: 0.16s; }
  .hero .arch { animation: abre 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  .hero-photo::before { animation: aparece 1.2s ease 0.9s both; }
  .hero-date, .hero-place, .countdown, .hero-actions { animation: aparece 0.9s ease 0.55s both; }
}
@keyframes sube { from { opacity: 0; transform: translateY(0.35em); } }
@keyframes abre { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes aparece { from { opacity: 0; } }

/* Arco */
.arch { overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 4 / 5; margin: 0; background: var(--cal-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 40%; display: block; }
.arch.small { max-width: 320px; aspect-ratio: 3 / 4; }

/* Botones */
.btn { display: inline-block; padding: 0.85em 2em; border-radius: 999px; text-decoration: none; font-size: 1rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: var(--texto); line-height: 1.3; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-primary { background: var(--aceituna); color: var(--cal); }
.btn-primary:hover { background: var(--oliva); }
.btn-ghost { border-color: var(--aceituna); color: var(--aceituna); }
.btn-ghost:hover { background: var(--aceituna); color: var(--cal); }
.btn-light { background: var(--cal); color: var(--aceituna); width: 100%; margin-top: 1.8rem; }
.btn-light:hover { background: #fff; }

/* Secciones */
.section { padding: clamp(4.5rem, 9vw, 8rem) var(--gutter); }
.section.alt { background: var(--cal-2); }
.section.dark { background: var(--aceituna); color: var(--cal); }
.section.dark h2, .section.dark h3 { color: var(--cal); }
.section.dark .lead { color: var(--sobre-oscuro); }
.wrap { max-width: 1140px; margin: 0 auto; }
.sec-head { margin-bottom: 2.4rem; }
.sec-head h2 { margin-bottom: 1.1rem; }

/* Cabecera arriba, contenido debajo */
@media (min-width: 900px) {
  .wrap:not(.cols) > .sec-head { display: grid; grid-template-columns: 5fr 6fr; gap: 1rem 4rem; align-items: end; margin-bottom: 3.8rem; }
  .wrap:not(.cols) > .sec-head h2 { margin-bottom: 0; }
  .wrap:not(.cols) > .sec-head .lead { padding-bottom: 0.3rem; }
}
/* Título a un lado, contenido al otro (el título te acompaña al bajar) */
@media (min-width: 900px) {
  .wrap.cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 5rem; align-items: start; }
  .wrap.cols > .sec-head { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 104px; margin: 0; }
  .wrap.cols > :not(.sec-head) { grid-column: 2; }
  .wrap.cols > .span-all { grid-column: 1 / -1; max-width: none; }
  .wrap.cols > :not(.sec-head):first-of-type { margin-top: 0.4rem; }
}

.sub { margin: 4.6rem 0 1.5rem; padding-top: 1.7rem; border-top: 1px solid var(--linea); font-size: 2.1rem; }
.sub.tight { margin-top: 3.4rem; }
.sub + .lead { margin: -0.4rem 0 2.2rem; }
.section.dark .sub { border-color: var(--linea-osc, rgba(242, 239, 230, 0.28)); }

/* Fichas: sin caja, solo una línea que ordena */
.card { padding: 1.5rem 0 0; border-top: 1px solid var(--linea); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0.35rem 0; color: var(--tinta-2); }
.cards { display: grid; gap: 2.8rem 2.4rem; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.single { grid-template-columns: minmax(0, 1fr); }
.tag { font-style: italic; font-size: 0.95em; color: var(--oro-texto) !important; margin: 0 0 0.5rem !important; }
.big-time { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--aceituna) !important; margin: 0.2rem 0 1rem !important; }
.facts { color: var(--aceituna) !important; margin: 0.5rem 0 0.3rem !important; font-size: 1.02em; }

/* Cuándo y dónde */
.venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.venue { border-top: 0; padding-top: 0; display: flex; flex-direction: column; }
.hotel-photos { display: block; }
.hotel-photos.fill { flex: 1; min-height: 240px; position: relative; background: var(--cal-2); }
.hotel-photos.fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hotel-body { padding: 1.5rem 0 0; flex: 1; display: flex; flex-direction: column; }
.hotel-body .links { margin-top: auto; padding-top: 0.9rem; }
.hp { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.hp img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hp:hover img { transform: scale(1.04); }
.hp-main { aspect-ratio: 3 / 2; }
.hp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 3px; }
.hp-t { aspect-ratio: 4 / 3; }

/* El programa: sí es una secuencia, y por eso lleva líneas y horas */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.timeline li { display: grid; grid-template-columns: 6.2rem 1fr; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--linea); }
.timeline li:last-child { border-bottom: 1px solid var(--linea); }
.timeline .time { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--aceituna); }

/* Historia */
.story { max-width: var(--medida); font-size: 1.14em; line-height: 1.72; }
.story p { margin: 0 0 1.1rem; }
.trio { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-top: 3.5rem; }
.trio figure { margin: 0; overflow: hidden; border-radius: 2px; background: var(--cal); }
.trio img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 700px) {
  .trio { grid-template-columns: 4fr 5fr 5fr; align-items: end; gap: 1.1rem; margin-top: 5rem; }
  .trio figure:nth-child(1) { aspect-ratio: 3 / 4; }
  .trio figure:nth-child(2) { aspect-ratio: 4 / 3; }
  .trio figure:nth-child(3) { aspect-ratio: 4 / 3; margin-bottom: 3.2rem; }
}

/* Franjas de foto a todo el ancho */
.banner { height: clamp(220px, 34vw, 470px); overflow: hidden; background: var(--aceituna); }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; display: block; }

/* Libreto */
.misal-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; padding: 1.5rem 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.misal-icon { flex: none; width: 44px; height: 44px; background-color: var(--oro); -webkit-mask: url('img/emblema/emblema-sello.svg') no-repeat center / contain; mask: url('img/emblema/emblema-sello.svg') no-repeat center / contain; }
.misal-text { flex: 1 1 200px; }
.misal-text h3 { font-size: 1.4rem; margin-bottom: 0.15rem; }
.misal-text p { margin: 0; color: var(--tinta-2); font-size: 0.92em; }
.misal-card .btn { flex: none; }

/* Formularios: campos como papel de carta */
.rsvp, .carpool-form {
  --campo-fondo: rgba(242, 239, 230, 0.09); --campo-linea: rgba(242, 239, 230, 0.55);
  --campo-texto: var(--cal); --campo-etiqueta: var(--sobre-oscuro); --campo-hueco: rgba(242, 239, 230, 0.55);
}
.firma, .carpool-form {
  --campo-fondo: rgba(35, 42, 30, 0.06); --campo-linea: rgba(35, 42, 30, 0.5);
  --campo-texto: var(--tinta); --campo-etiqueta: var(--tinta-2); --campo-hueco: rgba(35, 42, 30, 0.5);
}
.rsvp label, .carpool-form label { display: block; font-size: 0.97rem; color: var(--campo-etiqueta); margin: 1.6rem 0 0.35rem; }
.rsvp label small, .carpool-form label small, .rsvp legend small, .carpool-form legend small { opacity: 0.8; font-size: 0.88em; }
.rsvp input[type="text"], .rsvp input[type="number"], .rsvp textarea,
.carpool-form input[type="text"], .carpool-form input[type="number"] {
  display: block; width: 100%; padding: 0.7em 0.85em; font: inherit; color: var(--campo-texto);
  background: var(--campo-fondo); border: 0; border-bottom: 1px solid var(--campo-linea); border-radius: 2px 2px 0 0;
}
.rsvp input[type="number"], .carpool-form input[type="number"] { max-width: 8rem; }
.rsvp textarea { resize: vertical; }
.rsvp input::placeholder, .rsvp textarea::placeholder, .carpool-form input::placeholder { color: var(--campo-hueco); font-style: italic; }
.rsvp input[type="text"]:focus, .rsvp input[type="number"]:focus, .rsvp textarea:focus,
.carpool-form input:focus { outline: 0; border-bottom-color: var(--oro); box-shadow: 0 1px 0 var(--oro); background: var(--campo-fondo); }
.rsvp fieldset, .carpool-form fieldset { border: 0; padding: 0; margin: 1.6rem 0 0; min-width: 0; }
.rsvp legend, .carpool-form legend { font-size: 0.97rem; color: var(--campo-etiqueta); padding: 0; margin-bottom: 0.6rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choices legend { width: 100%; }
.choice { margin: 0 !important; }
.rsvp .choice, .carpool-form .choice { margin: 0 !important; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 0.65em 1.3em; border: 1px solid var(--campo-linea); border-radius: 999px; cursor: pointer; color: var(--campo-texto); font-size: 0.97rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.choice span:hover { border-color: var(--oro); }
.rsvp .choice input:checked + span { background: var(--cal); color: var(--aceituna); border-color: var(--cal); }
.firma .choice input:checked + span, .carpool-form .choice input:checked + span { background: var(--aceituna); color: var(--cal); border-color: var(--aceituna); }
.choice input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }
.if-yes[hidden], .if-no[hidden], #plazas-wrap[hidden], #cp-plazas-wrap[hidden], #comp-wrap[hidden] { display: none; }
.rsvp .check { display: flex; align-items: flex-start; gap: 0.7rem; margin-top: 1.4rem; }
.rsvp .check input { width: auto; margin-top: 0.4rem; accent-color: var(--aceituna); }
.form-privacidad { font-size: 0.8rem; line-height: 1.5; color: var(--campo-etiqueta, var(--sobre-oscuro)); margin: 1rem 0 0; max-width: 52ch; }
.form-note { font-size: 0.85rem; text-align: center; color: var(--campo-etiqueta, var(--sobre-oscuro)); margin: 1.1rem 0 0; }
.firma .btn-light { background: var(--aceituna); color: var(--cal); }
.firma .btn-light:hover { background: var(--oliva); }
.rsvp { margin-top: 0.4rem; }

.invite-note { max-width: 46ch; margin: 1.1rem 0 0; color: var(--oro-claro); }
.invite-note[hidden] { display: none; }
.thanks { border-top: 1px solid var(--linea-osc, rgba(242, 239, 230, 0.3)); padding: 2.4rem 0 0; margin-top: 2rem; }
.thanks[hidden] { display: none; }
.thanks-emblema { display: block; width: 72px; height: auto; margin: 0 0 1.1rem; }
.thanks p { margin: 0.6rem 0 0; color: var(--sobre-oscuro); }
#firma-thanks { border-color: var(--linea); }
#firma-thanks h3 { color: var(--aceituna); }
#firma-thanks p { color: var(--tinta-2); }
.if-no-box { border-left: 2px solid var(--oro); padding: 0.4rem 0 0.4rem 1.2rem; margin-top: 1.8rem; }
.if-no-box h3 { color: var(--cal); font-size: 1.4rem; margin-bottom: 0.3rem; }
.if-no-box p { margin: 0; color: var(--sobre-oscuro); }

/* Cómo llegar */
.croquis-wrap { margin-top: 1.4rem; border: 1px solid var(--linea); border-radius: 2px; padding: 0; background: var(--cal); }
.croquis-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.croquis-svg { display: block; width: 100%; min-width: 620px; height: auto; }
.croquis-note { margin: 0; padding: 0.8rem 1rem 1rem; max-width: none; }
.croquis-steps { margin-top: 1.6rem; }
.steps { margin: 0.9rem 0 0; padding-left: 1.4rem; color: var(--tinta-2); }
.steps li { margin: 0.55rem 0; padding-left: 0.3rem; }
.steps li::marker { color: var(--oro-texto); font-family: var(--display); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; }
.chips a { text-decoration: none; font-size: 0.93rem; color: var(--aceituna); border: 1px solid var(--linea); border-radius: 999px; padding: 0.5em 1.15em; transition: border-color 0.2s, background 0.2s; }
.chips a:hover { border-color: var(--oro); background: var(--papel); }

.carpool { margin-top: 1.4rem; max-width: 720px; }
.carpool .form-note { text-align: left; }
.carpool-form .btn-ghost { margin-top: 1.8rem; }
.carpool-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem 2.4rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--linea); }
.carpool-lists h4 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.carpool-list { list-style: none; margin: 0; padding: 0; }
.carpool-list li { padding: 0.65rem 0; border-top: 1px solid var(--linea); font-size: 0.95em; }
.carpool-list .cp-name { color: var(--aceituna); font-weight: 700; }
.carpool-list .cp-detail { color: var(--tinta-2); }
.carpool-empty { color: var(--tinta-2); font-style: italic; }

/* Dónde dormir */
.cards.hotel-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hotel { padding-top: 0; border-top: 0; display: flex; flex-direction: column; }
.hotel h3 { font-size: 1.5rem; }
.hotel .hotel-body { padding-top: 1.1rem; }
.hotel p:not(.tag):not(.facts) { font-size: 0.95em; }
.more { margin-top: 3.4rem; }
.more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.1rem 1.3rem 1.1rem 1.7rem; border: 1.5px solid var(--aceituna); border-radius: 999px; background: var(--papel); box-shadow: 0 2px 0 rgba(46, 56, 37, 0.14); font-family: var(--display); font-size: 1.6rem; line-height: 1.15; color: var(--aceituna); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.more summary:hover { background: var(--aceituna); color: var(--cal); }
.more summary:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.more summary:active { box-shadow: none; transform: translateY(1px); }
.more summary::-webkit-details-marker { display: none; }
.more summary small { font-family: var(--texto); font-size: 0.95rem; color: var(--tinta-2); margin-left: 0.8rem; transition: color 0.2s; }
.more summary:hover small { color: var(--sobre-oscuro); }
.more summary::after { content: '+'; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--aceituna); color: var(--cal); font-family: var(--texto); font-size: 1.7rem; line-height: 1; flex: none; transition: background 0.2s, color 0.2s; }
.more summary:hover::after { background: var(--cal); color: var(--aceituna); }
.more[open] summary::after { content: '–'; }
.more .lead { margin-bottom: 2rem; }
.more-body { padding: 2rem 0 0.4rem; }
.cards.hotel-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .cards.hotel-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .cards.hotel-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cards.hotel-row, .cards.hotel-row.four {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1rem; -webkit-overflow-scrolling: touch;
  }
  .cards.hotel-row > .card { scroll-snap-align: start; }
  .more summary small { display: block; margin: 0.3rem 0 0; }
  .more summary { border-radius: 22px; padding: 1rem 1rem 1rem 1.3rem; font-size: 1.4rem; }
}

/* Guía de Sevilla */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.8rem 3rem; }
.tips ul { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.tips li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.85rem 0; border-top: 1px solid var(--linea); }
.tips li a { text-decoration: none; color: var(--aceituna); }
.tips li a strong { font-weight: 700; text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
.tips li a:hover strong { text-decoration-thickness: 2px; }
.tips li span { font-size: 0.92em; color: var(--tinta-2); }
.tips .card { padding-top: 1.5rem; }

/* Qué me pongo */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3rem 4.5rem; }
.split .arch { flex: 0 1 320px; }
.split-text { flex: 1 1 340px; max-width: 600px; }
.split-text > h3 { margin-bottom: 0.7rem; }
.split-text > p { color: var(--tinta-2); }
.faq { margin-top: 2rem; }
.faq details { border-top: 1px solid var(--linea); padding: 1.05rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; font-weight: 500; color: var(--aceituna); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--oro); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0.7rem 0 0; color: var(--tinta-2); }
.contact-note { margin-top: 1.8rem; font-size: 0.95em; color: var(--tinta-2); }
.contact-note a { color: var(--aceituna); text-decoration-color: var(--oro); text-underline-offset: 0.24em; }

/* Regalo */
.gift-list { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.gift-list li { padding: 0.7rem 0; border-top: 1px solid var(--linea); color: var(--tinta-2); }
.iban { font-family: var(--display); font-size: clamp(1.05rem, 5vw, 1.5rem); letter-spacing: 0.03em; color: var(--aceituna) !important; white-space: nowrap; }

/* Galería */
.gallery { column-count: 3; column-gap: 0.8rem; }
.g-item { display: block; width: 100%; margin: 0 0 0.8rem; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 2px; overflow: hidden; }
.g-item img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.g-item:hover img { transform: scale(1.03); }
@media (max-width: 700px) {
  .gallery { column-count: 2; column-gap: 0.5rem; }
  .g-item { margin-bottom: 0.5rem; }
}

/* Álbum, playlist, firmas */
.qr { display: flex; margin: 1.1rem 0 0.5rem; }
.qr img, .qr canvas { border: 8px solid #fff; border-radius: 2px; }
.keep-list { display: grid; gap: 2.4rem; }
.wall { display: grid; gap: 0; margin-top: 3rem; }
.wall blockquote { margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--linea); }
.wall blockquote:last-child { border-bottom: 1px solid var(--linea); }
.wall blockquote p { margin: 0 0 0.4rem; font-family: var(--display); font-size: 1.45rem; line-height: 1.3; color: var(--aceituna); }
.wall cite { font-style: normal; font-size: 0.92rem; color: var(--tinta-2); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 16, 0.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 2px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 0.5rem 1rem; opacity: 0.8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 0.4rem; right: 0.6rem; font-size: 3rem !important; }
.lb-prev { left: 0.3rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.3rem; top: 50%; transform: translateY(-50%); }

/* Pie */
.footer { position: relative; height: clamp(320px, 40vw, 480px); overflow: hidden; background: var(--aceituna); }
.footer img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; display: block; }
.footer-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 2rem var(--gutter) 2.2rem; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(20, 22, 16, 0) 20%, rgba(20, 22, 16, 0.82) 100%); }
.f-mark { display: block; width: 26px; height: 26px; margin: 0 auto 0.7rem; background-color: var(--oro-claro); -webkit-mask: url('img/emblema/emblema-sello.svg') no-repeat center / contain; mask: url('img/emblema/emblema-sello.svg') no-repeat center / contain; }
.f-names { font-family: var(--display); font-size: clamp(2.6rem, 6.5vw, 4.2rem); margin: 0; line-height: 1; }
.f-names em { color: var(--oro-claro); }
.f-date { font-size: 1.02rem; margin: 0.7rem 0 1.1rem; color: #ece7d6; }
.f-top { color: #fff; opacity: 0.9; font-size: 0.95rem; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.55); text-underline-offset: 0.26em; }

/* Solo local: panel para probar invitaciones */
.dev-panel { position: fixed; left: 12px; bottom: 88px; z-index: 60; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; max-width: calc(100% - 24px); padding: 0.35rem 0.5rem; border-radius: 12px; background: rgba(35, 42, 30, 0.93); color: #fff; font-size: 0.75rem; font-family: system-ui, sans-serif; }
.dev-panel button { border: 1px solid rgba(255, 255, 255, 0.4); background: none; color: #fff; border-radius: 999px; padding: 0.25em 0.75em; cursor: pointer; font: inherit; }
.dev-panel button:hover { background: rgba(255, 255, 255, 0.16); }
.dev-opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dev-opts[hidden] { display: none; }
.dev-toggle { font-size: 0.72rem; opacity: 0.85; }

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

/* Textos largos y su última línea */
.prosa p { max-width: var(--medida); }
.prosa a, .faq a { color: var(--aceituna); text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 1px; text-underline-offset: 0.26em; }
.prosa a:hover, .faq a:hover { color: var(--oliva); text-decoration-thickness: 2px; }
.wrap p.cierre { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.3; color: var(--aceituna); margin-top: 1.8rem; }
.prosa p.small { margin-top: 1.6rem; }
.chips + .prosa { margin-top: 2.4rem; }
.split-text > h3 { font-size: 2.1rem; margin-bottom: 1rem; }
.split-text > p { color: var(--tinta); }

/* Confirmación cerrada (interruptor RSVP_ABIERTO en script.js) */
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.rsvp input:disabled, .rsvp textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.choice input:disabled + span { opacity: 0.6; cursor: not-allowed; }
.choice input:disabled + span:hover { border-color: var(--campo-linea); }

/* Aviso de próximas novedades al final de "Dónde dormir" */
.sub.proximamente {
  display: block; max-width: 46rem; margin: 2.6rem 0 1.8rem; padding: 1.5rem 2rem 1.6rem;
  border-top: 0; border-radius: 28px; background: var(--aceituna); color: var(--cal);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.3; text-wrap: balance;
}

/* Croquis de la ruta a la finca */
.croquis-finca-wrap { max-width: 720px; }
.croquis-finca { min-width: 480px; }

/* Botón flotante: hablar con María por WhatsApp */
.wa-flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; align-items: center; gap: 0.75rem; max-width: min(350px, calc(100vw - 32px));
  padding: 0.7rem 1.2rem 0.7rem 1rem; border: 1px solid var(--oro-claro); border-radius: 34px;
  background: var(--aceituna); color: var(--cal); text-decoration: none; line-height: 1.25; font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(35, 42, 30, 0.28); transition: background 0.2s;
}
.wa-flotante:hover { background: var(--oliva); }
.wa-flotante svg { flex: none; color: var(--oro-claro); }
.wa-flotante strong { display: block; font-weight: 700; }
@media (max-width: 560px) {
  .wa-flotante { right: 12px; padding: 0.6rem 1rem 0.6rem 0.8rem; font-size: 0.86rem; gap: 0.6rem; }
  .wa-flotante svg { width: 24px; height: 24px; }
}
.croquis-enlace { margin: 0; padding: 0 1rem 1.1rem; }
.croquis-enlace .link { margin-top: 0; font-size: 1.05rem; }

/* Aviso bajo los botones de la portada mientras la confirmación está cerrada */
.hero-aviso { margin: 1.1rem 0 0; max-width: 34ch; font-size: 0.95rem; line-height: 1.4; color: var(--tinta-2); }
