
/* ==========================================
   UN UNIVERSO PARA TI
   Diseño romántico · Diciembre 2026
========================================== */

:root {
  --cream: #faf6f0;
  --cream-dark: #f2eae0;
  --white: #fffdf9;
  --rose: #b77b83;
  --rose-light: #e9cdd0;
  --rose-pale: #f5e8e7;
  --wine: #713f4b;
  --wine-dark: #512d38;
  --gold: #b99b72;
  --text: #493e3d;
  --muted: #877b77;
  --line: #e9dcd4;

  --font-body: "DM Sans", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", cursive;

  --shadow-soft: 0 15px 50px rgba(86, 54, 54, 0.07);
  --shadow-card: 0 20px 60px rgba(93, 55, 59, 0.09);
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--rose-light);
  color: var(--wine-dark);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

main {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 em,
h2 em {
  color: var(--rose);
  font-weight: 400;
}

.section-padding {
  padding: 115px 7%;
}

.small-label,
.section-number,
.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-number {
  color: var(--rose);
}

.section-heading {
  margin-bottom: 65px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2 {
  margin-top: 18px;
  font-size: clamp(35px, 4.5vw, 60px);
  line-height: 1.3;
  letter-spacing: -1.5px;
}

.section-heading > p {
  max-width: 490px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ==========================================
   NAVBAR
========================================== */

.navbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
}

.brand {
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
}

.brand span {
  padding-left: 3px;
  color: var(--rose);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 37px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--rose);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: var(--wine);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-date {
  color: var(--rose);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* ==========================================
   FONDO Y ESTRELLAS
========================================== */

.background-decoration {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 1900px;
  overflow: hidden;
  pointer-events: none;
}

.floating-star {
  position: absolute;
  color: var(--gold);
  opacity: 0.5;
  animation: floatStar 7s ease-in-out infinite;
}

.s1 { top: 7%; left: 9%; font-size: 16px; }
.s2 { top: 19%; right: 12%; font-size: 23px; animation-delay: -2s; }
.s3 { top: 30%; left: 17%; font-size: 12px; animation-delay: -4s; }
.s4 { top: 41%; right: 19%; font-size: 19px; animation-delay: -1s; }
.s5 { top: 64%; left: 7%; font-size: 17px; animation-delay: -3s; }
.s6 { top: 87%; right: 9%; font-size: 13px; animation-delay: -5s; }

@keyframes floatStar {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-16px) rotate(18deg);
    opacity: 0.8;
  }
}

/* ==========================================
   PROGRESS BAR
========================================== */

.progress-bar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--rose);
}

/* ==========================================
   HERO
========================================== */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 130px 22px 115px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 38%,
      rgba(233, 205, 208, 0.25),
      transparent 47%
    ),
    var(--cream);
}

.hero-glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 540px;
  height: 540px;
  max-width: 95vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(237, 205, 205, 0.23),
    transparent 68%
  );
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
}

.eyebrow {
  display: inline-block;
  color: var(--rose);
  letter-spacing: 3.6px;
}

/* Ilustración de rosa */

.hero-illustration {
  position: relative;
  display: flex;
  width: 220px;
  height: 220px;
  align-items: center;
  justify-content: center;
  margin: 25px auto 25px;
}

.rose-circle {
  position: relative;
  display: grid;
  width: 145px;
  height: 145px;
  place-items: center;
  border: 1px solid rgba(183, 123, 131, 0.25);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.58);
  box-shadow: 0 20px 65px rgba(183, 123, 131, 0.10);
}

.main-rose {
  display: block;
  font-size: 70px;
  line-height: 1;
  filter: drop-shadow(0 12px 11px rgba(94, 44, 56, 0.16));
  animation: roseFloat 5s ease-in-out infinite;
}

.illustration-orbit {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(185, 155, 114, 0.28);
  border-radius: 50%;
}

.orbit-one {
  transform: rotate(-25deg) scaleY(0.70);
}

.orbit-two {
  transform: rotate(35deg) scaleY(0.70);
}

.orbit-star {
  position: absolute;
  color: var(--gold);
}

