/* ==========================================================================
   ESTILOS PRINCIPALES - EXPERIENCIA ROMÁNTICA PARA MI PRICESS ♡
   Inspirado en estética scrapbook, diarios digitales, Pinterest y rosas
   ========================================================================== */

/* Variables de Color y Tipografía */
:root {
  --bg-crema: #FAF6F0;
  --bg-crema-light: #FFFDF9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-solid: #FFFFFF;
  --bg-letter: #FFFDF8;

  --pink-soft: #F9EBEA;
  --pink-blush: #F5D6D8;
  --pink-rose: #E899A5;
  --pink-deep: #D07080;
  --pink-accent: #E26D82;

  --warm-gold: #D4AF37;
  --warm-amber: #E0A96D;
  --lilac-tint: #E8DEEE;

  --text-main: #3F3335;
  --text-muted: #7A696C;
  --text-light: #9E8D90;

  --shadow-sm: 0 4px 12px rgba(92, 53, 62, 0.05);
  --shadow-md: 0 10px 28px rgba(92, 53, 62, 0.08);
  --shadow-lg: 0 18px 45px rgba(92, 53, 62, 0.12);
  --shadow-rose: 0 10px 30px rgba(232, 153, 165, 0.35);

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Caveat', cursive;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 9999px;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset y configuraciones globales */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-crema);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(245, 214, 216, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(232, 222, 238, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 253, 249, 0.6) 0%, transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Canvas de fondo para partículas y destellos sutiles */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Envoltorio principal para contenido */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Secciones generales */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

/* Tags y Pills decorativos */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 214, 216, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--pink-deep);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(232, 153, 165, 0.3);
}

.tag-dot {
  width: 6px;
  height: 6px;
  background-color: var(--pink-deep);
  border-radius: 50%;
  display: inline-block;
}

/* Tipografías de Título */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.title-grand {
  font-size: clamp(2.3rem, 6vw, 3.2rem);
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* ==========================================================================
   SECCIÓN 1: PORTADA PERSONALIZADA
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 60px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('fondo.jpeg');
  background-repeat: repeat;
  background-size: 280px;
  opacity: 0.18;
  filter: contrast(0.9) brightness(1.05);
  pointer-events: none;
  z-index: -1;
}

.hero-floral-accent {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 153, 165, 0.35) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-floral-accent.top-left {
  top: -80px;
  left: -80px;
}

.hero-floral-accent.bottom-right {
  bottom: -80px;
  right: -80px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(245, 214, 216, 0.4);
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card .badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pink-deep);
  background: rgba(249, 235, 234, 0.9);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  border: 1px dashed rgba(232, 153, 165, 0.5);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 16px;
}

.highlight-name {
  color: var(--pink-deep);
  position: relative;
  display: inline-block;
  font-style: italic;
}

.highlight-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: rgba(245, 214, 216, 0.6);
  border-radius: 4px;
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3.2vw, 1.35rem);
  color: var(--pink-deep);
  margin-bottom: 20px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto;
  max-width: 200px;
}

.hero-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232, 153, 165, 0.6), transparent);
}

.hero-divider .heart-symbol {
  font-size: 1rem;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Botones principales con efecto interactivo */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #E899A5 0%, #D07080 100%);
  color: #FFFFFF;
  border: none;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 1.08rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(208, 112, 128, 0.35);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(208, 112, 128, 0.45);
  outline: none;
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-sparkle {
  display: inline-block;
  animation: pulse-sparkle 2.4s infinite ease-in-out;
}

@keyframes pulse-sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.25) rotate(12deg);
    opacity: 1;
  }
}

.hero-subnote {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 20px;
  font-style: italic;
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--pink-deep);
}

.indicator-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--pink-rose);
  border-radius: 12px;
  position: relative;
}

.indicator-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background-color: var(--pink-deep);
  border-radius: 2px;
  animation: mouse-scroll 1.6s infinite ease-in-out;
}

@keyframes mouse-scroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* ==========================================================================
   SECCIÓN 2: CELEBRANDO SU DEFENSA
   ========================================================================== */
.defense-section {
  background: linear-gradient(180deg, transparent 0%, rgba(245, 214, 216, 0.25) 50%, transparent 100%);
}

