:root {
  --crema: #f6f1e9;
  --crema-2: #efe7da;
  --salvia: #76825f;
  --verde: #4f5b43;
  --verde-osc: #3d4734;
  --terracota: #b8735a;
  --texto: #3b3530;
  --suave: #7a7068;
  --linea: #ddd2c2;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 1.6rem;
  color: var(--verde);
}
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }

/* ---------- botones ---------- */
.btn {
  display: inline-block;
  font: 400 .85rem/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--verde);
  background: var(--verde);
  color: var(--crema);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--verde-osc); }
.btn-claro { background: var(--crema); color: var(--verde); border-color: var(--crema); }
.btn-claro:hover { background: #fff; }
.btn-linea { background: transparent; color: var(--verde); }
.btn-linea:hover { background: var(--verde); color: var(--crema); }
.btn-ancho { width: 100%; }
.btn-wa { background: var(--terracota); border-color: var(--terracota); }
.btn-wa:hover { background: #a3624b; }

/* ---------- portada ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.08), transparent 60%),
    var(--verde);
  color: var(--crema);
  overflow: hidden;
}
.rama { position: absolute; width: 110px; color: rgba(246,241,233,.35); }
.rama-izq { left: -10px; bottom: -10px; transform: rotate(-18deg); }
.rama-der { right: -10px; top: -10px; transform: rotate(162deg); }

.hero-pre { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero-nombres {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 16vw, 7rem);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.hero-nombres .amp { font-family: var(--serif); font-style: italic; font-size: .45em; margin: .2em 0; }
.hero-fecha { font-family: var(--serif); font-size: 1.35rem; margin-top: 1.2rem; }

.cuenta {
  display: flex;
  gap: 1.2rem;
  margin: 2.2rem 0;
  border-top: 1px solid rgba(246,241,233,.3);
  border-bottom: 1px solid rgba(246,241,233,.3);
  padding: 1rem .5rem;
}
.cuenta div { min-width: 3.4rem; }
.cuenta span { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.cuenta small { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; opacity: .8; }

.hero-botones { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.hero .btn:not(.btn-claro) { background: transparent; border-color: var(--crema); }
.hero .btn:not(.btn-claro):hover { background: rgba(246,241,233,.12); }

.menu-cal {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  background: var(--crema);
  border-radius: 14px;
  overflow: hidden;
  min-width: 240px;
}
.menu-cal a, .menu-cal button {
  color: var(--verde);
  text-decoration: none;
  padding: .9rem 1rem;
  font: 400 .95rem var(--sans);
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-cal a { border-bottom: 1px solid var(--linea); }

/* ---------- bloques ---------- */
.bloque { padding: 4.5rem 1.5rem; max-width: 760px; margin: 0 auto; }
.fondo-suave, .fondo-verde { max-width: none; }
.fondo-suave { background: var(--crema-2); }
.fondo-suave > *, .fondo-verde > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.fondo-verde { background: var(--salvia); color: #fff; }
.fondo-verde h2 { color: #fff; }

.intro p {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  text-align: center;
  color: var(--verde);
}

.etiqueta {
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: .4rem;
}

/* ---------- lugares ---------- */
.lugares { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .lugares { grid-template-columns: 1fr 1fr; } }
.lugar {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lugar .hora { font-family: var(--serif); font-size: 1.3rem; color: var(--verde); margin: .3rem 0; }
.lugar .dir { color: var(--suave); font-size: .95rem; margin-bottom: 1.3rem; flex: 1; }
.aviso {
  margin-top: 1.2rem;
  border: 1px dashed var(--terracota);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
}

/* ---------- horario ---------- */
.timeline { list-style: none; position: relative; padding-left: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4.6rem;
  top: .6rem;
  bottom: .6rem;
  width: 1px;
  background: var(--salvia);
}
.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 1.4rem; padding: .9rem 0; position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(4.6rem - 5px);
  top: 1.35rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--crema-2);
  border: 1px solid var(--verde);
}
.timeline .t-hora { font-family: var(--serif); font-size: 1.3rem; color: var(--terracota); text-align: right; }
.timeline .t-titulo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--verde); padding-left: .6rem; }
.timeline .t-texto { color: var(--suave); font-size: .95rem; padding-left: .6rem; }

/* ---------- fotos ---------- */
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.galeria figure { margin: 0; }
.galeria img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; display: block; }
.galeria figcaption { font-family: var(--serif); font-style: italic; text-align: center; font-size: 1rem; margin-top: .3rem; color: var(--suave); }
.galeria figure:first-child { grid-column: 1 / -1; }
.galeria figure:first-child img { aspect-ratio: 16/11; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: .9rem;
  font-size: 1.5rem;
  color: var(--terracota);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--suave); }