.star-one {
  top: 17px;
  right: 27px;
  font-size: 18px;
}

.star-two {
  bottom: 29px;
  left: 18px;
  font-size: 24px;
}

.star-three {
  right: 8px;
  bottom: 70px;
  font-size: 12px;
}

@keyframes roseFloat {
  0%, 100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-9px) rotate(3deg);
  }
}

.hero h1 {
  margin: 0 auto 25px;
  color: var(--wine-dark);
  font-size: clamp(43px, 6vw, 82px);
  line-height: 1.18;
  letter-spacing: -2.8px;
}

.hero-description {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.second-description {
  margin-top: 12px;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 37px;
  padding: 13px 26px;
  border: 1px solid var(--wine);
  border-radius: 3px;
  background: var(--wine);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition:
    background 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.primary-button:hover {
  background: var(--wine-dark);
  box-shadow: 0 10px 30px rgba(113, 63, 75, 0.2);
  transform: translateY(-3px);
}

.primary-button span {
  font-size: 18px;
  font-weight: 400;
}

.hero-footnote {
  margin-top: 27px;
  color: var(--rose);
  font-family: var(--font-script);
  font-size: 26px;
}

.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 2px;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 35px;
  background: var(--rose);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scaleY(0.65);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ==========================================
   INTRODUCCIÓN
========================================== */

.intro-section {
  background: var(--white);
}

.intro-section .section-heading {
  text-align: center;
}

.intro-grid {
  display: grid;
  max-width: 1080px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 100px;
  margin: auto;
}

.intro-visual {
  min-width: 0;
}

.decorative-frame {
  position: relative;
  display: flex;
  min-height: 460px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #ebd8d5;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(253, 249, 246, 1),
      rgba(239, 221, 219, 0.7)
    );
}

.decorative-frame::before {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(183, 123, 131, 0.25);
  content: "";
  pointer-events: none;
}

.little-planet {
  position: relative;
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, #fffcf8, #e6cac7);
  box-shadow:
    inset -15px -18px 30px rgba(157, 100, 113, 0.12),
    0 30px 50px rgba(120, 77, 78, 0.12);
  animation: roseFloat 6s ease-in-out infinite;
}

.planet-rose {
  font-size: 85px;
  line-height: 1;
}

.planet-star {
  position: absolute;
  color: var(--gold);
  font-size: 23px;
}

.pstar1 { top: -33px; left: -28px; }
.pstar2 { right: -43px; top: 40px; }
.pstar3 { bottom: -27px; left: 8px; }

.visual-caption {
  position: absolute;
  bottom: 39px;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  text-align: center;
}

.intro-text .small-label {
  color: var(--rose);
}

.intro-text h3 {
  margin: 20px 0;
  color: var(--wine);
  font-size: 31px;
  line-height: 1.4;
}

.intro-text p {
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.1;
}

.handwritten-note {
  margin-top: 25px;
  color: var(--rose);
  font-family: var(--font-script);
  font-size: 32px;
  line-height: 1.3;
}

/* ==========================================
   RAZONES
========================================== */

.reasons-section {
  background: var(--cream);
}

.reasons-grid {
  display: grid;
  max-width: 1120px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: auto;
}

.reason-card {
  position: relative;
  min-height: 280px;
  padding: 32px 24px 30px;
  border: 1px solid var(--line);
  background: var(--white);
  transition:
    transform 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}

.reason-card:hover {
  z-index: 2;
  border-color: var(--rose-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-8px);
}

.reason-index {
  position: absolute;
  top: 17px;
  right: 19px;
  color: #c9aaa5;
  font-size: 10px;
}

.reason-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-pale);
  color: var(--rose);
  font-size: 27px;
}

.reason-card h3 {
  margin: 26px 0 14px;
  color: var(--wine);
  font-size: 21px;
}

.reason-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}

/* ==========================================
   RECUERDOS
========================================== */

.memories-section {
  overflow: hidden;
  background: var(--white);
}

.polaroid-gallery {
  display: flex;
  max-width: 1060px;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 90px auto 65px;
}

