/* ===== Pieza a Pieza · Escuela Infantil ===== */
/* Palette taken from the logo: coral, sunshine, leaf, sky, navy */
:root {
  --coral:   #ff6b6b;
  --coral-d: #e8504f;
  --sun:     #ffc44d;
  --leaf:    #5fc77a;
  --sky:     #4aa3e0;
  --navy:    #25324f;
  --pink-bg: #fff1f3;
  --tint:    #fbf7ff;
  --ink:     #2c3242;
  --muted:   #6b7280;
  --line:    #eee4ec;
  --white:   #ffffff;

  --radius:  18px;
  --radius-lg: 28px;
  --shadow:  0 10px 30px rgba(37, 50, 79, .08);
  --shadow-soft: 0 6px 18px rgba(37, 50, 79, .06);
  --max:     1140px;

  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

/* ---- Reset / base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .4em; }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 820px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--tint); }
.kicker {
  font-family: var(--font-head);
  font-weight: 700; color: var(--coral);
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; margin-bottom: .35em;
}
.section-intro { color: var(--muted); max-width: 760px; font-size: 1.08rem; margin-bottom: 2.4rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  padding: .85em 1.6em; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease;
  font-size: 1rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255,107,107,.4); }
.btn-primary:hover { background: var(--coral-d); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 700; font-size: .96rem; color: var(--navy);
  padding: .5em .8em; border-radius: 10px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--coral); background: var(--pink-bg); }
.nav .nav-cta { background: var(--coral); color: #fff; padding: .55em 1.2em; }
.nav .nav-cta:hover { background: var(--coral-d); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; background: linear-gradient(160deg, var(--pink-bg) 0%, #fef6ec 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: clamp(48px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.eyebrow { font-family: var(--font-head); font-weight: 700; color: var(--sky); letter-spacing: .04em; margin-bottom: .6em; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; color: var(--navy); }
.hero h1 .accent { color: var(--coral); }
.lead { font-size: 1.15rem; color: #4a5160; margin: 1.1em 0 1.8em; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { background: #fff; box-shadow: var(--shadow-soft); border-radius: 999px; padding: .5em 1em; font-weight: 700; font-size: .9rem; color: var(--navy); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(360px, 85%); height: auto; filter: drop-shadow(0 18px 30px rgba(37,50,79,.18)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-blobs .blob { position: absolute; border-radius: 50%; opacity: .35; filter: blur(8px); }
.blob.b1 { width: 220px; height: 220px; background: var(--sun); top: -60px; right: 8%; }
.blob.b2 { width: 160px; height: 160px; background: var(--leaf); bottom: 40px; left: -40px; opacity: .25; }
.blob.b3 { width: 120px; height: 120px; background: var(--sky); top: 30%; left: 45%; opacity: .18; }

.wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--white);
  -webkit-mask: radial-gradient(40px 40px at 40px 0, transparent 98%, #000) repeat-x;
  mask: radial-gradient(40px 40px at 40px 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 80px 60px; mask-size: 80px 60px;
}

/* ===== Vídeo ===== */
.center { text-align: center; }
.center-intro { margin-inline: auto; }
.section-video { background: linear-gradient(160deg, #fff 0%, var(--pink-bg) 100%); }
.video-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 4px solid #fff; background: #000; margin-top: 1rem;
}
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ===== Nosotras ===== */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 2.4rem 0; }
.founder-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.founder-initials {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--coral), var(--sun)); margin-bottom: 14px;
}
.founder-card:nth-child(2) .founder-initials { background: linear-gradient(135deg, var(--sky), var(--leaf)); }
.founder-card p { color: var(--muted); margin-top: .4em; }
.why-name { background: var(--pink-bg); border-left: 5px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; }
.why-name .puzzle { font-size: 1.2rem; }

/* ===== Cards grid (methods) ===== */
.cards-grid { display: grid; gap: 22px; }
.methods { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; display: block; margin-bottom: .4em; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; }

