/* ============================================================
   RATILLAS.CLUB — Día de la Madre
   Paleta: rosas, cremas, blancos rotos
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rose-50:    #fff1f2;
  --rose-100:   #ffe4e6;
  --rose-200:   #fecdd3;
  --rose-300:   #fda4af;
  --rose-400:   #fb7185;
  --rose-500:   #f43f5e;
  --cream-50:   #fffdf9;
  --cream-100:  #fdf6ec;
  --cream-200:  #f9ead6;
  --text-dark:  #3d2a2e;
  --text-mid:   #7a5560;
  --text-light: #b08090;
  --shadow:     rgba(200, 120, 140, 0.15);

  --font-display: 'Dancing Script', cursive;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--cream-50);
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(253, 164, 175, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(249, 234, 214, 0.35) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23fda4af' opacity='.25'/%3E%3Ccircle cx='170' cy='50' r='1' fill='%23fda4af' opacity='.2'/%3E%3Ccircle cx='80' cy='150' r='1.2' fill='%23fb7185' opacity='.15'/%3E%3Ccircle cx='150' cy='170' r='1' fill='%23fda4af' opacity='.2'/%3E%3Ccircle cx='100' cy='80' r='0.8' fill='%23f9ead6' opacity='.3'/%3E%3Cpath d='M20 60 Q25 50 30 60 Q25 70 20 60Z' fill='%23fecdd3' opacity='.12'/%3E%3Cpath d='M160 120 Q165 110 170 120 Q165 130 160 120Z' fill='%23fecdd3' opacity='.12'/%3E%3Cpath d='M50 180 Q55 170 60 180 Q55 190 50 180Z' fill='%23fecdd3' opacity='.1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- UTILIDADES ---------- */
.section-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--rose-500);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
}

/* ---------- ANIMACIONES DE ENTRADA ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* ---------- PÉTALOS FLOTANTES ---------- */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.fp {
  position: absolute;
  top: -60px;
  font-size: 1.2rem;
  opacity: 0;
  animation: petalFall linear infinite;
  filter: blur(0.3px);
}

.fp1  { left:  8%; animation-duration: 12s; animation-delay:  0s;   font-size: 1rem; }
.fp2  { left: 20%; animation-duration: 16s; animation-delay:  3s;   font-size: 0.85rem; }
.fp3  { left: 35%; animation-duration: 14s; animation-delay:  7s;   font-size: 1.1rem; }
.fp4  { left: 48%; animation-duration: 18s; animation-delay:  1s;   font-size: 0.9rem; }
.fp5  { left: 60%; animation-duration: 13s; animation-delay:  5s;   font-size: 1rem; }
.fp6  { left: 72%; animation-duration: 17s; animation-delay:  9s;   font-size: 0.8rem; }
.fp7  { left: 82%; animation-duration: 11s; animation-delay:  2s;   font-size: 1.15rem; }
.fp8  { left: 92%; animation-duration: 15s; animation-delay:  6s;   font-size: 0.95rem; }

@keyframes petalFall {
  0%   { opacity: 0;   top: -60px;   transform: rotate(0deg)   translateX(0); }
  10%  { opacity: 0.6; }
  85%  { opacity: 0.5; }
  100% { opacity: 0;   top: 110vh;   transform: rotate(360deg) translateX(40px); }
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  position: relative;
  z-index: 1;
}
.main-content[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

/* ---------- LOGIN OVERLAY ---------- */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--rose-50) 0%, var(--cream-100) 60%, var(--rose-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rose-200);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 12px 48px var(--shadow);
  position: relative;
}

.login-petals {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--rose-300);
}

.login-petals .petal {
  display: inline-block;
  animation: floatPetal 3s ease-in-out infinite;
}
.login-petals .p1 { animation-delay: 0s; }
.login-petals .p2 { animation-delay: 0.5s; font-size: 1.8rem; color: var(--rose-400); }
.login-petals .p3 { animation-delay: 1s; }

@keyframes floatPetal {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-8px) rotate(5deg); }
}

.login-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.login-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--rose-500);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.login-hint {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.login-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid var(--rose-200);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--cream-50);
  outline: none;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.login-input:focus {
  border-color: var(--rose-400);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.login-btn {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-500));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
  letter-spacing: 0.02em;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
}

.login-btn:active {
  transform: translateY(0);
  opacity: 0.9;
}

.login-error {
  font-size: 0.85rem;
  color: var(--rose-500);
  margin-top: 0.75rem;
  min-height: 1.2em;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  max-width: 700px;
  width: 100%;
}

