/* ═══════════════════════════════════════════════
   FUENTES LOCALES
═══════════════════════════════════════════════ */
@font-face {
  font-family: 'BoneApa';
  src: url('../fonts/BONEAPA.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Paleta prehistórica */
  --volcano-dark:  #1e1008;   /* fondo hero, profundo */
  --volcano-mid:   #3a1e0e;   /* capas oscuras */
  --earth-brown:   #7a4e28;   /* tierra cálida */
  --sand-mid:      #c8a06a;   /* arena media */
  --fossil-cream:  #f0e6c8;   /* crema fósil (huevo) */
  --bone-white:    #faf6ee;   /* blanco hueso, base */
  --stone-gray:    #e8e0d0;   /* piedra clara */
  --amber:         #d4a017;   /* ámbar */
  --dino-green:    #5a7a3a;   /* verde dino, muted */
  --terracotta:    #c0714a;   /* terracota prehistórica */
  --accent-red:    #c84030;
  --accent-gold:   #f5c542;
  --text-dark:     #2c1810;
  --text-mid:      #5a4030;
  --text-light:    #8a6850;
  --white:         #ffffff;
  --radius:        20px;
  --shadow:        0 8px 40px rgba(44,24,16,0.18);
}

html {
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bone-white);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════
   JUNGLE BACKGROUND DINOS
═══════════════════════════════════════════════ */
.jungle-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.bg-dino {
  position: absolute;
  opacity: 1;
  display: block;
  pointer-events: none;
}

/* dino9 — entra por la izquierda, cruza, sale por la derecha */
.bg-dino--left1 {
  bottom: 3%;
  left: 0;
  width: 260px;
  animation: walk-lr 36s ease-in-out infinite;
  animation-delay: 0s;
  transform-origin: bottom center;
}

/* dino3 pterodáctilo — vuela derecha → izquierda → regresa */
.bg-dino--right1 {
  top: 14%;
  right: 0;
  width: 210px;
  animation: pterodactyl-fly 36s ease-in-out infinite;
  animation-delay: -12s;
}

/* dino10 — entra por la derecha, cruza, sale por la izquierda */
.bg-dino--left2 {
  bottom: 6%;
  right: 0;
  left: auto;
  width: 200px;
  animation: walk-rl 36s ease-in-out infinite;
  animation-delay: -24s;
  transform-origin: bottom center;
}

/* Sol girando en esquina superior derecha */
.bg-sol {
  position: absolute;
  top: 4%;
  right: 4%;
  width: 140px;
  opacity: 0.04;
  pointer-events: none;
  animation: sol-rotate 80s linear infinite;
}

@keyframes sol-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Volcán esquina inferior derecha */
.bg-volcan {
  position: absolute;
  bottom: 0;
  right: 40px;
  width: 220px;
  opacity: 0.04;
  pointer-events: none;
}

@keyframes walk-lr {
  /* 0-10%: espera | 10-43%: cruza | 43-100%: espera fuera */
  0%   { transform: translateX(-320px); }
  10%  { transform: translateX(-320px); }
  27%  { transform: translateX(25vw);   }
  43%  { transform: translateX(130vw);  }
  44%  { transform: translateX(140vw);  }
  100% { transform: translateX(140vw);  }
}

@keyframes walk-rl {
  /* 0-10%: espera | 10-43%: cruza | 43-100%: espera fuera */
  0%   { transform: translateX(320px)  scaleX(-1); }
  10%  { transform: translateX(320px)  scaleX(-1); }
  27%  { transform: translateX(-25vw)  scaleX(-1); }
  43%  { transform: translateX(-130vw) scaleX(-1); }
  44%  { transform: translateX(-140vw) scaleX(-1); }
  100% { transform: translateX(-140vw) scaleX(-1); }
}

@keyframes pterodactyl-fly {
  /* 0-10%: espera | 10-43%: vuela ida y vuelta | 43-100%: espera fuera */
  0%   { transform: translateX(120vw)  translateY(0)    scaleX(-1); }
  10%  { transform: translateX(120vw)  translateY(0)    scaleX(-1); }
  30%  { transform: translateX(-70vw)  translateY(-30px) scaleX(-1); }
  33%  { transform: translateX(-80vw)  translateY(-30px) scaleX(1);  }
  43%  { transform: translateX(120vw)  translateY(0)    scaleX(1);  }
  44%  { transform: translateX(130vw)  translateY(0)    scaleX(1);  }
  100% { transform: translateX(130vw)  translateY(0)    scaleX(1);  }
}

/* Ferns decorativos */
.ferns {
  position: fixed;
  bottom: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  background: radial-gradient(ellipse at bottom, var(--dino-green) 0%, transparent 70%);
}
.ferns--bottom-left  { left: 0; }
.ferns--bottom-right { right: 0; }

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100svh; /* evita el salto por address bar en móvil */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #120800 0%, #3a1e0e 40%, #1e1008 100%);
  overflow: hidden;
  touch-action: pan-y;
}

