/* ===== PALETA Y RESETEO ===== */
:root {
  --wine: #7b1236;
  --wine-soft: #d97a93;
  --wine-soft-2: #f6dde4;
  --gold: #c9a15b;
  --bg-page: #f6f2f4;
  --ink: #2c2830;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0, #f1e5ec 55%, #f6f2f4 100%);
}

/* ===== BARRA SUPERIOR ===== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.top-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: "Great Vibes", cursive;
  font-size: 1.7rem;
  color: var(--wine);
}

.top-nav a {
  margin-left: 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: #555;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.top-nav a:hover {
  background: rgba(123, 18, 54, 0.08);
  color: var(--wine);
}

/* ===== SECCIONES GENERALES ===== */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 760px;
}

.section-tagline {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--wine);
  margin-bottom: 0.6rem;
  text-align: center;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

/* Título con línea decorativa */
.section-title.decorated {
  position: relative;
  display: inline-block;
  padding: 0 1.2rem;
}

.section-title.decorated::before,
.section-title.decorated::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 55px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(123, 18, 54, 0.7),
    transparent
  );
}

.section-title.decorated::before {
  right: 100%;
}

.section-title.decorated::after {
  left: 100%;
}

.section-title.decorated.left {
  text-align: left;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: radial-gradient(circle at 10% 0%, #ffffff 0, #f7e8f0 60%, #f5f0f4 100%);
  overflow: hidden;
}

/* Elementos decorativos en el fondo */
.hero-decor {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.32;
  filter: blur(2px);
}

.hero-decor-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--wine-soft) 0, transparent 70%);
  top: -60px;
  left: -80px;
}

.hero-decor-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #f3c8d8 0, transparent 70%);
  bottom: -80px;
  right: -100px;
}

.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  z-index: 1;
}

.hero-small {
  font-family: "Great Vibes", cursive;
  font-size: 1.7rem;
  color: var(--wine);
}

.hero-year {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #494152;
}

.hero-cap-wrapper {
  margin-bottom: 0.5rem;
}

.grad-cap {
  width: 90px;
  fill: #e7d9df;
  stroke: #b49aa6;
  stroke-width: 2;
}

.grad-cap.small {
  width: 60px;
}

.hero-name {
  font-family: "Great Vibes", cursive;
  font-size: 2.8rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 26rem;
  line-height: 1.6;
  color: #544a5a;
  margin-bottom: 1.5rem;
}

.hero-audio-text {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--wine);
  margin-bottom: 0.5rem;
}

.hero-audio {
  width: 100%;
  max-width: 320px;
  margin-bottom: 1.75rem;
}

/* Save the date */
.save-the-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 1.6rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: radial-gradient(circle at top left, #ffffff 0, #f8edf2 60%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.std-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.25rem;
}

.std-date {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.std-day-name,
.std-month {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #444;
}

.std-day {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

/* HERO PHOTO */
.hero-photo {
  z-index: 1;
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  border-radius: 1.6rem;
  border: 6px solid #ffffff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  background: #eee;
}

.photo-frame-hero {
  max-width: 340px;
}

/* Decoración dorada en la esquina de la foto */
.photo-border-decor {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(201, 161, 91, 0.7);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame.large {
  max-width: 360px;
}

.photo-frame.wide {
  max-width: 760px;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
  background: linear-gradient(
      180deg,
      rgba(246, 221, 231, 0.5),
      rgba(255, 255, 255, 0.8)
    ),
    #fdfdfd;
}

.countdown-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.countdown-box {
  background: #ffffff;
  border-radius: 1.6rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(123, 18, 54, 0.12);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.count-item {
  padding: 0.7rem 0.3rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, #fef9fb, #f7e4ec);
  text-align: center;
  border: 1px solid rgba(123, 18, 54, 0.15);
}

.count-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--wine);
}

.count-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
}

.countdown-note {
  font-size: 0.9rem;
  color: #555;
}

/* ===== MENSAJE ===== */
.message-section {
  background: #f6f2f4;
}

.message-card {
  background: #ffffff;
  border-radius: 1.8rem;
  padding: 2.2rem 1.8rem 2.3rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(123, 18, 54, 0.08);
  position: relative;
  overflow: hidden;
}

.message-card::before,
.message-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wine-soft-2), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.message-card::before {
  width: 200px;
  height: 200px;
  top: -80px;
  left: -80px;
}

.message-card::after {
  width: 160px;
  height: 160px;
  bottom: -60px;
  right: -60px;
}

.message-text {
  font-size: 0.98rem;
  line-height: 1.9;
  color: #444;
  text-align: justify;
  margin-bottom: 1rem;
}

.message-signature {
  margin-top: 1.8rem;
  text-align: center;
}

.cap-divider {
  margin-bottom: 0.5rem;
}

.signature-name {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  color: var(--wine);
}

.signature-sub {
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  margin-top: 0.2rem;
}

/* ===== EVENT / ACTO ===== */
.event-section {
  background: #ffffff;
}

.section-intro {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.event-card {
  background: radial-gradient(circle at top, #fff8fb, #ffffff);
  border-radius: 1.7rem;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(123, 18, 54, 0.1);
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.event-icon {
  font-size: 1.7rem;
}

/* Badge circular decorado */
.badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, var(--wine-soft), var(--wine));
  color: #fff;
  box-shadow: 0 8px 18px rgba(123, 18, 54, 0.4);
}

.event-info h3 {
  margin-bottom: 0.15rem;
}

.event-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

.event-info p {
  font-size: 0.95rem;
  color: #555;
}

/* ===== FIESTA ===== */
.party-section {
  background: linear-gradient(180deg, #fefbff, #f5e5ee);
}

.party-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn.full {
  width: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, var(--wine), #b41a44);
  color: #fff;
  box-shadow: 0 12px 24px rgba(123, 18, 54, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 15px 30px rgba(123, 18, 54, 0.4);
  transform: translateY(-1px);
}

.btn.outline {
  border-color: var(--wine);
  color: var(--wine);
  background: #fff;
}

.btn.outline:hover {
  background: var(--wine);
  color: #fff;
}

.btn.ghost {
  border-color: rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #555;
}

.btn.ghost:hover {
  border-color: rgba(123, 18, 54, 0.4);
  color: var(--wine);
}

/* ===== RSVP ===== */
.rsvp-section {
  background: #ffffff;
}

.rsvp-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== CIERRE ===== */
.closing-section {
  background: #f6f2f4;
}

.closing-card {
  background: #ffffff;
  border-radius: 1.8rem;
  padding: 2rem 1.5rem 2.4rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(123, 18, 54, 0.1);
}

.closing-text {
  margin-top: 1.5rem;
  text-align: center;
}

.closing-cta {
  font-weight: 600;
  color: var(--wine);
}

/* ===== FOOTER ===== */
.footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 1.3rem;
  }

  .save-the-date {
    margin: 0 auto;
  }

  .hero-photo {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .hero-year {
    font-size: 3rem;
  }

  .countdown-layout,
  .party-grid {
    grid-template-columns: 1fr;
  }

  .countdown-box {
    order: -1;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .party-text .section-title.decorated.left {
    display: block;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .top-nav {
    display: none;
  }

  .section {
    padding: 3.25rem 1.25rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-year {
    font-size: 2.6rem;
  }

  .hero-name {
    font-size: 2.3rem;
  }

  .photo-frame.large,
  .photo-frame-hero,
  .photo-frame.wide {
    max-width: 100%;
  }

  .message-card,
  .closing-card {
    padding: 1.7rem 1.3rem 1.9rem;
  }

  .countdown-box {
    padding: 1.5rem 1.2rem;
  }
}