.hero-photo-wrap {
  width: min(280px, 75vw);
  height: min(280px, 75vw);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--rose-200);
  box-shadow: 0 8px 32px var(--shadow), 0 0 0 8px var(--rose-50);
}

.foto-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--rose-100), var(--cream-200));
}

.hero-pretitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  color: var(--rose-500);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-mid);
  line-height: 1.6;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 240px;
  margin: 0.5rem auto 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-300), transparent);
}

.divider-icon {
  color: var(--rose-400);
  font-size: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--rose-300);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
  display: block;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- CARTA ---------- */
.carta {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(253, 228, 230, 0.2) 40%, transparent 100%);
}

.carta-body {
  max-width: 680px;
  margin: 0 auto;
}

.carta-paper {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 4px 32px var(--shadow);
  position: relative;
}

.carta-paper::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--rose-100);
  border-radius: 12px;
  pointer-events: none;
}

.carta-paper p {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
}

.carta-paper p em {
  color: var(--rose-500);
  font-style: italic;
}

.carta-saludo {
  font-family: var(--font-display) !important;
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  color: var(--rose-500) !important;
  margin-bottom: 1.5rem !important;
}

.carta-despedida {
  margin-top: 2rem !important;
  font-family: var(--font-serif) !important;
  text-align: right;
  border-top: 1px solid var(--rose-100);
  padding-top: 1.5rem;
}

.firma {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--rose-500);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.firma-age {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.3rem;
}

/* ---------- VIAJE / TIMELINE ---------- */
.viaje {
  padding: 6rem 1.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--rose-200) 10%, var(--rose-200) 90%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--rose-50);
  border: 2px solid var(--rose-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--rose-400);
  z-index: 2;
  box-shadow: 0 2px 8px var(--shadow);
}

.timeline-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: calc(50% - 36px);
  margin-right: calc(50% + 36px);
}

.timeline-content--reverse {
  flex-direction: row-reverse;
  margin-right: 0;
  margin-left: calc(50% + 36px);
}

.timeline-photo-wrap {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--rose-200);
  box-shadow: 0 4px 16px var(--shadow);
}

.foto-momento {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--rose-100), var(--cream-200));
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--rose-500);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.timeline-desc {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ---------- PAPÁ ---------- */
.papa {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(249, 234, 214, 0.3) 40%, transparent 100%);
}

.papa-body {
  max-width: 640px;
  margin: 0 auto;
}

.papa-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(253, 228, 230, 0.2));
  border: 1px solid var(--rose-200);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 4px 32px var(--shadow);
}

.papa-card p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 1.3rem;
  font-weight: 300;
}

.papa-saludo {
  font-family: var(--font-display) !important;
  font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
  color: var(--rose-500) !important;
  margin-bottom: 1.5rem !important;
}

.papa-firma {
  margin-top: 2rem !important;
  text-align: right;
  border-top: 1px solid var(--rose-100);
  padding-top: 1.2rem;
  font-style: italic;
  color: var(--text-mid) !important;
}

.papa-firma .firma {
  font-size: 1.6rem;
  color: var(--text-mid);
}

/* ---------- CIERRE ---------- */
.cierre {
  padding: 7rem 1.5rem 5rem;
  text-align: center;
}

.cierre-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.corazon-animado {
  line-height: 1;
}

.corazon {
  font-size: clamp(3.5rem, 10vw, 5rem);
  color: var(--rose-400);
  display: inline-block;
  animation: heartbeat 1.4s ease-in-out infinite;
  text-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.12); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.08); }
  70%       { transform: scale(1); }
}

.cierre-mensaje {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  color: var(--text-mid);
  line-height: 1.8;
}

.cierre-firma {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: -0.8rem;
}

.cierre-nombre {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 4.5rem);
  color: var(--rose-500);
  line-height: 1.1;
}

.cierre-club {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-light);
  margin-top: -0.6rem;
}

.cierre-fecha {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* Tablets y arriba (≥ 640px) */
@media (min-width: 640px) {
  .hero-photo-wrap {
    width: 300px;
    height: 300px;
  }

  .timeline-photo-wrap {
    width: 130px;
    height: 130px;
  }
}

/* Desktop (≥ 900px) */
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-divider {
    margin: 0.5rem 0 0;
  }

  .hero-photo-wrap {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
  }

  .scroll-hint {
    display: block;
  }
}

/* Mobile: timeline en vertical simple */
@media (max-width: 639px) {
  .timeline::before { display: none; }

  .timeline-dot {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
  }

  .timeline-item {
    display: block;
  }

  .timeline-content,
  .timeline-content--reverse {
    width: 100%;
    margin: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-photo-wrap {
    width: 140px;
    height: 140px;
  }
}
