:root {
  --bg: #f5f1eb;
  --paper: #fffaf4;
  --ink: #4a3f35;
  --accent: #b48a60;
  --border-soft: #e3d6c8;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-main: "Segoe UI", system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--ink);
}

/* NAV */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(245,241,235,0.9);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.top-nav nav a {
  margin-left: 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
}

.music-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  height: 45vh;
  margin-top: 56px;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.35), rgba(0,0,0,0.75));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 16px;
  z-index: 10;
}

.title-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  opacity: 0.9;
}

.title-main {
  font-size: 3rem;
  margin: 10px 0;
  font-weight: 700;
}

.title-sub {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.95;
}

.title-countdown {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #f5e0c2;
}

/* ACCESO */
.access-section {
  display: flex;
  justify-content: center;
  padding: 40px 16px 10px;
  position: relative;
  z-index: 20;
}

.access-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 22px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.access-card h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.access-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.access-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
}

.access-form button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.error { color: #c0392b; }
.success { color: #27ae60; }

.hidden { display: none !important; }

/* BOTONES RSVP */
.rsvp-buttons {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.rsvp-confirm,
.rsvp-decline {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: white;
}

.rsvp-confirm { background: #27ae60; }
.rsvp-decline { background: #c0392b; }

.rsvp-message {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #4a3f35;
}

/* SECCIONES GENERALES */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 6px;
}

/* HISTORIA */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: center;
}

.story-text p + p {
  margin-top: 10px;
}

.story-photos {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 10px;
}

.story-main img,
.story-side img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* INFO BLOQUES */
.info-block {
  background: linear-gradient(135deg, #fdf7ee, #f2e2cf);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 20px;
}

.info-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 0 20px 20px;
  align-items: center;
}

.info-photo img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* MENÚ */
.menu-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  border: 1px solid var(--border-soft);
}

/* FOTOS DE MOMENTOS – NO CORTADAS, MISMO TAMAÑO */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #00000010;
  padding: 4px;
  border-radius: 10px;
  cursor: pointer;
}

/* FOTOS DE FAMILIA – MISMO TAMAÑO QUE MOMENTOS */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.family-item {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #00000010;
  padding: 4px;
  border-radius: 10px;
  cursor: pointer;
}

/* CONTACTO */
.whatsapp-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;
}

.lightbox.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { height: 40vh; }
  .story-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { height: 35vh; }
}