/* ===== Reset & base ===== */
:root {
  /* Brand palette, sampled directly from the Takupi logo */
  --yellow: #fcd305;
  --yellow-light: #fff3b8;
  --coral: #cf0c18; /* brand red */
  --coral-dark: #a00913;
  --sky: #0ca1e3; /* brand accent blue */
  --sky-light: #d6effb;
  --green: #2e9e52;
  --brown: #723712; /* brand hair tone */
  --skin: #eaccb4; /* brand skin tone */
  --ink: #0a3866; /* brand navy */
  --ink-soft: #4a5c72;
  --cream: #fffbf2;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(47, 42, 61, 0.1);
  --shadow-sm: 0 6px 16px rgba(47, 42, 61, 0.08);
  --font-head: 'Baloo 2', 'Quicksand', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.2; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: #dce6ee;
}
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47,42,61,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-image { height: 52px; width: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--coral-dark); }
.nav-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--coral-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 0;
  background: linear-gradient(180deg, var(--yellow-light) 0%, var(--cream) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 60px;
}
.badge {
  display: inline-block;
  background: var(--white);
  color: var(--coral-dark);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: .6em;
}
.hero-text p { font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--coral-dark); }
.hero-stats span { font-size: .85rem; color: var(--ink-soft); }

.hero-media {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  background: var(--white);
}
.hero-card-logo {
  width: 220px;
  padding: 24px;
  box-sizing: border-box;
}
.hero-card-logo img { width: 100%; height: auto; display: block; }
.hero-card-photo { max-width: 300px; }
.hero-card-photo img { width: 100%; height: auto; display: block; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.blob-1 { width: 320px; height: 320px; background: var(--sky-light); top: -20px; right: 0; }
.blob-2 { width: 220px; height: 220px; background: var(--yellow); opacity: .5; bottom: -30px; left: 10px; }
.hero-emoji {
  position: absolute;
  font-size: 2.4rem;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}
.hero-emoji { top: 10%; left: 0; right: auto; bottom: auto; }
.hero-emoji-2 { top: auto; left: auto; bottom: 8%; right: 4%; animation-delay: 1s; }
.hero-emoji-3 { top: 46%; left: auto; bottom: auto; right: -10px; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-wave { display: block; width: 100%; height: 70px; }
.hero-wave path { fill: var(--white); }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  color: var(--coral-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.value-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.value-card p { font-size: .92rem; margin: 0; }

.values-block {
  margin-top: 40px;
  text-align: center;
}
.values-block h3 { font-size: 1.3rem; }
.values-block > p { max-width: 560px; margin: 0 auto 20px; }
.values-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.values-pills span {
  background: var(--yellow-light);
  color: var(--coral-dark);
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 999px;
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 2px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}
.program-card:hover { transform: translateY(-6px); border-color: var(--yellow); }
.program-card.featured { background: linear-gradient(160deg, var(--coral) 0%, var(--coral-dark) 100%); }
.program-card.featured h3, .program-card.featured .program-age, .program-card.featured p { color: var(--white); }
.program-icon { font-size: 2.6rem; margin-bottom: 12px; }
.program-age {
  display: inline-block;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 12px;
}

/* Gallery */
.gallery-category { margin-bottom: 40px; }
.gallery-category:last-child { margin-bottom: 0; }
.gallery-category h3 {
  font-size: 1.1rem;
  color: var(--coral-dark);
  margin-bottom: 16px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-grid img {
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--sky-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 0;
}
.testimonial-card p {
  color: var(--ink);
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-card footer { font-weight: 700; font-size: .9rem; color: var(--ink-soft); }

/* Admisiones */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; }
.step-card p { font-size: .92rem; margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-list { margin: 20px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.contact-info .social-links { justify-content: center; }
.contact-list li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; }
.social-links { display: flex; gap: 14px; }
.social-links a {
  background: var(--yellow-light);
  color: var(--coral-dark);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
}
.contact-form {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid #dce6ee;
  font-family: var(--font-body);
  font-size: .95rem;
  resize: vertical;
  background: var(--white);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--coral);
}
.form-note { text-align: center; font-weight: 600; margin: 12px 0 0; min-height: 1.2em; color: var(--green); }
.visit-form-wrap { max-width: 480px; margin: 32px auto 0; }

/* Footer */
.site-footer { background: var(--ink); color: #d9d5e6; padding: 50px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 280px; }
.footer-logo-image { height: 56px; width: auto; }
.footer-brand p { width: 100%; color: #a7a2ba; margin: 6px 0 0; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: #d9d5e6; font-weight: 600; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: .85rem;
  color: #8d88a3;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
  z-index: 90;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 260px; }
  .about-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 16px; }
  .nav-toggle { display: flex; }
  .values-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}
