/* ======================================================
   MIS XV AÑOS · Danna Sofía Mora Ramírez
   Hoja de estilos principal
   Mobile-first · Azul noche + dorado + blanco + flores azules
   ====================================================== */

/* ============ 1. RESET ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--white);
  font-family: var(--f-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

ul {
  list-style: none;
}

::selection {
  background: rgba(212, 175, 55, .32);
  color: #fff;
}

/* ============ 2. VARIABLES ============ */
:root {
  /* Paleta (rosa elegante del proyecto) */
  --navy: #8A4463;
  --navy-2: #A65C7C;
  --navy-3: #6E3450;
  --gold: #D4AF37;
  --gold-light: #F4D77A;
  --white: #FFFFFF;
  --grey: #EBD7E1;

  /* Acentos derivados */
  --gold-soft: rgba(212, 175, 55, .38);
  --gold-line: rgba(212, 175, 55, .28);
  --gold-faint: rgba(212, 175, 55, .14);
  --gold-glow: rgba(212, 175, 55, .22);
  --lila-soft: #C9A9DC;

  /* Tipografías */
  --f-script: 'Great Vibes', 'Snell Roundhand', cursive;
  --f-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --f-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Medidas */
  --pad-x: clamp(20px, 5.6vw, 40px);
  --measure: 33em;
  --col-w: 430px;
  --radius-col: 30px;
}

/* ============ 3. FONDO GLOBAL · PARTÍCULAS Y DESTELLOS ============ */
.ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambience__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ambience__glow {
  position: absolute;
  left: 50%;
  width: min(160vw, 900px);
  height: min(160vw, 900px);
  border-radius: 50%;
  filter: blur(70px);
  transform: translateX(-50%);
  opacity: .55;
}

.ambience__glow--top {
  top: -34%;
  background: radial-gradient(circle, rgba(212, 175, 55, .15) 0%, rgba(150,80,112,0) 62%);
}

.ambience__glow--bottom {
  bottom: -36%;
  background: radial-gradient(circle, rgba(196,120,160,.2) 0%, rgba(138,68,99,0) 64%);
}

/* ============ 4. CONTENEDOR ÚNICO DE LA INVITACIÓN ============ */
.invitation {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ============ 5. BLOQUES CONTINUOS (sin recuadros) ============
   El ritmo vertical se ajusta por bloque para que la página se
   sienta continua y respirada, sin huecos muertos ni saturación. */
.chapter {
  position: relative;
  z-index: 2;
}

/* Bloques de datos: un poco más de aire arriba que abajo */
.chapter--airy > .chapter__body {
  padding-top: clamp(54px, 11vw, 80px);
  padding-bottom: clamp(58px, 12vw, 88px);
}

/* El encabezado de la cena y de la ubicación no necesita tanto aire
   porque ya le precede un ornamento */
.chapter--tight > .chapter__body {
  padding-top: clamp(30px, 6vw, 44px);
}

.chapter__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--measure) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: clamp(64px, 13vw, 96px) var(--pad-x);
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--grey);
  font-family: var(--f-sans);
  font-size: .62rem;
  font-weight: 300;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  opacity: .78;
}

.chapter__title {
  color: var(--gold);
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 6.4vw, 1.95rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .22em;
  text-indent: .22em;
  text-transform: uppercase;
  text-shadow: 0 0 26px var(--gold-glow);
}

.chapter__date {
  margin-bottom: 34px;
  color: var(--white);
  font-family: var(--f-serif);
  font-size: clamp(1.24rem, 5.6vw, 1.62rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: .07em;
}

/* ---- Textos ---- */
.verse {
  color: rgba(255, 255, 255, .94);
  font-family: var(--f-serif);
  font-size: clamp(1.04rem, 4.3vw, 1.22rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: .012em;
  text-wrap: pretty;
}

.lead-in {
  margin-top: 26px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .86);
  font-family: var(--f-serif);
  font-size: clamp(1.02rem, 4.1vw, 1.16rem);
  font-style: italic;
  line-height: 1.7;
}

.signature {
  margin-bottom: 18px;
  color: var(--white);
  font-family: var(--f-script);
  font-size: clamp(1.55rem, 7.4vw, 2.15rem);
  line-height: 1.28;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .4);
}

