/* ==========================================================================
   Fuentes Especiales: Día Internacional del Niño
   ========================================================================== */
@font-face {
  font-family: 'Korachi';
  src: url('assets/Korachi.otf') format('opentype'),
       url('assets/Tipografia%20día%20del%20Niño/Korachi.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Scribble Kidsy';
  src: url('assets/ScribbleKidsy.otf') format('opentype'),
       url('assets/Tipografia%20día%20del%20Niño/ScribbleKidsy.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1a789e;
  --orange: #e2831e;
  --purple: #761354;
  --red: #a21e00;
  --teal: #139da3;
  --cream: #f7f3ec;
  --light: #f5f5f5;
  --text: #17333d;
  --font-title: 'Korachi', 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body: 'Scribble Kidsy', 'General Sans', system-ui, sans-serif;

  /* Theme colors matching Robinson Crusoe */
  --turquoise-dark: #107579;
  --turquoise-medium: #139da3;
  --turquoise-light: #e6f4f5;
  
  /* Section-specific backgrounds */
  --pink: #d85fb0;
  --pink-light: #fdf6fa;
  --pink-dark: #cf66a2;
  --orange-dark: #cc7212;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-body), sans-serif;
  overflow-x: hidden;
}

/* Conservar tipografía legible en menú de navegación y footer */
.site-header, 
.site-header a, 
.site-header .main-nav,
.footer-wrapper,
.footer-wrapper p,
.footer-wrapper h2,
.footer-wrapper input,
.footer-wrapper button {
  font-family: 'General Sans', 'Inter', system-ui, sans-serif !important;
}

/* ==========================================================================
   Animaciones Infantiles y Efectos Lúdicos (Entrada & Hover)
   ========================================================================== */

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  70% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Animación Estilo Explosión / Inflado de Globo (Balloon Pop) */
@keyframes balloonPop {
  0% {
    opacity: 0;
    transform: scale(0.2) translateY(50px) rotate(-10deg);
    filter: blur(4px);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.15) translateY(-12px) rotate(4deg); /* Inflado de globo previo a soltarse */
  }
  75% {
    transform: scale(0.94) translateY(4px) rotate(-2deg); /* Rebote elástico */
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes balloonPopHover {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.08) translateY(-6px) rotate(-3deg); }
  65% { transform: scale(0.97) translateY(-12px) rotate(3deg); }
  85% { transform: scale(1.04) translateY(-10px) rotate(-1deg); }
  100% { transform: scale(1.03) translateY(-10px) rotate(1.5deg); }
}

/* Subpage Hero */
.hero {
  min-height: 380px;
  background: var(--teal, #139da3);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/textura%20fondo.png') center/cover;
  opacity: 0.12;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(34px, 5.5vw, 50px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 3px 3px 0px rgba(0,0,0,0.12);
  animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: transform 0.35s ease, text-shadow 0.35s ease;
  cursor: default;
}

.hero h1:hover {
  transform: scale(1.05) rotate(-1deg);
  text-shadow: 5px 5px 0px rgba(0,0,0,0.2);
}

/* Layout Sections */
.child-section {
  padding: 90px 24px;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Section 1: Key Biscayne (Pink Theme) */
.child-section.key-biscayne {
  background: var(--pink-light);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.child-section.key-biscayne::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/Texturas/textura%20rosa.png');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.child-section.key-biscayne .mockup-date-card .card-header {
  background: var(--pink-dark);
}

.child-section.key-biscayne .card-time {
  color: var(--pink);
}

.child-section.key-biscayne .mockup-title {
  color: var(--pink-dark);
}

.child-section.key-biscayne .schedule-info h2 {
  color: var(--pink-dark);
  text-align: left;
}

.child-section.key-biscayne .mockup-date-card:hover .card-day {
  color: var(--pink-dark);
}

/* Section 2: Koubek Center (Orange Theme) */
.child-section.koubek {
  background: #fff6eb;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.child-section.koubek::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/Texturas/textura%20amarilla.png');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.child-section.koubek .mockup-date-card .card-header {
  background: var(--orange);
}

.child-section.koubek .card-time {
  color: var(--orange);
}

.child-section.koubek .schedule-info h2 {
  color: var(--orange);
  text-align: left;
}

.child-section.koubek .mockup-date-card:hover .card-day {
  color: var(--orange);
}

.child-section.play-details {
  background: var(--teal);
  color: #ffffff;
  position: relative;
  padding-top: 20px !important;
  padding-bottom: 60px !important;
}

.child-section.play-details::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/textura%20fondo.png') center/cover;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.child-section.play-details > * {
  position: relative;
  z-index: 2;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* Date Card Layout - Playful Balloon Pop Style (Scroll-Triggered) */
.mockup-date-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  text-align: center;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.3) translateY(40px);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.4s ease;
  position: relative;
}

.mockup-date-card.in-view {
  opacity: 1;
  animation: balloonPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.mockup-date-card.in-view:hover {
  opacity: 1;
  transform: translateY(-10px) rotate(1.5deg) scale(1.03);
  box-shadow: 0 20px 45px rgba(19, 157, 163, 0.22), 0 0 0 6px rgba(255, 255, 255, 0.7);
}

.mockup-date-card .card-header {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  padding: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mockup-date-card .card-body {
  padding: 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mockup-date-card .card-day {
  font-family: var(--font-title);
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 5px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.mockup-date-card:hover .card-day {
  transform: scale(1.22) rotate(-2deg);
}

.mockup-date-card .card-weekday {
  font-size: 17px;
  font-weight: 600;
  color: #7a8d94;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.mockup-date-card .card-time {
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding-top: 15px;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 600;
}

/* Schedule Info & Playful Titles */
.venue-header-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.venue-logo-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.venue-logo-box img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.venue-header-text h2 {
  margin: 0 0 4px !important;
}

.venue-header-text .venue-address {
  margin: 0 !important;
}

.schedule-info h2 {
  font-family: var(--font-title);
  font-size: 38px;
  text-transform: uppercase;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-align: left;
  transition: transform 0.3s ease;
}

.schedule-info h2:hover {
  animation: wiggle-hover 0.5s ease-in-out;
}

.schedule-info .venue-address {
  font-size: 18px;
  opacity: 0.85;
  margin: 0 0 40px;
}

/* Mockup Title Styles */
.mockup-title {
  font-family: var(--font-title);
  font-size: 42px;
  text-transform: uppercase;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease;
}

.mockup-title:hover {
  animation: wiggle-hover 0.5s ease-in-out;
}

.mockup-credits {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 15px;
}

.mockup-credits strong {
  font-weight: 700;
}

.mockup-company {
  font-size: 17px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Activities List - Playful Interactive Items */
.mockup-activities {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.mockup-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  line-height: 1.4;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 2px dashed rgba(226, 131, 30, 0.3);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  white-space: nowrap;
}

.mockup-activity-item:hover {
  transform: translateX(10px) scale(1.02);
  background: #ffffff;
  border-color: var(--orange);
  border-style: solid;
  box-shadow: 0 10px 25px rgba(226, 131, 30, 0.18);
}

.activity-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-right: 4px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.child-section.koubek .activity-icon-svg {
  color: var(--orange);
}

.child-section.key-biscayne .activity-icon-svg {
  color: var(--pink-dark);
}

.mockup-activity-item:hover .activity-icon-svg {
  transform: scale(1.25) rotate(8deg);
}

.mockup-activity-time {
  font-family: var(--font-title);
  font-weight: 700;
  white-space: nowrap;
  color: var(--orange);
  background: #fff0e0;
  padding: 4px 12px;
  border-radius: 20px;
}

.mockup-activity-desc {
  opacity: 0.95;
  white-space: nowrap;
}

/* Reservar Button - Bouncy Scale on Hover */
.mockup-date-card a[href="obra-robinson-crusoe.html"] {
  transition: transform 0.25s ease, background-color 0.25s ease !important;
}

.mockup-date-card a[href="obra-robinson-crusoe.html"]:hover {
  transform: scale(1.1) rotate(-2deg) !important;
  background-color: var(--orange-dark) !important;
}

/* Play Bio Section */
.play-bio-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.play-bio-wrap h2.play-title {
  font-family: var(--font-title);
  font-size: clamp(15px, 3.1vw, 38px);
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.play-bio-wrap h2.play-title:hover {
  animation: wiggle-hover 0.5s ease-in-out;
}

.play-bio-wrap .play-country {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.play-bio-wrap .author-info {
  font-size: 21px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  text-align: center;
}

.play-bio-text {
  font-size: 22px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  text-align: justify;
}

.play-bio-text p {
  margin-bottom: 24px;
}

/* Free Tag - Floating Playful Badge */
.free-tag {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 12px 32px;
  border-radius: 99px;
  margin-bottom: 50px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: popIn 0.8s ease-out forwards;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.free-tag:hover {
  transform: scale(1.1) rotate(2deg);
  border-style: solid;
  background: rgba(255, 255, 255, 0.35);
}

/* Image Gallery Grid - Playful Polaroid Cards */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.photo-card {
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 3;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-card:nth-child(even) {
  transform: rotate(-1.5deg);
}

.photo-card:nth-child(odd) {
  transform: rotate(1.5deg);
}

.photo-card:hover {
  transform: scale(1.08) rotate(0deg) translateY(-8px) !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Decorative Floating Pirate Icons & Scroll Reveals */
.pirate-icon {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: scale(0.4) translateY(40px) rotate(-10deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

.pirate-icon.in-view {
  opacity: 0.95;
  transform: scale(1) translateY(0) rotate(0deg);
}

/* Unique Icon Sizes */
.pirate-icon.skull { width: 130px; height: auto; }
.pirate-icon.compass { width: 220px; height: auto; }
.pirate-icon.island { width: 250px; height: auto; }
.pirate-icon.ship { width: 200px; height: auto; }
.pirate-icon.waves { width: 260px; height: auto; }
.pirate-icon.footprints { width: 220px; height: auto; }
.pirate-icon.treasure-x { width: 120px; height: auto; }

/* 1. Compass: Smooth Slow 360 Rotation + Bobbing */
.pirate-icon.compass.in-view {
  animation: pirate-compass-spin 16s ease-in-out infinite alternate;
}
@keyframes pirate-compass-spin {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-16px) rotate(180deg) scale(1.05); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}

/* 2. Ship: Nautical Wave Rocking Motion */
.pirate-icon.ship.in-view {
  animation: pirate-ship-sailing 5s ease-in-out infinite alternate;
}
@keyframes pirate-ship-sailing {
  0% { transform: translateY(0) rotate(-4deg) translateX(0); }
  50% { transform: translateY(-18px) rotate(5deg) translateX(8px); }
  100% { transform: translateY(-4px) rotate(-3deg) translateX(-4px); }
}

/* 3. Island: Tropical Breeze Sway */
.pirate-icon.island.in-view {
  animation: pirate-island-breeze 7.5s ease-in-out infinite alternate;
}
@keyframes pirate-island-breeze {
  0% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-12px) rotate(3deg) scale(1.03); }
  100% { transform: translateY(0) rotate(-1deg) scale(1); }
}

/* 4. Waves: Gentle Ocean Drift */
.pirate-icon.waves.in-view {
  animation: pirate-waves-drift 6s ease-in-out infinite alternate;
}
@keyframes pirate-waves-drift {
  0% { transform: translateX(0) translateY(0); opacity: 0.6; }
  50% { transform: translateX(15px) translateY(-8px); opacity: 0.85; }
  100% { transform: translateX(-10px) translateY(4px); opacity: 0.65; }
}

/* 5. Footprints: Walking Trail Step Fade */
.pirate-icon.footprints.in-view {
  animation: pirate-footprints-walk 4s ease-in-out infinite alternate;
}
@keyframes pirate-footprints-walk {
  0% { transform: scale(0.96) translateY(0); opacity: 0.4; }
  50% { transform: scale(1.04) translateY(-6px); opacity: 0.75; }
  100% { transform: scale(1) translateY(0); opacity: 0.5; }
}

/* 6. Skull: Mystical Hover & Tilt */
.pirate-icon.skull.in-view {
  animation: pirate-skull-hover 6.5s ease-in-out infinite alternate;
}
@keyframes pirate-skull-hover {
  0% { transform: translateY(0) rotate(-5deg) scale(1); }
  50% { transform: translateY(-15px) rotate(6deg) scale(1.08); }
  100% { transform: translateY(0) rotate(-3deg) scale(1); }
}

/* 7. Treasure X: Pop & Pulse Accent */
.pirate-icon.treasure-x.in-view {
  animation: pirate-treasure-pulse 2.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes pirate-treasure-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.22) rotate(8deg); }
}

@media (max-width: 900px) {
  .section-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .mockup-date-card {
    margin: 0 auto;
  }
  .schedule-info {
    text-align: center;
  }

  .venue-header-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 25px;
  }

  .venue-logo-box {
    margin: 0 auto;
    min-width: 140px;
    height: 70px;
    padding: 10px 18px;
  }

  .venue-header-text {
    text-align: center;
  }

  .venue-header-text h2,
  .schedule-info h2 {
    text-align: center;
    font-size: clamp(22px, 5.5vw, 30px);
    margin-bottom: 6px !important;
    line-height: 1.2;
  }

  .venue-header-text .venue-address,
  .schedule-info .venue-address {
    text-align: center;
    font-size: 15px;
    margin-bottom: 20px !important;
  }

  .mockup-title {
    text-align: center;
    font-size: clamp(22px, 5.5vw, 32px);
    line-height: 1.25;
  }

  .mockup-credits,
  .mockup-company {
    text-align: center;
  }

  .mockup-activities {
    align-items: center;
  }
  .mockup-activity-item {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 18px;
    white-space: normal;
  }
  .mockup-activity-desc {
    white-space: normal;
  }
  .play-bio-wrap {
    text-align: center;
  }
  .play-bio-text {
    font-size: 18px;
  }

  .pirate-icon.skull { width: 85px; }
  .pirate-icon.compass { width: 130px; }
  .pirate-icon.island { width: 140px; }
  .pirate-icon.ship { width: 120px; }
  .pirate-icon.waves { width: 160px; }
  .pirate-icon.treasure-x { width: 80px; }
  .pirate-icon.footprints { width: 130px; }
}

/* Adjust hero height on mobile */
@media (max-width: 900px) {
  .hero {
    min-height: 260px !important;
    padding: 70px 18px !important;
  }
}
