/* ============================================
   Mami Page — Día de las Madres
   Styles for mami.html
   ============================================ */

/* ---------- Petals ---------- */
.petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  bottom: -50px;
  opacity: 0;
  animation: drift linear infinite;
}

/* ---------- Back Button ---------- */
.back-btn {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--clr-text);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.back-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-rose);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(232,160,191,0.1) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 20%, rgba(212,165,116,0.06) 0%, transparent 50%);
  z-index: 1;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  transform: translateY(var(--parallax, 0));
  transition: transform 0.1s linear;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl);
  max-width: 700px;
}

.hero-pre {
  font-family: var(--ff-script);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--clr-gold-light);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--ff-display);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-title .line1 {
  display: block;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--clr-text);
  margin-bottom: var(--space-xs);
}

.hero-title .line2 {
  display: block;
  font-size: clamp(3.5rem, 14vw, 8rem);
  font-weight: 800;
  background: var(--grad-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 20px rgba(232,160,191,0.3));
}

.hero-name {
  font-family: var(--ff-script);
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: var(--clr-gold-light);
  letter-spacing: 0.03em;
}

.hero-scroll-hint {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-scroll-hint span {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  font-size: 1.2rem;
  color: var(--clr-rose);
  animation: float 2s ease-in-out infinite;
}

/* ===== DEDICATION ===== */
.dedication {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-xl);
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, var(--clr-bg-deep) 0%, var(--clr-bg) 50%, var(--clr-bg-deep) 100%);
}

.dedication-inner {
  max-width: 650px;
  text-align: center;
}

.dedication-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.dedication-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: var(--clr-rose-light);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  position: relative;
  padding: 0 var(--space-md);
}

.dedication-quote::before,
.dedication-quote::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--grad-rose);
  margin: var(--space-lg) auto;
  border-radius: var(--radius-full);
  opacity: 0.4;
}

.dedication-text {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--clr-text-secondary);
  line-height: 1.8;
}

.dedication-text strong {
  color: var(--clr-rose-light);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-xl);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-family: var(--ff-script);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--clr-text-muted);
}

/* ===== GALLERY ===== */
.gallery {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  max-width: 1200px;
  margin: 0 auto;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--clr-surface);
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,10,14,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  font-family: var(--ff-script);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--clr-rose-light);
}

/* ===== REASONS ===== */
.reasons {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(180deg, transparent 0%, rgba(232,160,191,0.03) 50%, transparent 100%);
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.reason-card {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow-rose);
}

.reason-icon {
  font-size: 2.4rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-bounce);
}

.reason-card:hover .reason-icon {
  transform: scale(1.2) rotate(-5deg);
}

.reason-card h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-rose-light);
  margin-bottom: var(--space-sm);
}

.reason-card p {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

/* ===== FINAL MESSAGE ===== */
.final-message {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(232,160,191,0.06) 0%, transparent 70%);
}

.final-inner {
  max-width: 600px;
  margin: 0 auto;
}

.final-heart {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

.final-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  background: var(--grad-rose);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xl);
}

.final-text {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--clr-text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-xl);
}

.final-signature {
  font-family: var(--ff-script);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--clr-gold-light);
  line-height: 1.8;
}

.final-signature strong {
  font-size: 1.2em;
  display: block;
  margin-top: var(--space-xs);
}

.final-hearts {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.final-hearts span {
  color: var(--clr-rose);
  font-size: 1.5rem;
  animation: heartbeat 2s ease-in-out infinite;
}

.final-hearts span:nth-child(2) { animation-delay: 0.2s; }
.final-hearts span:nth-child(3) { animation-delay: 0.4s; }
.final-hearts span:nth-child(4) { animation-delay: 0.6s; }
.final-hearts span:nth-child(5) { animation-delay: 0.8s; }

/* ===== FOOTER ===== */
.mami-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--clr-border);
}

.footer-back {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--clr-text-secondary);
  border: 1px solid var(--clr-border);
  transition: all var(--duration-normal) var(--ease-smooth);
  margin-bottom: var(--space-md);
}

.footer-back:hover {
  color: var(--clr-rose-light);
  border-color: var(--clr-rose-dark);
  box-shadow: var(--shadow-glow-rose);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.footer-text .heart-icon {
  color: var(--clr-rose);
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  animation: scaleIn 0.3s var(--ease-bounce);
}

.lightbox-caption {
  font-family: var(--ff-script);
  font-size: 1.1rem;
  color: var(--clr-rose-light);
  margin-top: var(--space-md);
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: white;
  font-size: 2rem;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.lightbox-close { top: var(--space-md); right: var(--space-md); font-size: 1.2rem; }
.lightbox-prev { left: var(--space-md); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-md); top: 50%; transform: translateY(-50%); }

/* ===== RESPONSIVE ===== */
@media (min-width: 540px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    gap: var(--space-md);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-photo img {
    opacity: 0.2;
  }

  .back-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    top: var(--space-lg);
    left: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-item--tall {
    grid-row: span 2;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}
