/* Colegios Da Vinci — SPA 2027 (V1 + colores V2) */
:root {
  --ink: #142033;
  --navy: #243b6b;
  --blue: #2f4395;
  --cyan: #3aa0c0;
  --cyan-deep: #247287;
  --logo: #74b5d1;
  --sand: #e7ece8;
  --paper: #f3f5f2;
  --muted: #5c6775;
  --line: rgba(20, 32, 51, 0.14);
  --white: #ffffff;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(20, 32, 51, 0.12);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(116, 181, 209, 0.2), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(36, 59, 107, 0.1), transparent 50%),
    linear-gradient(180deg, #f3f5f2 0%, var(--paper) 40%, #e7ece8 100%);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

a,
button,
.btn,
.quick-card,
.contact-item a,
.panel a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(46, 184, 212, 0.2);
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Identidad institucional */
.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3px rgba(47, 67, 149, 0.35);
}

.brand-logo--hero {
  width: clamp(56px, 12vw, 72px);
  height: clamp(56px, 12vw, 72px);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 10px 28px rgba(0, 0, 0, 0.28);
  animation: logoIn 0.8s ease both;
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}

.topbar__socials {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 36px;
}

.topbar__social-title {
  margin-right: 0.12rem;
  font-weight: 800;
  color: #9fe7f5;
}

.topbar__social-link {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.topbar__social-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.topbar__social-link svg,
.footer__social svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  stroke: none;
}

.topbar__social-link svg rect,
.topbar__social-link svg circle,
.footer__social svg rect,
.footer__social svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.topbar__social-link svg .social-icon__dot,
.footer__social svg .social-icon__dot {
  fill: currentColor;
  stroke: none;
}

.topbar__social-link svg path,
.footer__social svg path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar a:hover {
  color: var(--cyan);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 252, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav__links {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.05rem;
}

.nav__links a {
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav__links a:hover {
  color: var(--navy);
  background: rgba(47, 67, 149, 0.08);
}

.nav__links a.is-active {
  color: var(--white);
  background: var(--blue);
}

.nav__cta {
  display: none;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.nav__toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 70;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav__toggle:hover {
  border-color: rgba(47, 67, 149, 0.35);
  background: #f3f7fb;
}

.nav__toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, top 0.28s ease;
}

.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle span:nth-child(3) { top: 29px; }

body.menu-open .nav__toggle {
  background: var(--ink);
  border-color: var(--ink);
}

body.menu-open .nav__toggle span {
  background: var(--white);
}

body.menu-open .nav__toggle span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

body.menu-open .nav__toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .nav__toggle span:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* Mobile menu overlay + panel */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(10, 18, 36, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(100%, 300px);
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #0f1b33 0%, #162849 100%);
  color: var(--white);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.3);
  transform: translateX(104%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s ease;
  padding:
    max(0.7rem, env(safe-area-inset-top))
    0.9rem
    max(0.9rem, env(safe-area-inset-bottom))
    0.9rem;
}

body.menu-open .menu-panel {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.menu-panel__top strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.menu-panel__close {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
}

.menu-panel__close span {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.menu-panel__close span:first-child {
  transform: rotate(45deg);
}

.menu-panel__close span:last-child {
  transform: rotate(-45deg);
}

.menu-panel__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: grid;
  align-content: stretch;
  gap: 0.15rem;
}

.menu-panel__nav a {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 0 0.7rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 3.6vh, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-panel__nav a:hover,
.menu-panel__nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

.menu-panel__nav a.is-active {
  background: rgba(116, 181, 209, 0.2);
  color: #fff;
  box-shadow: inset 3px 0 0 #74b5d1;
}

.menu-panel__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
}

.menu-panel__cta:hover {
  background: #57d0e8;
}

body.menu-open {
  overflow: hidden;
}

/* SPA stage / views */
.stage {
  position: relative;
  min-height: 55vh;
}

.view {
  display: none;
}

.view.is-active,
.view.is-leaving {
  display: block;
}

.view.is-entering {
  animation: viewIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view.is-leaving {
  animation: viewOut 0.22s ease both;
  pointer-events: none;
}

.page-hero {
  position: relative;
  padding: 2.4rem 0 1.5rem;
  background:
    linear-gradient(105deg, rgba(20, 32, 51, 0.82), rgba(36, 59, 107, 0.58)),
    url("../imgs/foto-portada.webp") center 48% / cover no-repeat;
  border-bottom: 1px solid var(--line);
  color: var(--white);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.05;
}

.page-hero p {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.84);
  max-width: 40ch;
}

.page-hero .eyebrow {
  color: #9fe7f5;
}

.page-block {
  padding: 2.5rem 0 4rem;
}

/* Hero inicio */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 27, 51, 0.35) 0%, rgba(15, 27, 51, 0.72) 48%, rgba(10, 18, 36, 0.92) 100%),
    var(--navy);
}

.hero__placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 32, 51, 0.78) 10%, rgba(20, 32, 51, 0.38) 58%, rgba(20, 32, 51, 0.7) 100%),
    url("../imgs/foto-portada.webp") center / cover no-repeat;
}

