@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(circle at 20% 20%, rgba(255, 190, 210, 0.35), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255, 220, 170, 0.35), transparent 25%),
    #fff7f8;

  color: #59434a;

  font-family: 'Quicksand', sans-serif;
}

/* CONTENEDOR PRINCIPAL */

.page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 50px 20px;

  position: relative;
  overflow: hidden;
}

/* CARTA */

.card {
  width: min(680px, 100%);

  background: rgba(255, 255, 255, 0.82);

  border: 1px solid #f3d5dc;

  border-radius: 25px;

  padding: 55px 60px;

  text-align: center;

  box-shadow:
    0 15px 50px rgba(180, 120, 140, 0.15),
    0 3px 10px rgba(180, 120, 140, 0.08);

  position: relative;
  z-index: 2;
}

/* PEQUEÑO TÍTULO */

.small-title {
  font-size: 13px;

  color: #c58b9c;

  letter-spacing: 2px;

  text-transform: uppercase;

  margin-bottom: 20px;
}

/* TÍTULO */

h1 {
  font-family: 'Playfair Display', serif;

  font-size: clamp(38px, 7vw, 62px);

  line-height: 1.05;

  font-weight: 400;

  color: #8f5367;

  margin: 0;
}

/* SEPARADOR */

.divider {
  margin: 28px 0;

  color: #d69aaa;

  font-size: 18px;
}

/* TEXTO */

.intro {
  font-size: 16px;

  line-height: 1.8;

  max-width: 540px;

  margin: 18px auto;

  color: #725b63;
}

.intro strong {
  color: #9c6074;
}

/* FRASE */

.quote {
  margin: 35px auto;

  padding: 25px;

  background: #fff2f5;

  border-left: 3px solid #dfa0b2;

  border-radius: 12px;

  font-family: 'Playfair Display', serif;

  font-style: bold;

  font-size: 20px;

  line-height: 1.6;

  color: #875568;
}

/* BOTÓN */

.button {
  display: inline-block;

  padding: 13px 28px;

  margin-top: 10px;

  border-radius: 999px;

  background: #d989a1;

  color: white;

  text-decoration: none;

  font-weight: 600;

  transition: all 0.25s ease;

  box-shadow: 0 6px 15px rgba(200, 120, 145, 0.25);
}

.button:hover {
  transform: translateY(-3px);

  background: #c97891;

  box-shadow: 0 10px 20px rgba(200, 120, 145, 0.3);
}

/* PIE */

.footer {
  margin-top: 35px;

  font-size: 12px;

  color: #c19aa6;

  letter-spacing: 1px;
}

/* DECORACIONES */

.decor {
  position: absolute;

  pointer-events: none;

  z-index: 1;
}

.flower {
  font-size: 45px;

  opacity: 0.7;

  animation: float 5s ease-in-out infinite;
}

.flower-1 {
  top: 12%;
  left: 12%;
}

.flower-2 {
  bottom: 12%;
  right: 12%;

  animation-delay: 1s;
}

.flower-3 {
  top: 20%;
  right: 18%;

  font-size: 32px;

  animation-delay: 2s;
}

.heart {
  font-family: serif;

  font-size: 55px;

  color: #e5a0b4;

  opacity: 0.5;
}

.heart-1 {
  bottom: 15%;
  left: 15%;

  transform: rotate(-15deg);
}

.heart-2 {
  top: 15%;
  right: 10%;

  transform: rotate(15deg);
}

/* ANIMACIÓN */

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* MÓVIL */

@media (max-width: 600px) {

  .page {
    padding: 25px 15px;
  }

  .card {
    padding: 40px 25px;
  }

  .flower {
    font-size: 30px;
  }

  .heart {
    font-size: 35px;
  }

  .intro {
    font-size: 15px;
  }

  .quote {
    font-size: 18px;
  }
}

/* =====================================================
   CARTA — UN RINCÓN CÁLIDO
   ===================================================== */

.letter-page {
  background:
    radial-gradient(circle at 10% 15%, rgba(214, 161, 133, 0.20), transparent 25%),
    radial-gradient(circle at 90% 30%, rgba(180, 128, 120, 0.15), transparent 25%),
    radial-gradient(circle at 30% 90%, rgba(226, 183, 151, 0.18), transparent 30%),
    #eadcc8;

  color: #59463f;

  min-height: 100vh;
}


/* CONTENEDOR */

.letter-container {
  width: min(850px, 100%);

  margin: auto;

  padding: 45px 20px 80px;

  position: relative;
}