.defense-card {
  background: var(--bg-card-solid);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 214, 216, 0.6);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.corner-ribbon {
  position: absolute;
  top: 24px;
  right: -36px;
  transform: rotate(45deg);
  background: var(--pink-blush);
  color: var(--pink-deep);
  padding: 6px 42px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
  border: 1px dashed rgba(208, 112, 128, 0.4);
}

.defense-quote-ornament {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: rgba(232, 153, 165, 0.25);
  margin-top: -10px;
  margin-bottom: -30px;
  user-select: none;
}

.defense-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.defense-p {
  font-size: 1.08rem;
  color: var(--text-main);
  line-height: 1.85;
  margin-bottom: 22px;
}

.lead-p {
  font-size: 1.22rem;
  color: var(--text-main);
  font-weight: 400;
}

.lead-p strong {
  color: var(--pink-deep);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
}

.highlight-p {
  background: rgba(249, 235, 234, 0.6);
  padding: 18px 24px;
  border-left: 4px solid var(--pink-rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #4D3B3E;
}

.closing-cheer {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pink-deep);
  text-align: center;
  margin-top: 32px;
  margin-bottom: 8px;
}

.celebration-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding: 14px 28px;
  background: rgba(245, 214, 216, 0.35);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 153, 165, 0.4);
}

.trophy-stars {
  font-size: 1.35rem;
  letter-spacing: 0.2em;
}

.celebration-tagline {
  font-size: 0.82rem;
  color: var(--pink-deep);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECCIÓN 3: UN PEDACITO DE TU MUNDO (SCRAPBOOK)
   ========================================================================== */
.scrapbook-section {
  position: relative;
}

.scrapbook-quote-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-card-solid);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px dashed rgba(232, 153, 165, 0.45);
  max-width: 580px;
  margin: 0 auto 48px;
  text-align: center;
}

.scrapbook-quote-pill p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--pink-deep);
  margin: 0;
}

.quote-flower {
  font-size: 1.1rem;
}

/* Grid Scrapbook */
.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 30px;
  margin-bottom: 40px;
}

/* Polaroid Card */
.polaroid-card {
  background: #FFFFFF;
  padding: 14px 14px 22px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.polaroid-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(232, 153, 165, 0.25);
  z-index: 10;
}

/* Cinta adhesiva washi tape decorativa */
.tape-strip {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: rgba(245, 214, 216, 0.85);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-left: 2px dashed rgba(255, 255, 255, 0.5);
  border-right: 2px dashed rgba(255, 255, 255, 0.5);
  z-index: 2;
  opacity: 0.9;
}

.tape-strip.top-tape-alt {
  background: rgba(232, 222, 238, 0.85);
  transform: translateX(-50%) rotate(-2deg);
}

/* Contenedor de la foto */
.photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #F0EAE1;
  border-radius: 3px;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-wrapper-contain {
  background: radial-gradient(circle, #FFFFFF 55%, #F7EFE8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-wrapper-contain img {
  object-fit: contain;
  padding: 10px;
}

.polaroid-card:hover .photo-wrapper img {
  transform: scale(1.05);
}

.photo-overlay-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: 0.75s ease;
}

.polaroid-card:hover .photo-overlay-shine {
  left: 180%;
}

/* Detalles para My Little Pony */
.mlp-wrapper {
  aspect-ratio: 4 / 3.4;
}

.mlp-mini-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 65px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(232, 153, 165, 0.4);
}

/* Pie de la polaroid */
.polaroid-caption {
  padding-top: 16px;
  text-align: center;
  position: relative;
}

.polaroid-caption .sticker {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 4px;
}

.caption-handwritten {
  font-family: var(--font-script);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 6px;
}

.caption-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pink-rose);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Banner Intercalado */
.scrapbook-banner-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 235, 234, 0.8));
  border-radius: var(--radius-md);
  padding: 24px 32px;
  border: 1px solid rgba(232, 153, 165, 0.4);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.banner-quote-icon {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--pink-rose);
  line-height: 1;
}

.banner-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-style: italic;
  color: var(--text-main);
  margin: 0;
}

.banner-sparkle {
  font-size: 1.2rem;
}