/* ===== Values ===== */
.values-block { margin-top: 3rem; text-align: center; }
.values-title { margin-bottom: 1.2rem; }
.values-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.values-list li {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .5em 1.1em;
}
.values-list li:nth-child(4n+1) { border-color: var(--coral); color: var(--coral); }
.values-list li:nth-child(4n+2) { border-color: var(--sun); color: #d99500; }
.values-list li:nth-child(4n+3) { border-color: var(--leaf); color: #3f9d57; }
.values-list li:nth-child(4n)   { border-color: var(--sky); color: var(--sky); }

/* ===== Instalaciones ===== */
.spaces-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.6rem; }
.space-chip { background: var(--pink-bg); color: var(--navy); font-weight: 700; padding: .55em 1.1em; border-radius: 12px; font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #f3f3f3; }
.gallery figcaption { padding: 14px 18px; font-weight: 700; color: var(--navy); }

/* ===== Tables ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); }
.data-table thead th:first-child { border-top-left-radius: 12px; }
.data-table thead th:last-child { border-top-right-radius: 12px; }
.data-table tbody th { font-family: var(--font-head); color: var(--navy); background: var(--pink-bg); }
.data-table tbody tr:nth-child(even) td { background: #faf8fc; }

/* ===== Horarios ===== */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.schedule-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.schedule-card h3 { margin-bottom: 1rem; color: var(--coral); }

/* ===== Menús ===== */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 2.4rem; }
.menu-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.menu-card h3 { margin-bottom: 1rem; color: var(--leaf); }
.menu-table { font-size: .82rem; }
.menu-table th, .menu-table td { padding: 8px 9px; }
.menu-table thead th { text-align: center; }
.menu-note { color: var(--muted); font-size: .85rem; margin-top: .8rem; font-style: italic; }
.allergy-box { background: var(--pink-bg); border-radius: var(--radius); padding: 28px; }
.allergy-box h3 { margin-bottom: .6rem; }
.allergy-box ul { margin: 1rem 0 0 1.1rem; color: var(--ink); }
.allergy-box li { margin-bottom: .5em; }

/* ===== Precios ===== */
.price-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 3rem; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); position: relative; }
.price-card.featured { border: 2px solid var(--coral); box-shadow: 0 12px 30px rgba(255,107,107,.18); }
.price-card.featured::after { content: "Más completo"; position: absolute; top: -13px; right: 20px; background: var(--coral); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; padding: .25em .9em; border-radius: 999px; }
.price-card h3 { color: var(--navy); }
.price-sub { color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.extras-title { text-align: center; margin-bottom: 1.6rem; }
.extras-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.extra { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.extra-icon { font-size: 1.6rem; flex-shrink: 0; }
.extra strong { color: var(--navy); font-family: var(--font-head); }
.extra p { color: var(--muted); font-size: .92rem; margin-top: .2em; }
.pay-note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: .95rem; }

/* ===== Equipo ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); border-top: 4px solid var(--sun); }
.team-card:nth-child(4n+1) { border-top-color: var(--coral); }
.team-card:nth-child(4n+2) { border-top-color: var(--leaf); }
.team-card:nth-child(4n+3) { border-top-color: var(--sky); }
.team-card h3 { font-size: 1.05rem; margin-bottom: .6em; }
.team-card p { color: var(--muted); font-size: .94rem; }
.team-card strong { color: var(--ink); }

/* ===== Ubicación ===== */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.loc-list { list-style: none; margin-top: 1.4rem; display: grid; gap: .7rem; }
.loc-list li { font-weight: 700; color: var(--navy); }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.location-map img { width: 100%; }

/* ===== Contacto ===== */
.section-contact { background: linear-gradient(160deg, var(--navy) 0%, #1b2438 100%); }
.section-contact .kicker { color: var(--sun); }
.section-contact h2 { color: #fff; }
.section-contact .section-intro { color: #c3cbdd; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 20px; text-align: center; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .18s, background .18s;
}
a.contact-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.contact-icon { font-size: 1.9rem; }
.contact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sun); font-weight: 700; }
.contact-value { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }

/* ===== Footer ===== */
.site-footer { background: #161d2e; color: #aeb6c8; padding: 44px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 50px; height: 50px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-weight: 700; }
.footer-nav a:hover { color: var(--sun); }
.copyright { text-align: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #7c8499; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .methods { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 18px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .85em .6em; border-radius: 10px; }
  .nav .nav-cta { text-align: center; margin-top: 8px; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(240px, 60%); }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }

  .founders, .gallery, .schedule-grid, .menu-grid, .price-tables, .location-grid, .extras-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .methods, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .menu-table { font-size: .75rem; }
  .menu-table th, .menu-table td { padding: 6px 6px; }
  .brand-name { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