/* Animated gradient pulse background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(212,160,23,0.10) 0%, transparent 70%);
  animation: hero-pulse 4s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
  from { transform: scale(1);   opacity: 0.6; }
  to   { transform: scale(1.2); opacity: 1;   }
}

.hero-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh; /* evita el salto por address bar en móvil */
  padding: 40px 20px;
}

/* Hero leaves */
.hero-leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.leaf {
  position: absolute;
  display: block;
  pointer-events: none;
}

.leaf--l1 {
  left: -10px; top: 8%;
  width: 110px;
  opacity: 0.55;
  animation: leaf-sway 5s ease-in-out infinite alternate;
  transform-origin: left center;
}
.leaf--l2 {
  left: 28px; top: 32%;
  width: 75px;
  opacity: 0.42;
  animation: leaf-sway 7s ease-in-out infinite alternate-reverse;
  transform-origin: left center;
}
.leaf--r1 {
  right: -10px; top: 14%;
  width: 110px;
  opacity: 0.55;
  animation: leaf-sway-r 6s ease-in-out infinite alternate;
  transform-origin: right center;
}
.leaf--r2 {
  right: 28px; top: 40%;
  width: 75px;
  opacity: 0.42;
  animation: leaf-sway-r 8s ease-in-out infinite alternate-reverse;
  transform-origin: right center;
}

/* Ramas en esquinas inferiores del hero */
.hero-rama {
  position: absolute;
  display: block;
  pointer-events: none;
  opacity: 0.45;
}
.hero-rama--left {
  bottom: 0; left: -10px;
  width: 170px;
  transform: rotate(-20deg) translateY(20px);
  transform-origin: bottom left;
  animation: leaf-sway 9s ease-in-out infinite alternate;
}
.hero-rama--right {
  bottom: 0; right: -10px;
  width: 170px;
  transform: rotate(20deg) translateY(20px) scaleX(-1);
  transform-origin: bottom right;
  animation: leaf-sway-r 11s ease-in-out infinite alternate;
}

/* Huevos decorativos en el hero */
.hero-huevo {
  position: absolute;
  display: block;
  pointer-events: none;
}
.hero-huevo--1 {
  left: 10%; bottom: 22%;
  width: 42px;
  opacity: 0.5;
  animation: huevo-float 3.5s ease-in-out infinite alternate;
}
.hero-huevo--2 {
  right: 9%; bottom: 28%;
  width: 46px;
  opacity: 0.5;
  animation: huevo-float 4s ease-in-out infinite alternate-reverse;
}

@keyframes huevo-float {
  from { transform: translateY(0) rotate(-5deg); }
  to   { transform: translateY(-10px) rotate(6deg); }
}

@keyframes leaf-sway   { from { transform: rotate(0deg); } to { transform: rotate(10deg); } }
@keyframes leaf-sway-r { from { transform: rotate(0deg); } to { transform: rotate(-10deg); } }

/* ───── EGG ───── */
.egg-container {
  position: relative;
  width: 320px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.egg-hint {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f5c542;
  color: #5a3a0a;
  font-family: 'Chewy', cursive;
  font-size: 2.8rem;
  padding: 16px 42px;
  border-radius: 999px;
  border: 5px solid #c68a00;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  animation: hint-bounce 0.9s ease-in-out infinite alternate;
}

@keyframes hint-bounce {
  from { transform: translate(-50%, -50%) translateY(0);   }
  to   { transform: translate(-50%, -50%) translateY(-10px); }
}

.egg-shadow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 30px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}

.egg-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 280px;
  z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4));
}

.cracks-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 280px;
  z-index: 3;
  pointer-events: none;
}

.shell-pieces {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  z-index: 5;
  pointer-events: none;
}

/* ───── DINO HERO ───── */
.baby-trex {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  width: 480px;
  opacity: 0;
  z-index: 4;
}