/* Frases al pie del scrapbook */
.scrapbook-footer-quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.quote-card-subtle {
  background: var(--bg-card-solid);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 214, 216, 0.6);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.quote-card-subtle.accent-pink {
  background: rgba(249, 235, 234, 0.5);
}

.quote-card-subtle .star-accent {
  color: var(--pink-deep);
  font-size: 1.15rem;
  line-height: 1.4;
}

.quote-card-subtle p {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   SECCIÓN 4: UNA CARTITA PARA VOS
   ========================================================================== */
.letter-section {
  position: relative;
}

.letter-container {
  max-width: 760px;
}

.envelope-card {
  background: var(--bg-letter);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(224, 169, 109, 0.2);
  border: 1px solid rgba(232, 153, 165, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.envelope-card:hover {
  box-shadow: var(--shadow-lg), 0 12px 36px rgba(232, 153, 165, 0.2);
}

.envelope-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 36px 12px;
  border-bottom: 1px dashed rgba(232, 153, 165, 0.3);
}

.postmark {
  border: 2px dashed rgba(208, 112, 128, 0.5);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  opacity: 0.75;
}

.postmark-circle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pink-deep);
}

.postmark-date {
  font-size: 0.6rem;
  color: var(--pink-rose);
  letter-spacing: 0.05em;
}

/* Sello de Cera Romántico */
.wax-seal {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 35% 35%, #E26D82, #B83A53);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  box-shadow: 0 4px 10px rgba(184, 58, 83, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wax-seal:hover {
  transform: scale(1.08) rotate(5deg);
}

.seal-icon {
  font-size: 1.5rem;
  color: #FFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Papel de la Carta */
.letter-paper {
  padding: 44px 50px 60px;
  position: relative;
  background-image:
    linear-gradient(rgba(232, 153, 165, 0.08) 1px, transparent 1px);
  background-size: 100% 32px;
  background-position: 0 24px;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  color: var(--pink-deep);
  margin-bottom: 24px;
}

.letter-content p {
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text-main);
  margin-bottom: 22px;
}

.letter-highlight-word {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pink-deep);
  letter-spacing: 0.04em;
  margin: 12px 0 16px !important;
}

.letter-congratulation {
  background: rgba(249, 235, 234, 0.6);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--pink-rose);
  font-weight: 500;
}

.letter-signature-block {
  margin-top: 40px;
  text-align: right;
}

.letter-farewell {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.letter-author {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pink-deep);
}

.letter-flower-stamp {
  position: absolute;
  bottom: 24px;
  left: 36px;
  font-size: 2.5rem;
  opacity: 0.35;
  user-select: none;
}

/* ==========================================================================
   SECCIÓN 5: UN PEQUEÑO RECORDATORIO
   ========================================================================== */
.reminder-section {
  position: relative;
}

.reminder-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.reminder-card {
  background: var(--bg-card-solid);
  border-radius: var(--radius-md);
  padding: 38px 24px 34px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(245, 214, 216, 0.6);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.reminder-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(232, 153, 165, 0.3);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F5D6D8, #E899A5, #D07080);
}

.card-icon-wrap {
  width: 58px;
  height: 58px;
  background: rgba(249, 235, 234, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(232, 153, 165, 0.35);
  transition: transform 0.4s ease;
}

.reminder-card:hover .card-icon-wrap {
  transform: scale(1.15) rotate(8deg);
}

.reminder-emoji {
  font-size: 1.6rem;
}

.reminder-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pink-deep);
  margin-bottom: 12px;
  line-height: 1.35;
}

.reminder-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN 6: EL FINAL PARA MI PRICESS
   ========================================================================== */
.finale-section {
  padding-bottom: 100px;
}

.finale-container {
  max-width: 680px;
}

.finale-card {
  background: var(--bg-card-solid);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(245, 214, 216, 0.7);
  position: relative;
  overflow: hidden;
}

.finale-sparkles .sparkle-float {
  position: absolute;
  color: var(--warm-gold);
  font-size: 1.2rem;
  animation: float-sparkle 3s infinite ease-in-out alternate;
  pointer-events: none;
  opacity: 0.75;
}

.sparkle-float.s1 {
  top: 20px;
  left: 30px;
  animation-delay: 0s;
}

