/* =========================================================
   CEEPIN · Corporación Educativa Isaac Newton
   Sistema visual: azul marino + dorado del escudo, arco como motivo
   ========================================================= */

:root {
  --navy: #0c1a4b;
  --navy-2: #14296b;
  --royal: #1e4ab8;
  --gold: #f4b82e;
  --gold-soft: #fff3d1;
  --cyan: #0aa5c0;
  --cyan-light: #5fdcef;
  --ink: #0f1735;
  --muted: #54607f;
  --mist: #f2f5fb;
  --line: #dce3f0;
  --white: #ffffff;
  --danger: #b42318;
  --ok: #17803d;

  --font-display: "Bricolage Grotesque", "Inter Display", "Inter", system-ui, sans-serif;
  --font-body: "Public Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --radius-card: 16px;
  --radius-input: 10px;
  --shadow-soft: 0 1px 2px rgba(12, 26, 75, .06), 0 8px 24px rgba(12, 26, 75, .08);
  --shadow-lift: 0 2px 4px rgba(12, 26, 75, .08), 0 18px 40px rgba(12, 26, 75, .16);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; color: var(--navy); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
svg.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
main:focus { outline: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .25s var(--ease), background-color .2s, color .2s, box-shadow .25s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(244, 184, 46, .35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(244, 184, 46, .5); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Barra superior ---------- */
.top-bar { background: var(--navy); color: #cdd6f3; font-size: .875rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 24px; }
.top-bar a { color: inherit; text-decoration: none; }
.top-bar a:hover { color: #fff; }
.top-contact { display: flex; gap: 26px; flex-wrap: wrap; }
.top-contact a, .top-contact span { display: inline-flex; align-items: center; gap: 8px; }
.top-contact svg { color: var(--gold); }
.social-links { display: flex; gap: 4px; }
.social-links a {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.social-links a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.social-links svg { width: 17px; height: 17px; }

/* ---------- Navegación ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(12, 26, 75, .1); border-bottom-color: var(--line); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { height: 52px; width: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; line-height: 1.3; color: var(--muted); letter-spacing: 0; margin-top: 2px; max-width: 280px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; background: none; border: 0; font-size: 1rem;
  transition: background-color .2s, color .2s;
}
.nav-link svg { color: var(--cyan); }
.nav-link:hover { background: var(--mist); }
.nav-link.active { background: var(--navy); color: #fff; }
.nav-link.active svg { color: var(--gold); }
.nav-link .chev { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.dropdown.open .chev { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lift); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
.dropdown-menu a:hover { background: var(--mist); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 991px) {
  .navbar .container { min-height: 68px; }
  .brand img { height: 44px; }
  .brand-sub { max-width: 200px; font-size: .66rem; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px var(--gutter) 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(12, 26, 75, .12);
    max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; padding-block: 0; transition: max-height .35s var(--ease), opacity .25s, padding .3s, visibility .3s;
  }
  .nav-links.open { max-height: 440px; visibility: visible; opacity: 1; padding-block: 14px 22px; }
  .nav-link { width: 100%; padding: 13px 16px; border-radius: 12px; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 20px; min-width: 0; max-height: 0; overflow: hidden; opacity: 1; visibility: visible; transform: none; transition: max-height .3s var(--ease); }
  .dropdown.open .dropdown-menu { max-height: 80px; }
}
@media (max-width: 480px) { .brand-sub { display: none; } }

/* ---------- Héroe ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -30%; width: 70vw; max-width: 900px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(30, 74, 184, .55), rgba(12, 26, 75, 0) 68%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: -140px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 120px rgba(255, 255, 255, .015);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 72px); min-height: min(76vh, 640px); }
.hero-stage { display: grid; grid-column: 1; grid-row: 1; }
.hero-copy { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease), visibility .7s; }
.hero-copy.active { opacity: 1; visibility: visible; transform: none; transition-delay: .15s; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.25rem); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1.03; max-width: 15ch; }
.hero-subtitle { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #cdd6f3; margin-top: 22px; max-width: 34ch; }
.hero-copy .btn { margin-top: 34px; }

.hero-controls { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff;
  display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: scale(1.06); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 46px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero-dot::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.hero-dot.active::after { transform: scaleX(var(--p, 1)); }
.hero-dot { height: 14px; background: none; display: grid; align-items: center; }
.hero-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.hero-dot::after { top: 5px; bottom: 5px; height: 4px; border-radius: 4px; }

.hero-art { grid-column: 2; grid-row: 1 / span 2; position: relative; justify-self: end; width: 100%; max-width: 440px; }
.hero-art::before {
  content: ""; position: absolute; inset: 0; transform: translate(18px, 18px); border: 2px solid var(--gold);
  border-radius: 999px 999px 26px 26px; z-index: 0;
}
.hero-arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--navy-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 6s linear; }
.hero-arch img.active { opacity: 1; transform: scale(1); }
.hero-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 26, 75, 0) 55%, rgba(12, 26, 75, .45)); pointer-events: none; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .hero-art { grid-column: 1; grid-row: 1; justify-self: center; max-width: 300px; margin-bottom: 14px; }
  .hero-stage { grid-row: 2; }
  .hero-controls { grid-row: 3; grid-column: 1; margin-top: 18px; }
  .hero-title { max-width: 18ch; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--mist); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.stack { grid-template-columns: 1fr; max-width: 760px; gap: 14px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Servicios: lista editorial */
.services { border-top: 2px solid var(--navy); }
.service {
  display: grid; grid-template-columns: minmax(220px, .8fr) 1.6fr; gap: clamp(16px, 4vw, 64px); align-items: start;
  padding-block: clamp(26px, 3.5vw, 42px); border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left .4s var(--ease), background-color .3s;
}
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.service:hover::before { width: 100%; }
.service:hover { padding-left: 14px; }
.service-title { display: flex; align-items: center; gap: 16px; }
.service-icon {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50% 50% 14px 14px; background: var(--navy); color: var(--gold);
}
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; }
.service p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } .service:hover { padding-left: 0; } }

/* Ventajas: cuadrícula de tamaños distintos */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ventaja {
  grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.ventaja:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.ventaja .icono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--royal); }
.ventaja .icono svg { width: 26px; height: 26px; }
.ventaja h3 { font-size: 1.3rem; font-weight: 700; }
.ventaja p { color: var(--muted); }
.ventaja.wide { grid-column: span 3; }
.ventaja.dark { background: var(--navy); border-color: var(--navy); }
.ventaja.dark h3 { color: #fff; }
.ventaja.dark p { color: #cdd6f3; }
.ventaja.dark .icono { background: rgba(255, 255, 255, .1); color: var(--gold); }
.ventaja.dark::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 28px rgba(255, 255, 255, .03); }
.ventaja.gold { background: var(--gold); border-color: var(--gold); }
.ventaja.gold p { color: #3a3010; }
.ventaja.gold .icono { background: rgba(12, 26, 75, .1); color: var(--navy); }
@media (max-width: 980px) { .ventaja, .ventaja.wide { grid-column: span 3; } .ventaja:last-child { grid-column: span 6; } }
@media (max-width: 640px) { .bento { gap: 14px; } .ventaja, .ventaja.wide, .ventaja:last-child { grid-column: span 6; } }

/* ---------- Cursos ---------- */
.buscador {
  display: grid; grid-template-columns: auto 1.6fr 1fr; gap: 14px 20px; align-items: center;
  background: var(--navy); color: #fff; border-radius: 20px; padding: 20px 24px; margin-bottom: 34px;
}
.buscador h3 { color: #fff; font-size: 1.15rem; font-weight: 600; }
.field-search { position: relative; }
.field-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.buscador input, .buscador select {
  width: 100%; height: 52px; border: 2px solid transparent; border-radius: var(--radius-input); background: #fff; color: var(--ink);
  font: inherit; padding: 0 16px; transition: border-color .2s, box-shadow .2s;
}
.buscador input { padding-left: 46px; }
.buscador select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354607f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.buscador input:focus, .buscador select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244, 184, 46, .3); }
@media (max-width: 900px) { .buscador { grid-template-columns: 1fr; padding: 20px; } }

.result-count { color: var(--muted); font-size: .95rem; margin: -10px 0 22px; min-height: 1.4em; }
.cursos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card-item {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-item:hover .card-media img { transform: scale(1.06); }
.categoria-overlay {
  position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); padding: 5px 12px; border-radius: 999px;
  background: rgba(12, 26, 75, .88); backdrop-filter: blur(4px); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.3;
}
.item-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; flex: 1; justify-content: space-between; }
.item-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.ver-mas { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--royal); }
.ver-mas::after { content: ""; position: absolute; inset: 0; }
.ver-mas svg { transition: transform .3s var(--ease); }
.card-item:hover .ver-mas svg { transform: translateX(5px); }
.empty-state { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius-card); }
.loading-line { text-align: center; padding: 40px; color: var(--muted); }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--royal); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; margin-right: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Detalle de curso ---------- */
.curso-page { padding-block: clamp(36px, 6vw, 80px); background: linear-gradient(180deg, var(--mist) 0, #fff 420px); }
.curso-detalle { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.curso-imagen-container { position: sticky; top: 100px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift); background: #fff; border: 1px solid var(--line); }
.curso-imagen { width: 100%; height: auto; }
.curso-info .pill { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--gold-soft); color: #6b4e00; font-weight: 600; font-size: .85rem; margin-bottom: 16px; }
.curso-titulo { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
.curso-descripcion { color: var(--muted); font-size: 1.1rem; margin-top: 18px; max-width: 62ch; }
.curso-conocimientos-titulo { font-size: 1.25rem; margin: 34px 0 14px; font-weight: 700; }
.curso-conocimientos-lista { display: grid; gap: 10px; }
.curso-conocimiento-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.curso-conocimiento-item svg { color: var(--ok); margin-top: 3px; }
.curso-boton-regresar { margin-top: 36px; }
@media (max-width: 860px) { .curso-detalle { grid-template-columns: 1fr; } .curso-imagen-container { position: static; } }
.curso-cargando, .not-found { padding: 120px var(--gutter); text-align: center; color: var(--muted); }
.not-found h1 { margin-bottom: 18px; }

/* ---------- Nosotros ---------- */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 88px) clamp(70px, 9vw, 110px); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 50px rgba(255, 255, 255, .03), 0 0 0 100px rgba(255, 255, 255, .02); }
.page-head h1, .page-head h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; position: relative; z-index: 1; }
.page-head .container { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.page-head .emblem { height: clamp(96px, 14vw, 150px); width: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); position: relative; z-index: 1; }

.intro-panel { margin-top: -56px; position: relative; z-index: 2; }
.intro-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); display: grid; }
.intro-row { display: grid; grid-template-columns: minmax(200px, .6fr) 1.4fr; gap: 12px clamp(18px, 4vw, 56px); padding: clamp(22px, 3vw, 34px) clamp(22px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.intro-row:last-child { border-bottom: 0; }
.intro-row h3 { font-size: 1.2rem; font-weight: 700; color: var(--royal); }
.intro-row p { color: var(--ink); font-size: 1.05rem; max-width: 66ch; }
@media (max-width: 760px) { .intro-row { grid-template-columns: 1fr; } }

.mv-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 88px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.mv-block.right-image .mv-image { order: 2; }
.mv-text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }
.mv-text p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.mv-text p + p { margin-top: 14px; }
.mv-image { border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 4 / 4.4; max-width: 380px; justify-self: center; width: 100%; background: var(--mist); position: relative; box-shadow: var(--shadow-lift); }
.mv-image img { width: 100%; height: 100%; object-fit: cover; }
.mv-image.no-img { display: none; }
.mv-block:has(.mv-image.no-img) { grid-template-columns: 1fr; }
@media (max-width: 760px) { .mv-block { grid-template-columns: 1fr; } .mv-block.right-image .mv-image { order: 0; } }

.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.valor-card { background: #fff; border-radius: 20px; padding: 32px 28px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.valor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.valor-icono { width: 60px; height: 60px; border-radius: 50% 50% 14px 14px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 22px; }
.valor-icono svg { width: 28px; height: 28px; }
.valor-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.valor-card p { color: var(--muted); }
@media (max-width: 860px) { .valores-grid { grid-template-columns: 1fr; } }

/* ---------- Certificado ---------- */
.cert-wrap { max-width: 920px; margin-inline: auto; }
.cert-form { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-soft); }
.cert-form label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.text-input {
  width: 100%; height: 54px; border: 2px solid var(--line); border-radius: var(--radius-input); padding: 0 16px; font: inherit; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
textarea.text-input { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.text-input:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(30, 74, 184, .18); }
.cert-form .btn { height: 54px; }
@media (max-width: 560px) { .cert-form { grid-template-columns: 1fr; } }
.error-message { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 500; }
.certificados-container { margin-top: 32px; }
.certificados-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.certificados-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 720px; }
.certificados-table th { text-align: left; background: var(--navy); color: #fff; padding: 14px 16px; font-weight: 600; font-size: .88rem; }
.certificados-table td { padding: 14px 16px; border-top: 1px solid var(--line); }
.certificados-table tbody tr:nth-child(even) { background: var(--mist); }
@media (max-width: 760px) {
  .certificados-table { min-width: 0; }
  .certificados-table thead { display: none; }
  .certificados-table, .certificados-table tbody, .certificados-table tr, .certificados-table td { display: block; width: 100%; }
  .certificados-table tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .certificados-table td { border: 0; padding: 6px 16px; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .certificados-table td::before { content: attr(data-label); font-weight: 600; color: var(--navy); text-align: left; }
}

/* ---------- Contacto ---------- */
.map-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.map-tab { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; transition: all .2s; }
.map-tab:hover { border-color: var(--navy); }
.map-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.map-frame-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: var(--mist); aspect-ratio: 16 / 8; min-height: 340px; }
.map-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.contact-form-container { max-width: 760px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lift); }
.contact-form-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 26px; }
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.contact-form .btn { justify-self: start; }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: #cdd6f3; margin-top: 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; right: -120px; bottom: -200px; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 0 0 60px rgba(255, 255, 255, .02); }
.footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(48px, 6vw, 76px); position: relative; }
.footer h5 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand h5 { margin: 0; }
.footer p { font-size: .96rem; line-height: 1.7; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: #cdd6f3; text-decoration: none; transition: color .2s, transform .25s var(--ease); }
.footer-link svg { color: var(--gold); }
.footer-link:hover { color: #fff; transform: translateX(4px); }
.footer .social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.footer .social-link { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, color .2s, transform .25s var(--ease); }
.footer .social-link:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer .social-link svg { width: 20px; height: 20px; }
.contact-info { margin-top: 22px; display: grid; gap: 10px; }
.contact-info p { display: flex; align-items: flex-start; gap: 10px; }
.contact-info svg { color: var(--gold); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; text-align: center; font-size: .9rem; position: relative; }
@media (max-width: 860px) { .footer-container { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(31, 168, 85, .45); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Aparición al desplazarse (discreta) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Barra superior solo en escritorio */
@media (max-width: 991px) { .d-none-mobile { display: none; } }

/* Logo (PNG sin transparencia) sobre fondos azules: se presenta en un arco blanco */
.page-head .emblem { background: #fff; padding: 10px; border-radius: 999px 999px 18px 18px; filter: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.footer-brand img { background: #fff; padding: 3px; border-radius: 999px 999px 8px 8px; }

@media (max-width: 560px) {
  .hero-art { max-width: 210px; margin-bottom: 8px; }
  .hero-art::before { transform: translate(12px, 12px); }
  .hero-inner { padding-block: 28px 36px; gap: 14px; }
  .hero-title { font-size: 2.15rem; }
}