.baby-trex img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}

/* ───── SIGN ───── */
.sign-container {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  opacity: 0;
  z-index: 6;
  width: fit-content;
}

.sign {
  position: relative;
  background: var(--fossil-cream);
  border: 4px solid var(--sand-mid);
  border-radius: 16px;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0,0,0,0.35), inset 0 2px 6px rgba(255,255,255,0.5);
  width: 340px;
}

.sign::before {
  content: '';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 10px;
  background: var(--sand-mid);
  border-radius: 4px;
}

.sign-ribbon {
  position: absolute;
  top: -20px;
  width: 20px; height: 40px;
  background: var(--terracotta);
  border-radius: 3px;
}
.sign-ribbon--left  { left: 30px; transform: rotate(-10deg); }
.sign-ribbon--right { right: 30px; transform: rotate(10deg); }

.sign-inner { position: relative; z-index: 1; }

.sign-pre {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 2px;
}

.sign-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.9rem;
  color: var(--accent-red);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.08);
  line-height: 1;
  margin-bottom: 6px;
}

.sign-name-wrap {
  background: var(--earth-brown);
  border-radius: 30px;
  padding: 4px 18px;
  display: inline-block;
  margin: 4px 0;
}

.sign-name {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: white;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.sign-age {
  font-size: 1rem;
  color: var(--text-mid);
  font-weight: 700;
  margin-top: 6px;
}
.sign-age strong { color: var(--accent-red); font-size: 1.2rem; }

/* ───── SCROLL HINT ───── */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  opacity: 0;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s, transform 0.2s;
}
.scroll-hint:hover {
  color: rgba(255,255,255,0.9);
  transform: translateX(-50%) translateY(3px);
}

.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 3px solid rgba(255,255,255,0.5);
  border-bottom: 3px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  margin: 8px auto 0;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ═══════════════════════════════════════════════
   SHARED SECTION STYLES
═══════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: 'BoneApa', 'Chewy', cursive;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: #faf6ee;
  filter: url(#bone-effect);
  letter-spacing: 5px;
  text-transform: lowercase;
}

.title-dino-under {
  font-size: 2rem;
  margin-top: 6px;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-8deg); }
  75%       { transform: rotate(8deg); }
}

/* scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   HISTORIA SECTION
═══════════════════════════════════════════════ */
.historia-section {
  background: linear-gradient(180deg, var(--bone-white) 0%, #f5ede0 50%, var(--bone-white) 100%);
}

.section-dino-accent {
  position: absolute;
  top: 30px;
  opacity: 0.4;
}
.section-dino-accent--left { left: 20px; }

.historia-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-mid);
  font-weight: 600;
  background: rgba(200,160,106,0.10);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 4px solid var(--sand-mid);
}

.historia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.historia-row--reverse {
  direction: rtl;
}
.historia-row--reverse > * {
  direction: ltr;
}

.historia-text h3 {
  font-family: 'BoneApa', 'Chewy', cursive;
  font-size: 2rem;
  color: #faf6ee;
  filter: url(#bone-effect);
  letter-spacing: 4px;
  text-transform: lowercase;
  margin-bottom: 14px;
  text-align: center;
}

.historia-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mid);
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--stone-gray);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--sand-mid);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 3px);
}

.photo-frame.photo-placeholder img { display: none; }

.photo-placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sand-mid);
  flex-direction: column;
  gap: 8px;
}

.photo-placeholder-text::before {
  content: '';
  display: block;
  width: 60px; height: 60px;
  background: var(--sand-mid);
  border-radius: 50%;
  margin-bottom: 8px;
  opacity: 0.4;
}


/* ═══════════════════════════════════════════════
   EVENTO SECTION
═══════════════════════════════════════════════ */
.evento-section {
  background: linear-gradient(180deg, #f0e4cc 0%, #ecdcc4 100%);
}

.evento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 50px;
}

.evento-card {
  background: rgba(255,255,255,0.65);
  border: 2px solid rgba(122,78,40,0.25);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
  animation-delay: var(--delay);
  backdrop-filter: blur(4px);
}

.evento-card:hover {
  border-color: var(--earth-brown);
  transform: translateY(-4px);
}

.evento-card--fiesta {
  border-color: rgba(212,160,23,0.45);
}

