* {
  box-sizing: border-box;
}

:root {
  --color-bg: #faf6f0;
  --color-text: #3a3630;
  --color-text-soft: #6b6459;
  --color-accent: #b08968;
  --color-accent-dark: #8c6b4f;
  --color-card: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Navegación */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(176, 137, 104, 0.2);
}

.nav__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-decoration: none;
}

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

.nav__links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.nav__links a:hover {
  color: var(--color-accent-dark);
}

.nav__cta {
  border: 1px solid var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero__names {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  margin: 0;
  font-weight: 600;
}

.hero__names span {
  font-style: italic;
  font-weight: 400;
  color: #e9d9c8;
}

.hero__date {
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  margin: 1rem 0 0.25rem;
}

.hero__place {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #f1e8dd;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  z-index: 1;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Cita */

.quote {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.quote__divider {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* Secciones genéricas */

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}

.section-title--light {
  color: #fff;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 3rem;
}

/* Detalles */

.details {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.detail-card {
  background: var(--color-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.detail-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.detail-card__body {
  padding: 1.75rem;
  text-align: center;
}

.detail-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  margin: 0 0 0.5rem;
}

.detail-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.detail-card__meta {
  font-size: 1.1rem;
  margin: 0;
}

.detail-card__address {
  color: var(--color-text-soft);
  margin: 0.25rem 0 1.25rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent-dark);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Cuenta atrás */

.countdown {
  background: var(--color-accent-dark);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.25rem, 1.5vw, 1rem);
  max-width: 420px;
  margin: 2rem auto 0;
}

.countdown__item {
  color: #fff;
}

.countdown__item span {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 600;
}

.countdown__item small {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(0.6rem, 2vw, 0.75rem);
  color: #f1e2d1;
}

/* Galería */

.gallery {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.gallery__grid a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.gallery__grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery__grid a:hover img {
  transform: scale(1.06);
}

.gallery__grid a {
  cursor: zoom-in;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(20, 16, 12, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Información */

.info {
  padding: 6rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  text-align: center;
}

.info__item h3 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--color-accent-dark);
}

.info__item p {
  color: var(--color-text-soft);
  line-height: 1.6;
  margin: 0;
}

/* Formulario RSVP */

.rsvp-section {
  padding: 5rem 1.5rem 6rem;
  display: flex;
  justify-content: center;
}

.rsvp-form {
  width: 100%;
  max-width: 520px;
  background: var(--color-card);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.rsvp-form h2 {
  margin-top: 0;
  text-align: center;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d9cfc4;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #fffdfb;
}

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

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

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
  font-size: 1rem;
}

.rsvp-form button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rsvp-form button:hover {
  background: var(--color-accent-dark);
}

.rsvp-form button:disabled {
  background: #cbb9a5;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  color: #2e7d32;
}

.form-message.error {
  display: block;
  color: #c62828;
}

/* Footer */

.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-text-soft);
}

.footer__names {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  margin: 0 0 0.25rem;
}

.footer__hashtag {
  letter-spacing: 0.1em;
  color: var(--color-accent-dark);
  margin: 0 0 0.5rem;
}

.footer__thanks {
  font-style: italic;
  margin: 0;
}

@media (max-width: 600px) {
  .nav__links {
    gap: 0.75rem;
  }

  .nav__links a:not(.nav__cta) {
    display: none;
  }
}
