:root {
  --celeste: #5ab8eb;
  --celeste-2: #8fd6f6;
  --azul: #1e6fa8;
  --azul-profundo: #0f3f62;
  --azul-noche: #0a2f4a;
  --tinta: #162635;
  --texto: #40586a;
  --gris: #eef4f7;
  --papel: #f9fbfc;
  --blanco: #ffffff;
  --linea: #d6e4eb;
  --amarillo: #f3d27a;
  --sombra: 0 22px 55px rgba(15, 63, 98, .14);
  --sombra-suave: 0 12px 28px rgba(15, 63, 98, .08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 9999;
  padding: 12px 16px;
  color: white;
  background: var(--azul-noche);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.government-bar {
  background: var(--azul-noche);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  letter-spacing: .045em;
}
.government-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,63,98,.11);
  backdrop-filter: blur(14px);
}
.header-shell {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.brand-logo {
  width: 72px;
  height: 72px;
  padding: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: white;
  border: 1px solid #cfe4ee;
  box-shadow: var(--sombra-suave);
}
.enspa-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  min-width: 0;
}
.brand-copy__legacy {
  margin-bottom: 5px;
  color: var(--azul);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-copy strong {
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: .88rem;
  letter-spacing: .025em;
}
.brand-copy__name {
  margin-top: 5px;
  color: #294f69;
  font-size: .94rem;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #39566a;
  font-size: .86rem;
  font-weight: 700;
}
.primary-nav a {
  position: relative;
  padding: 12px 0;
}
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--celeste);
  transition: right .2s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { right: 0; }
.nav-cta {
  padding: 10px 15px !important;
  color: white;
  background: var(--azul-profundo);
  border-radius: 8px;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  background: var(--gris);
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--azul-profundo);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(10,47,74,.98) 0%, rgba(15,63,98,.97) 52%, rgba(30,111,168,.93) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 63%, rgba(90,184,235,.18) 63% 70%, transparent 70%),
    linear-gradient(125deg, transparent 0 72%, rgba(255,255,255,.06) 72% 76%, transparent 76%);
  pointer-events: none;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, transparent, black 34%, black);
}
.hero-layout {
  min-height: 660px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
  padding-block: 76px;
}
.hero-badge {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
  color: #d8effa;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-overline {
  margin: 25px 0 12px;
  color: var(--celeste-2);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: -.035em;
}
h1 {
  max-width: 780px;
  margin-bottom: 25px;
  color: white;
  font-size: clamp(3.7rem, 7vw, 6.7rem);
  line-height: .96;
}
h1 span { color: #bde7fa; }
.hero-lead {
  max-width: 720px;
  color: #d7e8f1;
  font-size: 1.1rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary {
  color: var(--azul-noche);
  background: var(--celeste-2);
  box-shadow: 0 12px 25px rgba(0,0,0,.13);
}
.button--outline {
  color: white;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #c8dce7;
  font-size: .8rem;
}
.hero-facts strong {
  margin-right: 5px;
  color: white;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
}

.hero-identity {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}
.identity-card {
  width: min(100%, 420px);
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 42px 44px;
  color: var(--azul-profundo);
  background: #fdfefe;
  border: 8px solid rgba(255,255,255,.17);
  outline: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 35px 90px rgba(0,0,0,.26);
}
.identity-card::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #c7e3ef;
  pointer-events: none;
}
.identity-card__corner {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 2;
  color: #56778c;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.enspa-logo--hero {
  width: 245px;
  height: 245px;
  position: relative;
  z-index: 2;
  object-fit: contain;
  filter: saturate(.9) contrast(1.02);
}
.identity-card__text {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 28px;
  text-align: center;
}
.identity-card__text strong {
  display: block;
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.08rem;
  letter-spacing: .08em;
}
.identity-card__text span {
  display: block;
  margin-top: 6px;
  color: var(--azul);
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.identity-card__text small {
  display: block;
  margin-top: 13px;
  color: #708392;
}
.identity-ribbon {
  position: absolute;
  left: -5px;
  bottom: 50px;
  z-index: 3;
  padding: 11px 16px;
  color: var(--azul-noche);
  background: var(--celeste-2);
  box-shadow: var(--sombra);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.service-strip {
  position: relative;
  z-index: 5;
  background: white;
  border-bottom: 1px solid var(--linea);
}
.service-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.service-link {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 13px;
  align-content: center;
  padding: 20px 25px;
  border-left: 1px solid var(--linea);
  transition: background .2s ease;
}
.service-link:last-child { border-right: 1px solid var(--linea); }
.service-link:hover { background: #f3f9fc; }
.service-link > span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--celeste);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.service-link strong {
  align-self: end;
  color: var(--azul-profundo);
  font-size: .95rem;
}
.service-link small {
  color: #6a7d8c;
  font-size: .74rem;
}

.section { padding: 100px 0; }
.section--paper {
  background:
    linear-gradient(rgba(90,184,235,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,184,235,.045) 1px, transparent 1px),
    var(--papel);
  background-size: 30px 30px;
}
.section-heading { margin-bottom: 48px; }
.section-heading h2 {
  max-width: 860px;
  margin: 15px 0 16px;
  color: var(--azul-profundo);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.08;
}
.section-heading p {
  max-width: 760px;
  color: var(--texto);
  font-size: 1.02rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--azul);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: currentColor;
}
.eyebrow--light { color: var(--celeste-2); }

.procedure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.procedure-card {
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 16px 18px;
  padding: 27px 28px;
  background: white;
  border: 1px solid #dce8ed;
  border-left: 5px solid var(--celeste);
  box-shadow: var(--sombra-suave);
  transition: transform .2s ease, box-shadow .2s ease;
}
.procedure-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra);
}
.procedure-card--accent {
  background: var(--azul-profundo);
  border-color: var(--azul-profundo);
  color: white;
}
.procedure-card__number {
  color: var(--celeste);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
}
.procedure-card h3 {
  margin-bottom: 7px;
  color: var(--azul-profundo);
  font-size: 1.12rem;
}
.procedure-card p {
  margin-bottom: 0;
  color: #607585;
  line-height: 1.65;
}
.procedure-card--accent h3,
.procedure-card--accent p { color: white; }
.procedure-card--accent p { color: #cee2ec; }
.status-pill {
  grid-column: 2;
  justify-self: start;
  padding: 5px 8px;
  color: #567083;
  background: #eef5f8;
  border: 1px solid #d8e6ed;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.procedure-card--accent .status-pill {
  color: #d9eff9;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.17);
}

.audience-section { background: white; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.audience-card {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra-suave);
}
.audience-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -65px;
  bottom: -65px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .08;
  box-shadow: 0 0 0 28px currentColor, 0 0 0 56px currentColor;
}
.audience-card--students { color: #1c699d; background: #f3fbff; }
.audience-card--families { color: #486b82; background: #f7fafb; }
.audience-card--teachers { color: #0f3f62; background: #eff5f7; }
.audience-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15,63,98,.13);
}
.audience-card__top > span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}
.audience-card__top small {
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.audience-card h3 {
  margin: 26px 0 18px;
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
}
.audience-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #526c7e;
}
.audience-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,63,98,.09);
}
.audience-card a {
  position: absolute;
  left: 30px;
  bottom: 28px;
  z-index: 2;
  color: var(--azul-profundo);
  font-weight: 800;
}
.audience-card a span { margin-left: 6px; }