.evento-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.evento-card-title {
  font-family: 'Chewy', cursive;
  font-size: 1.7rem;
  color: #fff8e7;
  -webkit-text-stroke: 3px #1d432a;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #1d432a, 5px 5px 0 rgba(29,67,42,0.2);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.evento-detail {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.detail-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

.detail-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--earth-brown);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  margin: 16px 0 14px;
  transition: background 0.2s, transform 0.2s;
}

.map-btn:hover {
  background: var(--terracotta);
  transform: scale(1.04);
}

.map-btn--gps {
  background: #e07b20;
  margin-top: 0;
}
.map-btn--gps:hover {
  background: #c96a10;
}

.map-embed { margin-top: 8px; border-radius: 12px; overflow: hidden; }

/* Te esperamos */
.te-esperamos {
  text-align: center;
  padding: 40px;
  background: rgba(245,197,66,0.10);
  border: 2px solid rgba(212,160,23,0.30);
  border-radius: var(--radius);
}

.te-esperamos-dinos {
  font-size: 2.5rem;
  margin-bottom: 16px;
  animation: bounce-dinos 1.5s ease-in-out infinite alternate;
}

@keyframes bounce-dinos {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.te-esperamos-text {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--earth-brown);
  text-shadow: 1px 2px 0 rgba(0,0,0,0.08);
}

.mesa-regalos {
  margin-top: 24px;
  background: rgba(255,255,255,0.55);
  border: 2px solid var(--leaf-green);
  border-radius: 16px;
  padding: 16px 28px;
  display: inline-block;
}
.mesa-regalos-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--earth-brown);
  margin-bottom: 4px;
}
.mesa-regalos-tienda {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: var(--leaf-green);
  margin-bottom: 2px;
}
.mesa-regalos-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--earth-brown);
  letter-spacing: 3px;
}
.mesa-regalos-btn {
  display: inline-block;
  background: #e07b20;
  color: white;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 30px;
  margin-top: 6px;
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  letter-spacing: 0;
  transition: background 0.2s, transform 0.2s;
}
.mesa-regalos-btn:hover {
  background: #c96a10;
  transform: scale(1.04);
}
.mesa-regalos-alt {
  font-size: 0.85rem;
  color: var(--earth-brown);
  opacity: 0.7;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════
   TEMÁTICA SECTION
═══════════════════════════════════════════════ */
.tematica-section {
  background: linear-gradient(180deg, var(--stone-gray) 0%, #ddd4c0 100%);
}

.tematica-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.60) 0%, rgba(240,230,200,0.50) 100%);
  border: 3px solid rgba(122,78,40,0.25);
  border-radius: 28px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.tematica-card::before {
  content: '🌿';
  position: absolute;
  font-size: 8rem;
  opacity: 0.05;
  top: -20px; left: -20px;
}
.tematica-card::after {
  content: '🌿';
  position: absolute;
  font-size: 8rem;
  opacity: 0.05;
  bottom: -20px; right: -20px;
  transform: scaleX(-1);
}

.tematica-dinos-top {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.t-dino {
  display: inline-block;
  width: 52px;
  height: auto;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.18));
  animation: t-dino-bounce 0.8s ease-in-out infinite alternate;
}
.t-dino:nth-child(2) { animation-delay: 0.1s; width: 44px; }
.t-dino:nth-child(3) { animation-delay: 0.2s; width: 60px; }
.t-dino:nth-child(4) { animation-delay: 0.3s; width: 44px; }
.t-dino:nth-child(5) { animation-delay: 0.4s; }

@keyframes t-dino-bounce {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-8px) rotate(2deg); }
}

.tematica-title {
  font-family: 'Chewy', cursive;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff8e7;
  -webkit-text-stroke: 4px #1d432a;
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 #1d432a, 7px 7px 0 rgba(29,67,42,0.25);
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.tematica-badge {
  margin: 20px auto;
  filter: drop-shadow(0 8px 20px rgba(44,24,16,0.20));
  animation: badge-pulse 2s ease-in-out infinite alternate;
}

@keyframes badge-pulse {
  from { transform: scale(1)   rotate(-3deg); }
  to   { transform: scale(1.08) rotate(3deg); }
}

.tematica-sub {
  font-family: 'Chewy', cursive;
  font-size: 2.2rem;
  color: #f5c542;
  -webkit-text-stroke: 3px #3a1e0e;
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #3a1e0e, 6px 6px 0 rgba(58,30,14,0.2);
  margin: 10px 0 20px;
  letter-spacing: 3px;
}

.tematica-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-mid);
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 20px;
  background: var(--volcano-dark);
  color: rgba(240,230,200,0.55);
  font-size: 0.82rem;
  font-weight: 600;
  border-top: 1px solid rgba(122,78,40,0.25);
}

