*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #0D9E8A;
  --teal-dark: #0A2A26;
  --teal-pale: #E6FAF7;
  --magenta:   #C8235F;
  --amarillo:  #F5C200;
  --fondo:     #FAFAF8;
  --texto:     #0A1F1C;
  --texto-sec: #5C7A77;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(10,42,38,.08);
  --nav-h:     68px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  min-height: 100dvh;
  padding-bottom: var(--nav-h);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 640px) {
  .teachers-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 960px; margin-left: auto; margin-right: auto; }
}

.page { display: none; }
.page.active { display: block; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100svh; min-height: 580px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal-dark) 0%, #1A6B60 60%, var(--teal) 100%);
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 115%;
  object-fit: cover; object-position: center 40%;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,42,38,.05) 0%,
    rgba(10,42,38,.45) 35%,
    rgba(10,42,38,.72) 65%,
    rgba(10,42,38,.92) 100%);
}

/* Banderines */
.bunting {
  position: absolute; top: 0; left: 0; right: 0;
  width: 100%; z-index: 2; pointer-events: none;
  display: flex; justify-content: flex-start; align-items: flex-start;
  flex-wrap: nowrap; overflow: hidden; gap: 0;
  padding-top: 8px;
  border-top: 1.5px solid rgba(255,255,255,.35);
}
.flag {
  width: 28px; height: 44px; flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  animation: sway 3.5s ease-in-out infinite alternate;
}
.flag:nth-child(2n)  { animation-delay: -.8s; }
.flag:nth-child(3n)  { animation-delay: -1.6s; }
.flag:nth-child(4n)  { animation-delay: -.4s; }
.flag:nth-child(5n)  { animation-delay: -2.2s; }
.flag:nth-child(6n)  { animation-delay: -1.1s; }
@keyframes sway {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) { .flag { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-eyebrow, .hero-como, .hero-tu, .hero-tagline, .btn-hero { animation: none; opacity: 1; transform: none; }
  .nav-tab svg { transition: none; }
  .g-cell img { transition: none; }
}

.hero-content { position: relative; z-index: 3; padding: 0 24px 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }

/* Logo en hero */
.hero-logo { margin-bottom: 4px; animation: rise .85s cubic-bezier(.22,1,.36,1) both; display: block; margin-left: 0px; }
.hero-logo img { width: min(420px, 92vw); height: auto; display: block; filter: drop-shadow(0 3px 16px rgba(0,0,0,.5)); }

.hero-como {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(64px, 20vw, 96px);
  font-weight: 400;
  color: rgba(255,255,255,.92);
  letter-spacing: -2px; line-height: .88;
  animation: rise .9s cubic-bezier(.22,1,.36,1) .15s both;
}
.hero-tu {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(78px, 24vw, 116px);
  font-weight: 800;
  color: var(--amarillo);
  letter-spacing: -3px; line-height: .88;
  margin-bottom: 20px;
  animation: rise .9s cubic-bezier(.22,1,.36,1) .3s both;
}
.hero-tagline {
  font-size: 17px; line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 320px; margin-bottom: 28px;
  animation: rise .9s cubic-bezier(.22,1,.36,1) .45s both;
}
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--magenta); color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 14px 24px; border-radius: 50px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  animation: rise .9s cubic-bezier(.22,1,.36,1) .6s both;
}
.btn-hero:active { transform: scale(.95); }

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--teal-dark);
  display: flex; z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  border: none; background: none; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.4);
  transition: color .2s; position: relative; padding-bottom: 6px;
}
.nav-tab svg { width: 20px; height: 20px; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.nav-tab.active { color: var(--amarillo); }
.nav-tab.active svg { transform: scale(1.2) translateY(-2px); stroke: var(--amarillo); }
.nav-tab.active::after {
  content: ''; position: absolute;
  bottom: 0; left: 28%; right: 28%;
  height: 3px; background: var(--amarillo);
  border-radius: 3px 3px 0 0;
}
.nav-tab svg { stroke: rgba(255,255,255,.4); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── SHARED ── */
.sec { padding: 40px 20px 0; }
.sec-inner { max-width: 960px; margin: 0 auto; }
.eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.sec-title {
  font-family: 'Nunito', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--texto); line-height: 1.1; margin-bottom: 24px;
}

/* ── SERVICIOS ── */
.scroll-row {
  display: flex; flex-direction: column;
  gap: 12px; padding: 4px 0 16px; margin: 0;
}
.svc-card {
  background: #fff; border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow);
}
.svc-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 14px; }
.svc-card:nth-child(1) .svc-dot { background: var(--teal); }
.svc-card:nth-child(2) .svc-dot { background: var(--amarillo); }
.svc-card:nth-child(3) .svc-dot { background: var(--magenta); }
.svc-card:nth-child(4) .svc-dot { background: #6C63FF; }
.svc-card h3 { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: var(--texto); margin-bottom: 6px; }
.svc-card p  { font-size: 12px; color: var(--texto-sec); line-height: 1.6; }

/* ── GALERÍA ── */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.g-cell { border-radius: 10px; overflow: hidden; aspect-ratio: 1; position: relative; }
.g-cell img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s cubic-bezier(.22,1,.36,1); position:relative; z-index:1; }
.g-cell:active img { transform: scale(1.06); }

