/* =========================
   Centro Infantil Balú
   Estilo marinero (elegante + infantil)
========================= */

:root{
  --ink:#0b2a5b;
  --blue:#1c67c2;
  --red:#e23b3b;
  --mint:#18a999;
  --sand:#fff6e8;
  --soft:#f4fbff;
  --line: rgba(11,42,91,.10);

  --shadow: 0 18px 55px rgba(0,0,0,.14);
  --shadow2: 0 12px 28px rgba(0,0,0,.10);

  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 14px;

  --max: 1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--ink);
  overflow-x:hidden;

  background:
    radial-gradient(900px 520px at 15% 0%, rgba(28,103,194,.12), transparent 60%),
    radial-gradient(780px 520px at 85% 10%, rgba(226,59,59,.10), transparent 55%),
    radial-gradient(900px 520px at 50% 110%, rgba(24,169,153,.08), transparent 60%),
    #fff;
}

/* enlaces */
a{ color:inherit; }
a:hover{ text-decoration:underline; }

/* =========================
   HEADER / NAV
========================= */
.topbar{
  position:sticky;
  top:0;
  z-index:50;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  padding: 12px min(22px, 4vw);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  width:52px;
  height:52px;
  object-fit:cover;
  border-radius: 16px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
}

.brand strong{
  font-size: 20px;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.nav a{
  text-decoration:none;
  font-weight:900;
  padding: 10px 10px;
  border-radius: 12px;
  opacity:.92;
}

.nav a:hover{
  text-decoration:none;
  background: rgba(28,103,194,.10);
}

/* =========================
   BOTONES
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 16px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 950;

  color:#fff;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 16px 34px rgba(28,103,194,.20);
  transition: transform .15s ease, box-shadow .15s ease;
  border: 0;
}

.btn:hover{
  text-decoration:none;
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(28,103,194,.28);
}

.btn-ghost{
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border: 1px solid rgba(11,42,91,.18);
  box-shadow:none;
}

.btn-ghost:hover{
  background: rgba(226,59,59,.08);
}

/* =========================
   HERO
========================= */
.hero{
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding: 28px 0 18px;

  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 26px;
  align-items:center;
}

.hero-text h1{
  margin:0 0 10px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: .2px;
}

.hero-text h2{
  margin:0 0 14px;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 950;
  color: rgba(28,103,194,.92);
  letter-spacing: .35px;
}

.hero-text p{
  margin:0;
  color: rgba(11,42,91,.72);
  font-weight: 750;
  line-height: 1.7;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 16px;
}

.mini{
  margin-top: 14px;
  font-weight: 850;
  color: rgba(11,42,91,.70);
}

/* Tarjeta suave detrás del texto (toque elegante) */
.hero-text{
  padding: 18px 18px 20px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.55));
  border: 1px solid rgba(11,42,91,.08);
  box-shadow: 0 18px 48px rgba(0,0,0,.06);
}

/* =========================
   BARCO (SVG) + FLOTAR
========================= */
.boat{
  display:flex;
  justify-content:center;
  align-items:center;
  animation: floatBoat 4.2s ease-in-out infinite;
}

@keyframes floatBoat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

.boat svg{
  width: min(520px, 92vw);
  height:auto;
  border-radius: 28px;
  border: 1px solid rgba(11,42,91,.08);
  box-shadow: var(--shadow);
  background:#fff;
}

/* =========================
   SECCIONES
========================= */
.section{
  padding: 64px 0;
}

.container{
  width: min(980px, 92vw);
  margin: 0 auto;
}

.section h2{
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing:.2px;
}

.section p{
  margin: 10px 0;
  color: rgba(11,42,91,.72);
  font-weight: 720;
  line-height: 1.75;
}

/* Fondo alterno marinero suave */
.alt{
  background:
    linear-gradient(180deg, rgba(28,103,194,.06), rgba(226,59,59,.04)),
    radial-gradient(900px 520px at 10% 20%, rgba(24,169,153,.08), transparent 60%),
    #fff;
  border-top: 1px solid rgba(11,42,91,.06);
  border-bottom: 1px solid rgba(11,42,91,.06);
}

/* =========================
   GALERÍA
========================= */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gallery img{
  width:100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid rgba(11,42,91,.10);
  background:#fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.gallery img:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 26px 70px rgba(0,0,0,.16);
}

/* =========================
   FOOTER
========================= */
footer{
  text-align:center;
  padding: 26px 0 70px;
  color: rgba(11,42,91,.75);
  font-weight: 900;
  background: rgba(255,255,255,.9);
  border-top: 1px solid rgba(11,42,91,.08);
}

/* =========================
   WHATSAPP FLOTANTE
========================= */
.whatsapp-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;

  background:#25D366;
  color:#fff;
  text-decoration:none;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 950;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  transition: transform .16s ease, box-shadow .16s ease;
}

.whatsapp-float:hover{
  text-decoration:none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 52px rgba(0,0,0,.28);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr;
    padding: 22px 0 8px;
  }

  .nav{ display:none; }

  .hero-text{
    text-align:center;
  }
}