/*
 * Wonder School · menú compartido (barra de anuncio + nav) para las páginas
 * que no cargan base.css: canales, política de privacidad y test de nivel.
 * Las variables van dentro del menú para no pisar las de cada página.
 */
.nav, .bx, .footer-section, .wa-float { --blue: #1a6de8; --blue-dark: #1e3a8a; --green: #15803d; --green-mid: #16a34a; --text-dark: #0d1b3e; --text-body: #374151; --muted: #4b5563; --white: #fff; --heading: 'Prompt', sans-serif; --body: 'DM Sans', sans-serif; }
.nav a, .bx { text-decoration: none; }
.nav ul { margin: 0; padding: 0; }
.nav .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.nav .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  font-family: var(--heading); font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none;
  transition: all 0.22s ease; white-space: nowrap;
}

.nav .btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,109,232,0.35);
}
.nav .btn-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,109,232,0.42); }

.nav .btn-green {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,128,61,0.38);
}
.nav .btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,128,61,0.46); }

.nav .icon-wa { width: 18px; height: 18px; flex-shrink: 0; }
/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(26,109,232,0.1);
  box-shadow: 0 2px 20px rgba(14,50,120,0.06);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 66px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--heading); font-weight: 400;
  font-size: 0.87rem; color: var(--muted); transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.nav-portal {
  color: var(--blue); font-weight: 600;
  border: 1px solid rgba(26,109,232,0.35);
  border-radius: 6px; padding: 5px 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links a.nav-portal:hover {
  background: rgba(26,109,232,0.08); border-color: var(--blue);
}
.mobile-menu a.nav-portal {
  color: var(--blue); font-weight: 600;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dark); border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none; flex-direction: column;
  border-top: 1px solid rgba(26,109,232,0.08);
  background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 20px; font-family: var(--heading);
  font-size: 0.93rem; color: var(--text-body);
  border-bottom: 1px solid rgba(26,109,232,0.06); font-weight: 400;
}
.mobile-menu a:hover { color: var(--blue); background: rgba(219,234,254,0.25); }
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
}