/* ── GALERIA GRID ── */
.galeria-grid {
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
}
.galeria-grid img { width:100%; height:180px; object-fit:cover; display:block; }
.galeria-grid .g-hero { grid-column: 1 / span 2; }
.galeria-grid .g-hero img { height:260px; }
@media (min-width:600px) {
  .galeria-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
  }
  .galeria-grid img { height:100%; }
  .galeria-grid .g-hero {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    height: 100%;
  }
  .galeria-grid .g-hero img { height: 100%; }
}

/* ── FORMS ── */
.form-block { padding: 24px 20px; }
.fg { margin-bottom: 18px; }
.fg label { font-family:'Nunito',sans-serif; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--texto); display:block; margin-bottom:7px; }
.fg input, .fg select, .fg textarea {
  width:100%; border:1.5px solid rgba(10,42,38,.12); border-radius:10px;
  padding:13px 14px; font-family:'Nunito',sans-serif; font-size:15px;
  background:#fff; color:var(--texto); outline:none; -webkit-appearance:none;
  transition:border-color .2s, box-shadow .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color:var(--teal); box-shadow:0 0 0 3px rgba(13,158,138,.12);
}
.fg textarea { resize:vertical; min-height:88px; }
.fg input.campo-error, .fg select.campo-error {
  border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(200,35,95,.12);
}
.fg label.campo-error { color: var(--magenta); }
.btn-submit {
  width:100%; padding:16px; background:var(--teal-dark); color:#fff;
  border:none; border-radius:50px; font-family:'Nunito',sans-serif;
  font-size:15px; font-weight:700; cursor:pointer;
  transition:opacity .15s, transform .15s;
}
.btn-submit:active { opacity:.85; transform:scale(.98); }

