:root {
  --bg: #fff5f8;
  --bg-card: #ffffff;
  --primary: #ff8fb7;
  --primary-dark: #ff6a9b;
  --accent: #ffd3e0;
  --text-main: #3d2a35;
  --text-soft: #7a5b6a;
  --shadow-soft: 0 14px 35px rgba(0,0,0,0.08);
  --radius-card: 24px;
  --transition: 0.4s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffe0f0, #fff5f8 40%, #ffe9f5 80%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Corazones de fondo */
.heart {
  position: fixed;
  font-size: 18px;
  color: #ff9ec4;
  opacity: 0.7;
  animation: floatUp 12s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.heart:nth-child(1) { left: 5%;  animation-duration: 14s; font-size: 16px; }
.heart:nth-child(2) { left: 20%; animation-duration: 11s; font-size: 22px; }
.heart:nth-child(3) { left: 40%; animation-duration: 15s; font-size: 18px; }
.heart:nth-child(4) { left: 60%; animation-duration: 13s; font-size: 20px; }
.heart:nth-child(5) { left: 80%; animation-duration: 10s; font-size: 24px; }

@keyframes floatUp {
  0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translateY(-10vh) translateX(10px); opacity: 0; }
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,245,248,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Great Vibes", cursive;
  font-size: 26px;
  color: var(--primary-dark);
}

.logo span {
  font-size: 20px;
}

nav a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: var(--transition);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-dark);
}

nav a:hover::after {
  width: 100%;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  position: relative;
  z-index: 1;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.hero-text {
  padding: 24px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,182,211,0.2), transparent 55%);
  pointer-events: none;
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-size: 40px;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #ffe0ef;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-main {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 25px rgba(255,111,155,0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.3s ease;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(255,111,155,0.5);
}

.btn-main:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 15px rgba(255,111,155,0.3);
}

.btn-secondary {
  background: transparent;
  border-radius: 999px;
  border: 1px dashed var(--primary);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.8);
  border-style: solid;
}

.hero-photo {
  position: relative;
}

.polaroid {
  background: #fff;
  border-radius: 18px;
  padding: 10px 10px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  transform: rotate(-2deg);
  position: relative;
  overflow: hidden;
    height: 100%;

}

.polaroid img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  max-height: 320px;
}

.polaroid h3 {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  color: var(--text-soft);
}
.polaroid-badge {
  position: absolute;
  top: 14px;          /* antes estaba bottom */
  right: 14px;        /* lo metemos un poquito hacia adentro */
  bottom: auto;       /* por si el bottom seguía aplicando */
  background: var(--primary-dark);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 25px rgba(255,111,155,0.6);
  transform: rotate(0deg); /* si quieres que no esté chueco, opcional */
}


.tiny-heart {
  display: inline-block;
  animation: beat 1.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.15); }
  35% { transform: scale(0.95); }
  50% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

/* SECCIÓN GENERALES */
section {
  margin-bottom: 40px;
}

.section-title {
  font-family: "Great Vibes", cursive;
  font-size: 32px;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 4px;
}

.section-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 22px;
}

/* HISTORIA */
/* BLOQUE "ALGO QUE ME GUSTA DE TI" */
.love-box {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,143,183,0.08), rgba(255,255,255,0.98));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.love-btn {
  /* reutiliza btn-main, solo ajuste extra si quieres */
  padding-inline: 22px;
}

.love-text {
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
  max-width: 520px;
}

.card-story {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 22px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}

.card-story p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffe8f2;
  color: var(--primary-dark);
}

.mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.mini-timeline-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 4px;
  box-shadow: 0 0 0 4px rgba(255,167,199,0.35);
}

/* GALERÍA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* CANCIÓN */
.music-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: center;
}

.music-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

.music-art img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 260px;
}

.music-art::after {
  content: "Nuestra canción";
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.music-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.music-info p {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 20% 20%, #ffe0ee, #ff8fb7);
  box-shadow: 0 14px 30px rgba(255,111,155,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-btn span {
  margin-left: 2px;
}

.play-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.play-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 8px 20px rgba(255,111,155,0.5);
}

.song-meta {
  font-size: 11px;
  color: var(--text-soft);
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: #ffe1ef;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.2s linear;
}

/* MENSAJE FINAL */
.closing {
  text-align: center;
  padding: 24px 18px 10px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255,143,183,0.08), rgba(255,255,255,0.96));
  box-shadow: var(--shadow-soft);
}

.closing p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto 10px;
}

.closing-heart {
  font-size: 26px;
  animation: beat 1.5s ease-in-out infinite;
}

footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 28px;
  opacity: 0.9;
}

/* Animaciones de aparición */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero,
  .card-story,
  .music-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    margin-top: 14px;
  }

  .nav {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 32px;
  }

  .card-story,
  .music-card {
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    padding: 18px 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-main, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
/* CONTADOR CUMPLEAÑOS */
.countdown-card {
  margin: 0 auto 14px;
  max-width: 260px;
  background: radial-gradient(circle at top, #ffe4f1, #ffffff);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  border: 1px solid rgba(255, 143, 183, 0.35);
}

.count-number {
  font-size: 46px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.count-label {
  font-size: 13px;
  color: var(--text-soft);
  text-align: left;
}

.count-text {
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

