/* =====================================================
   Invitación de Lara — Bautismo y Primer Año
   ===================================================== */

:root {
  color-scheme: light only;
  --cream: #fdf6f2;
  --cream-deep: #fbf0ec;
  --blush: #f6dde3;
  --blush-soft: #f9e8ec;
  --rose: #d98ca8;
  --rose-mid: #b4577b;
  --rose-deep: #7a2e45;
  --rose-line: #e6bfcb;
  --gold: #c9a66b;
  --gold-soft: #e3d2ab;
  --ink: #4a3038;
  --ink-soft: #8a6a74;
  --white: #ffffff;

  --font-script: 'Parisienne', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  --shadow-soft: 0 10px 40px rgba(122, 46, 69, 0.12);
  --shadow-btn: 0 8px 20px rgba(180, 87, 123, 0.28);

  --bow-pattern: url("../img/bow-tile.png");
}

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

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.section {
  position: relative;
  padding: 90px 24px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section--flush {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Decorative bow (shared) ---------- */
.bow {
  display: inline-block;
  width: 34px;
  height: 20px;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
  color: var(--rose);
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--rose-mid);
}

.title-script {
  font-family: var(--font-script);
  font-size: clamp(3rem, 14vw, 5.5rem);
  color: var(--rose-deep);
  line-height: 1;
  margin: 6px 0;
}

.title-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: var(--rose-deep);
  margin-bottom: 10px;
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.copy {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background:
    radial-gradient(circle at 15% 12%, var(--blush-soft) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, var(--blush) 0%, transparent 50%),
    var(--cream);
  overflow: hidden;
}

.hero__bows {
  position: absolute;
  inset: 0;
  background-image: var(--bow-pattern);
  background-size: 460px 460px;
  opacity: 0.55;
  pointer-events: none;
}

.hero__frame {
  position: relative;
  z-index: 2;
  border: 1px solid var(--gold-soft);
  padding: 52px 30px;
  max-width: 480px;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero__frame::before,
.hero__frame::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
}

.hero__frame::before {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
}

.hero__frame::after {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
}

.hero__bow-icon {
  width: 48px;
  height: 30px;
  margin: 0 auto 18px;
  color: var(--rose);
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 10px;
}

.hero__name {
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 22vw, 8rem);
  color: var(--rose-deep);
  line-height: 1;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 14px 0 22px;
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--rose-deep);
  border-top: 1px solid var(--rose-line);
  border-bottom: 1px solid var(--rose-line);
  padding: 12px 22px;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--rose-mid);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: floatDown 2.2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 16px;
  height: 16px;
}

@keyframes floatDown {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- WELCOME ---------- */
.welcome {
  padding-top: 100px;
}

/* ---------- COUNTDOWN ---------- */
.countdown-wrap {
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush-soft) 100%);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 460px;
  margin: 30px auto 0;
}

.countdown__box {
  background: var(--white);
  border: 1px solid var(--rose-line);
  border-radius: 14px;
  padding: 18px 4px;
  box-shadow: var(--shadow-soft);
}

.countdown__num {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 9.5vw, 3.6rem);
  font-weight: 700;
  color: var(--rose-deep);
  line-height: 1;
}

.countdown__label {
  display: block;
  margin-top: 8px;
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- EVENT CARDS ---------- */
.event {
  padding-top: 70px;
  padding-bottom: 70px;
}

.event__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  color: var(--rose-mid);
}

.event__card {
  margin-top: 34px;
  background: var(--white);
  border-radius: 22px;
  padding: 40px 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--blush);
  position: relative;
}

.event__time {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--rose-deep);
}

.event__day {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 4px;
}

.event__venue {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 18px;
}

.event__address {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.event__text {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-serif);
}

.event__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--rose-mid), var(--rose-deep));
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  box-shadow: 0 12px 26px rgba(122, 46, 69, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--rose-deep);
  border: 1px solid var(--rose-line);
}

.btn--ghost:hover {
  background: var(--blush-soft);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #3fb27f, #2c9d6c);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(44, 157, 108, 0.3);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.72rem;
}

/* Calendar dropdown */
.cal {
  position: relative;
  display: inline-block;
}

.cal__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.cal.is-open .cal__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cal__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.82rem;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

