/* ============================================================
   Paula & Nacho · Boda · 02.10.2027
   Estilos (temática LOTR)
   ============================================================ */

:root {
  --bg: #F7F3E8;              /* marfil Rivendell */
  --bg-alt: #EFE9D8;          /* crema alternado */
  --gold: #A9853B;            /* dorado envejecido: acentos e iconos */
  --gold-light: #7E6326;      /* dorado oscuro: títulos y texto pequeño (contraste) */
  --cream: #2F3B33;           /* texto: pino grisáceo (antes marrón) */
  --forest: #4A6741;          /* verde Lothlórien: hojas y medallones */
  --green-deep: #314D43;      /* pino Rivendell/Gondor: títulos y banda ceremonial */
  --border: rgba(49,77,67,0.25);
  --border-soft: rgba(49,77,67,0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'EB Garamond', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.font-cinzel { font-family: 'Cinzel', serif; }
.font-garamond { font-family: 'EB Garamond', serif; }

::selection { background-color: rgba(49,77,67,0.85); color: #F1EDDD; }

/* Scrollbar fina dorada */
::-webkit-scrollbar { width: 2px; height: 8px; }
::-webkit-scrollbar-track { background-color: var(--bg); }
::-webkit-scrollbar-thumb { background-color: rgba(169,133,59,0.3); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(169,133,59,0.5); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------- Utilidades ---------------- */
.gold-shimmer {
  color: var(--gold-light);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.section-alt { background: var(--bg-alt); }

main { min-height: 100vh; background-color: var(--bg); }

section { position: relative; }

.container { max-width: 1024px; margin: 0 auto; padding: 0 1rem; }

/* Animaciones de aparición (IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Divider ---------------- */
.divider { display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.divider svg { opacity: 0.8; }

/* ---------------- HERO ---------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(247,243,232,0.5) 0%, rgba(247,243,232,0.18) 35%, rgba(247,243,232,0.3) 65%, #F7F3E8 100%);
}
.hero__content { position: relative; z-index: 10; padding: 0 1rem; max-width: 56rem; margin: 0 auto; }
.hero__ornament { margin-bottom: 1.5rem; opacity: 0.6; color: var(--gold); }
.hero__eyebrow {
  color: rgb(47, 59, 51);
  font-size: 2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  margin: 0 0 1rem;
}
.hero__title {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0 0 1rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--green-deep);
}
.hero__date {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgb(47, 59, 51);
  letter-spacing: 0.2em;
  margin: 0 0 2.5rem;
}

/* Countdown */
.countdown { display: flex; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
@media (min-width: 640px){ .countdown { gap: 1.5rem; } }
.cd-block { display: flex; flex-direction: column; align-items: center; }
.cd-box {
  background: rgba(0,0,0,0.04);
  backdrop-filter: blur(4px);
  border: none;
  border-top: 1px solid rgba(49,77,67,0.4);
  border-bottom: 1px solid rgba(49,77,67,0.4);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  min-width: 60px;
}
@media (min-width: 640px){ .cd-box { padding: 0.75rem 1.25rem; min-width: 80px; } }
.cd-num {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: rgbargb(64, 87, 58, 0.8);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px){ .cd-num { font-size: 2.25rem; } }
.cd-label {
  color: rgb(64, 73, 58, 0.8);
  font-size: 1rem;
  margin-top: 0.5rem;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (min-width: 640px){ .cd-label { font-size: 0.875rem; } }

.hero__quote {
  font-style: italic;
  color: rgba(47,59,51,0.75);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto 3rem;
}
.hero__quote cite {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: rgba(126,99,38,0.85);
  font-style: normal;
}
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: rgba(126,99,38,0.85);
  transition: color 0.25s;
  cursor: pointer;
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  margin-bottom: 0.5rem;
}
.bounce { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------------- Section headings ---------------- */
.section { padding: 5rem 1rem; }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.875rem, 5vw, 2.25rem);
  color: var(--gold-light);
  margin: 0 0 0.5rem;
letter-spacing: 0.02em
}
.section__subtitle { color: rgba(47,59,51,0.6); font-size: 1.125rem; margin: 0; }
.head-rule { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0.5rem 0 2rem; }
.head-rule .line { width: 3rem; height: 1px; background: rgba(169,133,59,0.6); }
.head-rule svg { color: rgba(74,103,65,0.85); }

/* ---------------- Nuestra Historia ---------------- */
.story { max-width: 48rem; margin: 0 auto; text-align: center; }
.story__text p { color: rgba(58,46,27,0.8); font-size: 1.125rem; line-height: 1.8; margin: 0 0 1.5rem; }
.story__highlight { color: var(--gold-light); font-family: 'Cinzel', serif; font-size: 1.25rem !important; }
.story__leaves { margin-top: 2.5rem; opacity: 0.3; }

/* ---------------- Timeline ---------------- */
.timeline-wrap { max-width: 48rem; margin: 0 auto; }
.timeline { position: relative; }
.timeline__line {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(169,130,47,0.2);
  left: 1.5rem;
}
@media (min-width: 640px){ .timeline__line { left: 50%; transform: translateX(-50%); } }

.tl-item { position: relative; display: flex; align-items: flex-start; margin-bottom: 3rem; }
.tl-item:last-child { margin-bottom: 0; }

/* Desktop layout */
.tl-desktop { display: none; width: 100%; align-items: center; }
@media (min-width: 640px){ .tl-desktop { display: flex; } }
.tl-side { width: calc(50% - 28px); }
.tl-side--right { text-align: right; padding-right: 2rem; }
.tl-side--left { padding-left: 2rem; }
.tl-circle {
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: var(--bg); border: 2px solid rgba(169,130,47,0.5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 10; color: var(--gold);
}
.tl-time { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 1.125rem; }
.tl-title { font-family: 'Cinzel', serif; font-size: 1.25rem; color: var(--cream); margin: 0.25rem 0 0; }
.tl-desc { color: rgba(58,46,27,0.6); margin: 0.25rem 0 0; }

/* Mobile layout */
.tl-mobile { display: flex; align-items: flex-start; gap: 1rem; }
@media (min-width: 640px){ .tl-mobile { display: none; } }
.tl-circle--sm { width: 3rem; height: 3rem; }
.tl-mobile .tl-time { font-size: 1rem; }
.tl-mobile .tl-title { font-size: 1.125rem; }
.tl-mobile .tl-desc { font-size: 0.875rem; }

/* ---------------- Cards grid (locations / transport) ---------------- */
.grid-2 { display: grid; gap: 2rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px){ .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2--narrow { max-width: 56rem; }

.venue-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.25s;
}
.venue-card:hover { border-color: rgba(49,77,67,0.5); }
.venue-card__img { position: relative; aspect-ratio: 4/3; background: rgba(74,103,65,0.15); }
.venue-card__img img { width: 100%; height: 100%; object-fit: cover; }
.venue-card__img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(250,245,234,0.85) 0%, transparent 35%); }
.venue-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(250,245,234,0.65); backdrop-filter: blur(1px);
  border: 1px solid rgba(169,133,59,0.4);
  border-radius: 0.125rem; padding: 0.3rem 1rem;
  font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 0.85rem;
}
.venue-card__body { padding: 1.5rem; }
.venue-card__name { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--gold-light); margin: 0 0 0.25rem; }
.venue-loc { display: flex; align-items: center; gap: 0.5rem; color: rgba(58,46,27,0.6); margin-bottom: 0.25rem; }
.venue-addr { color: rgba(58,46,27,0.4); font-size: 0.875rem; margin: 0 0 0.25rem; }
.venue-time { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 0.875rem; margin: 0 0 1rem; }
.btn-map {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(169,130,47,0.1); border: 1px solid rgba(169,130,47,0.3);
  color: var(--gold-light); border-radius: 0.5rem; padding: 0.625rem 1.25rem;
  font-family: 'Cinzel', serif; font-size: 0.875rem; transition: background 0.25s;
}
.btn-map:hover { background: rgba(169,130,47,0.2); }

/* ---------------- Transport ---------------- */
.transport-card {
  background: rgba(251,248,240,0.75); border: 1px solid var(--border);
  border-radius: 0.5rem; padding: 2rem; transition: border-color 0.25s;
}
.transport-card:hover { border-color: rgba(49,77,67,0.5); }
.transport-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: rgba(45,74,45,0.3); border: 1px solid rgba(45,74,45,0.5);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  color: var(--gold);
}
.transport-card h3 { font-family: 'Cinzel', serif; font-size: 1.25rem; color: var(--gold-light); margin: 0 0 1rem; }
.transport-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; color: rgba(58,46,27,0.7); }
.transport-row svg { color: var(--gold); margin-top: 0.25rem; flex-shrink: 0; }
.transport-row p { margin: 0; }
.transport-row .strong { font-weight: 600; color: rgba(58,46,27,0.9); }
.transport-row .small { font-size: 0.875rem; }
.transport-card .lead { color: rgba(58,46,27,0.7); margin: 0 0 1rem; }
.transport-card .small { font-size: 0.875rem; color: rgba(58,46,27,0.7); }
.link-map { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-size: 0.875rem; transition: color 0.25s; margin-top: 0.5rem; }
.link-map:hover { color: var(--gold); }

/* ---------------- RSVP ---------------- */
.rsvp-wrap { max-width: 36rem; margin: 0 auto; }
.rsvp-form {
  position: relative;
  background: rgba(251,248,240,0.8);
  border: 1px solid rgba(49,77,67,0.3);
  border-radius: 0.125rem;
  padding: 1.5rem;
}
@media (min-width: 640px){ .rsvp-form { padding: 2rem; } }
.rsvp-form::before, .rsvp-form::after {
  content: ""; position: absolute; width: 2rem; height: 2rem;
  border-style: solid; border-color: rgba(169,133,59,0.6);
}
.rsvp-form::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.rsvp-form::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.field { margin-bottom: 1.25rem; }
.field label.lbl {
  display: block; font-family: 'Cinzel', serif; color: var(--gold-light);
  font-size: 0.875rem; margin-bottom: 0.5rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.input, .select, .textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.125rem;
  padding: 0.75rem 1rem;
  color: var(--cream);
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input::placeholder, .textarea::placeholder { color: rgba(47,59,51,0.35); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgba(169,133,59,0.65);
  box-shadow: 0 0 0 1px rgba(169,133,59,0.3);
}
.textarea { resize: vertical; }

/* radio pill group */
.pill-group { display: flex; gap: 1rem; }
.pill {
  flex: 1; text-align: center; cursor: pointer;
  border: 1px solid rgba(49,77,67,0.25);
  border-radius: 0.5rem; padding: 0.75rem 1rem;
  color: rgba(47,59,51,0.6);
  transition: all 0.2s;
}
.pill:hover { border-color: rgba(49,77,67,0.5); }
.pill.active { border-color: var(--green-deep); background: rgba(49,77,67,0.07); color: var(--green-deep); }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }

/* conditional block */
.conditional {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}
.conditional.open { max-height: 600px; opacity: 1; }

.btn-submit {
  width: 100%;
  font-family: 'Cinzel', serif;
  background: var(--green-deep);
  color: #F1EDDD;
  border: none;
  border-radius: 0.125rem;
  padding: 0.875rem 1.5rem;
  font-size: 1.01rem;
  letter-spacing: 0.12em;
  text-transform: uppercase
  cursor: pointer;
  transition: background 0.25s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-submit:hover:not(:disabled) { background: #3A574D; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.rsvp-note { font-size: 0.75rem; color: rgba(13, 121, 75, 0.87); text-align: center; margin: 1rem 0 0; }

/* honeypot (oculto para humanos) */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* success screen */
.rsvp-success {
  max-width: 32rem; margin: 0 auto; text-align: center;
  background: var(--bg);
  border: 1px solid rgba(169,133,59,0.45);
  outline: 1px solid rgba(169,133,59,0.2);
  outline-offset: 4px;
  border-radius: 0.5rem; padding: 2.5rem;
  animation: pop 0.4s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(0.9);} to { opacity:1; transform: scale(1);} }
.rsvp-success__icon {
  width: 4rem; height: 4rem; border-radius: 9999px;
  background: rgba(74,103,65,0.15); border: 2px solid rgba(169,130,47,0.5);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  color: var(--gold);
}
.rsvp-success h3 { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--gold-light); margin: 0 0 0.75rem; }
.rsvp-success p { color: rgba(47,59,51,0.65); margin: 0; }

/* ---------------- FAQ ---------------- */
.faq-wrap { max-width: 48rem; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: rgba(251,248,240,0.75);
  border: 1px solid rgba(169,130,47,0.15);
  border-radius: 0.5rem;
  padding: 0 1.5rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: rgba(49,77,67,0.4); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: 'Cinzel', serif; color: var(--gold-light);
  padding: 1rem 0; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--gold); }
