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

:root {
  --bg:     #ffffff;
  --ink:    #1a1a1a;
  --soft:   #6b6b6b;
  --faint:  #e5e5e5;
  --accent: #5a8f6e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* ── NAV ───────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 3rem;
  height: 56px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--faint);
}

.nav-brand {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .95rem;
  font-weight: 400;
  color: var(--soft);
  text-decoration: none;
  transition: color .18s;
}
.nav-links a:hover { color: var(--accent); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all .2s;
}

@media (max-width: 720px) {
  nav {
    justify-content: space-between;
    padding: 0 1.4rem;
    height: 52px;
    flex-wrap: nowrap;
    align-items: center;
    overflow: visible;
  }

  .nav-brand {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
  }

  .nav-burger { display: flex; flex-shrink: 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--faint);
    padding: .4rem 0 .8rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: .75rem 1.6rem;
    font-size: .92rem;
    color: var(--soft);
    text-align: left;
    border-bottom: 1px solid var(--faint);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  nav.open .nav-links { display: flex; }

  nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── SECCIONES ─────────────────────────── */
section {
  padding: 96px 0 80px;
}

#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
}

@media (max-width: 720px) {
  section { padding: 60px 0 50px; }
  #inicio  { padding-top: 80px; }
}

.container {
  width: min(860px, 90vw);
  margin: 0 auto;
}

/* ── INICIO ────────────────────────────── */
#inicio {
  position: relative;
  overflow: hidden;
}

.hero {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-names {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.01em;
}

.hero-date {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
}
.hero-date strong {
  font-weight: 500;
  color: var(--accent);
}

.hero-img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 38%;
  opacity: 80%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-img {
    width: 100%;
    opacity: .6;
    filter: blur(1px);
    object-position: center center;
  }
}

/* ── SEPARADOR ─────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--faint);
}

hr.accent {
  border-top-color: var(--accent);
  opacity: .35;
}

/* ── ETIQUETA + TÍTULO ─────────────────── */
.label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.4rem;
  letter-spacing: -.01em;
  color: var(--accent);
}

p.lead {
  font-size: .95rem;
  color: var(--soft);
  line-height: 1.85;
}

/* ── EVENTO — cards ────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 2rem; }
  .card-label { font-size: 1.2rem; }
  .card-title  { font-size: 1.05rem; }
}

.card-label {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: .9rem;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--soft);
  margin-bottom: .4rem;
}

.card-time {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: .6rem;
}

.card-place {
  font-size: 1rem;
  color: var(--soft);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.card-link {
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s;
}
.card-link:hover { border-bottom-color: var(--accent); }

/* ── ALOJAMIENTO ───────────────────────── */
.aloj-stack {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 3rem;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-top: 1.4rem;
}

@media (max-width: 640px) {
  .hotel-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .aloj-label  { font-size: 1.2rem; }
}

.aloj-label {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: .8rem;
}

.aloj-text {
  font-size: .95rem;
  color: var(--soft);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hotel-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .15rem;
}

.hotel-addr {
  font-size: .88rem;
  color: var(--soft);
  margin-bottom: .3rem;
}

.hotel-discount {
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ── LISTA DE BODA ─────────────────────── */
.gifts {
  margin-top: 3.5rem;
  display: grid;
  gap: 0;
  border: 1px solid var(--faint);
}

.gift-row {
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--faint);
  transition: background .18s;
}
.gift-row:last-child { border-bottom: none; }
.gift-row:hover { background: #fafaf9; }

.gift-num {
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .1em;
  padding-top: .15rem;
  flex-shrink: 0;
  width: 1.6rem;
}

.gift-title {
  font-size: .95rem;
  font-weight: 400;
  margin-bottom: .25rem;
}

.gift-desc {
  font-size: .84rem;
  color: var(--soft);
  line-height: 1.7;
}

.gifts-iban {
  margin-top: 2.2rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.gifts-iban span {
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--accent);
}

.iban-copy {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: none;
  border: 1px solid var(--faint);
  border-radius: 5px;
  color: var(--soft);
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  padding: .25rem .6rem;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.iban-copy:hover { border-color: var(--accent); color: var(--accent); }
.iban-copy svg { width: 13px; height: 13px; }

@media (max-width: 480px) {
  .gifts-iban { font-size: .9rem; }
  .gifts-iban span { letter-spacing: .06em; }
}

/* ── FORMULARIO ────────────────────────── */
#formulario {
  background: #fafaf9;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 620px) {
  .form-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.form-body {
  font-size: .92rem;
  color: var(--soft);
  line-height: 1.9;
}

.form-deadline {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-top: 1.4rem;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: .75rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.btn:hover { background: var(--accent); color: #fff; }

.form-aside {
  font-size: .82rem;
  color: var(--soft);
  line-height: 1.9;
}

.form-aside strong {
  font-weight: 400;
  color: var(--ink);
  display: block;
  margin-bottom: .5rem;
  font-size: .9rem;
}

/* ── FOOTER ────────────────────────────── */
footer {
  padding: 1.6rem 2rem;
  background: #8aaa94;
  text-align: center;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: .5rem;
}

.footer-col p, .footer-col a {
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  display: block;
  line-height: 1.9;
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }

.easter {
  cursor: pointer;
}

/* ── TOAST ─────────────────────────────── */
#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.92);
  background: #fff;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 1rem 2.4rem;
  border: 1px solid var(--faint);
  box-shadow: 0 8px 32px rgba(0,0,0,.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 999;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.25);
}