/* VOLVER */

.back-link {
  text-align: center;

  margin-bottom: 25px;
}

.back-link a {
  color: #86645c;

  text-decoration: none;

  font-size: 14px;

  background: rgba(255, 239, 218, 0.65);

  padding: 9px 17px;

  border-radius: 30px;

  border: 1px solid #d7b8a3;

  transition: 0.2s ease;
}

.back-link a:hover {
  background: #f6e4d2;

  transform: translateY(-2px);
}


/* PAPEL */

.letter {
  background:
    radial-gradient(circle at 15% 20%, rgba(160, 110, 80, 0.035), transparent 25%),
    radial-gradient(circle at 80% 80%, rgba(160, 110, 80, 0.035), transparent 25%),
    #f5ead8;

  border: 1px solid #d9bea3;

  border-radius: 7px;

  padding: 65px 75px;

  box-shadow:
    0 20px 50px rgba(88, 57, 42, 0.18),
    0 3px 7px rgba(88, 57, 42, 0.10);

  position: relative;
}


/* BORDE INTERIOR */

.letter::before {
  content: "";

  position: absolute;

  inset: 12px;

  border: 1px solid rgba(174, 129, 105, 0.22);

  pointer-events: none;

  border-radius: 4px;
}


/* CABECERA */

.letter-header {
  text-align: center;

  padding-bottom: 35px;

  border-bottom: 1px dashed #cdb19a;

  margin-bottom: 40px;
}

.tiny-decoration {
  color: #a87872;

  letter-spacing: 6px;

  font-size: 15px;

  margin-bottom: 20px;
}

.letter-header h1 {
  font-family: 'Playfair Display', serif;

  color: #79564e;

  font-size: clamp(38px, 7vw, 62px);

  font-weight: 400;

  line-height: 1.1;

  margin: 0;
}

.subtitle {
  color: #a27d70;

  font-size: 14px;

  font-style: bold;

  margin-top: 15px;
}

.ornament {
  color: #b78378;

  margin-top: 25px;

  letter-spacing: 2px;
}


/* TEXTO */

.letter-section {
  margin-bottom: 55px;

  position: relative;
  z-index: 2;
}

.letter-section p,
.ending p {
  font-family: 'Quicksand', sans-serif;

  font-size: 16px;

  line-height: 2;

  color: #624f48;

  margin: 0 0 24px;
}


/* PRIMERA FRASE */

.big-opening {
  font-family: 'Playfair Display', serif !important;

  font-size: 31px !important;

  color: #895f58 !important;

  font-style: bold;

  text-align: center;

  margin-bottom: 35px !important;
}


/* FRASES DESTACADAS */

.highlight {
  font-family: 'Playfair Display', serif;

  font-size: 28px;

  line-height: 1.35;

  text-align: center;

  color: #855a54;

  margin: 45px 15px;

  font-style: bold;
}


/* FRASES GRANDES */

.quote-big {
  font-family: 'Playfair Display', serif;

  font-size: 32px;

  color: #895d56;

  text-align: center;

  margin: 35px 0;

  font-style: bold;
}


/* FRASES SOBRE FLORES */

.flower-quote {
  font-family: 'Playfair Display', serif;

  color: #8d5b58;

  font-size: 25px;

  text-align: center;

  font-style: bold;

  background: #ead7c1;

  border-radius: 12px;

  padding: 22px;

  margin: 35px 0;

  border: 1px solid #d4b29b;
}


/* SEPARADORES */

.memory-break {
  text-align: center;

  color: #b98279;

  font-size: 27px;

  margin: 45px 0;

  letter-spacing: 12px;
}


/* LISTA DE COSAS */

.little-list {
  text-align: center;

  font-family: 'Playfair Display', serif !important;

  font-style: bold;

  font-size: 19px !important;

  line-height: 2.2 !important;

  color: #805d56 !important;
}


/* CAJITA ACOGEDORA */

.cozy-box {
  background: #e8d5bc;

  border: 1px solid #d1b297;

  border-radius: 15px;

  padding: 30px;

  text-align: center;

  color: #8c675b;

  font-size: 25px;

  margin: 50px 0;
}

.cozy-box p {
  font-family: 'Playfair Display', serif;

  font-size: 23px;

  font-style: bold;

  margin: 15px 0 0;
}


/* FAMILIA */

.family-section {
  position: relative;
}

.birthday {
  background: #ead6bd;

  border: 1px dashed #c79f87;

  border-radius: 15px;

  padding: 30px;

  margin: 35px 0;

  text-align: center;

  color: #8a6258;

  font-size: 24px;
}