.faq-q .chev { transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  color: rgba(47,59,51,0.7);
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-a-inner { padding-bottom: 1rem; }

/* ---------------- Footer ---------------- */
.wedding-footer { padding: 4rem 1rem; text-align: center; border-top: 3px double rgba(49,77,67,0.3); }
.wedding-footer .rings { display: flex; justify-content: center; margin-bottom: 1.5rem; opacity: 0.45; color: var(--gold); }
.wedding-footer .love { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 1.125rem; margin: 0 0 0.25rem; }
.wedding-footer .names { font-family: 'Cinzel', serif; font-size: 1.75rem; letter-spacing: 0.05em; color: var(--green-deep); margin: 0 0 0.75rem; }
.wedding-footer .fdate { font-family: 'Cinzel', serif; color: rgba(126,99,38,0.7); font-size: 0.875rem; letter-spacing: 0.2em; margin: 0; }
.wedding-footer .fleaf { margin-top: 2rem; opacity: 0.25; color: var(--forest); }

/* ---------------- Toast ---------------- */
.toast-container {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 0.5rem; width: min(90vw, 24rem);
}
.toast {
  background: #FBF8F0; border: 1px solid rgba(49,77,67,0.3);
  color: var(--cream); border-radius: 0.5rem; padding: 0.875rem 1.25rem;
  font-size: 0.95rem; box-shadow: 0 10px 25px rgba(20,33,28,0.18);
  animation: toastIn 0.3s ease;
}
.toast.error { border-color: rgba(239,68,68,0.5); }
.toast.success { border-color: rgba(74,222,128,0.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px);} to { opacity:1; transform: translateY(0);} }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Banda ceremonial (toque Gondor) ---------------- */
.section--ceremony {
  background-color: var(--green-deep);
  border-top: 3px double rgba(216,190,122,0.4);
  border-bottom: 3px double rgba(216,190,122,0.4);
}
.section--ceremony .section__title { color: #D8BE7A; }
.section--ceremony .section__subtitle { color: rgba(241,237,221,0.72); }
.section--ceremony .head-rule .line { background: rgba(216,190,122,0.4); }
.section--ceremony .head-rule svg { color: rgba(216,190,122,0.75); }
.section--ceremony .rsvp-form {
  background: rgba(247,243,232,0.92);
  border-color: rgba(216,190,122,0.4);
}
.section--ceremony .rsvp-form::before,
.section--ceremony .rsvp-form::after {
  border-color: rgba(216,190,122,0.8);
}
.section--ceremony .rsvp-note { color: rgba(rgb(69, 83, 64, 0.7); }