.footer-credits {
  margin-top: 4px;
  color: rgba(240,230,200,0.35);
  font-size: 0.75rem;
}

.footer-credits a {
  color: var(--sand-mid);
  text-decoration: none;
  font-weight: 700;
}
.footer-credits a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   HISTORIA — DECORACIONES
═══════════════════════════════════════════════ */
.huellas-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.huella {
  position: absolute;
  width: 38px;
  opacity: 0; /* GSAP las anima */
  filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.12));
}
.huella--1 { left: 7%;  top: 20%; transform: rotate(25deg); }
.huella--2 { left: 13%; top: 34%; transform: rotate(-18deg); }
.huella--3 { left: 7%;  top: 50%; transform: rotate(30deg); }
.huella--4 { right: 7%;  top: 22%; transform: rotate(-25deg) scaleX(-1); }
.huella--5 { right: 13%; top: 38%; transform: rotate(18deg) scaleX(-1); }
.huella--6 { right: 7%;  top: 56%; transform: rotate(-30deg) scaleX(-1); }

.mariposa-deco {
  position: absolute;
  width: 48px;
  right: 20%; top: 42%;
  opacity: 0; /* GSAP anima */
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.historia-dino-deco {
  position: absolute;
  width: 85px;
  right: 2%; bottom: 8%;
  opacity: 0.18;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.historia-rama {
  position: absolute;
  width: 90px;
  opacity: 0.22;
  pointer-events: none;
}
.historia-rama--tr {
  top: 10px; right: 15px;
  transform: rotate(140deg) scaleX(-1);
}
.historia-rama--bl {
  bottom: 10px; left: 10px;
  transform: rotate(-20deg);
}

/* ═══════════════════════════════════════════════
   ONDAS SEPARATOR
═══════════════════════════════════════════════ */
.ondas-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  opacity: 0.25;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}
.ondas-separator img {
  width: 55px;
  height: auto;
  display: block;
}
.ondas-separator img:nth-child(2) {
  width: 70px;
  opacity: 0.7;
  transform: scale(1.1);
}
.ondas-separator img:nth-child(3) {
  width: 45px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════
   EVENTO — DECORACIONES
═══════════════════════════════════════════════ */
.evento-huevos-deco {
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.evento-huevo {
  position: absolute;
  width: 52px;
  opacity: 0.75;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.18));
  animation: huevo-float 3.5s ease-in-out infinite alternate;
}
.evento-huevo--left  { left: -10px;  top: -55px; animation-delay: 0s; }
.evento-huevo--right { right: -10px; top: -65px; animation-delay: 1.2s; }
.evento-huevo--mid   { left: 50%; transform: translateX(-50%); top: -45px; width: 38px; animation-delay: 0.6s; opacity: 0.5; }

/* te-esperamos dinos como imgs */
.te-d {
  display: inline-block;
  width: 52px;
  height: auto;
  vertical-align: middle;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
  animation: t-dino-bounce 0.9s ease-in-out infinite alternate;
}
.te-d--big { width: 70px; animation-delay: 0.15s; }
.te-d:nth-child(3) { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════════
   TEMÁTICA — DECORACIONES
═══════════════════════════════════════════════ */
.tematica-ondas {
  position: absolute;
  width: 160px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  pointer-events: none;
}

.tematica-rama {
  position: absolute;
  width: 75px;
  opacity: 0.28;
  pointer-events: none;
}
.tematica-rama--tl { top: 8px;  left: 8px;  transform: rotate(-40deg); }
.tematica-rama--tr { top: 8px;  right: 8px; transform: rotate(130deg) scaleX(-1); }
.tematica-rama--bl { bottom: 8px; left: 8px;  transform: rotate(40deg) scaleY(-1); }
.tematica-rama--br { bottom: 8px; right: 8px; transform: rotate(-130deg) scaleX(-1) scaleY(-1); }

/* ═══════════════════════════════════════════════
   FOOTER — HUELLAS
═══════════════════════════════════════════════ */
.footer-huellas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0.3;
}
.footer-huella {
  width: 22px;
  height: auto;
  display: block;
  filter: invert(80%) sepia(10%) saturate(200%) hue-rotate(20deg);
}
.footer-huella:nth-child(odd)  { transform: rotate(12deg);  margin-top: 3px; }
.footer-huella:nth-child(even) { transform: rotate(-12deg); margin-top: -3px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 720px) {
  .historia-row,
  .historia-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .historia-video-grid {
    grid-template-columns: 1fr !important;
  }
  .historia-video2-wrap {
    width: 75% !important;
    margin: 0 auto;
  }
  .evento-grid { grid-template-columns: 1fr; }
  .sign { width: auto; }
  .sign-name { font-size: 1.8rem; }
  .sign-title { font-size: 1.5rem; }
  .egg-container { width: 280px; height: 360px; }
  .tematica-card { padding: 36px 20px; }
  .hero-scene { padding: 30px 16px; }
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .historia-intro { padding: 20px 18px; }
  .te-esperamos { padding: 24px 16px; }
  /* Ocultar decoraciones absolutas que se salen en móvil */
  .historia-dino4,
  .historia-dino5,
  .evento-dino6 { display: none; }
}

@media (max-width: 480px) {
  .egg-container { width: 230px; height: 300px; }
  .baby-trex { width: 180px; bottom: 100px; }
  .sign-name { font-size: 1.6rem; }
  .sign-title { font-size: 1.3rem; }
  .sign-pre { font-size: 0.8rem; }
  .sign-age { font-size: 0.9rem; }
  .tematica-dinos-top { gap: 6px; }
  .t-dino { width: 38px !important; }
  /* Hojas y ramas absolutas que pueden desbordar en móvil muy pequeño */
  .historia-hoja,
  .evento-hoja,
  .tematica-hoja { display: none; }
}

/* ═══════════════════════════════════════════════
   HERO — HOJAS Y HUEVO EXTRA
═══════════════════════════════════════════════ */
.leaf--l3 {
  left: 40px; top: 58%;
  width: 60px;
  opacity: 0.32;
  transform: rotate(50deg);
  animation: leaf-sway 6.5s ease-in-out infinite alternate;
  transform-origin: left center;
}
.leaf--r3 {
  right: 45px; top: 52%;
  width: 78px;
  opacity: 0.35;
  transform: rotate(-30deg);
  animation: leaf-sway-r 7.5s ease-in-out infinite alternate-reverse;
  transform-origin: right center;
}
.leaf--l4 {
  left: 16%; top: 72%;
  width: 42px;
  opacity: 0.25;
  transform: rotate(65deg);
  animation: leaf-sway 9s ease-in-out infinite alternate;
  transform-origin: left center;
}
.hero-huevo--3 {
  left: 34%; top: 12%;
  width: 32px;
  opacity: 0.30;
  animation: huevo-float 5.5s ease-in-out infinite alternate;
  transform: rotate(20deg);
}

/* ═══════════════════════════════════════════════
   HISTORIA — DECORACIONES EXTRA
═══════════════════════════════════════════════ */
.historia-rama--tl {
  top: 10px; left: 15px;
  transform: rotate(50deg) scaleX(-1);
}

.historia-hoja {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.historia-hoja--1 { left: 4%;   top: 18%;  width: 58px;  opacity: 0.18; transform: rotate(30deg); }
.historia-hoja--2 { left: 20%;  top: 72%;  width: 36px;  opacity: 0.16; transform: rotate(-55deg); }
.historia-hoja--3 { right: 4%;  top: 28%;  width: 50px;  opacity: 0.18; transform: rotate(-30deg) scaleX(-1); }
.historia-hoja--4 { right: 18%; top: 78%;  width: 65px;  opacity: 0.16; transform: rotate(22deg); }

.historia-dino4 {
  position: absolute;
  left: -8px; top: 38%;
  width: 140px;
  opacity: 0.15;
  pointer-events: none;
  transform: scaleX(-1);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.10));
}
.historia-dino5 {
  position: absolute;
  right: 2%; bottom: 12%;
  width: 78px;
  opacity: 0.17;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.10));
}

