/* Seba's Garden — tema "Jardín de colores" */

:root {
  --cream: #fff7ec;
  --cream-2: #fdeedb;
  --white: #ffffff;
  --ink: #2b2350;
  --ink-soft: #5b5577;
  --red: #d8343a;       /* delantal del uniforme */
  --red-dark: #b0242a;
  --green: #4e9f3d;     /* el jardín */
  --green-soft: #e4f3dc;
  --sun: #ffc531;       /* la jirafa */
  --orange: #ff9f43;
  --sky: #3fa9d6;
  --lilac: #8e6cd9;
  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 12px 30px -12px rgba(43, 35, 80, .25);
  --shadow-lg: 0 24px 50px -20px rgba(43, 35, 80, .35);
  --font-head: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--small { padding: .55em 1.2em; font-size: .95rem; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 0 -2px var(--red-dark); }
.btn--red:hover { background: #e2444a; }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 8px 0 -2px #d9a20f; border: 0; }
.btn--white { background: #fff; color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }

/* ---------- Etiquetas ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: .9em;
}
.eyebrow--center { justify-content: center; width: 100%; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.dot { width: .7em; height: .7em; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); }
.dot--red { background: var(--red); }
.dot--sky { background: var(--sky); }
.dot--sun { background: var(--sun); }
.dot--lilac { background: var(--lilac); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .88rem; }
.topbar__inner { display: flex; gap: 1.5rem; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; opacity: .92; }
.topbar__item svg, .topbar__social svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__social { margin-left: auto; display: flex; gap: .9rem; }
.topbar__social a { display: inline-flex; opacity: .85; }
.topbar__social a:hover { opacity: 1; color: var(--sun); }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(43,35,80,.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 1rem; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem;
  text-decoration: none; position: relative; padding: .3em 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; border-radius: 4px;
  background: var(--sun); transform: scaleX(0); transition: transform .25s ease; transform-origin: left;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--ink); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(90px, 10vw, 140px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hl { position: relative; white-space: nowrap; color: var(--red); }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .05em; height: .32em; z-index: -1;
  background: var(--sun); border-radius: 999px; opacity: .55;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 2.2rem; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badges li {
  background: var(--white); border-radius: 18px; padding: .75rem 1.1rem;
  box-shadow: var(--shadow); display: grid; line-height: 1.35;
  border-left: 5px solid var(--green);
}
.hero__badges li:nth-child(2) { border-left-color: var(--sky); }
.hero__badges strong { font-family: var(--font-head); font-weight: 600; }
.hero__badges span { font-size: .88rem; color: var(--ink-soft); }

.hero__media { position: relative; min-height: 460px; }
.blob { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); }
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob--main {
  inset: 0 0 40px 40px;
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
  border: 8px solid var(--white);
  animation: morph 14s ease-in-out infinite;
}
.blob--baby {
  width: 44%; aspect-ratio: 1; left: -4%; bottom: -10px;
  border-radius: 50%; border: 8px solid var(--white);
}
.blob--baby img { object-position: 35% 50%; }
.hero__sticker {
  position: absolute; right: -6px; top: 18px;
  background: var(--sun); color: var(--ink);
  border-radius: 50%; width: 128px; height: 128px;
  display: grid; place-content: center; text-align: center;
  font-weight: 800; font-size: .82rem; line-height: 1.2; padding: 14px;
  box-shadow: var(--shadow); transform: rotate(8deg);
}
.hero__sticker-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--red); }

.deco { position: absolute; pointer-events: none; }
.deco--sun { width: 120px; top: 30px; left: -40px; opacity: .55; animation: spin 40s linear infinite; }
.deco--leaf { width: 70px; right: 46%; top: -18px; transform: rotate(-12deg); }
.wave { position: absolute; left: 0; width: 100%; height: 90px; display: block; }
.wave--bottom { bottom: -1px; }

@keyframes morph {
  0%, 100% { border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; }
  50% { border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__lead { color: var(--ink-soft); font-size: 1.1rem; }
.section__lead--left { max-width: 40ch; }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value {
  --c: var(--orange);
  position: relative; text-align: center;
  background: color-mix(in srgb, var(--c) 14%, white);
  border-radius: var(--radius-lg);
  padding: 34px 22px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.value:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.value--orange { --c: var(--orange); }
.value--lilac { --c: var(--lilac); }
.value--sky { --c: var(--sky); }
.value--green { --c: var(--green); }
.value__img {
  width: 132px; height: 132px; margin: 0 auto 20px; border-radius: 50%;
  padding: 6px; background: var(--c);
}
.value__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fff; }
.value h3 { color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.value p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---------- Misión y visión ---------- */
.mv { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mv__photos { position: relative; min-height: 480px; }
.mv__photo { position: absolute; object-fit: cover; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.mv__photo--a { width: 82%; height: 300px; top: 0; left: 0; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 8px; transform: rotate(-2deg); }
.mv__photo--b { width: 70%; height: 240px; right: 0; bottom: 0; border-radius: 8px var(--radius-lg) var(--radius-lg) var(--radius-lg); transform: rotate(2.5deg); }
.mv__card {
  background: var(--white); border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow); margin-bottom: 18px; border-top: 6px solid var(--green);
}
.mv__card--vision { border-top-color: var(--sun); }
.mv__card h3 { display: flex; align-items: center; gap: .4em; }
.mv__card p { margin: 0; color: var(--ink-soft); }
.mv__icon { font-size: 1.3rem; }

/* ---------- Equipo ---------- */
.team { background: var(--green); color: #fff; padding: clamp(64px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.team::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 20px 20px, #fff 3px, transparent 4px);
  background-size: 44px 44px;
}
.team__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 70px); align-items: center; }
.team__media { position: relative; }
.team__media img { width: 100%; aspect-ratio: 848 / 420; object-fit: cover; border-radius: var(--radius-lg); border: 8px solid rgba(255,255,255,.9); box-shadow: var(--shadow-lg); }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 86px; height: 86px; border-radius: 50%; border: 0;
  background: var(--sun); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(255, 197, 49, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.play:hover { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 18px rgba(255, 197, 49, .3); }
.team__copy p { color: rgba(255,255,255,.9); font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .65em; align-items: center; font-weight: 700; }
.checks li::before {
  content: "✓"; flex: none; width: 1.6em; height: 1.6em; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--green); font-weight: 800; font-size: .85rem;
}

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  padding: .3em .9em; border-radius: 999px;
}

/* ---------- Instagram ---------- */
.insta { background: linear-gradient(120deg, var(--lilac), var(--red) 70%, var(--orange)); color: #fff; padding: 56px 0; }
.insta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.insta h2 { margin-bottom: .2em; }
.insta p { margin: 0; color: rgba(255,255,255,.92); }
.insta__feed { margin-top: 32px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 12px; }
.insta__feed:not(:has(.sbi_item)) { display: none; } /* sin publicaciones (p. ej. token vencido) */

/* ---------- Familias ---------- */
.family { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 22px; align-items: stretch; }
.family__card {
  --c: var(--sky);
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column;
  border-bottom: 6px solid var(--c);
  transition: transform .25s ease;
}
a.family__card:hover { transform: translateY(-5px); }
.family__card--sky { --c: var(--sky); }
.family__card--orange { --c: var(--orange); }
.family__card--pay { --c: var(--red); }
.family__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, white); margin-bottom: 18px;
}
.family__icon svg { width: 28px; height: 28px; fill: var(--c); }
.family__card p { color: var(--ink-soft); }
.family__more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--c); }
.pay { margin: 0 0 14px; display: grid; gap: 8px; }
.pay div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed rgba(43,35,80,.15); }
.pay dt { color: var(--ink-soft); font-size: .9rem; }
.pay dd { margin: 0; font-weight: 700; }
.pay__note { font-size: .92rem; }
.pay__note a { color: var(--red); font-weight: 700; }
.family__card--pay .btn { align-self: flex-start; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 70px); align-items: center; }
.contact__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list div { display: grid; line-height: 1.35; }
.contact__list strong { font-family: var(--font-head); font-weight: 600; }
.contact__list a, .contact__list span { color: var(--ink-soft); text-decoration: none; }
.contact__list a:hover { color: var(--red); }
.contact__icon { flex: none; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.contact__icon svg { width: 24px; height: 24px; fill: #fff; }
.contact__icon--red { background: var(--red); }
.contact__icon--green { background: var(--green); }
.contact__icon--sky { background: var(--sky); }
.contact__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid var(--cream); }
.contact__map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.82); position: relative; padding-top: 70px; margin-top: 60px; }
.footer__grass {
  position: absolute; left: 0; right: 0; top: -92px; height: 100px;
  background: url("../img/slide-footer2.png") bottom center / auto 100px repeat-x;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { width: 180px; background: #fff; border-radius: 18px; padding: 10px 14px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 1.15rem; }
.footer nav { display: grid; gap: .35rem; align-content: start; }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 18px 16px; font-size: .88rem; }

/* ---------- Modal de video ---------- */
.video-modal { border: 0; padding: 0; background: transparent; width: min(960px, 92vw); overflow: visible; }
.video-modal::backdrop { background: rgba(20, 16, 40, .82); }
.video-modal video { width: 100%; border-radius: 20px; display: block; background: #000; }
.video-modal__close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1;
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob--main, .deco--sun { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .family { grid-template-columns: 1fr 1fr; }
  .family__card--pay { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 16px 20px;
    border-bottom: 1px solid rgba(43,35,80,.08); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .8em 0; border-bottom: 1px solid rgba(43,35,80,.08); }
  .nav__cta { margin-top: 14px; }
  .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__grid, .mv, .team__grid, .contact { grid-template-columns: 1fr; }
  .hero__media { min-height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero__sticker { width: 104px; height: 104px; right: 0; }
  .hero__sticker-num { font-size: 1.6rem; }
  .deco--sun { display: none; }
  .mv__photos { min-height: 400px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: span 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar__item:first-child { display: none; }
  .brand img { width: 150px; }
  .header__inner { min-height: 70px; }
  .hl { white-space: normal; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__media { min-height: 300px; }
  .blob--main { inset: 0 0 30px 24px; border-width: 6px; }
  .blob--baby { border-width: 6px; }
  .values, .family { grid-template-columns: 1fr; }
  .family__card--pay { grid-column: auto; }
  .gallery { grid-auto-rows: 170px; gap: 10px; }
  .mv__photos { min-height: 330px; }
  .mv__photo--a { height: 210px; }
  .mv__photo--b { height: 170px; }
  .pay div { grid-template-columns: 1fr; gap: 0; }
  .contact__map iframe { height: 320px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > div:first-child { grid-column: auto; }
}

/* ---------- WordPress ---------- */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
