/* =====================================================================
   Cumple Inflable — Hoja de estilos principal
   Paleta: tomada del logo (rojo, amarillo, azul, verde sobre tinta navy)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --ci-primary: #E8392E;      /* rojo del logo */
  --ci-primary-dark: #C62F26;
  --ci-secondary: #FFC72C;    /* amarillo del logo */
  --ci-accent: #2E8FE0;       /* azul del logo */
  --ci-accent-dark: #1E6FB8;
  --ci-green: #4CAF50;        /* verde del logo */
  --ci-teal: #2E8FE0;         /* alias legado -> azul */
  --ci-ink: #16294D;          /* navy del contorno del logo */
  --ci-muted: #5b6584;
  --ci-soft-bg: #FFF8ED;
  --ci-radius: 1rem;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --bs-primary: var(--ci-primary);
  --bs-primary-rgb: 232, 57, 46;
}

body {
  font-family: var(--font-body);
  color: var(--ci-ink);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .eyebrow, .step-num, .stat-value {
  font-family: var(--font-display);
}

a { text-decoration: none; }

.skip-link {
  position: absolute; top: 0; left: 0; background: var(--ci-primary); color: #fff;
  padding: 8px 16px; z-index: 2000;
}

/* ---------- Botones ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--ci-primary), var(--ci-secondary));
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--ci-primary-dark), var(--ci-secondary));
}
.btn-outline-primary {
  color: var(--ci-primary);
  border-color: var(--ci-primary);
}
.btn-outline-primary:hover {
  background: var(--ci-primary);
  border-color: var(--ci-primary);
}

/* ---------- Navbar ---------- */
.navbar-brand { color: var(--ci-ink) !important; font-size: 1.25rem; position: relative; overflow: visible; }
.brand-badge { font-size: 1.5rem; }
.brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
footer.footer-site .brand-logo-img { height: 72px; margin: 0; filter: none; }
.nav-link { font-weight: 500; color: var(--ci-ink) !important; }
.nav-link:hover { color: var(--ci-primary) !important; }

/* Logo grande y flotante, solo en la portada */
.is-home .brand-logo-img {
  height: 108px;
  width: auto;
  display: block;
  position: relative;
  z-index: 5;
  margin: 8px 0 -68px 0;
  filter: drop-shadow(0 6px 12px rgba(22, 41, 77, .25));
  transition: height .25s ease, margin .25s ease;
}

/* En la portada, el logo se encoge al hacer scroll para no tapar el contenido */
.is-home .navbar-scrolled .brand-logo-img {
  height: 56px;
  margin: 0;
}

@media (max-width: 991.98px) {
  .navbar-top-row { position: relative; width: 100%; }
  .navbar-toggler { margin-left: auto; position: relative; z-index: 10; }
  .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -52%);
    margin: 0;
  }
  .is-home .brand-logo-img { margin: -4px 0 -60px 0; }
  .is-home .navbar-scrolled .brand-logo-img { margin: 0; }
}

/* ---------- Eyebrow / etiquetas de sección ---------- */
.eyebrow {
  display: inline-block; color: var(--ci-primary); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem;
}

.bg-soft { background: var(--ci-soft-bg); }

/* ---------- Hero ---------- */
.hero-slide {
  min-height: 560px; background-size: cover; background-position: center;
  position: relative;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(43,43,61,.75) 0%, rgba(43,43,61,.35) 60%, rgba(43,43,61,.15) 100%);
}
.hero-section .carousel-item { transition: opacity 1s ease; }
.hero-overlay { z-index: 1; }
.hero-slide > .container { position: relative; z-index: 3; }
.text-white-75 { color: rgba(255,255,255,.9); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp .7s ease both; }
.animate-fade-up.delay-1 { animation-delay: .15s; }
.animate-fade-up.delay-2 { animation-delay: .3s; }

/* ---------- Círculos flotantes del hero ---------- */
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.blob {
  position: absolute; border-radius: 50%; opacity: .55; filter: blur(0px);
  animation: blobFloat 7s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.05); }
}
.blob1 { width: 120px; height: 120px; background: var(--ci-secondary); top: 12%; right: 16%; animation-delay: 0s; }
.blob2 { width: 84px; height: 84px; background: var(--ci-accent); top: 42%; right: 6%; animation-delay: 1.2s; }
.blob3 { width: 60px; height: 60px; background: var(--ci-green); top: 68%; right: 24%; animation-delay: 2.4s; }
.blob4 { width: 46px; height: 46px; background: var(--ci-secondary); top: 20%; left: 6%; animation-delay: 1.8s; }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }
@media (max-width: 767px) { .hero-blobs { display: none; } }

/* ---------- Tarjetas de juegos ---------- */
.game-card {
  border-radius: var(--ci-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(43,43,61,.12) !important; }
.game-card-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0f0f5; display: flex; align-items: center; justify-content: center; }
.game-card-img-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .4s ease; }
.game-card:hover .game-card-img-wrap img { transform: scale(1.06); }

.badge-oferta {
  position: absolute; top: 10px; right: 10px; background: var(--ci-secondary); color: var(--ci-ink);
  font-size: .7rem; font-weight: 800; padding: .3rem .6rem; border-radius: 999px;
}
.badge-oferta.static { position: static; display: inline-block; }