.historia-huevo-deco {
  position: absolute;
  pointer-events: none;
  animation: huevo-float 4.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.10));
}
.historia-huevo-deco--1 { left: 28%; top: 10%; width: 44px; opacity: 0.25; animation-delay: 0.8s; }

.mariposa-deco-2 {
  position: absolute;
  width: 30px;
  left: 22%; top: 62%;
  opacity: 0.20;
  pointer-events: none;
  transform: scaleX(-1);
}

.historia-ondas-bg {
  position: absolute;
  width: 130px;
  left: 52%; top: 48%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   EVENTO — DECORACIONES EXTRA
═══════════════════════════════════════════════ */
.evento-hoja {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.evento-hoja--1 { left: 3%;   top: 22%;    width: 52px;  opacity: 0.20; transform: rotate(28deg); }
.evento-hoja--2 { right: 3%;  top: 18%;    width: 44px;  opacity: 0.20; transform: rotate(-22deg) scaleX(-1); }
.evento-hoja--3 { left: 10%;  bottom: 18%; width: 38px;  opacity: 0.17; transform: rotate(-45deg); }
.evento-hoja--4 { right: 12%; bottom: 22%; width: 46px;  opacity: 0.17; transform: rotate(38deg) scaleX(-1); }

.evento-dino6 {
  position: absolute;
  right: 3%; bottom: 8%;
  width: 72px;
  opacity: 0.18;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.10));
  transform: scaleX(-1);
}