.birthday p {
  font-size: 16px;

  margin-bottom: 15px;
}


/* ESPACIO PARA FOTOS */

.image-placeholder {
  min-height: 260px;

  background: #e7d5be;

  border: 2px dashed #c7a58c;

  border-radius: 12px;

  margin: 50px 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  color: #9b7468;
}

.image-placeholder span {
  font-size: 50px;

  margin-bottom: 15px;
}

.image-placeholder p {
  font-family: 'Playfair Display', serif;

  font-style: bold;

  line-height: 1.6;

  margin: 0;
}

.image-placeholder.large {
  min-height: 330px;

  background:
    linear-gradient(rgba(231, 213, 190, 0.8), rgba(231, 213, 190, 0.8)),
    #d9c0a4;
}

.image-placeholder.large span {
  font-size: 70px;
}


/* FINAL */

.final-section {
  margin-top: 70px;
}

.ending {
  border-top: 1px dashed #cdb19a;

  padding-top: 50px;

  margin-top: 40px;
}

.final-quote {
  font-family: 'Playfair Display', serif;

  font-size: clamp(34px, 6vw, 52px);

  color: #80554f;

  text-align: center;

  font-style: bold;

  margin: 50px 0;

  line-height: 1.2;
}

.final-message {
  margin-top: 55px;

  padding: 35px;

  background: #e5cfb3;

  border-radius: 18px;

  border: 1px solid #c9a98d;

  text-align: center;

  font-family: 'Playfair Display', serif;

  font-size: 21px;

  line-height: 1.7;

  color: #73534c;
}

.final-message span {
  display: block;

  margin-top: 20px;

  font-size: 27px;

  color: #895b54;

  font-style: bold;
}


/* PIE */

.letter-footer {
  text-align: center;

  margin-top: 70px;

  padding-top: 30px;

  border-top: 1px dashed #cdb19a;

  color: #a27c6f;

  position: relative;

  z-index: 2;
}

.letter-footer p {
  font-family: 'Playfair Display', serif;

  font-style: bold;

  font-size: 16px;
}

.letter-footer a {
  color: #8d625b;

  text-decoration: none;

  font-size: 14px;
}


/* DECORACIONES */

.floating {
  position: fixed;

  pointer-events: none;

  z-index: 0;

  opacity: 0.55;
}

.flower-one {
  top: 8%;

  left: 5%;

  font-size: 45px;

  transform: rotate(-15deg);
}

.flower-two {
  bottom: 10%;

  right: 5%;

  font-size: 50px;

  transform: rotate(15deg);
}

.flower-three {
  top: 45%;

  right: 3%;

  font-size: 35px;
}

.heart-one {
  top: 25%;

  left: 4%;

  font-family: serif;

  font-size: 55px;

  color: #b98279;
}

.heart-two {
  top: 70%;

  left: 7%;

  font-family: serif;

  font-size: 40px;

  color: #a97870;
}

.heart-three {
  top: 15%;

  right: 6%;

  font-family: serif;

  font-size: 45px;

  color: #b98279;
}


/* MÓVIL */

@media (max-width: 700px) {

  .letter-container {
    padding: 25px 10px 50px;
  }

  .letter {
    padding: 45px 25px;
  }

  .letter::before {
    inset: 7px;
  }

  .letter-section p,
  .ending p {
    font-size: 15px;

    line-height: 1.85;
  }

  .highlight {
    font-size: 24px;

    margin: 38px 5px;
  }

  .quote-big {
    font-size: 26px;
  }

  .flower-one,
  .flower-two {
    font-size: 30px;
  }

  .heart-one {
    font-size: 35px;
  }

  .heart-two,
  .heart-three {
    font-size: 30px;
  }
}

/* =====================================================
   ÁLBUM — UN RINCÓN CÁLIDO ♡
   ===================================================== */

.album-container {
  width: min(900px, 100%);
  margin: auto;
  padding: 45px 20px 70px;
  position: relative;
  z-index: 2;
}


/* CABECERA DEL ÁLBUM */

.album-intro {
  text-align: center;
  margin-bottom: 35px;
}

.album-intro h1 {
  font-family: 'Playfair Display', serif;
  color: #79564e;
  font-size: clamp(40px, 8vw, 50px);
  font-weight: 40;
  line-height: 1.05;
  margin: 0;
}

.album-intro p {
  color: #98766b;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 20px;
}

.album-intro .ornament {
  margin-top: 22px;
}


