/* ============================================================
   COLEGIO MARCELINA — GLOBAL LAYOUT CHROME
   Estilos compartidos por TODAS las páginas del sitio.
   Source of truth: HOME page main.css
   ============================================================
   Contenido:
   - Reset + base body styles
   - Navbar (desktop + mobile menu)
   - Footer
   - WhatsApp floating button
   - Responsive rules para nav/footer
   - Accesibilidad (reduced motion)
   ============================================================ */


/* ──────────────────────────────────────────
   RESET + BASE
────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  background: var(--bg-white);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ──────────────────────────────────────────
   NAVBAR
────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid rgba(76, 72, 200, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(15, 14, 36, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 92px;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  flex: 1;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-primary);
  position: relative;
  padding: 6px 2px;
  transition: color 0.15s ease;
  letter-spacing: 0.1px;
}

.nav-links a:hover {
  color: var(--color-indigo);
}

.nav-links a.active {
  color: var(--color-indigo);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-indigo);
  transform: translateX(-50%);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-indigo-deeper);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  flex-direction: column;
  padding: 24px clamp(20px, 5vw, 32px);
  gap: 4px;
  z-index: 99;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
  animation: fadeIn 0.22s ease both;
}

.nav-mobile a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-indigo-deeper);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--bg-indigo-pale);
  color: var(--color-indigo);
}

.nav-mobile .btn {
  margin-top: 16px;
}


/* ──────────────────────────────────────────
   FOOTER — Dark navy
────────────────────────────────────────── */

.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.65);
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 56px) 24px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-tag {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 18px;
  font-weight: 300;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-soc {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
  transition: all 0.18s ease;
}

.footer-soc:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-2px);
}

.footer-col h5 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin: 4px 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a,
.footer-col li {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
}

.footer-contact-item .ico {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 0;
  line-height: 1;
}

.footer-bottom {
  max-width: 1320px;
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}


/* ──────────────────────────────────────────
   WHATSAPP FLOATING BUTTON
────────────────────────────────────────── */

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45);
  z-index: 800;
  animation: glowPulse 3s ease infinite;
  transition: transform 0.18s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
  animation: none;
}


/* ──────────────────────────────────────────
   RESPONSIVE — nav + footer
────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 12.5px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    height: 72px;
  }
  .nav-logo img { height: 40px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { top: 72px; }
  .nav-cta .btn { padding: 10px 18px; font-size: 12.5px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nav-cta .btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .nav-cta .btn .arrow-ico { display: none; }
}


/* ──────────────────────────────────────────
   ACCESIBILIDAD — Reduced motion
────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