/* Pie compartido: fondo oscuro de marca, igual al del inicio */
.footer-section { background: radial-gradient(ellipse 60% 40% at 10% 20%, rgba(26,109,232,0.10) 0%, transparent 60%), radial-gradient(ellipse 45% 35% at 90% 75%, rgba(30,58,138,0.14) 0%, transparent 55%), linear-gradient(145deg, #040e1e 0%, #0a1b3a 40%, #0c2050 100%); color: #fff; font-family: var(--body); }
.footer-section a { text-decoration: none; }
.footer-section ul { margin: 0; padding: 0; }
.footer-section p { margin: 0; }
.footer-section .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
/* ===== FOOTER (dark bg) ===== */
.footer-section { padding: 48px 0 24px; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.footer-logo img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-about { font-size: 0.83rem; color: rgba(255,255,255,0.5); font-weight: 300; line-height: 1.65; }
.footer-col-title {
  font-family: var(--heading); font-weight: 600; font-size: 0.77rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links li a { font-size: 0.84rem; color: rgba(255,255,255,0.5); font-weight: 300; transition: color 0.2s; }
.footer-links li a:hover { color: #93c5fd; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.footer-copy  { font-size: 0.78rem; color: rgba(255,255,255,0.35); font-weight: 300; }
.footer-cert  { font-size: 0.75rem; color: rgba(255,255,255,0.35); font-weight: 300; }
.footer-dev {
  width: 100%; text-align: center; margin-top: 14px;
  font-size: 0.7rem; color: rgba(255,255,255,0.18); font-weight: 300;
}
.footer-dev a {
  color: rgba(255,255,255,0.28); text-decoration: none;
  transition: color 0.2s; font-weight: 400;
}
.footer-dev a:hover { color: rgba(96,165,250,0.7); }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== FLOATING WA ===== */
.wa-float {
  position: fixed; bottom: 22px; right: 22px;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green) 100%);
  box-shadow: 0 6px 22px rgba(21,128,61,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 99; transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 27px; height: 27px; }


/* =====================================================================
   PIE NUEVO (.wf): cierre con llamado, cuatro columnas y la marca gigante
   ===================================================================== */
.wf { --wf-blue: #1a6de8; position: relative; overflow: hidden; color: #fff; font-family: 'DM Sans', sans-serif;
  background: radial-gradient(70% 60% at 85% 0%, rgba(59, 140, 255, 0.35) 0%, transparent 60%), linear-gradient(160deg, #0a1838 0%, #0d1b3e 50%, #1e3a8a 130%); }
.wf a { color: inherit; text-decoration: none; }
.wf-in { max-width: 1440px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(20px, 3vw, 40px) 26px; box-sizing: border-box; }
.wf-wa { display: inline-flex; align-items: center; min-height: 60px; padding: 0 34px; border-radius: 999px; font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 1.05rem; color: #fff !important; background: #16a34a; box-shadow: 0 14px 34px -12px rgba(22, 163, 74, 0.9); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.wf-wa:hover { transform: translateY(-2px); }
.wf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px clamp(24px, 4vw, 60px); padding: 0 0 clamp(36px, 4vw, 50px); }
.wf-brand img { height: 46px; width: auto; }
.wf-brand p { margin: 18px 0 22px; max-width: 34ch; font-size: 0.98rem; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }
.wf-social { display: flex; align-items: center; gap: 10px; }
.wf-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); transition: background .25s; }
.wf-social a:hover { background: var(--wf-blue); }
.wf-social svg { width: 20px; height: 20px; }
.wf-social .wf-rate { width: auto; padding: 0 14px; display: inline-flex; gap: 8px; border-radius: 999px; }
.wf-rate b { font-family: 'Prompt', sans-serif; font-weight: 800; }
.wf-rate span { color: #fbbf24; letter-spacing: .05em; font-size: .85rem; }
.wf-col { display: flex; flex-direction: column; gap: 12px; }
.wf-col h3 { margin: 0 0 6px; font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 0.82rem; letter-spacing: .14em; text-transform: uppercase; color: #93c5fd; }
.wf-col a { font-family: 'Prompt', sans-serif; font-size: 1rem; color: rgba(255, 255, 255, 0.92); transition: color .2s; }
.wf-col a:hover { color: #7dd3fc; }
.wf-col small { display: block; font-family: 'DM Sans', sans-serif; font-size: .85rem; color: rgba(255, 255, 255, 0.55); }
.wf-col a small { display: inline; margin-left: 6px; }
.wf-col a:has(small):not([href^="/"]) small { display: block; margin-left: 0; }
.wf-hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px 18px; margin: 4px 0 0; font-size: .92rem; }
.wf-hours span { color: rgba(255, 255, 255, 0.55); }
.wf-hours b { font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.wf-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: .85rem; color: rgba(255, 255, 255, 0.5); }
.wf-bottom a { color: rgba(255, 255, 255, 0.75); }
.wf-bottom a:hover { color: #fff; }
.wf-admin { opacity: .45; }
@media (max-width: 900px) { .wf-grid { grid-template-columns: 1fr 1fr; } .wf-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .wf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .wf-wa { width: 100%; justify-content: center; } .wf-bottom { flex-direction: column; } }

/* Botón flotante de WhatsApp: verde de marca, aro blanco, halo que late suave y etiqueta al pasar */
.wa-float { position: fixed; z-index: 99; right: 22px; bottom: 22px; width: auto; justify-content: flex-start; display: inline-flex; align-items: center; gap: 0; height: 60px; padding: 0 6px 0 6px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(145deg, #3ee07a 0%, #16a34a 100%); box-shadow: 0 0 0 3px #fff, 0 18px 36px -10px rgba(22, 163, 74, 0.75); transition: gap .35s cubic-bezier(.16,1,.3,1), padding .35s cubic-bezier(.16,1,.3,1), transform .3s; }
.wa-float::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid rgba(37, 211, 102, 0.6); animation: waPulse 3.2s ease-out infinite; pointer-events: none; }
.wa-float .wa-ico { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; }
.wa-float .wa-ico svg { width: 28px; height: 28px; }
.wa-float .wa-txt { max-width: 0; overflow: hidden; white-space: nowrap; font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 1rem; color: #fff; transition: max-width .35s cubic-bezier(.16,1,.3,1); }
.wa-float:hover { gap: 4px; padding-right: 22px; transform: translateY(-2px); }
.wa-float:hover .wa-txt { max-width: 140px; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; opacity: 0; } }
@media (max-width: 600px) { .wa-float { right: 16px; bottom: 16px; height: 56px; } .wa-float .wa-ico { width: 44px; height: 44px; } }
