/* ===== Variables & Reset ===== */
:root {
  --white: #ffffff;
  --cream: #fdf8f4;
  --red: #8b2635;
  --red-light: #a83242;
  --red-dark: #6e1e2a;
  --green: #2d4a3e;
  --green-light: #3a6152;
  --green-dark: #1e332b;
  --gold: #c9a84c;
  --text: #3a3a3a;
  --text-light: #6b6b6b;
  --border: #e0d6cc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", "Georgia", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 300;
}

.script-font {
  font-family: "Great Vibes", cursive;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(45, 74, 62, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  transition: background 0.3s;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav a:hover {
  border-bottom-color: var(--gold);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--green-dark) 0%,
    var(--green) 50%,
    var(--green-light) 100%
  );
  color: var(--white);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 38, 53, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero .pre-title {
  font-size: 1.1rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.hero h1 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero .ampersand {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  display: block;
  margin: 0.3rem 0;
}

.hero .date {
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

.hero .venue-hint {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* ===== Countdown ===== */
.countdown {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  min-width: 70px;
}

.countdown-item .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.countdown-item .label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* ===== Decorative Divider ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
  color: var(--gold);
  font-size: 1.5rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background: var(--border);
}

/* ===== Sections ===== */
section {
  padding: 5rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Details Section ===== */
#detalles {
  background: var(--white);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.detail-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.detail-card h3 {
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.detail-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== Timeline / Itinerary ===== */
#itinerario {
  background: var(--cream);
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--cream);
}

.timeline-item .time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-item h3 {
  font-size: 1.2rem;
  color: var(--green);
  margin: 0.2rem 0;
}

.timeline-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Dress Code ===== */
#dresscode {
  background: var(--white);
}

.dresscode-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.dresscode-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.color-palette {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
}

.color-swatch .tooltip {
  display: none;
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  white-space: nowrap;
  color: var(--text-light);
}

.color-swatch:hover .tooltip {
  display: block;
}

/* ===== RSVP Section ===== */
#rsvp {
  background: var(--green);
  color: var(--white);
}

#rsvp .section-title h2 {
  color: var(--white);
}

#rsvp .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.rsvp-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
  background: var(--green-dark);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: auto;
  accent-color: var(--gold);
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover {
  background: var(--red-light);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold);
}

.form-message.error {
  display: block;
  background: rgba(139, 38, 53, 0.3);
  color: #ffaaaa;
}

/* ===== Footer ===== */
footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

footer .names {
  font-family: "Great Vibes", cursive;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }

  nav a {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  section {
    padding: 3.5rem 1.2rem;
  }

  .countdown {
    gap: 1rem;
  }

  .countdown-item .number {
    font-size: 2rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 45px;
  }

  .timeline-item::before {
    left: 9px;
  }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