/* ÁLBUM */

.album {
  width: 100%;
  position: relative;
}


/* TARJETA */

.slide {
  display: none;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(174, 129, 105, 0.035),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(174, 129, 105, 0.035),
      transparent 25%
    ),
    #f5ead8;

  border: 1px solid #d9bea3;

  border-radius: 8px;

  padding: 65px 75px;

  min-height: 620px;

  box-shadow:
    0 25px 60px rgba(88, 57, 42, 0.18),
    0 4px 10px rgba(88, 57, 42, 0.10);

  position: relative;

  overflow: hidden;

  animation: slideIn 0.4s ease;
}


/* BORDE INTERIOR */

.slide::before {
  content: "";

  position: absolute;

  inset: 12px;

  border: 1px solid rgba(174, 129, 105, 0.22);

  border-radius: 5px;

  pointer-events: none;
}


.slide.active {
  display: block;
}


/* NÚMERO */

.slide-number {
  position: absolute;

  top: 28px;
  right: 35px;

  color: #b18a7b;

  font-size: 12px;

  letter-spacing: 2px;

  z-index: 3;
}


/* CONTENIDO */

.slide-content {
  position: relative;

  z-index: 2;

  max-width: 680px;

  margin: auto;
}


.slide-content h2 {
  font-family: 'Playfair Display', serif;

  color: #79564e;

  font-size: clamp(31px, 5vw, 30px);

  font-weight: 400;

  line-height: 1.15;

  text-align: center;

  margin: 10px 0 40px;
}


.slide-content p {
  font-family: 'Quicksand', sans-serif;

  color: #624f48;

  font-size: 16px;

  line-height: 2;

  margin: 0 0 25px;
}


/* PRIMERA FRASE */

.big-opening {
  font-family: 'Playfair Display', serif !important;

  font-size: clamp(38px, 7vw, 40px) !important;

  color: #895f58 !important;

  text-align: center;

  font-style: bold;

  margin: 35px 0 !important;
}


/* FRASE BONITA */

.soft-quote {
  font-family: 'Playfair Display', serif;

  font-size: clamp(25px, 5vw, 34px);

  line-height: 1.4;

  color: #895d56;

  text-align: center;

  font-style: bold;

  margin: 50px 10px;

}


/* CAJITA DESTACADA */

.highlight-box {
  background: #ead7c1;

  border: 1px solid #d4b29b;

  border-radius: 14px;

  padding: 25px;

  margin: 40px 0;

  text-align: center;

  color: #875d55;

  font-family: 'Playfair Display', serif;

  font-size: 25px;

  font-style: bold;

  box-shadow: 0 5px 15px rgba(120, 80, 60, 0.06);
}


/* LISTA POÉTICA */

.little-list {
  text-align: center;
}

.little-list p {
  font-family: 'Playfair Display', serif !important;

  font-style: bold;

  font-size: 19px !important;

  line-height: 1.8 !important;

  color: #805d56 !important;

  margin-bottom: 10px !important;
}


/* FLORES */

.flower-quote {
  font-family: 'Playfair Display', serif;

  color: #8d5b58;

  font-size: 27px;

  text-align: center;

  font-style: bold;

  background: #ead7c1;

  border-radius: 14px;

  padding: 25px;

  margin: 45px 0;

  border: 1px solid #d4b29b;
}


/* CUMPLEAÑOS */

.birthday {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255,255,255,0.25),
      transparent 30%
    ),
    #ead6bd;

  border: 1px dashed #c79f87;

  border-radius: 17px;

  padding: 35px;

  margin: 45px 0;

  text-align: center;

  color: #8a6258;

  font-size: 25px;

  line-height: 1.7;
}


.birthday p {
  font-size: 17px;

  margin-bottom: 18px;
}


/* FOTOS */

.photo-area {
  width: 100%;

  margin: 45px auto;

  overflow: hidden;

  border-radius: 15px;

  background: #e7d5be;

  border: 1px solid #c7a58c;

  box-shadow:
    0 8px 25px rgba(100, 65, 45, 0.12);
}


.photo-area img {
  display: block;

  width: 100%;

  height: 380px;

  object-fit: cover;
}


.photo-grid {
  display: grid;

  gap: 15px;

  margin: 45px 0;
}


.two-photos {
  grid-template-columns: repeat(2, 1fr);
}


.three-photos {
  grid-template-columns: repeat(3, 1fr);
}