.signature__line {
  display: block;
}

.signature--gold {
  color: var(--gold-light);
}

.prose {
  margin-top: 20px;
  color: rgba(255, 255, 255, .93);
  font-family: var(--f-serif);
  font-size: clamp(1.02rem, 4.2vw, 1.16rem);
  font-weight: 300;
  line-height: 1.88;
  letter-spacing: .014em;
  text-wrap: pretty;
}

.prose__mark {
  color: var(--gold-light);
  font-weight: 500;
  font-style: normal;
}

.cheer {
  margin-top: clamp(30px, 6.5vw, 44px);
  color: var(--gold-light);
  font-family: var(--f-script);
  font-size: clamp(1.3rem, 6.2vw, 1.85rem);
  line-height: 1.4;
  text-shadow: 0 0 28px var(--gold-glow);
}

/* ---- Ornamentos y líneas ---- */
.ornament {
  display: flex;
  justify-content: center;
  margin: 30px auto 0;
}

.ornament img {
  width: clamp(108px, 32vw, 148px);
  opacity: .88;
}

.cover__rule {
  display: block;
  width: 78px;
  height: 1px;
  margin: 0 auto clamp(14px, 3.4vw, 20px);
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* ============ 5b. CENA ============ */
.moment {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .26em;
  color: var(--gold-light);
  font-family: var(--f-serif);
  font-size: clamp(2.8rem, 14vw, 4rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums;
  text-shadow: 0 0 30px var(--gold-glow);
}

.moment__mer {
  font-size: .32em;
  font-style: italic;
  color: rgba(244, 215, 122, .8);
}

/* Subtítulo que aclara el tipo de encuentro */
.moment__kind {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .88);
  font-family: var(--f-serif);
  font-size: clamp(1.06rem, 4.4vw, 1.22rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

.moment__date {
  margin-top: 14px;
  color: var(--white);
  font-family: var(--f-serif);
  font-size: clamp(1.04rem, 4.3vw, 1.2rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.65;
}

.venue__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: clamp(26px, 5.4vw, 34px) auto 14px;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  background: rgba(126,58,88,.45);
}

.venue__icon img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.venue__name {
  color: var(--white);
  font-family: var(--f-serif);
  font-size: clamp(1.28rem, 5.6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
}

.venue__line {
  margin-top: 12px;
  color: rgba(255, 255, 255, .9);
  font-family: var(--f-serif);
  font-size: clamp(1rem, 4.1vw, 1.12rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
}

/* ---- Ubicación: texto ---- */
.place__label {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--f-sans);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-indent: .32em;
  text-transform: uppercase;
}

.place__name {
  color: var(--white);
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 5.8vw, 1.66rem);
  font-weight: 400;
  line-height: 1.35;
}

.place__line {
  margin-top: 14px;
  color: rgba(255, 255, 255, .9);
  font-family: var(--f-serif);
  font-size: clamp(1rem, 4.1vw, 1.12rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.75;
}

/* ============ 6. MARCO FLORAL (ESQUINAS SIMÉTRICAS) ============ */
.corners {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.corners__item {
  position: absolute;
  width: clamp(136px, 41vw, 250px);
  height: auto;
  opacity: .88;
  -webkit-mask-image: radial-gradient(ellipse 74% 74% at 8% 8%, #000 0 32%, rgba(0, 0, 0, .5) 58%, transparent 80%);
  mask-image: radial-gradient(ellipse 74% 74% at 8% 8%, #000 0 32%, rgba(0, 0, 0, .5) 58%, transparent 80%);
  will-change: transform;
}

/* El reflejo se aplica sobre el mismo elemento, por lo que la máscara
   se refleja junto con la imagen y el desvanecido cae siempre hacia
   el interior de la sección. */
.corners__item--tl {
  top: 0;
  left: 0;
}

.corners__item--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.corners__item--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.corners__item--br {
  bottom: 0;
  right: 0;
  transform: scale(-1);
}

.corners--cover .corners__item {
  width: clamp(178px, 56vw, 320px);
  opacity: .95;
}

/* ============ 7. PORTADA ============ */
.cover {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: clamp(64px, 16vw, 84px) var(--pad-x) clamp(86px, 20vw, 104px);
  text-align: center;
}

.cover__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.cover__crown {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(14px, 3.6vw, 20px);
}

.cover__crown-icon {
  width: clamp(44px, 12.5vw, 58px);
  height: auto;
  filter: drop-shadow(0 0 14px var(--gold-glow));
}

.cover__title {
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--f-serif);
  font-size: clamp(1.06rem, 5.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: .44em;
  text-indent: .44em;
  text-transform: uppercase;
  text-shadow: 0 0 24px var(--gold-glow);
}

.cover__name {
  color: var(--white);
  font-family: var(--f-script);
  font-size: clamp(1.85rem, 8.9vw, 2.9rem);
  font-weight: 400;
  line-height: 1.28;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}

.cover__name-line {
  display: block;
}

/* --- Fotografía circular: 100 % estática --- */
.portrait {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(190px, 56vw, 250px);
  margin: clamp(22px, 5.4vw, 32px) 0 clamp(28px, 6.4vw, 38px);
}

.portrait__ring {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: clamp(7px, 2vw, 9px);
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(244, 215, 122, .2), rgba(126,58,88,.36));
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, .2),
    0 20px 50px rgba(0, 0, 0, .48),
    0 0 46px var(--gold-glow);
}

/* Brillo dorado suave alrededor de la fotografía */
.portrait__aura {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 158%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
      rgba(212, 175, 55, .3) 0%,
      rgba(212, 175, 55, .12) 44%,
      rgba(212, 175, 55, 0) 68%);
  filter: blur(10px);
  pointer-events: none;
}

.portrait__halo {
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(212, 175, 55, .18);
  border-radius: 50%;
  pointer-events: none;
}

/* La imagen NO recibe ninguna animación ni transformación */
.portrait__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--navy-2);
  transform: none;
  animation: none;
}

/* ============ 8. BOTONES ============ */
.btn {
  position: relative;
  display: inline-flex;
  gap: .6em;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 28px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-indent: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: box-shadow .45s ease, transform .35s ease, background-color .45s ease, border-color .45s ease;
}

.btn--gold {
  background: rgba(150,80,112,.55);
  color: var(--gold-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .34), inset 0 0 22px rgba(212, 175, 55, .1);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-18deg);
  transition: left .8s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 118%;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .38), 0 0 36px var(--gold-glow);
}