.nav__cta--classroom,
.menu-panel__cta--classroom {
  gap: 0.42rem;
}

.nav__cta--classroom img,
.menu-panel__cta--classroom img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  border-radius: 3px;
}

.hero__photo-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(15, 27, 51, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2.25rem 0 2.75rem;
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto 0;
  margin-left: max(1rem, calc((100% - 1120px) / 2));
  animation: rise 0.7s ease both;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.hero__year {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(56px, 12vw, 72px);
  padding: 0.35rem 0.9rem 0.45rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  animation: yearPop 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.hero__year em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff 0%, #9fe7f5 40%, #fff 70%, #7fd4e8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: yearShine 4.5s ease-in-out infinite;
}

.hero__year small {
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero__content h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 10ch;
  animation: rise 0.75s ease 0.08s both;
}

.hero__lead {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 700;
  color: #9fe7f5;
  letter-spacing: -0.01em;
  animation: rise 0.75s ease 0.16s both;
}

.hero__tagline {
  margin-top: 0.35rem;
  font-size: clamp(0.98rem, 2.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 28ch;
  animation: rise 0.75s ease 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
  animation: rise 0.75s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--cyan);
  color: var(--ink);
}

.btn--primary:hover {
  background: #57d0e8;
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--navy);
  text-wrap: balance;
}

.mission__quote {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}

.mission__quote::before {
  content: "“";
  display: block;
  font-size: 3.5rem;
  line-height: 0.7;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.mission__note {
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-weight: 600;
}

.quick-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}

.quick-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  transition: 0.25s ease;
}

.quick-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 0.35rem;
}

.quick-card strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(116, 181, 209, 0.55);
}

.levels__grid {
  display: grid;
  gap: 1rem;
}

.level {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: 0 10px 30px rgba(15, 27, 51, 0.04);
  transition: 0.25s ease;
}

.level:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.level h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.level p {
  color: var(--muted);
  font-size: 0.98rem;
}

.level__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(46, 184, 212, 0.12);
  color: var(--cyan-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.projects__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.project-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.project-item__dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(46, 184, 212, 0.18);
}

.project-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.info-band {
  margin-top: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(29, 52, 112, 0.96), rgba(26, 155, 181, 0.9)),
    var(--navy);
  color: var(--white);
}

.info-band h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.info-band ul {
  display: grid;
  gap: 0.55rem;
}

.info-band li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.info-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fe7f5;
}

.team__grid {
  display: grid;
  gap: 1rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.team-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(46, 184, 212, 0.45);
}

.team-card li {
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.team-card li strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.enroll__panel {
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(46, 184, 212, 0.35), transparent 60%),
    linear-gradient(135deg, #15284f, #2f4395 55%, #1a7f94);
  color: var(--white);
  box-shadow: var(--shadow);
}

.enroll__panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
}

.enroll__panel p {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.enroll__date {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff !important;
}

.enroll__hours {
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92) !important;
}

.enroll__form-link {
  display: inline-flex;
  color: #9fe7f5;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.enroll__form-link:hover {
  color: #fff;
}

.inscripcion-layout {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.inscripcion-copy {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.inscripcion-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 38ch;
}

.inscripcion-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.55rem;
  min-height: 220px;
  padding: 1.75rem 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(46, 184, 212, 0.4), transparent 60%),
    linear-gradient(145deg, #15284f, #2f4395 55%, #1a7f94);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.inscripcion-card span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fe7f5;
}

