/* =========================================================
   ayeye — Invitación Digital Santi & Sofi
   Mobile-first, vanilla CSS
   ========================================================= */

:root {
  --color-purple: #6A4CFF;
  --color-pink: #FF5BA7;
  --color-teal: #00C2B8;
  --color-yellow: #FFC107;
  --color-dark: #1E2A44;
  --color-offwhite: #F7F6F2;

  --color-white: #FFFFFF;
  --color-text: var(--color-dark);

  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-app: 0 20px 60px rgba(30, 42, 68, 0.18);
  --shadow-card: 0 4px 14px rgba(30, 42, 68, 0.08);
  --shadow-btn: 0 6px 16px rgba(106, 76, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-offwhite);
  font-family: var(--font-body);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* ---------- App shell (simula app flotante en desktop) ---------- */

.app-shell {
  width: 100%;
  max-width: 480px;
  background: var(--color-offwhite);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

@media (min-width: 540px) {
  body {
    padding: 32px 0;
  }
  .app-shell {
    min-height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-app);
  }
}

/* ---------- Cabecera: Marca ayeye ---------- */

.brand-header {
  text-align: center;
  padding: 28px 20px 18px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  margin: 0;
  color: var(--color-purple);
  letter-spacing: 0.5px;
}

.brand-logo-accent {
  color: var(--color-pink);
}

.brand-slogan {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
  opacity: 0.75;
  margin: 6px 0 0;
}

/* ---------- Sección 1: Hero Híbrido ---------- */

.hero {
  margin: 0 0 28px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
}

.hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 12px;
  text-align: center;
  gap: 4px;
  overflow: hidden;
}

/* ---------- Decoración temática original (sin personajes con derechos) ---------- */

.theme-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-avatar,
.hero-name,
.hero-age,
.hero-tag {
  position: relative;
  z-index: 1;
}

.theme-deco--pokemon .deco-dot {
  fill: rgba(255, 255, 255, 0.55);
}

.theme-deco--pokemon .deco-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 3;
}

.theme-deco--pokemon .deco-bolt {
  fill: rgba(255, 255, 255, 0.28);
}

.theme-deco--batman .deco-moon {
  fill: rgba(247, 246, 242, 0.85);
}

.theme-deco--batman .deco-star {
  fill: rgba(255, 255, 255, 0.6);
}

.theme-deco--batman .deco-bat {
  fill: rgba(255, 255, 255, 0.1);
}

.theme-deco--batman .deco-building {
  fill: rgba(255, 255, 255, 0.06);
}

.hero-side--pokemon {
  background: linear-gradient(160deg, var(--color-yellow) 0%, #ffd84d 100%);
  color: var(--color-dark);
  border-radius: 0 0 var(--radius-lg) 0;
}

.hero-side--batman {
  background: linear-gradient(160deg, var(--color-dark) 0%, #101828 100%);
  color: var(--color-white);
  border-radius: 0 0 0 var(--radius-lg);
}

.hero-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  display: block;
}

.hero-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.hero-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0;
}

.hero-age {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.85;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 6px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-side--batman .hero-tag {
  background: rgba(255, 255, 255, 0.12);
}

.hero-info {
  text-align: center;
  padding: 22px 24px 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--color-dark);
}

.hero-date {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
  color: var(--color-purple);
}

/* ---------- Botones base ---------- */

.btn {
  display: block;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 14px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: scale(1.01);
  opacity: 0.96;
}

.btn:active {
  transform: scale(0.98);
}

/* ---------- Sección 2: RSVP ---------- */

.rsvp {
  padding: 0 20px 28px;
}

.btn--primary {
  background: var(--color-purple);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

/* ---------- Títulos de sección ---------- */

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-dark);
  margin: 0 0 16px;
  padding: 0 20px;
}

/* ---------- Sección 3: Itinerario ---------- */

.itinerary {
  padding: 0 0 28px;
  background: var(--color-offwhite);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px;
}

.timeline-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-time {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-purple);
  margin: 0;
}

.timeline-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-dark);
  margin: 0;
}

/* ---------- Sección 4: Ubicación ---------- */

.location {
  padding: 0 20px 28px;
}

.btn--location {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(0, 194, 184, 0.28);
}

/* ---------- Sección 5: Mesas de Regalos ---------- */

.gifts {
  padding: 0 20px 32px;
}

.gifts-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--gift-pokemon {
  background: var(--color-yellow);
  color: var(--color-dark);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
}

.btn--gift-batman {
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(30, 42, 68, 0.3);
}

/* ---------- Footer ---------- */

.app-footer {
  text-align: center;
  padding: 18px 20px 26px;
  font-size: 0.8rem;
  color: var(--color-dark);
  opacity: 0.6;
}

.app-footer p {
  margin: 0;
}