.btn:active {
  transform: translateY(-1px) scale(.985);
}

.btn__crown {
  font-size: .92em;
  line-height: 1;
  filter: drop-shadow(0 0 5px var(--gold-glow));
}

.btn__ico {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.btn__pin {
  font-size: 1em;
  line-height: 1;
  filter: drop-shadow(0 0 5px var(--gold-glow));
}

/* --- Flecha de desplazamiento --- */
.scroll-cue {
  position: absolute;
  bottom: clamp(20px, 5vw, 28px);
  left: 0;
  right: 0;
  z-index: 3;
  width: max-content;
  margin: 0 auto;
  padding: 8px;
  color: var(--gold);
}

.scroll-cue__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--gold-glow);
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
}

/* ============ 9. CUENTA REGRESIVA (sin recuadros) ============ */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 2vw, 12px);
  margin-top: 6px;
}

.countdown__unit {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.countdown__num {
  color: var(--gold-light);
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 9.6vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  text-shadow: 0 0 24px var(--gold-glow);
}

.countdown__label {
  color: rgba(255, 255, 255, .8);
  font-family: var(--f-sans);
  font-size: .52rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-indent: .2em;
  text-transform: uppercase;
}

.countdown__rule {
  flex: 0 0 auto;
  width: 1px;
  height: clamp(38px, 12vw, 54px);
  margin-top: clamp(6px, 1.6vw, 10px);
  background: linear-gradient(180deg,
      rgba(212, 175, 55, 0) 0%,
      rgba(212, 175, 55, .55) 45%,
      rgba(212, 175, 55, 0) 100%);
}

/* ============ 11. MAPA ============ */
.map {
  margin-top: clamp(28px, 6vw, 38px);
}

.map__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 58svh;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .44),
    0 0 0 1px rgba(126,58,88,.8),
    inset 0 0 0 1px rgba(244, 215, 122, .06);
}

