/* ==========================================================================
   Carmen & Domingo · 6 marzo 2027
   Paleta inspirada en el azahar, el naranjo y el verde de El Invernadero.
   ========================================================================== */

:root {
  --cream: #f6f1e8;
  --sand: #ece3d3;
  --ink: #2e2a25;
  --ink-soft: #6b635a;
  --olive: #4f5c45;
  --olive-dark: #36402f;
  --orange: #c9713a;
  --white: #fffdf9;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Contenedor de símbolos SVG reutilizables: no ocupa espacio */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.6rem; }
p  { margin: 0 0 1em; }
strong { font-weight: 500; }

a { color: inherit; }

/* ---------- Utilidades ---------- */

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow    { width: min(720px, 100% - 2.5rem); }
.center    { text-align: center; }
.muted     { color: var(--ink-soft); font-size: .95rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}
.eyebrow--light { color: #f3d7b8; }

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  scroll-margin-top: var(--header-h);
}
.section--tint { background: var(--sand); }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  padding: .95em 2.1em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--light   { background: var(--white); color: var(--olive-dark); }
.btn--light:hover { background: var(--orange); color: var(--white); }
.btn--dark    { background: var(--olive); color: var(--white); }
.btn--dark:hover { background: var(--olive-dark); }
.btn--outline { background: transparent; color: var(--olive); border-color: currentColor; }
.btn--outline:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }
.btn--small   { padding: .6em 1.3em; font-size: .72rem; }

/* ---------- Barra de progreso ---------- */

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  z-index: 60;
}

/* ---------- Cabecera ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  color: var(--white);
  transition: color .4s var(--ease);
}
/* El fondo va en un pseudo-elemento: un backdrop-filter en .header
   atraparía el menú móvil (position: fixed) dentro de la cabecera. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(246, 241, 232, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(46, 42, 37, .08);
  transition: opacity .4s var(--ease);
}
.header.is-solid { color: var(--ink); }
.header.is-solid::before { opacity: 1; }

.header__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  text-decoration: none;
  letter-spacing: .05em;
}
.header__brand span { font-style: italic; color: var(--orange); }

.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: .3em 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: inherit;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    background: var(--cream);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a { font-size: .95rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .header { color: var(--ink); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-open { overflow: hidden; }
}

/* ---------- Portada ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* Foto en blanco y negro con nubes casi blancas: el velo nunca baja del 58 %
     para que el texto blanco mantenga un contraste mínimo de 4,5:1 sobre las nubes. */
  background:
    linear-gradient(180deg, rgba(18, 16, 14, .6) 0%, rgba(18, 16, 14, .58) 40%, rgba(18, 16, 14, .72) 100%),
    url("assets/img/cabecera.jpg") center 30% / cover no-repeat;
  animation: heroZoom 18s var(--ease) both;
}

.hero__content { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

/* Pantallas verticales (móvil y tableta): la foto es horizontal y estáis en
   los dos extremos, así que no cabe recortarla a lo alto sin dejar fuera a
   uno. Se muestra a lo ancho arriba (130 % del ancho → 97,5vw de alto),
   se funde a oscuro hacia abajo y el texto va sobre el fundido. */
@media (max-aspect-ratio: 4/5) {
  .hero {
    align-content: end;
    padding-top: 60vw;               /* el texto empieza bajo las caras, sobre el fundido */
  }
  .hero__bg {
    background:
      linear-gradient(180deg,
        rgba(18, 16, 14, .3) 0,
        rgba(18, 16, 14, .35) 30vw,
        rgba(18, 16, 14, .82) 72vw,
        #12100e 97.5vw),
      url("assets/img/cabecera.jpg") 35% 0 / 130% auto no-repeat,
      #12100e;
  }
  .hero__content { padding: 0 1.25rem 4.5rem; }
  .hero__place { margin-bottom: 1.6rem; }
  .countdown { margin-bottom: 1.8rem; }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__content {
  position: relative;
  padding: 6rem 1.25rem 5rem;
  animation: fadeUp 1.2s .2s var(--ease) both;
}

.hero__names {
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  font-weight: 400;
  line-height: .95;
  margin-bottom: .3em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero__amp {
  display: block;
  font-style: italic;
  font-size: .55em;
  color: #f3c9a0;
  margin: .1em 0;
}
@media (min-width: 760px) {
  .hero__amp { display: inline; margin: 0 .15em; }
}

.hero__date {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: .25em;
  margin: 0;
}
.hero__place {
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 2.2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(.9rem, 4vw, 2.5rem);
  margin-bottom: 2.5rem;
}
.countdown div { min-width: 3.6rem; }
.countdown span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.sprig { width: 120px; color: #e7b88e; margin: 0 auto 1.2rem; }

/* ---------- Itinerario ---------- */

.venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.venues--last { margin-bottom: 0; }
.section__head .muted { max-width: 560px; margin-inline: auto; }
.venue {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  box-shadow: 0 20px 50px -30px rgba(46, 42, 37, .35);
}
.venue__time {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--orange);
  margin-bottom: .3rem;
}
.venue h3 { font-size: 2.2rem; margin-bottom: .2rem; }
.venue__name { font-weight: 500; margin-bottom: 0; }
.venue__addr {
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.venue p:not([class]) { color: var(--ink-soft); margin-bottom: 1.8rem; }

.timeline {
  list-style: none;
  margin: 0 auto 3.5rem;
  padding: 0;
  max-width: 560px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: .6rem;
  bottom: .6rem;
  left: 4.6rem;
  width: 1px;
  background: rgba(79, 92, 69, .35);
}
.timeline li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 1.8rem;
  padding: .7rem 0;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(4.6rem - 4px);
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--sand);
}
.timeline time {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--olive);
  text-align: right;
  padding-right: .4rem;
}
.timeline strong { display: block; font-weight: 500; }
.timeline span { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Asistencia (con foto de fondo) ---------- */

.section--photo {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.section--photo__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(38, 45, 33, .72), rgba(38, 45, 33, .72)),
    url("assets/img/menorca.jpg") 64% center / cover no-repeat;
}
.section--photo .container { position: relative; }
.section--photo p { color: rgba(255, 253, 249, .88); margin-bottom: 2rem; }

/* ---------- Regalos ---------- */

.iban {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .8rem 1rem;
  background: var(--white);
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  margin: .5rem 0 1rem;
}
.iban code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(.85rem, 2.6vw, 1.05rem);
  letter-spacing: .04em;
}

/* ---------- Preguntas frecuentes ---------- */

.faq details {
  border-bottom: 1px solid rgba(46, 42, 37, .15);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--orange);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 1rem; }

/* ---------- Pie ---------- */

.footer {
  background: var(--olive-dark);
  color: rgba(255, 253, 249, .75);
  text-align: center;
  padding: 4rem 1.25rem;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.footer p { margin: 0; }
.footer__names {
  font-family: var(--serif);
  font-size: 2.2rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--white);
  margin-bottom: .4rem !important;
}

/* ---------- Animación al hacer scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