.polaroid {
  width: 29%;
  padding: 12px 12px 15px;
  background: #fff;
  box-shadow:
    0 12px 35px rgba(40, 30, 30, 0.15);
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}

.polaroid-one {
  transform: rotate(-8deg);
}

.polaroid-two {
  z-index: 2;
  transform: rotate(3deg) translateY(-20px);
}

.polaroid-three {
  transform: rotate(8deg);
}

.polaroid-one:hover {
  transform: rotate(-3deg) translateY(-13px);
}

.polaroid-two:hover {
  transform: rotate(0) translateY(-30px);
}

.polaroid-three:hover {
  transform: rotate(3deg) translateY(-13px);
}

.polaroid:hover {
  z-index: 4;
  box-shadow: 0 25px 55px rgba(40, 30, 30, 0.18);
}

.photo-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1.1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.photo-placeholder span {
  font-family: var(--font-display);
  font-size: 65px;
  line-height: 1;
}

.photo-placeholder small {
  font-size: 11px;
  letter-spacing: 0.5px;
}

.photo-one {
  background: linear-gradient(145deg, #eacfc7, #c98f9b);
  color: #fff9f7;
}

.photo-two {
  background: linear-gradient(145deg, #eadbc8, #bc997c);
  color: #fff9f0;
}

.photo-three {
  background: linear-gradient(145deg, #e7d6d6, #b9a3b7);
  color: #fff9f7;
}

.polaroid figcaption {
  padding: 17px 4px 5px;
  color: #6e555b;
  font-family: var(--font-script);
  font-size: clamp(18px, 2.3vw, 30px);
  text-align: center;
}

.memories-footer {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  text-align: center;
}

/* ==========================================
   CITA
========================================== */

.quote-section {
  position: relative;
  display: flex;
  min-height: 490px;
  align-items: center;
  justify-content: center;
  padding: 100px 22px;
  overflow: hidden;
  background: var(--wine);
  color: white;
  text-align: center;
}

.quote-section::before,
.quote-section::after {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.quote-section::before {
  top: -220px;
  left: -130px;
}

.quote-section::after {
  right: -160px;
  bottom: -220px;
}

.quote-stars {
  position: absolute;
  top: 49px;
  color: #dfc69d;
  font-size: 16px;
  letter-spacing: 8px;
}

.quote-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.quote-inner .section-number {
  color: #dfc69d;
}

.quote-inner blockquote {
  margin: 29px auto;
  font-family: var(--font-display);
  font-size: clamp(27px, 4.1vw, 48px);
  font-style: italic;
  line-height: 1.55;
}

.quote-divider {
  width: 45px;
  height: 1px;
  margin: 27px auto;
  background: #cfaeb0;
}

.quote-inner p {
  color: #e0cfd0;
  font-size: 12px;
  line-height: 1.9;
}

.quote-inner p em {
  color: #efdbcb;
  font-family: var(--font-display);
  font-size: 15px;
}

/* ==========================================
   CARTA Y SOBRE
========================================== */

.letter-section {
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(240, 218, 217, 0.5),
      transparent 65%
    ),
    var(--cream);
}

.envelope-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
}

.envelope-button {
  position: relative;
  width: 330px;
  max-width: 90%;
  height: 250px;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
}

.envelope {
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 300px;
  height: 195px;
  max-width: 100%;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 18px rgba(106, 63, 70, 0.18));
}

.envelope-back {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 5px;
  background: #d7a7a9;
}

.envelope-paper {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 11%;
  width: 78%;
  height: 85%;
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 1px 10px rgba(60, 30, 30, 0.08);
  transition: transform 0.7s ease;
}

.envelope-paper::before {
  position: absolute;
  top: 23px;
  left: 50%;
  width: 60%;
  height: 1px;
  background: #e4cecb;
  box-shadow:
    0 18px #e4cecb,
    0 36px #e4cecb,
    0 54px #e4cecb;
  content: "";
  transform: translateX(-50%);
}

.envelope-front {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 0 0 5px 5px;
  background: #eac6c6;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}

.envelope-front::after {
  position: absolute;
  inset: 0;
  background: #dcb2b4;
  clip-path: polygon(0 100%, 50% 40%, 100% 100%);
  content: "";
}

.envelope-flap {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: #d7a7a9;
  clip-path: polygon(0 0, 50% 95%, 100% 0);
  transform-origin: top;
  transition: transform 0.65s ease, z-index 0s 0.3s;
}

.envelope-seal {
  position: absolute;
  z-index: 6;
  top: 80px;
  left: 50%;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 4px 10px rgba(40, 20, 20, 0.1);
  color: #fff6ef;
  font-size: 24px;
  transform: translateX(-50%);
  transition: opacity 0.3s, transform 0.4s;
}

.envelope-button:hover .envelope {
  filter: drop-shadow(0 27px 22px rgba(106, 63, 70, 0.24));
}

.envelope-wrapper.opened .envelope-flap {
  z-index: 0;
  transform: rotateX(180deg);
}

.envelope-wrapper.opened .envelope-paper {
  transform: translateY(-65px);
  transition-delay: 0.25s;
}

.envelope-wrapper.opened .envelope-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
}

.envelope-hint {
  margin-top: 9px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

.letter-content {
  width: min(100%, 700px);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition:
    max-height 0.9s ease,
    opacity 0.6s ease,
    margin-top 0.5s ease,
    transform 0.6s ease,
    visibility 0.6s;
}

.envelope-wrapper.opened .letter-content {
  max-height: 2500px;
  margin-top: 40px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.letter-paper {
  position: relative;
  width: 100%;
  padding: 75px clamp(25px, 7vw, 80px);
  border: 1px solid #ecddd4;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.letter-paper::before,
.letter-paper::after {
  position: absolute;
  width: 45px;
  height: 45px;
  border-color: var(--rose-light);
  border-style: solid;
  content: "";
}

.letter-paper::before {
  top: 17px;
  left: 17px;
  border-width: 1px 0 0 1px;
}

.letter-paper::after {
  right: 17px;
  bottom: 17px;
  border-width: 0 1px 1px 0;
}

.letter-date {
  color: var(--rose);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.letter-paper h3 {
  margin: 24px 0 38px;
  color: var(--wine);
  font-size: clamp(29px, 4vw, 42px);
  font-style: italic;
}

.letter-paper > p {
  margin-bottom: 23px;
  color: #6c5b58;
  font-size: 14px;
  line-height: 2.2;
}

.letter-paper .letter-final {
  margin-top: 35px;
  margin-bottom: 0;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
}

.letter-final span {
  display: inline-block;
  margin-top: 10px;
  color: var(--rose);
  font-family: var(--font-script);
  font-size: 37px;
}

/* ==========================================
   ESTRELLA SECRETA
========================================== */

.secret-section {
  background: var(--white);
}

.secret-card {
  position: relative;
  max-width: 900px;
  min-height: 510px;
  margin: auto;
  padding: 77px 28px 65px;
  border: 1px solid #e9d7d6;
  background:
    radial-gradient(circle at top right, #f3dfdf, transparent 45%),
    radial-gradient(circle at bottom left, #f9f0e5, transparent 48%),
    #fcf7f4;
  text-align: center;
}

.secret-card::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(183, 123, 131, 0.15);
  content: "";
  pointer-events: none;
}

.secret-card .small-label {
  color: var(--rose);
}

.secret-card h2 {
  margin-top: 22px;
  color: var(--wine);
  font-size: clamp(33px, 4.5vw, 54px);
  line-height: 1.35;
}

.secret-card > p {
  max-width: 450px;
  margin: 23px auto 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.star-button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  margin: 5px auto 0;
  padding: 0 25px 10px;
  border: 0;
  background: none;
  color: var(--rose);
  cursor: pointer;
}

.clickable-star {
  color: var(--gold);
  font-size: 67px;
  line-height: 1.5;
  text-shadow: 0 0 30px rgba(185, 155, 114, 0.38);
  transition: transform 0.45s, text-shadow 0.45s;
  animation: starGlow 2.8s ease-in-out infinite;
}

.star-button:hover .clickable-star,
.star-button.activated .clickable-star {
  transform: scale(1.18) rotate(25deg);
  text-shadow: 0 0 38px rgba(185, 155, 114, 0.8);
}

.star-button span:last-child {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
}

@keyframes starGlow {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.secret-message {
  max-width: 470px;
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    max-height 0.6s ease,
    opacity 0.6s ease,
    transform 0.6s ease,
    margin 0.6s ease;
}

.secret-message.show {
  max-height: 300px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.secret-message > span {
  color: var(--gold);
  font-size: 21px;
}

.secret-message p {
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.8;
}

.sparkle-particle {
  position: absolute;
  z-index: 5;
  color: var(--gold);
  font-size: 18px;
  pointer-events: none;
  animation: sparkleBurst 1.2s ease-out forwards;
}

@keyframes sparkleBurst {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  to {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--tx)),
        calc(-50% + var(--ty))
      )
      scale(1.3);
  }
}

/* ==========================================
   FOOTER
========================================== */

.footer {
  position: relative;
  display: flex;
  min-height: 570px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 85px 25px 55px;
  background: #f2e9e4;
  text-align: center;
}

.footer-rose {
  margin-bottom: 15px;
  font-size: 55px;
  animation: roseFloat 6s ease-in-out infinite;
}

.footer-eyebrow {
  color: var(--rose);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
}

.footer h2 {
  margin: 24px 0;
  color: var(--wine);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.35;
}

.footer > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.footer-divider {
  width: 50px;
  height: 1px;
  margin: 35px 0 24px;
  background: var(--rose);
}

.footer-signature {
  color: var(--wine);
  font-family: var(--font-script);
  font-size: 27px;
}

.footer-bottom {
  margin-top: 60px;
  color: #a5938e;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
}

/* ==========================================
   ANIMACIONES DE ENTRADA
========================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(2) { transition-delay: 0.12s; }
.hero .reveal:nth-child(3) { transition-delay: 0.22s; }
.hero .reveal:nth-child(4) { transition-delay: 0.32s; }
.hero .reveal:nth-child(5) { transition-delay: 0.42s; }
.hero .reveal:nth-child(6) { transition-delay: 0.52s; }

.reasons-grid .reason-card:nth-child(2) {
  transition-delay: 0.1s;
}

.reasons-grid .reason-card:nth-child(3) {
  transition-delay: 0.2s;
}

.reasons-grid .reason-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* La galería conserva sus rotaciones */
.polaroid.reveal {
  opacity: 0;
}

.polaroid-one.reveal,
.polaroid-three.reveal,
.polaroid-two.reveal {
  transition: opacity 0.9s ease, transform 0.4s ease;
}

.polaroid-one.reveal.visible,
.polaroid-two.reveal.visible,
.polaroid-three.reveal.visible {
  opacity: 1;
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 1024px) {

  .section-padding {
    padding: 90px 6%;
  }

  .navbar {
    padding: 0 6%;
  }

  .intro-grid {
    gap: 45px;
  }

  .reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reason-card {
    min-height: 230px;
  }

  .polaroid-gallery {
    gap: 22px;
  }
}

/* ==========================================
   CELULARES
========================================== */

@media (max-width: 700px) {

  html {
    scroll-padding-top: 25px;
  }

  body {
    font-size: 14px;
  }

  .section-padding {
    padding: 77px 22px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: clamp(32px, 8vw, 43px);
    letter-spacing: -0.8px;
  }

  .section-heading > p {
    font-size: 13px;
  }

  /* Navbar */

  .navbar {
    height: 70px;
    padding: 0 23px;
  }

  .brand {
    font-size: 23px;
  }

  .nav-links {
    display: none;
  }

  .nav-date {
    font-size: 9px;
  }

  /* Hero */

  .hero {
    min-height: 100svh;
    padding: 100px 22px 100px;
  }

  .hero-glow {
    width: 360px;
    height: 360px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .hero-illustration {
    width: 190px;
    height: 190px;
    margin: 15px auto 20px;
  }

  .rose-circle {
    width: 125px;
    height: 125px;
  }

  .main-rose {
    font-size: 61px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 56px);
    letter-spacing: -1.5px;
    line-height: 1.3;
  }

  .hero-description {
    max-width: 370px;
    font-size: 12px;
    line-height: 2;
  }

  .primary-button {
    min-height: 50px;
    margin-top: 27px;
    padding: 11px 22px;
  }

  .hero-footnote {
    margin-top: 22px;
    font-size: 23px;
  }

  .scroll-indicator {
    bottom: 16px;
    font-size: 7px;
  }

  /* Intro */

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .decorative-frame {
    min-height: 340px;
  }

  .little-planet {
    width: 160px;
    height: 160px;
  }

  .planet-rose {
    font-size: 70px;
  }

  .visual-caption {
    bottom: 25px;
    font-size: 12px;
  }

  .intro-text h3 {
    font-size: 27px;
  }

  .intro-text p {
    font-size: 13px;
  }

  .handwritten-note {
    font-size: 30px;
  }

  /* Razones */

  .reasons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .reason-card {
    min-height: 240px;
    padding: 24px 16px;
  }

  .reason-icon {
    width: 45px;
    height: 45px;
    font-size: 23px;
  }

  .reason-card h3 {
    margin-top: 21px;
    font-size: 18px;
  }

  .reason-card p {
    font-size: 11px;
    line-height: 1.8;
  }

  /* Recuerdos */

  .polaroid-gallery {
    min-height: 630px;
    flex-direction: column;
    gap: 0;
    margin: 20px auto 30px;
  }

  .polaroid {
    width: min(235px, 68vw);
    margin: -10px auto;
  }

  .polaroid-one {
    margin-right: auto;
    margin-left: 3%;
    transform: rotate(-9deg);
  }

  .polaroid-two {
    margin-right: 2%;
    margin-left: auto;
    transform: rotate(8deg) translateY(-5px);
  }

  .polaroid-three {
    margin-right: auto;
    margin-left: 6%;
    transform: rotate(-6deg);
  }

  .polaroid figcaption {
    font-size: 24px;
  }

  .memories-footer {
    max-width: 280px;
    margin: 40px auto 0;
    font-size: 15px;
  }

  /* Cita */

  .quote-section {
    min-height: 410px;
    padding: 88px 26px;
  }

  .quote-inner blockquote {
    font-size: 29px;
  }

  /* Sobre */

  .envelope-button {
    height: 240px;
  }

  .envelope-wrapper.opened .letter-content {
    margin-top: 25px;
  }

  .letter-paper {
    padding: 55px 25px;
  }

  .letter-paper h3 {
    font-size: 30px;
  }

  .letter-paper > p {
    font-size: 13px;
    line-height: 2;
  }

  .letter-final span {
    font-size: 33px;
  }

  /* Secreto */

  .secret-card {
    min-height: 480px;
    padding: 70px 25px 50px;
  }

  .secret-card h2 {
    font-size: 36px;
  }

  .secret-card > p {
    font-size: 12px;
  }

  .secret-message p {
    font-size: 16px;
  }

  /* Footer */

  .footer {
    min-height: 530px;
    padding: 75px 22px 45px;
  }

  .footer h2 {
    font-size: 36px;
  }

  .footer > p {
    font-size: 12px;
  }

  .footer-signature {
    font-size: 25px;
  }
}

/* ==========================================
   CELULARES PEQUEÑOS
========================================== */

@media (max-width: 380px) {

  .hero h1 {
    font-size: 36px;
  }

  .hero-illustration {
    width: 160px;
    height: 160px;
  }

  .rose-circle {
    width: 110px;
    height: 110px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .reason-card {
    min-height: auto;
    padding: 25px;
  }

  .polaroid-gallery {
    min-height: 580px;
  }

  .envelope-button {
    transform: scale(0.9);
  }

  .secret-card h2 {
    font-size: 31px;
  }
}

/* ==========================================
   ACCESIBILIDAD
========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Ajuste final de las fotografías */
.polaroid-one.reveal.visible {
  transform: rotate(-8deg);
}

.polaroid-two.reveal.visible {
  transform: rotate(3deg) translateY(-20px);
}

.polaroid-three.reveal.visible {
  transform: rotate(8deg);
}

.polaroid-one.reveal.visible:hover {
  transform: rotate(-3deg) translateY(-13px);
}

.polaroid-two.reveal.visible:hover {
  transform: rotate(0) translateY(-30px);
}

.polaroid-three.reveal.visible:hover {
  transform: rotate(3deg) translateY(-13px);
}

@media (max-width: 700px) {
  .polaroid-one.reveal.visible {
    transform: rotate(-9deg);
  }

  .polaroid-two.reveal.visible {
    transform: rotate(8deg) translateY(-5px);
  }

  .polaroid-three.reveal.visible {
    transform: rotate(-6deg);
  }
}


/* GALERÍA POLAROID - TAMAÑO CORREGIDO */

.polaroid-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    max-width: 1000px;
    margin: 70px auto;
}

.polaroid {
    width: 260px;
    max-width: 100%;
    flex: 0 1 260px;
    padding: 12px 12px 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(40, 30, 30, 0.15);
}

/* Tamaño uniforme para todas las fotos */
.polaroid .memory-photo {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: auto;
}

.polaroid figcaption {
    padding: 14px 4px 5px;
    text-align: center;
    font-size: 23px;
    font-family: "Great Vibes", cursive;
    color: #6e555b;
}

/* Adaptación a celulares */
@media (max-width: 700px) {
    .polaroid-gallery {
        flex-direction: column;
        gap: 15px;
        margin: 40px auto;
    }

    .polaroid {
        width: 230px;
        flex: 0 0 auto;
    }

    .polaroid .memory-photo {
        height: 240px;
    }
}


/* ====================================
   NOTITAS SECRETAS DE LAS POLAROID
==================================== */

/* Galería */
.polaroid-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 35px;
    max-width: 1050px;
    margin: 70px auto;
    padding-bottom: 185px;
}

/* Contenedor individual */
.polaroid-item {
    position: relative;
    flex: 0 1 260px;
    min-width: 0;
    z-index: 1;
    padding-bottom: 5px;
}

/* Polaroid */
.polaroid-item .polaroid {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 12px 12px 18px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(40, 30, 30, 0.15);
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

/* Imágenes */
.polaroid-item .memory-photo {
    display: block;
    width: 100%;
    height: 270px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

/* Pie de foto */
.polaroid-item figcaption {
    padding: 14px 4px 5px;
    text-align: center;
    font-family: "Great Vibes", cursive;
    font-size: 23px;
    color: #6e555b;
}

/* La nota oculta */
.polaroid-note {
    position: absolute;
    z-index: -1;
    top: calc(100% - 125px);
    left: 5%;
    width: 90%;
    min-height: 165px;
    padding: 22px 20px 19px;
    background: #fff5e8;
    border: 1px solid #ead9c9;
    box-shadow: 0 10px 22px rgba(75, 43, 43, 0.12);
    text-align: center;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-25px);

    transition:
        transform 0.55s cubic-bezier(.2,.8,.2,1),
        opacity 0.35s ease,
        visibility 0.35s;
}

/* Papel con líneas suaves */
.polaroid-note::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(183, 123, 131, 0.16);
    pointer-events: none;
}

.note-heart {
    display: block;
    color: #b77b83;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 8px;
}

.polaroid-note p {
    color: #785c57;
    font-family: "Playfair Display", serif;
    font-size: 12px;
    font-style: italic;
    line-height: 1.7;
}

.note-signature {
    display: block;
    margin-top: 12px;
    color: #b77b83;
    font-family: "Great Vibes", cursive;
    font-size: 21px;
}

/* Elevar la foto activa */
.polaroid-item:hover,
.polaroid-item:focus-within {
    z-index: 10;
}

/* Animación: la nota sale hacia abajo */
.polaroid-item:hover .polaroid-note,
.polaroid-item:focus-within .polaroid-note {
    opacity: 1;
    visibility: visible;
    transform: translateY(145px);
}

/* Levantar ligeramente la fotografía */
.polaroid-item:hover .polaroid,
.polaroid-item:focus-within .polaroid {
    box-shadow: 0 20px 45px rgba(40, 30, 30, 0.2);
}

/* Inclinaciones originales */
.polaroid-item .polaroid-one.reveal.visible {
    transform: rotate(-8deg);
}

.polaroid-item .polaroid-two.reveal.visible {
    transform: rotate(3deg) translateY(-20px);
}

.polaroid-item .polaroid-three.reveal.visible {
    transform: rotate(8deg);
}

/* ====================================
   RESPONSIVE
==================================== */

@media (max-width: 700px) {

    .polaroid-gallery {
        flex-direction: column;
        align-items: center;
        gap: 175px;
        margin: 45px auto;
        padding-bottom: 125px;
    }

    .polaroid-item {
        width: 230px;
        flex: none;
    }

    .polaroid-item .memory-photo {
        height: 240px;
    }

    .polaroid-note {
        padding: 18px 15px;
    }

    .polaroid-note p {
        font-size: 11px;
    }

    .polaroid-item .polaroid-two.reveal.visible {
        transform: rotate(5deg);
    }

    .polaroid-item .polaroid-three.reveal.visible {
        transform: rotate(-5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .polaroid-note {
        transition: none;
    }
}


/* ========================================
   POLAROID: MOVIMIENTO + NOTITAS
======================================== */

/* Movimiento suave de las fotografías */
.polaroid-item .polaroid {
    transition:
        transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.5s ease !important;
    transform-origin: center center;
    will-change: transform;
}

/* Posiciones originales */
.polaroid-item .polaroid-one.reveal.visible {
    transform: rotate(-8deg);
}

.polaroid-item .polaroid-two.reveal.visible {
    transform: rotate(3deg) translateY(-20px);
}

.polaroid-item .polaroid-three.reveal.visible {
    transform: rotate(8deg);
}

/* FOTO 1: se levanta y gira ligeramente */
.polaroid-item:hover .polaroid-one.reveal.visible,
.polaroid-item:focus-within .polaroid-one.reveal.visible {
    transform: rotate(-3deg) translateY(-18px) scale(1.04);
}

/* FOTO 2: se endereza y se acerca */
.polaroid-item:hover .polaroid-two.reveal.visible,
.polaroid-item:focus-within .polaroid-two.reveal.visible {
    transform: rotate(0deg) translateY(-35px) scale(1.04);
}

/* FOTO 3: se levanta hacia el otro lado */
.polaroid-item:hover .polaroid-three.reveal.visible,
.polaroid-item:focus-within .polaroid-three.reveal.visible {
    transform: rotate(3deg) translateY(-18px) scale(1.04);
}

/* Sombra al interactuar */
.polaroid-item:hover .polaroid,
.polaroid-item:focus-within .polaroid {
    box-shadow:
        0 28px 55px rgba(70, 40, 45, 0.23);
}

/* Notita deslizándose */
.polaroid-note {
    transition:
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease,
        visibility 0.4s;
}

.polaroid-item:hover .polaroid-note,
.polaroid-item:focus-within .polaroid-note {
    transform: translateY(145px);
    opacity: 1;
    visibility: visible;
}

/* ========================================
   CELULARES
======================================== */

@media (max-width: 700px) {

    .polaroid-item:hover .polaroid-one.reveal.visible,
    .polaroid-item:focus-within .polaroid-one.reveal.visible {
        transform: rotate(-3deg) translateY(-12px) scale(1.03);
    }

    .polaroid-item:hover .polaroid-two.reveal.visible,
    .polaroid-item:focus-within .polaroid-two.reveal.visible {
        transform: rotate(0deg) translateY(-12px) scale(1.03);
    }

    .polaroid-item:hover .polaroid-three.reveal.visible,
    .polaroid-item:focus-within .polaroid-three.reveal.visible {
        transform: rotate(3deg) translateY(-12px) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .polaroid-item .polaroid,
    .polaroid-note {
        transition: none !important;
    }
}