.inscripcion-card strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.inscripcion-card em {
  font-style: normal;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.inscripcion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 27, 51, 0.22);
}

@media (min-width: 768px) {
  .inscripcion-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.gallery__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1fr;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sand);
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.gallery-card figcaption {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  left: 0.6rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(20, 32, 51, 0.78);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.gallery-hint {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(10, 18, 36, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 2rem);
}

.lightbox__figure {
  display: grid;
  gap: 0.7rem;
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  margin: 0;
}

.lightbox__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 5rem);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.lightbox__figure figcaption {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 32, 51, 0.75);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--blue);
  outline: none;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(20, 32, 51, 0.75);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__nav--prev {
  left: max(0.85rem, env(safe-area-inset-left));
}

.lightbox__nav--next {
  right: max(0.85rem, env(safe-area-inset-right));
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: var(--blue);
  outline: none;
}

@media (max-width: 640px) {
  .lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.ph {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1.5px dashed rgba(47, 67, 149, 0.35);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(47, 67, 149, 0.04) 0 10px,
      transparent 10px 20px
    ),
    #edf3f8;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.ph span {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ph--wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.muted-line {
  margin-top: 1rem;
  color: var(--muted);
}

.muted-line a {
  color: var(--blue);
  font-weight: 700;
}

.split {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.panel h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.panel p,
.panel li {
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.panel a {
  color: var(--blue);
  font-weight: 700;
}

.panel a:hover {
  color: var(--cyan-deep);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: #d9e4ef;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.contact__list {
  display: grid;
  gap: 0.85rem;
}

.contact-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: var(--sand);
}

.contact-item strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.contact-item a,
.contact-item__text {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.contact-item a:hover {
  color: var(--cyan-deep);
}

.footer {
  padding: 2.5rem 0 6.5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
}

.footer h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.footer a:hover {
  color: var(--cyan);
}

.footer__gap {
  margin-top: 0.5rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  font-size: 0.88rem;
}

.footer__copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer__dev {
  color: rgba(255, 255, 255, 0.58);
  text-align: left;
  white-space: nowrap;
}

.footer__dev a {
  color: #ff2c6e;
  font-weight: 800;
}

@media (max-width: 767px) {
  .footer__copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: 0.2s ease;
  animation: waPulse 2.4s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.wa-float__label {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: 0.2s ease;
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label {
  opacity: 1;
  transform: translateX(0);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes viewOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes yearShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes yearPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0.15); }
}

/* —— Mobile first usability —— */
@media (max-width: 767px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .topbar__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.15rem 0.75rem;
  }

  .topbar {
    font-size: 0.8rem;
  }

  .topbar__addr {
    grid-column: 1 / -1;
    opacity: 0.8;
    font-size: 0.78rem;
  }

  .topbar__hours {
    font-size: 0.78rem;
    opacity: 0.85;
    text-align: right;
  }

  .nav__inner {
    min-height: 58px;
    gap: 0.5rem;
  }

  .nav__brand {
    min-width: 0;
    gap: 0.55rem;
    font-size: 0.88rem;
  }

  .nav__brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .nav__toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .hero {
    min-height: auto;
    display: grid;
    align-items: end;
  }

  .hero__photo-hint {
    top: 0.7rem;
    left: 0.7rem;
    right: auto;
    width: fit-content;
    max-width: calc(100% - 1.4rem);
    font-size: 0.68rem;
  }

  .hero__content {
    padding: 1.5rem 0 1.7rem;
    width: min(1120px, calc(100% - 1.25rem));
    margin-left: auto;
    margin-right: auto;
  }

  .hero__kicker {
    margin-bottom: 0.9rem;
    gap: 0.7rem;
  }

  .brand-logo--hero {
    width: 52px;
    height: 52px;
  }

  .hero__year {
    min-height: 52px;
    padding: 0.3rem 0.75rem 0.4rem;
    border-radius: 14px;
  }

  .hero__year em {
    font-size: 1.65rem;
  }

  .hero__content h1 {
    font-size: clamp(2.1rem, 11vw, 2.7rem);
    max-width: none;
  }

  .hero__lead {
    margin-top: 0.7rem;
    font-size: 1.05rem;
  }

  .hero__tagline {
    font-size: 0.95rem;
    max-width: none;
  }

  .hero__actions {
    width: 100%;
    margin-top: 1.2rem;
    gap: 0.55rem;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.55rem);
    min-height: 48px;
    padding-inline: 0.9rem;
  }

  .page-hero {
    padding: 1.5rem 0 1.1rem;
  }

  .page-hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .page-block {
    padding: 1.5rem 0 3.25rem;
  }

  .mission__quote {
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
    padding-inline: 0.15rem;
  }

  .mission__note {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .quick-card {
    padding: 0.9rem 0.85rem;
    min-height: 88px;
  }

  .quick-card span {
    font-size: 0.68rem;
  }

  .quick-card strong {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .enroll__panel {
    border-radius: 20px;
    padding: 1.25rem 1.1rem 1.35rem;
  }

  .enroll__panel h2 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .enroll__date {
    letter-spacing: 0.02em;
    font-size: 1.05rem;
  }

  .enroll__hours {
    letter-spacing: 0.01em;
    font-size: 0.84rem !important;
    max-width: none !important;
  }

  .enroll__panel .hero__actions {
    margin-top: 1.1rem !important;
  }

  .enroll__form-link {
    min-height: 44px;
    align-items: center;
  }

  .level,
  .panel,
  .team-card,
  .project-item,
  .inscripcion-copy {
    padding: 1.1rem 1rem;
  }

  .chip {
    font-size: 0.72rem;
  }

  .info-band {
    padding: 1.15rem 1rem;
    border-radius: 16px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .ph {
    padding: 0.7rem;
    font-size: 0.78rem;
    border-radius: 12px;
  }

  .ph span {
    font-size: 0.86rem;
  }

  .ph--wide {
    aspect-ratio: 16 / 9;
  }

  .map-wrap {
    min-height: 220px;
    border-radius: 14px;
  }

  .map-wrap iframe {
    height: 240px;
  }

  .contact-item {
    padding: 1rem 0.95rem;
    gap: 0.25rem;
  }

  .contact-item a,
  .contact-item__text {
    font-size: 1rem;
    word-break: break-word;
    min-height: 28px;
  }

  .panel a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    word-break: break-word;
  }

  .inscripcion-card {
    min-height: 160px;
    padding: 1.35rem 1.15rem;
    border-radius: 18px;
  }

  .inscripcion-card strong {
    font-size: clamp(1.7rem, 9vw, 2.3rem);
  }

  .footer {
    padding: 2rem 0 calc(5.5rem + env(safe-area-inset-bottom));
  }

  .footer__social {
    gap: 0.5rem;
  }

  .footer__social a {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    min-height: 46px;
  }

  .wa-float {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .wa-float__label {
    display: none;
  }

  /* Avoid sticky-hover jank on touch */
  .level:hover,
  .quick-card:hover,
  .inscripcion-card:hover,
  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .nav__brand span:last-child {
    max-width: 11ch;
  }
}

@media (min-width: 1180px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle,
  .menu-overlay,
  .menu-panel {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .topbar__inner {
    display: flex;
  }

  .levels__grid {
    grid-template-columns: 1fr 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-band ul {
    grid-template-columns: 1fr 1fr;
  }

  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ph--wide {
    grid-column: span 2;
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .enroll__panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .enroll__copy {
    max-width: 28rem;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: min(82vh, 680px);
  }

  .hero__content {
    padding: 3rem 0 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .view.is-active {
    display: block;
  }
}

/* Client preview switcher */
.preview-bar {
  display: none;
}

/* Historia institucional */
.history-box {
  margin-top: 2rem;
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.history-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.history-box p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.history-box p:last-child {
  margin-bottom: 0;
}

.history-box__quote {
  margin: 1.1rem 0;
  padding: 0.95rem 1rem;
  background: rgba(116, 181, 209, 0.22);
  border-left: 4px solid var(--logo);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}

.history-box__values {
  font-style: italic;
  color: var(--navy);
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan-deep);
  border-bottom: 1px solid rgba(58, 160, 192, 0.45);
  white-space: nowrap;
}

.store-online {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--logo);
}

.uniform-photo {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sand);
}

.uniform-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.drive-links {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.drive-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.06);
}

.drive-links a span {
  color: var(--cyan-deep);
  font-size: 0.85rem;
}

.section-head h2.is-featured {
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
}
