/* ══════════════════════════════════════
   XV AÑOS · ABRIL PORRAS
   Tema: Bosque / Valiente (Brave Disney)
   ══════════════════════════════════════ */

/* ── Variables ── */
:root {
  --brown-warm:    #69573B;
  --olive-light:   #79804D;
  --green-dark:    #3e482a;
  --brown-deep:    #2d2920;
  --teal-dark:     #2e4a54;
  --blue-muted:    #7291A3;
  --olive-muted:   #808d5e;
  --forest-green:  #384634;
  --sky-light:     #a5ccf8;
  --yellow-green:  #afb702;
  --olive-deep:    #57720E;
  --green-deepest: #2d3d0e;

  --text-light:    #f5f0e8;
  --text-cream:    #e8dcc8;
  --text-muted:    #b8a898;

  --gold:          #c9a96e;
  --gold-light:    #e4c990;

  --shadow-dark: rgba(0, 0, 0, 0.5);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background-color: var(--brown-deep);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Forest Particles ── */
.forest-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 12px;
  background: var(--forest-green);
  border-radius: 0 50% 0 50%;
  opacity: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(62, 72, 42, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(46, 74, 84, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(56, 70, 52, 0.6) 0%, transparent 70%),
    linear-gradient(160deg, #1a1510 0%, #2d2920 30%, #1e2d1e 65%, #1a2530 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(121, 128, 77, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(87, 114, 14, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
}

/* Celtic border ornament */
.celtic-border {
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brown-warm) 15%,
    var(--gold) 30%,
    var(--olive-light) 50%,
    var(--gold) 70%,
    var(--brown-warm) 85%,
    transparent
  );
  opacity: 0.7;
}

.top-border { top: 0; }
.bottom-border { bottom: 0; }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.name-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.name-ornament {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.8;
  line-height: 1;
}

.hero-name {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  color: var(--text-cream);
  text-shadow:
    0 0 40px rgba(201, 169, 110, 0.35),
    0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.04em;
}

.hero-name span {
  color: var(--gold-light);
}

/* XV Badge */
.xv-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(121,128,77,0.1));
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  justify-content: center;
  box-shadow:
    0 0 30px rgba(201,169,110,0.15),
    inset 0 0 20px rgba(0,0,0,0.3);
}

.xv-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.xv-sub {
  font-family: 'Crimson Pro', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-invite {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-cream);
  opacity: 0.9;
}

/* Hero date */
.hero-date {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 2rem;
  border-top: 1px solid rgba(201,169,110,0.3);
  border-bottom: 1px solid rgba(201,169,110,0.3);
}

.hero-date-day {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.hero-date-month {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--text-cream);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-date-year {
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-light);
  text-decoration: none;
  border: 1px solid rgba(121,128,77,0.4);
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.scroll-btn:hover {
  background: rgba(121,128,77,0.15);
  color: var(--gold-light);
  border-color: rgba(201,169,110,0.5);
}

/* ══════════════════════════════════════
   COUNTDOWN (dentro del hero)
   ══════════════════════════════════════ */
.hero-countdown {
  text-align: center;
  padding: 0.5rem 0;
}

.section-ornament {
  font-size: 1rem;
  color: var(--olive-light);
  letter-spacing: 0.3em;
  margin: 0.8rem 0;
  opacity: 0.7;
}

.countdown-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.count-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  padding: 0.7rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(121,128,77,0.2);
  border-radius: 4px;
}

.count-number {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201,169,110,0.3);
}

.count-name {
  font-family: 'Crimson Pro', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.count-sep {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--olive-muted);
  opacity: 0.5;
  align-self: center;
  margin-bottom: 1.2rem;
}

.countdown-sub {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ══════════════════════════════════════
   DETAILS SECTION
   ══════════════════════════════════════ */
.details-section {
  position: relative;
  background: linear-gradient(180deg, var(--green-deepest) 0%, #1a2416 50%, var(--teal-dark) 100%);
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.leaf-decoration {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  opacity: 0.5;
  display: flex;
  align-items: center;
}

.left-leaves  { left: -20px; }
.right-leaves { right: -20px; }

.leaf-svg { width: 100%; height: 100%; }
.leaf-svg.flipped { transform: scaleX(-1); }

.section-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--text-cream);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--olive-light));
}

.title-divider .divider-line:last-child {
  background: linear-gradient(90deg, var(--olive-light), transparent);
}

.divider-icon { font-size: 1.2rem; }

/* Detail Cards */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .details-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }
}

.detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(121,128,77,0.25);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,169,110,0.4);
}