.map__canvas {
  width: 100%;
  height: 100%;
  border: 0;
  /* Se oscurece el mapa para integrarlo con la paleta azul/dorado */
  filter: invert(90%) hue-rotate(184deg) saturate(80%) brightness(1.14) contrast(.9);
}

.map__pin {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .16), 0 0 16px var(--gold-light);
  pointer-events: none;
}

.map__link {
  margin-top: clamp(24px, 5vw, 32px);
}

/* ============ 12. CIERRE ============ */
.closing {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(30px, 7vw, 44px);
  text-align: center;
}

.closing__band {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  padding: 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.closing__flowers {
  width: 100%;
  max-width: 520px;
  height: auto;
  opacity: .8;
  filter: drop-shadow(0 0 18px rgba(160,125,205,.3));
}

.closing__body {
  max-width: calc(var(--measure) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.closing__monogram {
  margin-top: 20px;
  color: var(--gold);
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 11vw, 3rem);
  font-weight: 400;
  letter-spacing: .18em;
  text-indent: .18em;
  text-shadow: 0 0 30px var(--gold-glow);
}

.closing__date {
  margin-top: 10px;
  color: rgba(240,214,226,.7);
  font-family: var(--f-sans);
  font-size: .6rem;
  font-weight: 300;
  letter-spacing: .38em;
  text-indent: .38em;
}

/* ============ 13. BOTÓN FLOTANTE DE MÚSICA ============ */
.music-btn {
  position: fixed;
  right: clamp(14px, 4vw, 22px);
  bottom: calc(clamp(14px, 4vw, 22px) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: rgba(112,48,78,.86);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .42), inset 0 0 14px rgba(212, 175, 55, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .35s ease, box-shadow .35s ease, color .35s ease, border-color .35s ease;
}

.music-btn:hover,
.music-btn:focus-visible {
  transform: scale(1.07);
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 24px var(--gold-glow);
}

.music-btn:active {
  transform: scale(.96);
}

.music-btn__ring {
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  pointer-events: none;
}

.music-btn__ico {
  position: absolute;
  width: 17px;
  height: 17px;
}

.music-btn__ico ico-pause,
.music-btn.is-playing .music-btn__ico ico-play {
  display: none;
}

.music-btn.is-playing .music-btn__ico ico-pause {
  display: block;
}

/* Barras animadas que aparecen al reproducir */
.music-btn__bars {
  position: absolute;
  bottom: -1px;
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .4s ease;
}

.music-btn__bars i {
  display: block;
  width: 2px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 2px;
}

.music-btn.is-playing {
  color: var(--gold-light);
  border-color: var(--gold-soft);
}

.music-btn.is-playing .music-btn__bars {
  opacity: .9;
}

.music-btn.is-playing .music-btn__bars i:nth-child(1) {
  animation: ecua 900ms ease-in-out infinite;
}

.music-btn.is-playing .music-btn__bars i:nth-child(2) {
  animation: ecua 900ms ease-in-out 150ms infinite;
}

.music-btn.is-playing .music-btn__bars i:nth-child(3) {
  animation: ecua 900ms ease-in-out 300ms infinite;
}

.music-btn.is-unavailable {
  opacity: .42;
}

/* ============ 14. IMPRESIÓN ============ */
@media print {
  .ambience,
  .corners,
  .scroll-cue,
  .music-btn,
  .map__pin {
    display: none !important;
  }

  body {
    background: #fff;
    color: #8A4463;
  }

  .cover,
  .chapter {
    page-break-inside: avoid;
    min-height: auto;
  }
}