.game-detail-img { width: 100%; height: 480px; object-fit: contain; object-position: center; background: #f0f0f5; }
.condiciones-banner { background: var(--ci-soft-bg); border: 1px solid var(--ci-secondary); color: var(--ci-ink); transition: background .2s ease; }
.condiciones-banner:hover { background: #FFF0CE; color: var(--ci-ink); }
.condiciones-banner i.bi-shield-exclamation { color: var(--ci-primary); }
#acuaticos, #generales { scroll-margin-top: 100px; }
.game-spec-list li { padding: .35rem 0; color: var(--ci-muted); }
.game-spec-list i { color: var(--ci-primary); width: 22px; }

/* ---------- Filtros catálogo ---------- */
.filter-bar { border-radius: var(--ci-radius); }

/* ---------- Beneficios / pasos ---------- */
.benefit-item { border-radius: var(--ci-radius); transition: transform .2s ease; }
.benefit-item:hover { transform: translateY(-4px); }
.benefit-icon {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ci-primary), var(--ci-secondary)); color: #fff; font-size: 1.6rem;
  margin: 0 auto;
}
.step-circle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ci-ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
}

/* ---------- Testimonios ---------- */
.testimonial-card {
  background: #fff; border-radius: var(--ci-radius); box-shadow: 0 6px 20px rgba(43,43,61,.06);
  transition: transform .2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }

/* ---------- Galería ---------- */
.gallery-thumb { overflow: hidden; border-radius: var(--ci-radius); }
.gallery-thumb img { transition: transform .3s ease; aspect-ratio: 1/1; object-fit: cover; }
.gallery-thumb:hover img { transform: scale(1.08); }

/* ---------- Footer ---------- */
.footer-site { background: var(--ci-ink); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }
.text-light-50 { color: rgba(255,255,255,.6) !important; }
.border-light-50 { border-color: rgba(255,255,255,.15) !important; }

/* ---------- Flotantes ---------- */
.whatsapp-float, .call-float {
  position: fixed; right: 20px; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 1050; transition: transform .2s ease;
}
.whatsapp-float { bottom: 24px; background: #25D366; }
.call-float { bottom: 94px; background: var(--ci-primary); }
.whatsapp-float:hover, .call-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Formulario de reserva ---------- */
.game-picker-results {
  max-height: 320px; overflow-y: auto; border: 1px solid #eee; border-radius: .75rem; margin-top: -6px;
}
.game-picker-item {
  display: flex; align-items: center; gap: .75rem; width: 100%; border: none; background: none;
  padding: .6rem .8rem; text-align: left; border-bottom: 1px solid #f2f2f5;
}
.game-picker-item:hover { background: var(--ci-soft-bg); }
.game-picker-item img { width: 48px; height: 48px; border-radius: .5rem; object-fit: cover; }
.game-picker-item span { display: flex; flex-direction: column; }

.selected-game-card {
  display: flex; align-items: center; gap: 1rem; background: var(--ci-soft-bg); border-radius: var(--ci-radius);
  padding: .75rem 1rem;
}
.selected-game-card img { width: 64px; height: 64px; border-radius: .75rem; object-fit: cover; }

.disponibilidad-msg { padding: .65rem 1rem; border-radius: .6rem; font-size: .9rem; font-weight: 600; }
.disponibilidad-msg.checking { background: #eef1ff; color: #4c6ef5; }
.disponibilidad-msg.available { background: #e6fbef; color: #2b8a3e; }
.disponibilidad-msg.unavailable { background: #fff0f0; color: #c92a2a; }

/* ---------- Calendario visual de reserva ---------- */
.booking-calendar {
  background: var(--ci-soft-bg); border-radius: var(--ci-radius); padding: 1.25rem;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.cal-month { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: capitalize; color: var(--ci-ink); }
.cal-nav { display: flex; gap: .5rem; }
.cal-nav button {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid #e5e0d5;
  font-weight: 800; color: var(--ci-ink); cursor: pointer;
}
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-nav button:not(:disabled):hover { background: var(--ci-primary); color: #fff; border-color: var(--ci-primary); }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-weekdays span { text-align: center; font-size: .7rem; font-weight: 800; color: var(--ci-muted); }

.cal-daygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  aspect-ratio: 1; border-radius: .6rem; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; background: transparent; border: none; transition: transform .12s ease;
}
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: #cfc9dd; }
.cal-day.avail { background: #e3fbf6; color: #0c8f60; cursor: pointer; }
.cal-day.avail:hover { transform: scale(1.1); box-shadow: 0 0 0 2px var(--ci-green) inset; }
.cal-day.booked { background: #ffe7de; color: #c23b14; cursor: not-allowed; }
.cal-day.selected { background: var(--ci-primary); color: #fff; transform: scale(1.1); }

.cal-legend { display: flex; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.cal-legend span { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--ci-muted); }
.cal-dot { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.cal-dot.avail { background: #0c8f60; }
.cal-dot.booked { background: #c23b14; }
.cal-dot.selected { background: var(--ci-primary); }

/* ---------- Contacto ---------- */
.contact-info-card { background: var(--ci-soft-bg); border-radius: var(--ci-radius); }
.contact-info-list li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; }
.contact-info-list i { color: var(--ci-primary); font-size: 1.1rem; }

/* ---------- Accesibilidad / utilidades ---------- */
::selection { background: var(--ci-primary); color: #fff; }

@media (max-width: 767px) {
  .hero-slide { min-height: 460px; }
  .game-detail-img { height: 300px; }
  .whatsapp-float, .call-float { width: 50px; height: 50px; font-size: 1.35rem; }
}