.evento-huella {
  position: absolute;
  pointer-events: none;
  opacity: 0.13;
}
.evento-huella--1 { left: 22%;  top: 42%;  width: 28px; transform: rotate(18deg); }
.evento-huella--2 { right: 24%; top: 52%;  width: 28px; transform: rotate(-22deg) scaleX(-1); }

.evento-ramaM {
  position: absolute;
  top: 8px; right: 18px;
  width: 85px;
  opacity: 0.16;
  pointer-events: none;
  transform: rotate(115deg) scaleX(-1);
}
.evento-ondas {
  position: absolute;
  bottom: 18px; left: 18px;
  width: 95px;
  opacity: 0.07;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   TEMÁTICA — DECORACIONES EXTRA
═══════════════════════════════════════════════ */
.tematica-hoja {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
}
.tematica-hoja--1 { left: 8%;   top: 38%;    width: 58px; transform: rotate(32deg); }
.tematica-hoja--2 { right: 8%;  top: 42%;    width: 50px; transform: rotate(-28deg) scaleX(-1); }
.tematica-hoja--3 { left: 32%;  bottom: 8%;  width: 42px; transform: rotate(-48deg); }

.tematica-huella-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.13;
}
.tematica-huella-deco--1 { left: 4%;   top: 52%;  width: 32px; transform: rotate(22deg); }
.tematica-huella-deco--2 { right: 4%;  top: 58%;  width: 32px; transform: rotate(-22deg) scaleX(-1); }

.tematica-mariposa {
  position: absolute;
  width: 28px;
  top: 12%; right: 18%;
  opacity: 0.20;
  pointer-events: none;
  animation: huevo-float 3.2s ease-in-out infinite alternate;
}
.tematica-ramaHojas {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 105px;
  opacity: 0.16;
  pointer-events: none;
  transform: rotate(155deg);
}

/* ═══════════════════════════════════════════════
   FOOTER — DECORACIONES EXTRA
═══════════════════════════════════════════════ */
.footer-pterodactyl {
  display: block;
  width: 52px;
  margin: 0 auto 10px;
  opacity: 0.18;
  filter: invert(80%) sepia(10%) saturate(150%) hue-rotate(20deg);
  animation: pterodactyl-hover 3.5s ease-in-out infinite alternate;
}
@keyframes pterodactyl-hover {
  from { transform: translateY(0) rotate(-4deg); }
  to   { transform: translateY(-7px) rotate(4deg); }
}