.section--history {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--azul-noche);
}
.section--history::before {
  content: "ENSPA";
  position: absolute;
  right: -30px;
  bottom: -80px;
  color: rgba(255,255,255,.025);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17vw;
  font-weight: 700;
  letter-spacing: -.08em;
}
.history-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 84px;
  align-items: center;
}
.history-mark {
  min-height: 390px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(90,184,235,.15), transparent 54%),
    rgba(255,255,255,.025);
}
.history-mark span {
  position: absolute;
  top: 35px;
  left: 35px;
  color: var(--celeste-2);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .22em;
}
.history-mark strong {
  color: white;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 11rem;
  line-height: 1;
}
.history-copy h2 {
  margin: 17px 0 22px;
  color: white;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.06;
}
.history-copy p {
  max-width: 700px;
  color: #c4d8e3;
  font-size: 1.04rem;
  line-height: 1.85;
}
.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.history-tags span {
  padding: 7px 10px;
  color: #d8edf8;
  border: 1px solid rgba(255,255,255,.16);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.orientations { background: #f8fbfc; }
.orientation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--azul-profundo);
  border-bottom: 1px solid var(--linea);
}
.orientation-card {
  min-height: 315px;
  padding: 29px 25px;
  background: white;
  border-left: 1px solid var(--linea);
}
.orientation-card:last-child { border-right: 1px solid var(--linea); }
.orientation-card > span {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--celeste);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.orientation-card h3 {
  margin-bottom: 12px;
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
}
.orientation-card p {
  color: #607585;
  line-height: 1.65;
}