.cal__option:hover {
  background: var(--blush-soft);
}

.cal__option svg {
  width: 16px;
  height: 16px;
  color: var(--rose-mid);
  flex-shrink: 0;
}

/* ---------- TRANSITION BANNER ---------- */
.transition {
  padding: 50px 24px;
  text-align: center;
  background: var(--cream-deep);
}

.transition__bow {
  width: 40px;
  height: 24px;
  margin: 0 auto 16px;
  color: var(--gold);
}

.transition p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-deep);
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- ITINERARY ---------- */
.itinerary {
  background: var(--white);
}

.timeline {
  margin-top: 40px;
  position: relative;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rose-line);
}

.timeline__item {
  position: relative;
  padding-left: 66px;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: 12px;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blush-soft);
  border: 1px solid var(--rose-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-deep);
}

.timeline__dot svg {
  width: 15px;
  height: 15px;
}

.timeline__time {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--rose-deep);
  font-size: 1.05rem;
}

.timeline__what {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

.timeline__where {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---------- RSVP ---------- */
.rsvp {
  background:
    radial-gradient(circle at 20% 20%, var(--blush-soft) 0%, transparent 50%),
    var(--cream-deep);
}

.rsvp__deadline {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.rsvp .btn--whatsapp {
  margin-top: 28px;
  padding: 16px 32px;
  font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 70px 24px 40px;
  text-align: center;
  background: var(--rose-deep);
  color: var(--blush-soft);
  position: relative;
  overflow: hidden;
}

.footer__bow {
  width: 40px;
  height: 24px;
  margin: 0 auto 18px;
  color: var(--gold-soft);
}

.footer__msg {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--white);
}

.footer__note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--blush);
  opacity: 0.85;
}

.footer__credit {
  margin-top: 40px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--rose-line);
  opacity: 0.7;
}

/* ---------- MUSIC PLAYER ---------- */
.music {
  padding-top: 60px;
  padding-bottom: 60px;
}

.player {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--rose-line);
  border-radius: 50px;
  padding: 10px 28px 10px 10px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-family: var(--font-body);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.player:active {
  transform: scale(0.98);
}

.player__icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--rose-mid), var(--rose-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.player__icon svg {
  width: 18px;
  height: 18px;
}

.player__icon .icon-pause {
  display: none;
}

.player.is-playing .icon-play {
  display: none;
}

.player.is-playing .icon-pause {
  display: block;
}

.player__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.player__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.player__label--playing {
  display: none;
}

.player.is-playing .player__label--idle {
  display: none;
}

.player.is-playing .player__label--playing {
  display: inline;
}

.player__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 13px;
}

.player__bars i {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--rose-mid);
  opacity: 0.35;
  font-style: normal;
}

.player.is-playing .player__bars i {
  opacity: 1;
  animation: eq 0.9s ease-in-out infinite;
}

.player__bars i:nth-child(1) { animation-delay: 0s; }
.player__bars i:nth-child(2) { animation-delay: 0.2s; }
.player__bars i:nth-child(3) { animation-delay: 0.4s; }
.player__bars i:nth-child(4) { animation-delay: 0.1s; }

@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}

/* ---------- GIFT / ALIAS ---------- */
.gift {
  padding-top: 20px;
  padding-bottom: 80px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(74, 48, 56, 0.45);
  backdrop-filter: blur(2px);
}

.modal__card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 22px;
  padding: 40px 30px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(74, 48, 56, 0.3);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s ease;
}

.modal.is-open .modal__card {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal__icon {
  width: 34px;
  height: 21px;
  margin: 0 auto 14px;
  color: var(--rose);
}

.modal__alias {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blush-soft);
  border: 1px dashed var(--rose-line);
  border-radius: 14px;
  padding: 14px 16px;
}

.modal__alias span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--rose-deep);
}

.modal__alias button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rose-line);
  background: var(--white);
  color: var(--rose-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.modal__alias button svg {
  width: 15px;
  height: 15px;
}

.modal__hint {
  margin-top: 10px;
  min-height: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  color: var(--rose-mid);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 560px) {
  .event__card { padding: 48px 44px; }
}

@media (min-width: 900px) {
  .section { padding: 120px 24px; }
  .hero__name { font-size: 9rem; }
}