.detail-card.featured {
  background: rgba(201,169,110,0.06);
  border-color: rgba(201,169,110,0.35);
  padding: 2.5rem 1.5rem;
  box-shadow: 0 0 30px rgba(201,169,110,0.08);
}

.detail-icon {
  color: var(--gold);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}

.detail-title {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-value {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-cream);
  font-weight: 500;
}

.detail-sub {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ══════════════════════════════════════
   MESSAGE SECTION
   ══════════════════════════════════════ */
.message-section {
  position: relative;
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #1a2d38 50%, var(--brown-deep) 100%);
}

.message-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(114,145,163,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(62,72,42,0.15) 0%, transparent 60%);
}

.message-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.quote-mark {
  font-family: 'Cinzel Decorative', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 0.5;
  display: block;
}

.quote-mark.closing {
  line-height: 0;
  margin-top: -0.5rem;
}

.message-quote {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text-cream);
  line-height: 1.7;
  margin: 1rem 0;
}

.message-sig {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--olive-light);
  margin-top: 1.5rem;
}

/* ══════════════════════════════════════
   LOCATION SECTION
   ══════════════════════════════════════ */
.location-section {
  background: linear-gradient(180deg, var(--brown-deep) 0%, #1c1a14 100%);
  padding: 5rem 1.5rem;
}

.location-card {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.location-icon {
  color: var(--gold);
  opacity: 0.8;
}

.location-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--text-cream);
  margin-bottom: 0.5rem;
}

.location-info p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  background: linear-gradient(135deg, var(--forest-green), var(--teal-dark));
  border: 1px solid rgba(121,128,77,0.4);
  padding: 0.7rem 1.5rem;
  border-radius: 3px;
  transition: all 0.3s;
}

.map-btn:hover {
  background: linear-gradient(135deg, var(--green-dark), var(--teal-dark));
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   DRESS CODE SECTION
   ══════════════════════════════════════ */
.dresscode-section {
  background: linear-gradient(180deg, #1c1a14 0%, #1a1a12 100%);
  padding: 5rem 1.5rem;
}

.dresscode-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.2rem;
}

.dresscode-text {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Suggested palette */
.dresscode-palette {
  text-align: center;
  margin-bottom: 2.5rem;
}

.palette-label,
.reserved-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.palette-swatches {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.swatch-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 420px;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.palette-note {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Reserved colors */
.dresscode-reserved {
  text-align: center;
  padding: 1.8rem 2rem;
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 6px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(0,0,0,0.2);
}

.reserved-swatches {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.reserved-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.reserved-swatch .swatch {
  position: relative;
  opacity: 0.75;
}

.reserved-swatch .swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,0.35) 4px,
    rgba(0,0,0,0.35) 5px
  );
}

.reserved-swatch span {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.reserved-note {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   RSVP SECTION
   ══════════════════════════════════════ */
.rsvp-section {
  background: linear-gradient(180deg, #1c1a14 0%, var(--green-deepest) 50%, #1a1a12 100%);
  padding: 5rem 1.5rem;
}

.rsvp-text {
  font-family: 'Crimson Pro', serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
  text-align: center;
}

.rsvp-text strong {
  color: var(--text-cream);
  font-style: normal;
}

.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(121,128,77,0.3);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  color: var(--text-light);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder { color: rgba(255,255,255,0.25); }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--olive-light);
}

.form-group select option {
  background: var(--brown-deep);
  color: var(--text-light);
}

.radio-group > label:first-child {
  margin-bottom: 0.5rem;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  color: var(--text-cream);
  padding: 0.5rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.radio-label:hover { background: rgba(255,255,255,0.04); }

.radio-label input { accent-color: var(--olive-light); width: 16px; height: 16px; }

.rsvp-btn {
  margin-top: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  background: linear-gradient(135deg, var(--forest-green) 0%, var(--teal-dark) 100%);
  border: 1px solid rgba(201,169,110,0.35);
  padding: 1rem 2rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s;
}

.rsvp-btn:hover {
  background: linear-gradient(135deg, var(--green-dark), var(--teal-dark));
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* RSVP Thank you */
.rsvp-thanks {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 6px;
  animation: fadeInUp 0.6s ease;
}

.thanks-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.rsvp-thanks h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.rsvp-thanks p {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: #0e0d0a;
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(121,128,77,0.15);
}

.footer-ornament { opacity: 0.6; }

.footer-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

.footer-xv {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .name-ornament { display: none; }
  .leaf-decoration { display: none; }
  .count-unit { min-width: 65px; padding: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-date {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }
  .countdown { gap: 0.3rem; }
  .count-sep { font-size: 1.5rem; }
}