.photo-grid img {
  width: 100%;

  height: 260px;

  object-fit: cover;

  border-radius: 12px;

  border: 1px solid #d1b297;

  box-shadow:
    0 6px 18px rgba(100, 65, 45, 0.12);

  transition: transform 0.25s ease;
}


.photo-grid img:hover {
  transform: rotate(-1deg) scale(1.02);
}


.two-photos img:nth-child(2) {
  transform: translateY(20px);
}


.two-photos img:nth-child(2):hover {
  transform: translateY(20px) rotate(1deg) scale(1.02);
}


/* FRASE GRANDE */

.quote-big {
  font-family: 'Playfair Display', serif;

  font-size: clamp(32px, 6vw, 52px);

  color: #895d56;

  text-align: center;

  margin: 45px 0;

  font-style: bold;

  line-height: 1.3;
}


/* FINAL */

.final-slide {
  text-align: center;
}


.final-slide p {
  max-width: 650px;

  margin-left: auto;

  margin-right: auto;
}


.final-quote {
  font-family: 'Playfair Display', serif;

  font-size: clamp(32px, 6vw, 52px);

  color: #80554f;

  text-align: center;

  font-style: bold;

  margin: 55px 0;

  line-height: 1.25;
}


.final-message {
  margin: 60px 0;

  padding: 35px 25px;

  background: #e5cfb3;

  border-radius: 18px;

  border: 1px solid #c9a98d;

  text-align: center;

  box-shadow:
    0 8px 25px rgba(100, 65, 45, 0.08);
}


.final-message p {
  font-family: 'Playfair Display', serif !important;

  font-size: 23px !important;

  color: #73534c !important;

  margin: 0 !important;
}


.final-message span {
  display: block;

  margin-top: 20px;

  font-family: 'Playfair Display', serif;

  font-size: 32px;

  color: #895b54;

  font-style: bold;
}


.last-line {
  font-family: 'Playfair Display', serif;

  color: #80554f;

  font-size: clamp(35px, 7vw, 60px);

  line-height: 1.2;

  font-style: bold;

  margin: 60px 0 40px;
}


.end-hearts {
  color: #a87872;

  font-size: 25px;

  letter-spacing: 5px;

  margin-top: 50px;
}


/* CONTROLES */

.album-controls {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 30px;

  margin-top: 30px;
}


.nav-button {
  width: 48px;

  height: 48px;

  border-radius: 50%;

  border: 1px solid #c9a98d;

  background: #f5ead8;

  color: #805d56;

  font-size: 25px;

  cursor: pointer;

  transition: all 0.2s ease;

  box-shadow:
    0 5px 15px rgba(100, 65, 45, 0.10);
}


.nav-button:hover:not(:disabled) {
  transform: translateY(-3px);

  background: #ead7c1;
}


.nav-button:disabled {
  opacity: 0.3;

  cursor: default;
}


.progress {
  color: #8e6b60;

  font-size: 14px;

  letter-spacing: 2px;
}


.album-hint {
  text-align: center;

  color: #a27c6f;

  font-size: 12px;

  font-style: bold;

  margin-top: 15px;
}


/* VOLVER */

.back-link {
  text-align: center;

  margin-bottom: 25px;
}


.back-link a {
  display: inline-block;

  color: #86645c;

  text-decoration: none;

  font-size: 14px;

  background: rgba(255, 239, 218, 0.75);

  padding: 9px 17px;

  border-radius: 30px;

  border: 1px solid #d7b8a3;

  transition: 0.2s ease;
}


.back-link a:hover {
  background: #f6e4d2;

  transform: translateY(-2px);
}


/* ANIMACIÓN */

@keyframes slideIn {

  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }

}


/* MÓVIL */

@media (max-width: 700px) {

  .album-container {
    padding: 25px 10px 50px;
  }


  .slide {
    padding: 55px 25px;

    min-height: 0;
  }


  .slide::before {
    inset: 7px;
  }


  .slide-number {
    top: 20px;
    right: 23px;
  }


  .slide-content p {
    font-size: 15px;

    line-height: 1.85;
  }


  .slide-content h2 {
    margin-bottom: 30px;
  }


  .two-photos {
    grid-template-columns: 1fr;
  }


  .three-photos {
    grid-template-columns: 1fr;
  }


  .photo-grid img {
    height: 250px;
  }


  .two-photos img:nth-child(2) {
    transform: none;
  }


  .two-photos img:nth-child(2):hover {
    transform: scale(1.02);
  }


  .birthday {
    padding: 25px 18px;
  }


  .album-controls {
    gap: 20px;
  }

}