/* ── BANCO ── */
.bank { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); margin:20px 20px 16px; }
.bank-stripe { height:4px; background:var(--teal); }
.bank-body { padding:20px; }
.bank-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:11px; }
.bank-row:last-child { margin-bottom:0; }
.bl { font-family:'Nunito',sans-serif; font-size:10px; font-weight:700; color:var(--texto-sec); text-transform:uppercase; letter-spacing:.5px; }
.bv { font-size:14px; font-weight:700; color:var(--texto); text-align:right; }
.note { background:#E6FAF7; border-radius:10px; padding:14px 16px; border:1px solid rgba(13,158,138,.25); font-size:13px; color:#065F46; line-height:1.55; margin:0 20px 20px; }

/* ── TOAST ── */
.toast { position:fixed; bottom:calc(var(--nav-h) + 16px); left:50%; transform:translateX(-50%) translateY(14px); background:var(--teal-dark); color:#fff; padding:12px 22px; border-radius:50px; font-family:'Nunito',sans-serif; font-size:13px; font-weight:700; box-shadow:0 4px 20px rgba(0,0,0,.18); opacity:0; transition:opacity .25s, transform .25s; z-index:200; white-space:nowrap; pointer-events:none; }
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── TOP BAR ── */
.top-bar { background:var(--amarillo); color:var(--teal-dark); font-family:'Nunito',sans-serif; font-size:11px; font-weight:800; text-align:center; padding:8px; letter-spacing:1.5px; }

/* ── DESKTOP NAV ── */
.desk-nav { display:none; }
@media (min-width:768px) {
  .desk-nav { display:flex; align-items:center; justify-content:center; gap:32px; padding:0 28px; background:var(--teal-dark); height:52px; }
  .desk-nav a { color:rgba(255,255,255,.8); font-family:'Nunito',sans-serif; font-size:13px; font-weight:600; text-decoration:none; cursor:pointer; background:none; border:none; }
  .desk-nav a.act { color:#fff; }
  .desk-nav-btn { background:var(--magenta); color:#fff; font-size:12px; font-weight:800; padding:8px 18px; border-radius:50px; border:none; cursor:pointer; font-family:'Nunito',sans-serif; }
}

/* ── HERO EYEBROW + STATS ── */
.hero-eyebrow { font-family:'Nunito',sans-serif; font-size:10px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; color:var(--amarillo); margin-bottom:10px; animation:rise .7s cubic-bezier(.22,1,.36,1) both; }
.hero-stats-wrap { display:none; }
@media (min-width:768px) {
  .hero-content { flex-direction:row; justify-content:space-between; align-items:flex-end; padding:0 28px 40px; }
  .hero-left { display:flex; flex-direction:column; align-items:flex-start; }
  .hero-stats-wrap { display:flex; gap:12px; flex-shrink:0; align-self:flex-end; }
  .hero-stat { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.15); border-radius:14px; padding:16px 20px; text-align:center; }
  .hero-stat-n { font-family:'Nunito',sans-serif; font-size:24px; font-weight:800; color:var(--amarillo); }
  .hero-stat-l { font-size:10px; color:rgba(255,255,255,.7); margin-top:4px; font-family:'Nunito',sans-serif; }
}

/* ── SERVICES GRID DESKTOP ── */
@media (min-width:640px) {
  .scroll-row { display:grid !important; grid-template-columns:repeat(4,1fr); overflow:visible; padding:4px 0 20px; margin:0; gap:14px; }
  .svc-card { min-width:unset; }
  .sec { padding:80px 28px 0; }
}

/* ── GALLERY 6-COL DESKTOP ── */
@media (min-width:640px) {
  .gallery { grid-template-columns:repeat(6,1fr); gap:4px; }
  .g-cell { aspect-ratio:1.2; }
}

/* ── FOOTER ── */
.footer-main { background:var(--teal-dark); padding:32px 24px; display:flex; flex-direction:column; gap:24px; }
@media (min-width:640px) { .footer-main { display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px; padding:32px 28px; } }
.ft-label { font-family:'Nunito',sans-serif; font-size:9px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--teal); margin-bottom:10px; display:block; }
.ft-addr { font-size:13px; color:rgba(255,255,255,.8); line-height:1.8; margin-bottom:10px; }
.ft-btn { display:flex; align-items:center; gap:10px; padding:11px 14px; border-radius:10px; font-family:'Nunito',sans-serif; font-size:12px; font-weight:700; margin-bottom:8px; cursor:pointer; border:none; width:100%; color:#fff; }
.ft-wa { background:#25D366; }
.ft-ig { background:linear-gradient(135deg,#E1306C,#F77737); }
.footer-copy { background:#061a17; padding:10px 28px; font-family:'Nunito',sans-serif; font-size:10px; color:rgba(255,255,255,.3); text-align:center; }

/* ── WA FLOAT ── */
.wa {
  position: fixed; bottom: calc(var(--nav-h) + 14px); right: 16px;
  background: #25D366; color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  z-index: 99; cursor: pointer; transition: transform .2s;
}
.wa:active { transform: scale(.9); }
.wa svg { width: 26px; height: 26px; fill: #fff; }

/* ── PAGE HEADER ── */
.page-header { background: var(--teal-dark); color: #fff; padding: 44px 24px 28px; }
.page-header .eyebrow { color: rgba(255,255,255,.5); margin-bottom: 8px; }
.page-header h1 { font-family:'Nunito',sans-serif; font-size:28px; font-weight:800; line-height:1.1; margin-bottom:8px; }
.page-header p  { font-size:14px; color:rgba(255,255,255,.65); line-height:1.6; }
