/* ===========================================================
   EL PATIET — sistema de diseño
   Paleta basada en el brief real del logo (letras-globo):
   azul, naranja, amarillo, rojo, verde, rosa, morado, turquesa.
   Fondo azul-cielo muy pálido -> evoca "globos en el cielo"
   sin caer en el crema+terracota genérico.
   =========================================================== */

:root {
  --bg: #F4F8FF;
  --surface: #FFFFFF;
  --ink: #1A2333;
  --ink-soft: #55607A;
  --border: #E1E9FA;

  --brand: #2452E0;
  --brand-dark: #17389E;
  --accent: #FF7A29;

  --balloon-yellow: #FFC93F;
  --balloon-red: #F2545B;
  --balloon-green: #33B579;
  --balloon-pink: #FF6FA5;
  --balloon-purple: #8C6BEC;
  --balloon-turquoise: #23B8C0;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow: 0 12px 32px rgba(23, 56, 158, 0.08);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fredoka', 'Work Sans', sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; max-width: 62ch; color: var(--ink-soft); }
a { color: var(--brand); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 248, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logotype {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  gap: 2px;
}
.logotype span:nth-child(1) { color: var(--brand); }
.logotype span:nth-child(2) { color: var(--accent); }
.logotype span:nth-child(4) { color: var(--balloon-green); }
.logotype span:nth-child(5) { color: var(--balloon-pink); }
.logotype span:nth-child(6) { color: var(--balloon-purple); }
.logotype span:nth-child(7) { color: var(--brand); }
.logotype span:nth-child(8) { color: var(--balloon-turquoise); }
.logotype span:nth-child(9) { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin-right: 26px; }
.nav-links li:last-child { margin-right: 0; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang-switch a[aria-current="true"] {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero .eyebrow-balloons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.eyebrow-balloons span {
  width: 12px; height: 12px; border-radius: 50%;
}
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero p.lead {
  max-width: 56ch;
  margin: 18px auto 30px;
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--border); }

/* ---------- Uso flexible (3 columnas) ---------- */
.use-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0;
}
.use-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 20px;
}
.use-card .dot { width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px; }
.use-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.use-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Secciones generales ---------- */
section { padding: 44px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
  counter-reset: step;
}
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { font-size: 0.95rem; }

/* ---------- Listas de comprobación / instalaciones ---------- */
.check-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.check-list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--balloon-green);
}

/* ---------- Nota / placeholder ---------- */
.note {
  border: 1.5px dashed #B9C6E8;
  background: #FBFDFF;
  border-radius: var(--radius-s);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 18px 0;
}
.note strong { color: var(--ink); }

/* ---------- Tablas de precios ---------- */
table.price-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--surface); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow); }
table.price-table th, table.price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
table.price-table th { background: var(--brand); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 500; }
table.price-table tr:last-child td { border-bottom: none; }

/* ---------- Galería placeholder ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.gallery-tile {
  aspect-ratio: 4/3;
  border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-family: 'Fredoka', sans-serif;
  text-align: center; padding: 12px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 1.05rem; }
.faq-item p { margin-top: 10px; }

/* ---------- Reservar (placeholder de calendario) ---------- */
.reserve-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.reserve-panel {
  background: var(--surface);
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  padding: 26px;
  box-shadow: var(--shadow);
}
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.cal-head strong { font-family:'Fredoka',sans-serif; text-transform:capitalize; }
.cal-head button { background:var(--bg); border:1px solid var(--border); border-radius:10px; width:34px; height:34px; font-size:1.1rem; cursor:pointer; color:var(--ink); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-dow { text-align:center; font-size:0.75rem; color:var(--ink-soft); font-weight:600; padding-bottom:4px; }
.cal-empty { aspect-ratio:1; }
.cal-status { grid-column: 1 / -1; text-align:center; color:var(--ink-soft); font-size:0.9rem; padding:20px 0; }
.cal-day {
  aspect-ratio:1; border-radius:8px; border:1px solid var(--border); background:var(--surface);
  font-family:inherit; font-size:0.85rem; color:var(--ink); cursor:pointer;
}
.cal-day.busy { background:var(--balloon-green); color:#fff; border-color:var(--balloon-green); cursor:not-allowed; }
.cal-day.past { background:var(--bg); color:var(--border); cursor:not-allowed; }
.cal-day.free:hover { border-color:var(--brand); }
.cal-day.selected { background:var(--brand); color:#fff; border-color:var(--brand); }
.cal-legend { display:flex; gap:16px; margin-top:14px; font-size:0.82rem; color:var(--ink-soft); }
.cal-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:5px; vertical-align:middle; }
.cal-dot.free { background:var(--surface); border:1px solid var(--border); }
.cal-dot.busy { background:var(--balloon-green); }

/* ---------- Formularios (input básico, para cuando llegue la fase de pago) ---------- */
label { display: block; font-size: 0.85rem; font-weight: 600; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--border); font-family: inherit; font-size: 1rem;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #C9D2E8;
  padding: 44px 0 28px;
  margin-top: 40px;
}
footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 26px;
  margin-bottom: 26px;
}
.footer-grid h4 { color: #fff; font-family: 'Fredoka', sans-serif; font-size: 1rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #8B97B8;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .nav-links { position: fixed; inset: 62px 0 0 0; background: var(--bg); flex-direction: column; padding: 24px; gap: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.18s; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .use-row, .steps { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reserve-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