/* ---------- formulario ---------- */
.sub { text-align: center; margin: -1rem 0 2rem; }
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; }
.form input[type=text], .form select, .form textarea {
  font: 400 1rem var(--sans);
  color: var(--texto);
  background: var(--crema);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .85rem 1rem;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--verde); }
.form ::placeholder { color: #a89c90; }
.opciones { border: 0; display: flex; flex-direction: column; gap: .5rem; }
.opciones legend { font-size: .95rem; margin-bottom: .4rem; }
.form .opcion {
  flex-direction: row;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: .8rem 1rem;
  cursor: pointer;
}
.opcion input { accent-color: var(--verde); width: 1.1rem; height: 1.1rem; }
#siViene { display: flex; flex-direction: column; gap: 1.2rem; }
#siViene[hidden] { display: none !important; }
.trampa { position: absolute; left: -9999px; }
.estado { text-align: center; min-height: 1.5em; font-weight: 400; }
.estado.ok { font-family: var(--serif); font-size: 1.4rem; }
.estado.error { color: #ffe2d6; }

/* ---------- regalo ---------- */
#regalo { text-align: center; }
.iban {
  margin-top: 1.4rem;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 18px;
  padding: 1.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.iban span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em; word-break: break-word; }
.iban small { color: var(--suave); margin-bottom: .8rem; }

/* ---------- contacto y pie ---------- */
.contacto { text-align: center; }
.pie { background: var(--verde); color: var(--crema); text-align: center; padding: 3rem 1.5rem 6rem; }
.pie-nombres { font-family: var(--script); font-size: 2.8rem; }
.firma { font-size: .8rem; letter-spacing: .1em; opacity: .7; margin-top: .5rem; }
.firma a { color: inherit; }

.flotante {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 150%);
  background: var(--terracota);
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform .3s;
  white-space: nowrap;
  z-index: 10;
}
.flotante.visible { transform: translate(-50%, 0); }

/* aparición suave al hacer scroll */
.bloque { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s; }
.bloque.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bloque { opacity: 1; transform: none; transition: none; }
}

/* ---------- lugar único y fotos del lugar ---------- */
.lugares.unico { grid-template-columns: 1fr; }
.lugar-fotos { display: grid; gap: .5rem; width: calc(100% + 3rem); margin: -2rem -1.5rem 1.6rem; }
.lugar-fotos.n2 { grid-template-columns: 1fr 1fr; }
.lugar-fotos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.lugar-fotos.n1 img { aspect-ratio: 4/3; object-position: center 30%; }
.lugar-fotos img:first-child { border-top-left-radius: 17px; }
.lugar-fotos img:last-child { border-top-right-radius: 17px; }
.lugar-fotos.n1 img { border-radius: 17px 17px 0 0; }

/* ---------- contacto ---------- */
.sub-contacto { margin: -.8rem 0 1.2rem; color: var(--suave); }
.botones-wa { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* con dos fotos, van las dos en vertical lado a lado */
.galeria.dos figure:first-child { grid-column: auto; }
.galeria.dos figure:first-child img { aspect-ratio: 4/5; }