.sparkle-float.s2 {
  top: 30px;
  right: 40px;
  animation-delay: 0.8s;
}

.sparkle-float.s3 {
  bottom: 40px;
  left: 40px;
  animation-delay: 1.5s;
}

.sparkle-float.s4 {
  bottom: 30px;
  right: 30px;
  animation-delay: 2.2s;
}

@keyframes float-sparkle {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0.4;
  }

  100% {
    transform: translateY(-10px) scale(1.2);
    opacity: 0.9;
  }
}

.finale-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.finale-subheadline {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 36px;
}

.finale-action-wrapper {
  margin-bottom: 24px;
}

.finale-btn {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* Mensaje secreto final */
.final-secret-box {
  margin-top: 36px;
  animation: fadeInSecret 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSecret {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.secret-box-inner {
  background: linear-gradient(145deg, #FFFDF9, #FAF2F3);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px dashed rgba(232, 153, 165, 0.6);
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.secret-ribbon-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink-rose);
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(232, 153, 165, 0.4);
}

.secret-body {
  margin-top: 8px;
}

.secret-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
  margin-bottom: 18px;
}

.secret-greeting {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 600;
  color: var(--pink-deep);
  margin-bottom: 20px;
}

.secret-lead-line {
  font-style: italic;
  color: var(--text-muted);
}

.secret-highlight {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pink-deep);
  background: rgba(249, 235, 234, 0.7);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
}

.secret-cheer {
  font-weight: 600;
  color: var(--text-main);
}

.secret-end {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Corazón palpitante */
.pulsing-heart-wrap {
  margin: 32px 0 10px;
}

.pulsing-heart {
  display: inline-block;
  font-size: 2.2rem;
  animation: heart-beat 1.6s infinite ease-in-out;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(208, 112, 128, 0.35));
}

@keyframes heart-beat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.22);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.15);
  }

  70% {
    transform: scale(1);
  }
}

.finale-signature {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 214, 216, 0.6);
}

.signature-line {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BOTÓN VOLVER ARRIBA
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--pink-deep);
  border: 1px solid rgba(232, 153, 165, 0.4);
  box-shadow: 0 4px 14px rgba(92, 53, 62, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition-smooth);
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--pink-rose);
  color: #FFF;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(232, 153, 165, 0.4);
}

.top-tooltip {
  display: none;
}

/* ==========================================================================
   ANIMACIONES AL HACER SCROLL (INTERSECTION OBSERVER)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Partículas interactivas que flotan al hacer tap/clic */
.click-heart-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  user-select: none;
  font-size: 1.4rem;
  animation: float-away 1.1s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes float-away {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -80px) scale(1.2) rotate(var(--rot, 15deg));
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -130px) scale(1) rotate(var(--rot, 25deg));
  }
}

/* ==========================================================================
   RESPONSIVIDAD Y OPTIMIZACIÓN MÓVIL (PRIORIDAD WHATSAPP / CELULARES)
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero-card {
    padding: 36px 20px;
    border-radius: var(--radius-md);
  }

  .defense-card {
    padding: 40px 22px;
    border-radius: var(--radius-md);
  }

  .corner-ribbon {
    display: none;
    /* Mejor experiencia en móviles pequeños */
  }

  /* Scrapbook en 1 columna en móvil para que las fotos sean grandes y detalladas */
  .scrapbook-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .polaroid-card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .scrapbook-footer-quotes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .letter-paper {
    padding: 30px 22px 40px;
    background-size: 100% 28px;
  }

  .envelope-top-bar {
    padding: 18px 20px 10px;
  }

  .postmark {
    width: 60px;
    height: 60px;
  }

  .wax-seal {
    width: 48px;
    height: 48px;
  }

  .reminder-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reminder-card {
    padding: 28px 20px;
  }

  .finale-card {
    padding: 40px 22px;
    border-radius: var(--radius-md);
  }

  .secret-box-inner {
    padding: 32px 18px;
  }

  .btn-primary {
    padding: 15px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-card .badge-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* ==========================================================================
   ACCESIBILIDAD: REDUCCIÓN DE MOVIMIENTO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #ambient-canvas {
    display: none;
  }
}