.footer-hojas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  opacity: 0.20;
}
.footer-hoja {
  width: 26px;
  height: auto;
  filter: invert(75%) sepia(8%);
}
.footer-hoja:nth-child(1) { transform: rotate(-22deg); }
.footer-hoja:nth-child(2) { transform: rotate(16deg); }
.footer-hoja:nth-child(4) { transform: rotate(-16deg); }
.footer-hoja:nth-child(5) { transform: rotate(22deg); }
.footer-ramapeque {
  width: 38px;
  height: auto;
  filter: invert(75%) sepia(8%);
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════
   GUÍA DE ESTILO: TICKET DINO-AVENTURA
═══════════════════════════════════════════════ */

/* PALETA DE COLORES */
:root {
  --dino-dark-green: #1d432a;
  --dino-orange:     #d97726;
  --dino-beige-bg:   #f2e8cf;
  --dino-brown:      #5c3d2e;
  --dino-bone:       #ffffff;
  --font-main:       'Archivo Black', sans-serif;
  --font-info:       'Oswald', sans-serif;
}

/* SECCIÓN TICKET */
.ticket-section {
  background: linear-gradient(180deg, var(--bone-white) 0%, #ede4cc 100%);
}

/* CONTENEDOR PRINCIPAL DEL TICKET */
.dino-ticket {
  display: flex;
  width: 900px;
  height: 400px;
  background-color: var(--dino-beige-bg);
  border: 3px solid var(--dino-dark-green);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 15px 15px 0px rgba(29, 67, 42, 0.1);
}

/* BANDA LATERAL (IDENTIFICADOR) */
.ticket-sidebar {
  width: 70px;
  background-color: var(--dino-dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px solid var(--dino-brown);
  flex-shrink: 0;
}

.ticket-sidebar span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--dino-beige-bg);
  font-family: var(--font-info);
  font-weight: 700;
  letter-spacing: 3px;
}

/* CUERPO DEL TICKET */
.ticket-content {
  flex-grow: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 4px dashed var(--dino-dark-green);
}

/* TÍTULO "DINO-AVENTURA" */
.dino-title {
  width: 100%;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120'%3E%3Ctext x='50%25' y='80' text-anchor='middle' font-family='Arial Black' font-size='75' font-weight='900' fill='white' stroke='%235c3d2e' stroke-width='5' style='filter:drop-shadow(5px 5px 0px %235c3d2e)'%3EDINO-AVENTURA%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 10px;
}

/* NOMBRE DEL FESTEJADO */
.child-name {
  font-family: var(--font-main);
  color: var(--dino-dark-green);
  font-size: 5rem;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}

/* DISTINTIVO DE EDAD */
.age-badge {
  font-family: var(--font-main);
  color: var(--dino-dark-green);
  font-size: 2.5rem;
  margin-top: -5px;
}

.age-number {
  color: var(--dino-orange);
  font-size: 3.5rem;
}

/* CUADRÍCULA DE INFORMACIÓN */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  margin-top: 25px;
}

.info-field {
  font-family: var(--font-info);
  color: var(--dino-dark-green);
  font-size: 1.1rem;
  text-transform: uppercase;
  border-bottom: 2px dotted var(--dino-dark-green);
}

.info-field b {
  color: var(--dino-dark-green);
}

/* TALÓN DESPRENDIBLE (DERECHA) */
.ticket-stub {
  width: 200px;
  flex-shrink: 0;
  background-color: var(--dino-dark-green);
  color: var(--dino-beige-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stub-info {
  font-family: var(--font-info);
  font-size: 0.9rem;
}

.stub-info b {
  color: var(--dino-orange);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
}

/* CÓDIGO DE BARRAS */
.barcode {
  background: white;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.barcode-img {
  filter: contrast(200%);
  width: 100%;
}

/* MUESCA CIRCULAR (CORTE DE TICKET) */
.ticket-stub::after {
  content: '';
  position: absolute;
  right: 188px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: #ede4cc;
  border-radius: 50%;
  border: 3px solid var(--dino-dark-green);
}

@media (max-width: 960px) {
  .dino-ticket {
    width: 700px;
    height: auto;
    min-height: 340px;
  }
  .child-name { font-size: 3.5rem; }
  .ticket-stub { width: 160px; }
  .ticket-stub::after { right: 148px; }
}

@media (max-width: 720px) {
  .dino-ticket {
    width: 560px;
    flex-direction: column;
    height: auto;
    border-radius: 16px;
  }
  .ticket-sidebar {
    width: 100%;
    height: 50px;
    border-right: none;
    border-bottom: 2px solid var(--dino-brown);
  }
  .ticket-sidebar span {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 4px;
  }
  .ticket-content {
    border-right: none;
    border-bottom: 4px dashed var(--dino-dark-green);
  }
  .ticket-stub {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .ticket-stub::after { display: none; }
  .child-name { font-size: 3rem; }
}

/* ═══════════════════════════════════════════════
   PROTECCIÓN DE IMÁGENES
═══════════════════════════════════════════════ */
.img-protect-wrap {
  position: relative;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* En photo-frame (img1, img2) */
.photo-frame .img-protect-wrap {
  width: 100%;
  align-self: stretch;
  min-height: 260px;
  border-radius: calc(var(--radius) - 3px);
}

/* Capa transparente encima que absorbe el long-press */
.img-protect-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: all;
  cursor: default;
}