.agenda {
  color: white;
  background: linear-gradient(135deg, #175f8d, var(--azul-profundo));
}
.agenda-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
}
.agenda-intro h2 {
  margin: 18px 0;
  color: white;
  font-size: clamp(2.6rem, 4vw, 4.7rem);
  line-height: 1.04;
}
.agenda-intro p {
  max-width: 540px;
  color: #d0e5ef;
}
.agenda-list {
  border-top: 1px solid rgba(255,255,255,.25);
}
.agenda-list article {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.agenda-list time {
  color: var(--celeste-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
}
.agenda-list h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}
.agenda-list p {
  margin: 0;
  color: #cfe1e9;
  font-size: .9rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.news-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: white;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra-suave);
}
.news-card--featured {
  color: white;
  background: var(--azul-profundo);
  border-color: var(--azul-profundo);
}
.news-label {
  align-self: flex-start;
  padding: 5px 8px;
  color: var(--azul);
  background: #edf7fc;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.news-card--featured .news-label {
  color: var(--azul-noche);
  background: var(--celeste-2);
}
.news-card h3 {
  margin: 70px 0 12px;
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
}
.news-card--featured h3 { color: white; }
.news-card p {
  color: #617787;
  line-height: 1.65;
}
.news-card--featured p { color: #d1e3ec; }
.news-card small {
  margin-top: auto;
  color: #788c99;
  font-weight: 700;
}
.news-card--featured small { color: #b9d8e7; }

.contact-section {
  color: white;
  background: #0b314b;
}
.contact-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.contact-title h2 {
  margin: 17px 0 16px;
  color: white;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.08;
}
.contact-title p { color: #bad3df; }
.contact-panel {
  border-top: 1px solid rgba(255,255,255,.22);
}
.contact-panel div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.contact-panel span {
  color: var(--celeste-2);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-panel strong {
  color: white;
  font-weight: 600;
}

.site-footer {
  padding: 36px 0;
  color: #5d7280;
  background: white;
  border-top: 1px solid var(--linea);
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 26px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.enspa-logo--footer {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.footer-brand div {
  display: flex;
  flex-direction: column;
}
.footer-brand strong {
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: .82rem;
}
.footer-brand span { font-size: .76rem; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #37566a;
  font-size: .8rem;
  font-weight: 700;
}
.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--linea);
  font-size: .73rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--amarillo);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .primary-nav { gap: 11px; font-size: .79rem; }
  .brand-logo { width: 62px; height: 62px; }
  .hero-layout { grid-template-columns: 1fr .8fr; gap: 35px; }
  .procedure-grid { grid-template-columns: 1fr; }
  .orientation-grid { grid-template-columns: repeat(2, 1fr); }
  .orientation-card:nth-child(3) { border-top: 1px solid var(--linea); }
  .orientation-card:nth-child(4) { border-top: 1px solid var(--linea); }
}

@media (max-width: 900px) {
  .government-bar__inner span:last-child { display: none; }
  .header-shell { min-height: 84px; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .primary-nav {
    position: fixed;
    inset: 118px 0 auto 0;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: white;
    border-bottom: 1px solid var(--linea);
    box-shadow: var(--sombra);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    padding: 14px 6px;
    border-bottom: 1px solid #edf2f4;
  }
  .nav-cta {
    margin-top: 10px;
    text-align: center;
  }
  .brand-copy__legacy { font-size: .64rem; }
  .brand-copy strong { font-size: .77rem; }
  .brand-copy__name { font-size: .82rem; }

  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 45px;
    padding-block: 70px;
  }
  .hero-identity { min-height: auto; }
  .identity-card { min-height: 430px; }
  .service-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .service-link:nth-child(2) { border-right: 1px solid var(--linea); }
  .service-link:nth-child(n+3) { border-top: 1px solid var(--linea); }

  .audience-grid { grid-template-columns: 1fr; }
  .audience-card { min-height: 340px; }
  .history-layout,
  .agenda-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 50px; }
  .history-mark { min-height: 300px; }
  .history-mark strong { font-size: 8rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 260px; }
  .news-card h3 { margin-top: 45px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  .government-bar { font-size: .7rem; }
  .brand-logo { width: 52px; height: 52px; padding: 5px; }
  .brand-copy__legacy { display: none; }
  .brand-copy strong { max-width: 225px; font-size: .68rem; }
  .brand-copy__name { font-size: .75rem; }
  .primary-nav { inset: 118px 0 auto 0; }

  .hero-layout { padding-block: 55px; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-lead { font-size: 1rem; }
  .hero-facts { flex-direction: column; gap: 10px; }
  .identity-card { width: 100%; min-height: 380px; padding: 35px 26px; }
  .enspa-logo--hero { width: 200px; height: 200px; }
  .identity-ribbon { left: 10px; bottom: 30px; }
  .service-strip__grid { grid-template-columns: 1fr; }
  .service-link,
  .service-link:nth-child(2),
  .service-link:last-child {
    border-right: 1px solid var(--linea);
    border-top: 1px solid var(--linea);
  }

  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 2.35rem; }
  .procedure-card {
    grid-template-columns: 42px 1fr;
    padding: 22px 20px;
  }
  .status-pill { grid-column: 2; }
  .audience-card { padding: 24px; }
  .audience-card a { left: 24px; }
  .orientation-grid { grid-template-columns: 1fr; }
  .orientation-card,
  .orientation-card:nth-child(n) {
    min-height: 250px;
    border: 1px solid var(--linea);
    border-top: 0;
  }
  .orientation-card:first-child { border-top: 1px solid var(--linea); }
  .orientation-card > span { margin-bottom: 45px; }
  .agenda-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-panel div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .footer-layout { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

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