/* Estilos de interfaz del colegio. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: -90px;
  left: 12px;
  padding: 12px 18px;
  background: #fff;
  color: #410000;
  z-index: 2000;
}

.skip-link:focus {
  top: 10px;
}

.logo {
  text-decoration: none;
}

.header-flex {
  justify-content: space-between;
}

.menu-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  position: relative;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.menu-close::before, .menu-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  top: 20px;
  width: 30px;
  height: 4px;
}

.menu-toggle span:first-child {
  transform: translateY(-9px);
}

.menu-toggle span:last-child {
  transform: translateY(9px);
}

@media (min-width: 1101px) {
  .header .nav {
    position: static;
  }
  .header .nav ul {
    gap: 2px;
  }
  .header .nav a {
    padding: 6px 8px;
  }
  .header .logo-img {
    max-width: 310px;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1100px) {
  .header {
    transform: none;
    opacity: 1;
  }
  .header .menu-toggle {
    display: flex !important;
  }
  .header .logo {
    max-width: calc(100% - 65px);
  }
  .header .logo-img {
    width: 100%;
    height: auto;
    max-height: 58px;
    object-fit: contain;
  }
  .header .nav {
    position: fixed;
    height: 100dvh;
    transition: transform .25s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
  }
  .header .nav.open {
    visibility: visible;
  }
  .header .menu-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
  }
  .header .menu-header img {
    width: calc(100% - 54px);
    object-fit: contain;
  }
  .header .menu-close {
    display: block !important;
  }
  .header .nav ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .header .nav a {
    display: block;
    padding: 13px 18px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border-left: 4px solid transparent;
    border-radius: 0;
  }
  .header .nav a::after {
    display: none;
  }
  .header .nav a.active {
    border-left-color: #ffe600;
    background: #ffffff14;
    color: #ffe600;
  }
  .header .menu-extra {
    display: block !important;
    margin-top: auto;
  }
  .header .menu-social {
    display: flex;
  }
  .header .menu-social a {
    display: grid;
    place-items: center;
    padding: 0;
    width: 44px;
    height: 44px;
    border: 0;
  }
  .header .menu-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1001;
  }
  .header:has(.nav.open) {
    isolation: auto;
  }
}

.admissions-hero {
  padding: clamp(34px, 6vw, 78px) 0;
}

.admissions-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
}

.admissions-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.14;
  margin: 14px 0 20px;
}

.admissions-hero p {
  max-width: 58ch;
}

.admissions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.admissions-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.achievement-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 20px;
}

.slider {
  height: min(58vw, 560px);
}

.slider-buttons button {
  min-width: 44px;
  min-height: 44px;
}

.carousel-container h2 {
  text-align: center;
  padding: 0 10px 18px;
  font-size: 28px;
  color: white;
  font-family: "Segoe UI", sans-serif;
  letter-spacing: .5px;
  margin-top: -6px;
}

.carousel-container h2::before, .carousel-container h2::after {
  content: '';
  display: inline-block;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f8a32d);
  vertical-align: middle;
  margin: 0 12px;
}

.carousel-container h2::after {
  background: linear-gradient(90deg, #f8a32d, transparent);
}

.team-viewport {
  overflow: hidden;
  scrollbar-width: none;
}

.team-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  position: relative;
  animation: none !important;
  transform: none;
  will-change: auto;
  gap: 0;
  padding: 0;
}

.miembro {
  width: 280px;
  margin: 0 28px;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .carousel-container h2 {
    font-size: 24px;
  }
  .carousel-container h2::before, .carousel-container h2::after {
    width: clamp(12px, 7vw, 40px);
    margin: 0 8px;
  }
  .team-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }
  .miembro {
    width: 200px;
    margin: 0 18px;
    scroll-snap-align: center;
  }
  .miembro-copia {
    display: none;
  }
}

.privacy-note {
  font-size: .9rem;
  color: #555;
}

.form-alert {
  scroll-margin-top: 100px;
}

.play-icon {
  cursor: pointer;
}

@media (max-width: 680px) {
  .admissions-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .admissions-photo {
    max-height: 260px;
  }
  .admissions-actions a {
    flex: 1 1 auto;
    text-align: center;
  }
}

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

.admissions-photo {
  height: auto;
}

.slide img {
  height: 100%;
}

.section-heading {
  text-align: center;
  padding: 10px;
}

:root {
  --brand-wine: #5f0909;
  --brand-wine-hover: #7a1717;
  --brand-gold: #d7a84a;
  --heading-ink: #203b55;
  --action-blue: #1a709b;
  --action-blue-hover: #155c80;
  --soft-blue: #eaf3f9;
  --surface: #fff;
  --surface-warm: #f5f3ef;
  --text-main: #263142;
  --text-muted: #626974;
  --line-soft: #e2ded7;
  --shadow-soft: 0 8px 28px rgb(22 45 68 / 6%);
}

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
  scrollbar-gutter: stable;
}

body {
  background: var(--surface-warm);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled), a {
  touch-action: manipulation;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

input, textarea, select {
  max-width: 100%;
}

input[type="search"] {
  font-size: 16px;
  min-width: 0;
}

img {
  max-width: 100%;
}

a {
  text-underline-offset: .2em;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 4px;
}

:root {
  --header-height: 82px;
}

.header {
  background: var(--brand-wine);
  border-bottom: 1px solid #d7a84a80;
  transform: none;
  opacity: 1;
  transition: transform .32s ease, box-shadow .2s ease;
}

.header.hide {
  transform: translateY(calc(-100% - 2px));
  opacity: 1;
  pointer-events: none;
}

.header:focus-within, body.menu-open .header {
  transform: none;
  pointer-events: auto;
  transition: box-shadow .2s ease;
}

.header.is-scrolled {
  box-shadow: 0 4px 18px #2b080838;
}

.header .header-flex {
  width: calc(100% - 48px);
  max-width: 1280px;
  gap: 24px;
}

.header .logo {
  background: transparent;
  border-radius: 0;
  height: 68px;
  width: 320px;
  flex: 0 0 auto;
  padding: 0;
}

.header .logo-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 66px;
}

.header .nav-links {
  align-items: center;
  padding: 0;
  gap: 3px;
}

.header .nav-links > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  font-size: .9rem;
  font-weight: 700;
  color: #fff8ef;
  border-radius: 10px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.header .nav-links > li > a::after {
  display: none;
}

.header .nav-links > li > a:hover {
  background: #ffffff14;
}

.header .nav-links > li > a.active {
  background: #ffffff12;
  color: #f6d47c;
  box-shadow: inset 0 -2px 0 var(--brand-gold);
}

.header .nav-links > li > a.nav-contact {
  background: #edca79;
  color: #460b0b;
  margin-left: 8px;
  padding-inline: 18px;
}

.header .nav-links > li > a.nav-contact:hover {
  background: #f4d797;
}

.header .nav-links > li > a.nav-contact.active {
  box-shadow: inset 0 -3px 0 #9b6425;
}

.header .menu-contact a {
  display: inline;
  padding: 0;
  border: 0;
  font-size: inherit;
  text-transform: none;
}

.header .menu-contact a:hover {
  padding: 0;
  background: transparent;
  text-decoration: underline;
}

@media (min-width: 1101px) {
  .header .nav {
    align-self: flex-end;
    margin-bottom: 7px;
  }
}

.footer {
  background: #1b2028;
  color: #c4cbd4;
  border-top: 1px solid #343b45;
  padding: 0;
  text-align: left;
}

.footer .container {
  display: block;
  min-height: 0;
}

.footer p {
  line-height: 1.75;
  color: #b9c1cc;
  font-size: .85rem;
}

.footer a {
  color: #d3dae3;
  font-size: inherit;
  font-weight: 400;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer a:focus-visible {
  outline-color: #e2e8f0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .65fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: 44px 0 34px;
}

.footer-main > * {
  min-width: 0;
}

.footer .footer-brand {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 16px;
}

.footer-brand img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}

.footer-identity > p {
  max-width: 30ch;
}

.footer h2 {
  font-size: .88rem;
  font-weight: 700;
  color: #f4f6f8;
  line-height: 1.4;
  margin: 0 0 16px;
}

.footer-nav ul {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: .85rem;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer .footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff26;
  border-radius: 10px;
  background: #ffffff08;
  color: #d3dae3;
  font-size: 1rem;
}

.footer .footer-social a:hover {
  background: #ffffff14;
  color: #fff;
  text-decoration: none;
}

.footer-contact address {
  font-style: normal;
  font-size: .85rem;
  line-height: 1.8;
}

.footer-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.footer-phone a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-phone span {
  color: #7f8a99;
}

.footer .footer-email {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-block: 6px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.footer-contact address p {
  color: #b9c1cc;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 22px 0 28px;
  border-top: 1px solid #343b45;
}

.footer .footer-copyright {
  font-size: .76rem;
  color: #b9c1cc;
}

.footer .footer-credit {
  font-size: .73rem;
  color: #929ead;
  margin-top: 4px;
}

.footer .footer-credit a {
  color: #f4c95d;
  font-weight: 700;
}

.footer .footer-credit a:hover {
  color: #ffe39a;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: .78rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 34px;
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
  .footer-brand img {
    width: 250px;
  }
  .footer-identity > p {
    max-width: none;
  }
  .footer-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
  }
  .footer h2 {
    margin-bottom: 10px;
  }
  .footer-bottom {
    display: grid;
    gap: 14px;
    padding-bottom: 88px;
  }
  .footer-legal {
    gap: 10px 24px;
  }
}

body > #app > hr {
  margin: 0;
  border: 0;
}

.whatsapp-float {
  width: 62px;
  height: 62px;
  isolation: isolate;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(145deg, #35d250 0%, #16ad34 48%, #0e922b 100%);
  border: 1px solid #3ed55a;
  border-radius: 50%;
  box-shadow: inset 0 2px 2px #ffffff66, inset 0 -2px 3px #07561d55, 0 5px 0 #08651e, 0 12px 14px #07152080, 0 20px 32px #02021d66;
  animation: whatsapp-lift 7s ease-in-out infinite;
  will-change: transform;
  transition: box-shadow .2s ease, filter .2s ease;
}

.whatsapp-float i {
  font-size: 44px;
  text-shadow: 0 2px 2px #07561d40;
}

@keyframes whatsapp-lift {
  0%, 76%, 86%, 96%, 100% {
    transform: translateY(0);
  }
  81% {
    transform: translateY(-5px);
  }
  91% {
    transform: translateY(-3px);
  }
}

.admissions-hero {
  background: linear-gradient(115deg, #f6f2ec, #e9e2d8);
  color: var(--text-main);
  border-bottom: 1px solid #d5c9b8;
  padding-block: clamp(32px, 4vw, 56px);
}

.admissions-hero h1 {
  letter-spacing: -.025em;
  color: var(--heading-ink);
}

.admissions-hero p {
  color: #4a6073;
}

.admissions-photo {
  border: 6px solid #fff;
  border-radius: 26px 26px 64px 26px;
  box-shadow: 0 18px 40px #203b551c;
}

.admissions-hero .admissions-layout {
  gap: clamp(28px, 5vw, 68px);
}

.admissions-hero h1 {
  max-width: 18ch;
}

.admissions-hero .achievement-links {
  padding-top: 18px;
  border-top: 1px solid #cddde7;
  font-size: .92rem;
  gap: 10px 22px;
}

.achievement-links a {
  color: var(--action-blue-hover);
}

.admissions-actions a, .gallery-promo-btn, .btn-nivel, .btn-cta, .btn-contacto, .library-btn, .hero-cta .btn, body[data-page="noticias"] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gallery-promo-btn, .btn-cta, .btn-contacto, .library-btn.primary, .hero-cta .btn, body[data-page="noticias"] .btn:not(.ghost) {
  background: var(--action-blue);
  color: #fff;
  box-shadow: none;
  border: 1px solid transparent;
}

.btn-nivel {
  background: var(--brand-wine);
  color: #fff;
  box-shadow: none;
  border: 1px solid transparent;
}

.admissions-actions a {
  background: var(--brand-wine);
  color: #fff;
}

.admissions-actions a.secondary {
  background: #fff;
  border: 1px solid #adc8d9;
  color: var(--action-blue-hover);
}

.library-btn.secondary, body[data-page="noticias"] .btn.ghost {
  background: #fff;
  color: var(--action-blue-hover);
  border: 1px solid #c5d8e5;
  box-shadow: none;
}

body[data-page="inicio"] .intro {
  padding: clamp(32px, 4vw, 52px) max(20px, calc((100% - 1000px) / 2));
  background: #fff;
}

.intro h2 {
  color: var(--heading-ink);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.intro h2 + h2 {
  color: #6d635a;
  font-size: clamp(.88rem, 1.7vw, 1.05rem);
  letter-spacing: .12em;
}

.intro p {
  color: var(--text-muted);
  line-height: 1.8;
}

.intro h3 {
  background: #fbfaf7;
  color: #5b421c;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 5px 18px #26314208;
  font-size: 1.1rem;
  line-height: 1.65;
}

.gallery-promo {
  background: var(--surface-warm);
  padding: 32px 0 8px;
}

.gallery-promo-inner {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 34px #2631420d, 0 2px 5px #26314204;
  border-radius: 20px;
}

.gallery-promo-copy h2 {
  color: var(--heading-ink);
}

.gallery-promo-tag {
  color: #79501a;
  background: #fbf0d9;
}

.section-label {
  display: block;
  text-align: left;
  color: var(--heading-ink);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin: 48px 0 24px;
}

.section-label::before {
  display: none;
}

.section-label::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin: 12px 0 0;
  background: var(--brand-gold);
  border-radius: 2px;
}

.hero-grid, .hero-benefits {
  gap: 22px;
  padding: 0;
}

.hero-box, .benefit-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 30px 24px;
  box-shadow: var(--shadow-soft);
}

.hero-box::after, .benefit-card::after {
  display: none;
}

.hero-box i, .benefit-card i {
  font-size: 30px;
  color: var(--action-blue);
  margin-bottom: 16px;
}

.benefit-card i + i {
  margin-left: 10px;
}

.hero-box h3 {
  color: #1b3960;
}

.hero-box p, .benefit-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-box {
  text-align: left;
  border-radius: 18px;
}

.hero-box:nth-child(1) {
  background: #edf5fa;
}

.hero-box:nth-child(2) {
  background: #fbf3e3;
}

.hero-box:nth-child(3) {
  background: #edf4ef;
}

.hero-box > i {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 26px;
  background: #dcebf4;
  border-radius: 16px;
}

.hero-box:nth-child(2) > i {
  background: #f1e3c1;
  color: #8d681d;
}

.hero-box:nth-child(3) > i {
  background: #dae9de;
  color: #42725a;
}

.hero-benefits {
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.benefit-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 26px 24px;
  background: transparent;
}

.benefit-card:nth-child(1) {
  background: #f2f7fa;
}

.benefit-card:nth-child(2) {
  background: #faf5e9;
}

.benefit-card:nth-child(3) {
  background: #f0f6f1;
}

.benefit-card + .benefit-card {
  border-left: 1px solid var(--line-soft);
}

.benefit-card i {
  font-size: 25px;
  margin-bottom: 12px;
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.hero-video {
  display: block;
  max-width: 1000px;
  margin: 44px auto 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.hero-video-copy {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.video-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #687682;
  margin-bottom: 8px;
}

.hero-video h3 {
  color: var(--heading-ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.hero-video .video-desc {
  color: #5b6874;
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
  max-width: 64ch;
}

.video-duration {
  flex-shrink: 0;
  font-size: .76rem;
  color: #52616f;
  font-variant-numeric: tabular-nums;
  padding-bottom: 3px;
}

.video-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: 24px;
  background: #d5d7d5;
  border: 1px solid #d8dcdf;
  border-radius: 20px;
  box-shadow: 0 14px 36px #26314212;
}

.video-ambience {
  position: absolute;
  inset: -32px;
  z-index: -1;
  width: calc(100% + 64px);
  height: calc(100% + 64px);
  max-width: none;
  object-fit: cover;
  filter: blur(24px) brightness(.88);
  opacity: .75;
  pointer-events: none;
}

.hero-video .video-wrapper {
  width: 100%;
  box-shadow: 0 12px 36px #1b293b45;
}

.play-icon {
  width: 72px;
  height: 72px;
  font-size: 24px;
  background: #fffffff2;
  color: var(--action-blue-hover);
  border: 1px solid #ffffffb3;
  box-shadow: 0 6px 26px #101c2a59;
}

.play-icon i {
  margin-left: 4px;
}

.play-icon:hover {
  background: #fff;
  color: #174864;
}

.video-feedback {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: .9rem;
}

.video-feedback a {
  color: var(--action-blue-hover);
}

#contacto {
  background: #e7e1d7;
  padding: clamp(24px, 4vw, 42px);
  gap: 32px;
  border-top: 1px solid #d5c9b8;
}

#contacto .info {
  flex: 1 1 320px;
}

#contacto .mapa {
  flex: 1 1 420px;
  align-self: center;
}

#contacto h2 {
  font-size: 1.7rem;
  color: var(--heading-ink);
}

#contacto p {
  font-size: 1rem;
  line-height: 1.75;
  color: #465d70;
}

#contacto a {
  color: var(--action-blue-hover);
}

#contacto .redes-sociales {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

#contacto .redes-sociales a {
  font-size: 1.65rem;
  margin: 0;
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #d6e3ec;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.mapa-responsive {
  box-shadow: none;
  border: 1px solid #d7e2ea;
}

.nosotros {
  padding-block: 38px;
}

.postit-box {
  border-radius: 16px;
  box-shadow: 0 12px 36px #0003;
}

.postit-box p {
  line-height: 1.85;
}

.mision-vision-split {
  gap: 28px;
  padding-block: 44px;
}

.mision-vision-split .mision, .mision-vision-split .vision {
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 8px 24px #382d1b0d;
}

.mision-vision-split h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1.45rem;
  letter-spacing: -.015em;
  color: var(--heading-ink);
}

.mision-vision-split h2 i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f1e9e5;
  color: var(--brand-wine);
  font-size: 22px;
}

.mision-vision-split .vision h2 i {
  background: #f4efdf;
  color: #886827;
}

.mision-vision-split .mision h2 {
  color: var(--heading-ink);
}

.mision-vision-split .mision p, .mision-vision-split .vision p {
  color: #4b5865;
  line-height: 1.85;
  font-size: .97rem;
}

.premios-reconocimientos {
  background: var(--surface-warm);
  padding: clamp(28px, 4vw, 50px) max(20px, calc((100% - 1240px) / 2));
}

.section-heading {
  color: var(--heading-ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 24px;
}

.card-premio {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
}

.card-premio p {
  color: var(--text-muted);
  line-height: 1.7;
}

.participaciones {
  background: #eae6df;
  min-height: 0;
  padding: 40px 20px;
}

.proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  width: min(100%, 1200px);
  gap: 24px;
}

.proyectos li {
  width: auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
}

.proyectos li:hover {
  transform: none;
}

.proyectos .card {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border-radius: 16px;
  height: 100%;
}

.proyectos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.proyectos .card-back {
  padding: 16px 18px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--heading-ink);
}

body[data-page="niveles"] main.container {
  max-width: 1160px;
}

.niveles {
  margin-bottom: 0;
}

.titulo-seccion {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  line-height: 1.25;
  color: var(--heading-ink);
}

.niveles-grid {
  gap: 28px;
}

.nivel-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  flex-direction: column;
}

.nivel-img {
  height: clamp(240px, 29vw, 380px);
  object-position: center top;
  display: block;
}

.nivel-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.nivel-info h3 {
  font-size: 1.4rem;
}

.nivel-info h3::after {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 12px;
  background: var(--brand-gold);
  border-radius: 2px;
}

.nivel-info p {
  line-height: 1.75;
  color: var(--text-muted);
}

.nivel-lista {
  margin-bottom: 24px;
}

.nivel-lista li {
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid #edf1f4;
}

.nivel-lista i {
  color: #946719;
  margin: 0;
  flex-shrink: 0;
}

.btn-nivel {
  margin-top: auto;
}

.beneficios, .testimonios {
  padding: 46px max(20px, calc((100% - 1160px) / 2));
}

.beneficios-grid, .testimonios-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 22px;
  margin-top: 26px;
}

.beneficio {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.beneficio p {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.75;
}

.beneficio > i {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 25px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--action-blue-hover);
  margin-bottom: 16px;
}

.testimonios {
  background: linear-gradient(135deg, #f1e8d8, #e9e5dd);
}

.testimonios-grid {
  gap: 36px;
  align-items: center;
  padding: 12px;
}

.testimonio {
  position: relative;
  background-color: #fffef9;
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, #cadbe7 27px 28px), radial-gradient(circle at 14px 28px, #edf1f4 0 5px, #bcc6ce 5px 6px, transparent 6px);
  background-size: 100% 28px, 28px 56px;
  background-repeat: repeat, repeat-y;
  background-position: 0 0;
  transform: rotate(-2deg);
  width: 100%;
  max-width: 500px;
  margin: 18px auto;
  padding: 36px 28px 28px 52px;
  border: none;
  border-radius: 3px;
  box-shadow: 5px 12px 22px #273d5226;
  font-size: 1.05rem;
  line-height: 28px;
  text-align: left;
  color: #213b58;
}

.testimonio:nth-child(2) {
  transform: rotate(1.5deg);
}

.testimonio::before {
  display: block;
  left: 38px;
  width: 2px;
  background: #d58d8d;
}

.testimonio strong {
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: .95rem;
  line-height: 1.6;
  margin-top: 28px;
  color: #283f56;
}

.hero-box:hover, .benefit-card:hover, .nivel-card:hover, .card-premio:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.testimonio:hover {
  transform: rotate(-2deg);
  box-shadow: 5px 12px 22px #273d5226;
}

.testimonio:nth-child(2):hover {
  transform: rotate(1.5deg);
}

.cta-final {
  background: #e9e2d5;
  color: var(--heading-ink);
  padding: 36px 24px;
  border-top: 1px solid #d7c8af;
}

.cta-final p {
  max-width: 700px;
  margin: 16px auto 0;
  color: #4a6073;
  line-height: 1.75;
}

.cta-final .btn-cta {
  background: var(--action-blue);
  color: #fff;
  margin-top: 24px;
}

.news-wrap {
  max-width: 1260px;
  padding-block: 24px;
}

.toolbar, body[data-page="galeria"] .controls {
  gap: 12px;
}

.chip, .library-chip {
  min-height: 42px;
  padding: 9px 15px;
  background: #fff;
  border-color: var(--line-soft);
}

.chip.active, .chip[aria-pressed="true"], .library-chip.active {
  background: var(--soft-blue);
  border-color: #b8d5e6;
  color: var(--action-blue-hover);
  font-weight: 700;
  box-shadow: none;
}

.search, .library-search, .library-select, .select {
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: none;
}

.search:focus-within, .library-search:focus-within, .library-select:focus-within {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px #d7a84a25;
}

body[data-page="noticias"] .hero-card, body[data-page="noticias"] .mini-card {
  cursor: pointer;
}

body[data-page="noticias"] .featured {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: stretch;
}

body[data-page="noticias"] .hero-card {
  height: 440px;
  min-height: 0;
}

body[data-page="noticias"] .featured .mini-stack {
  min-height: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

body[data-page="noticias"] .mini-card {
  min-height: 0;
}

body[data-page="noticias"] .hero-card img, body[data-page="noticias"] .mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

body[data-page="noticias"] .card, .side-block {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

body[data-page="noticias"] .card .body {
  padding: 22px;
}

body[data-page="noticias"] .grid .card {
  display: flex;
  flex-direction: column;
}

body[data-page="noticias"] .grid .card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

body[data-page="noticias"] .grid .card .actions {
  margin-top: auto;
  padding-top: 20px;
}

body[data-page="noticias"] .grid .card .actions .btn:not(.ghost) {
  background: #edf5fa;
  color: var(--action-blue-hover);
  border-color: #dae8f1;
  min-height: 42px;
  padding: 9px 14px;
}

body[data-page="noticias"] .grid .card .actions .btn:not(.ghost) i {
  font-size: .9rem;
}

body[data-page="noticias"] .card .title {
  font-size: 1.12rem;
  line-height: 1.45;
}

.side-title {
  color: var(--heading-ink);
}

.side-empty {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.empty, .library-empty, .gallery-empty {
  padding: 32px 24px;
  border: 1px dashed #cfc6ba;
  border-radius: 14px;
  text-align: center;
  background: #fff;
  color: var(--text-muted);
}

.result-summary {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 18px;
}

.toolbar {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
}

.toolbar .chip {
  border-radius: 10px;
}

.search, .library-search {
  min-height: 46px;
  border-radius: 12px;
}

.empty button, .library-empty button, .gallery-empty button {
  display: inline-block;
  background: transparent;
  color: var(--action-blue-hover);
  border: 0;
  text-decoration: underline;
  margin-top: 12px;
  min-height: 40px;
  padding: 4px 10px;
  cursor: pointer;
}

.modal-card {
  border-radius: 16px;
  max-height: calc(100dvh - 32px);
}

.modal-header {
  gap: 16px;
  padding: 18px 22px;
}

.modal-header h3 {
  font-size: 1.2rem;
  line-height: 1.45;
}

.close {
  flex-shrink: 0;
  min-height: 44px;
  background: var(--soft-blue);
  color: var(--action-blue-hover);
}

.modal-body {
  padding: 24px;
  gap: 20px;
}

body.dialog-open {
  overflow: hidden;
}

.modal-card, .lightbox {
  overscroll-behavior: contain;
}

.library-page {
  background: var(--surface-warm);
}

.library-panel, .library-card, .library-viewer {
  border-color: var(--line-soft);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
}

.library-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.library-card:hover {
  transform: none;
}

.library-layout, .library-toolbar {
  min-width: 0;
}

.library-layout > *, .library-toolbar > * {
  min-width: 0;
}

.library-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.library-viewer {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.library-viewer .helper {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 14px;
  line-height: 1.7;
}

body[data-page="galeria"] .hero {
  background: linear-gradient(115deg, #f6f9fb, #e8f2f8);
  padding-block: 44px;
}

body[data-page="galeria"] .hero h1 {
  letter-spacing: -.025em;
  color: var(--heading-ink);
}

body[data-page="galeria"] .hero p {
  color: #4a6073;
}

body[data-page="galeria"] .card {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

body[data-page="galeria"] .card .title {
  color: var(--text-main);
  line-height: 1.5;
}

body[data-page="galeria"] .btn.primary {
  border-radius: 12px;
  background: var(--action-blue);
  box-shadow: 0 4px 12px #1a709b20;
}

body[data-page="galeria"] .actions-overlay .btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--action-blue-hover);
  border: 1px solid #d7e5ee;
  box-shadow: 0 3px 10px #17354c20;
}

body[data-page="galeria"] .actions-overlay .btn-icon:hover,
body[data-page="galeria"] .actions-overlay .btn-icon:focus-visible {
  background: var(--action-blue);
  color: #fff;
  border-color: var(--action-blue);
  box-shadow: 0 6px 16px #17354c38;
}

.lightbox .lb-main {
  min-width: 0;
}

.lightbox .lb-category-chip {
  position: static;
  z-index: auto;
  transform: none;
  justify-self: start;
  background: #1d597b;
  box-shadow: none;
}

.lb-main > img {
  max-height: min(73vh, calc(100dvh - 190px));
  box-shadow: none;
}

.lb-main > img {
  touch-action: pan-y pinch-zoom;
}

.lb-meta {
  gap: 12px;
}

.contact-hero {
  background: linear-gradient(115deg, #f5f9fc, #e7f1f7);
  color: var(--heading-ink);
  border-bottom: 1px solid var(--line-soft);
}

.contact-hero h1 {
  color: var(--heading-ink);
  text-shadow: none;
}

.contact-hero p {
  color: #4a6073;
  text-shadow: none;
}

.contact-page {
  background: var(--surface-warm);
}

.contact-info .info-card {
  background: #f5f8fb;
  border-color: #e0e6e9;
}

.contact-info .info-icon {
  background: var(--soft-blue);
  color: var(--action-blue-hover);
  box-shadow: none;
}

.contact-info .info-icon i {
  color: inherit;
}

.contact-info .info-card a {
  color: var(--action-blue-hover);
  overflow-wrap: anywhere;
}

.contact-panel h2 {
  color: var(--heading-ink);
}

.contact-panel {
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
}

.contact-hero h1 {
  letter-spacing: -.025em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border-color: #ccd5dd;
  border-radius: 10px;
  font-size: 16px;
  background: #fbfcfd;
}

.form-group select {
  width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--action-blue);
  background: #fff;
  box-shadow: 0 0 0 3px #1a709b1f;
  outline: none;
}

.contact-form label.privacy-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.65;
}

.contact-form label.privacy-note input {
  flex: 0 0 auto;
  margin-top: 5px;
  accent-color: var(--action-blue);
  width: 18px;
  height: 18px;
}

.contact-form .btn-contacto {
  margin-top: 0;
  justify-self: start;
  min-height: 48px;
}

.contact-form .btn-contacto:disabled {
  background: #4e7085;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.contact-form .form-group .is-invalid {
  border-color: #b33d39;
  box-shadow: 0 0 0 2px #b33d3914;
}

.form-privacy {
  display: grid;
  gap: 12px;
}

.contact-form .privacy-note {
  margin: 0;
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.65;
}

.contact-form .privacy-note a {
  color: var(--action-blue-hover);
  text-underline-offset: .2em;
}

.contact-info .info-card:nth-child(2) {
  background: #f1f7f3;
}

.contact-info .info-card:nth-child(2) .info-icon {
  background: #e3efe7;
  color: #32624f;
}

.contact-info .info-card:nth-child(4) {
  background: #faf6ed;
}

.contact-info .info-card:nth-child(4) .info-icon {
  background: #f5ead0;
  color: #80601f;
}

.map-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c9dce7;
  border-radius: 10px;
  color: var(--action-blue-hover);
  background: #eaf3f9;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}

.map-directions:hover,
.map-directions:focus-visible {
  background: #dfedf5;
  border-color: #9fbfd2;
}

.privacy-content {
  padding-block: 42px;
  max-width: 850px;
}

.privacy-content h1 {
  color: var(--heading-ink);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 18px;
}

.privacy-content h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.privacy-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.privacy-content a {
  color: var(--action-blue-hover);
}

@media (hover: hover) and (pointer: fine) {
  .hero-box:hover, .benefit-card:hover, .nivel-card:hover, .card-premio:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px #16304412;
  }
  .testimonio:hover {
    transform: rotate(-1deg) translateY(-2px);
    box-shadow: 7px 16px 26px #273d522b;
  }
  .testimonio:nth-child(2):hover {
    transform: rotate(.5deg) translateY(-2px);
  }
  .gallery-promo-btn:hover, .library-btn.primary:hover, .hero-cta .btn:hover, .btn-cta:hover, .btn-contacto:hover, body[data-page="noticias"] .btn:not(.ghost):hover {
    background: var(--action-blue-hover);
    transform: translateY(-1px);
    box-shadow: none;
  }
  .btn-nivel:hover, .admissions-actions a:not(.secondary):hover {
    background: var(--brand-wine-hover);
    transform: translateY(-1px);
    box-shadow: none;
  }
  .admissions-actions a.secondary:hover {
    background: #e5f0f7;
    border-color: #83afca;
  }
  .whatsapp-float:hover {
    animation-play-state: paused;
    filter: brightness(1.05);
    box-shadow: inset 0 2px 2px #ffffff66, inset 0 -2px 3px #07561d55, 0 5px 0 #08651e, 0 14px 18px #07152088, 0 24px 38px #02021d66;
  }
  .benefit-card:hover {
    transform: none;
    box-shadow: none;
  }
  body[data-page="noticias"] .grid .card .actions .btn:not(.ghost):hover {
    background: #dcecf6;
    color: #124f70;
  }
  .library-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px #16304412;
    border-color: #b9d1e0;
  }
  #contacto .redes-sociales a:hover {
    background: #dcebf5;
    transform: translateY(-2px);
  }
}

.admissions-actions a:active, .gallery-promo-btn:active, .btn-nivel:active, .btn-cta:active, .btn-contacto:active, .library-btn:active, .hero-cta .btn:active, body[data-page="noticias"] .btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.whatsapp-float:active {
  animation: none;
  transform: translateY(3px);
}

@media (max-width: 1000px) {
  .proyectos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-video-copy {
    gap: 12px;
    align-items: flex-start;
  }
  .hero-video h3 {
    margin-bottom: 10px;
  }
  .video-stage {
    padding: 16px;
    border-radius: 16px;
  }
  .video-duration {
    padding-top: 3px;
  }
  .hero-box {
    padding: 26px 22px;
  }
  body[data-page="noticias"] .featured {
    grid-template-columns: 1fr;
  }
  body[data-page="noticias"] .hero-card {
    height: 340px;
  }
  body[data-page="noticias"] .featured .mini-stack {
    grid-template-rows: none;
  }
  body[data-page="noticias"] .mini-card {
    min-height: 230px;
  }
  .postit-box p {
    text-align: left;
  }
  .news-wrap {
    padding-block: 20px;
  }
  .modal-header {
    padding: 14px;
  }
  .modal-header h3 {
    font-size: 1.05rem;
  }
  .modal-body {
    padding: 18px;
  }
  .featured .mini-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #contacto {
    gap: 24px;
  }
  #contacto .info, #contacto .mapa {
    flex-basis: auto;
  }
  #contacto .redes-sociales {
    justify-content: center;
  }
  .footer .container {
    text-wrap: balance;
  }
}

@media (max-width: 640px) {
  .hero-benefits {
    grid-template-columns: 1fr;
  }
  .benefit-card + .benefit-card {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .benefit-card {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .whatsapp-float {
    width: 58px;
    height: 58px;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  .whatsapp-float i {
    font-size: 42px;
  }
  .proyectos {
    grid-template-columns: 1fr;
  }
  .admissions-photo {
    border-radius: 22px 22px 46px 22px;
  }
  .hero-grid, .hero-benefits {
    grid-template-columns: 1fr;
  }
  .intro h3 {
    font-size: 1rem;
  }
  .featured .mini-stack {
    grid-template-columns: 1fr;
  }
  .modal-header .close {
    font-size: .85rem;
    padding: 8px 10px;
  }
  .modal-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }
  .lightbox .lb-meta {
    flex-wrap: wrap;
  }
  .lightbox .lb-meta > div:first-child {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-box:hover, .benefit-card:hover, .nivel-card:hover, .card-premio:hover, .library-card:hover, #contacto .redes-sociales a:hover {
    transform: none;
  }
}

.page-masthead {
  padding: 24px 0;
  background: #ece5d9;
  border-bottom: 1px solid #d5c7b0;
}

.page-masthead .masthead-content {
  position: relative;
  z-index: 1;
  border-left: 3px solid var(--brand-wine);
  padding-left: 18px;
}

.page-eyebrow {
  display: block;
  color: #386c8a;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
  border-left: 3px solid var(--brand-gold);
  padding-left: 10px;
  margin-bottom: 16px;
}

.page-masthead .page-eyebrow {
  color: #785a2d;
  border: 0;
  padding-left: 0;
  margin-bottom: 7px;
  font-size: .7rem;
}

.page-masthead h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--brand-wine);
  max-width: 30ch;
}

.page-masthead p {
  color: #514d47;
  max-width: 86ch;
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
}

.masthead-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.masthead-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px 14px 36px 14px;
}

.masthead-about {
  background: linear-gradient(90deg, #340c10eb, #102a4366), url('../img/optimized/hero-nosotros.webp') center 38% / cover;
  padding-block: 32px;
}

.masthead-about .masthead-content {
  border-left-color: var(--brand-gold);
}

.masthead-about h1, .masthead-about p {
  color: #fff;
}

.masthead-about .page-eyebrow {
  color: #f4dca1;
}

.catalog-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.catalog-heading h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--heading-ink);
  line-height: 1.35;
}

.catalog-heading .result-summary {
  margin: 0;
}

.slider .slide::before {
  background: none;
  pointer-events: none;
}

.slider .slide:has(.slide-caption)::before {
  background: linear-gradient(0deg, #071b2feb 0%, #071b2f80 42%, transparent 78%);
}

.slider .slide .slide-caption {
  inset: auto max(72px, calc((100% - 1200px) / 2)) 36px;
  max-width: none;
  width: auto;
  transform: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
}

.slider .slide-caption::before {
  display: none;
}

.slide-caption-content {
  max-width: 660px;
}

.slide-caption-content::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: #efc96c;
  margin-bottom: 18px;
}

.slider .slide-caption h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  max-width: 24ch;
  color: #fff;
  text-shadow: 0 2px 10px #0005;
}

.slider .slide-caption p {
  display: block;
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: #f1f5f8;
  opacity: 1;
  max-width: 58ch;
  text-shadow: 0 1px 6px #0008;
}

.slider-buttons {
  padding-inline: 18px;
  pointer-events: none;
}

.slider-buttons button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #102a437a;
  border: 1px solid #ffffff66;
  font-size: 24px;
  pointer-events: auto;
}

.slider-buttons button:hover {
  background: #102a43d9;
}

.hero-video .video-wrapper {
  position: relative;
  aspect-ratio: 478 / 850;
  max-width: 315px;
  height: auto;
  margin: 0;
  justify-self: center;
  background: #263142;
}

.video-wrapper video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.video-wrapper.has-started video {
  object-fit: contain;
}

.play-icon[hidden] {
  display: none !important;
}

.play-icon:focus-visible {
  outline-offset: 5px;
}

.nosotros {
  min-height: 0;
  background: #fff;
  padding: 40px max(24px, calc((100% - 1200px) / 2));
  overflow: visible;
}

.nosotros .postit-box {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
  gap: 52px;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-main);
  backdrop-filter: none;
}

.history-heading {
  padding-top: 5px;
}

.nosotros .postit-box h2 {
  display: block;
  font-family: inherit;
  font-size: 2rem;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--heading-ink);
}

.nosotros .postit-box h2::after {
  display: none;
}

.nosotros .postit-box p {
  color: #526274;
  text-align: left;
  line-height: 1.9;
  margin-bottom: 18px;
}

.history-text > div:last-child p {
  margin-bottom: 0;
}

.mision-vision-split {
  padding: 36px max(24px, calc((100% - 1200px) / 2));
  background: #eae5dc;
}

.levels-content {
  padding-block: 28px;
}

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

.nivel-card {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.nivel-visual {
  position: relative;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
}

.nivel-visual .nivel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nivel-card:nth-child(even) .nivel-visual {
  order: 2;
}

.level-stage {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
  padding: 8px 14px;
  border-radius: 9px;
  background: #fffffff0;
  color: var(--heading-ink);
  font-size: .82rem;
  font-weight: 700;
}

.nivel-info {
  padding: clamp(24px, 4vw, 42px);
}

.nivel-lista {
  width: 100%;
}

body[data-page="galeria"] {
  background: var(--surface-warm);
}

body[data-page="galeria"] main.container.gallery-content {
  width: min(1280px, 92vw);
  max-width: 1280px;
  padding: 28px 0;
}

body[data-page="galeria"] .controls {
  width: 100%;
  margin: 0 0 28px;
  box-shadow: none;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px;
}

body[data-page="galeria"] .card .meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
  flex: 1;
  align-content: start;
}

body[data-page="galeria"] .meta .title {
  font-size: 1rem;
  white-space: normal;
  line-height: 1.45;
}

body[data-page="galeria"] .meta .desc {
  white-space: normal;
  line-height: 1.6;
  margin-top: 6px;
}

body[data-page="galeria"] .meta time {
  font-size: .77rem;
  color: #667a8b;
  margin-top: 0;
}

body[data-page="galeria"] .card img {
  aspect-ratio: 4 / 5;
}

.library-shell::before, .library-shell::after {
  display: none;
}

.library-shell {
  width: min(1200px, 92%);
  padding: 28px 0;
}

.masthead-library .library-actions {
  margin-top: 16px;
}

.library-layout {
  grid-template-columns: 1fr;
  gap: 24px;
}

.library-layout .library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.library-layout .library-card {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) minmax(0, 1fr);
  align-items: stretch;
}

.library-layout .library-cover {
  aspect-ratio: auto;
  min-height: 250px;
}

.library-layout .library-cover img {
  object-fit: contain;
  transform: none;
  background: #eaf0f5;
}

.library-layout .library-cover::after {
  display: none;
}

.library-layout .library-card-body {
  min-width: 0;
  padding: 22px;
}

.library-layout .library-card-actions {
  flex-wrap: wrap;
}

.library-layout .library-viewer {
  position: static;
}

.library-layout .library-viewer-header {
  gap: 20px;
}

.library-layout .library-badge {
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  font-size: .7rem;
}

.contact-hero.page-masthead {
  min-height: 0;
  padding: 24px 0;
}

.contact-hero .hero-inner {
  max-width: none;
  margin: 0;
  display: block;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading .page-eyebrow {
  font-size: .7rem;
  margin-bottom: 10px;
  border: 0;
  padding-left: 0;
}

.contact-panel h2 {
  line-height: 1.3;
}

.contact-faq .faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.contact-faq .faq-card {
  border: 1px solid #e0e6eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  padding: 0;
}

.contact-faq .faq-card:hover,
.contact-faq .faq-card[open] {
  background: #f6f9fb;
  box-shadow: none;
  transform: none;
}

.faq-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  padding: 18px 16px;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-ink);
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--action-blue-hover);
  font-weight: 400;
}

.faq-card[open] summary::after {
  content: '\2212';
}

.contact-faq .faq-card p {
  max-width: 74ch;
  padding: 0 16px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  max-width: 1160px;
  padding-block: 28px;
  align-items: start;
}

.privacy-index {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.privacy-index h2 {
  font-size: 1rem;
  color: var(--heading-ink);
  margin-bottom: 12px;
}

.privacy-index a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--action-blue-hover);
  text-decoration: none;
  border-radius: 6px;
}

.privacy-index a:hover {
  background: #eaf2f7;
}

.privacy-layout .privacy-content {
  max-width: none;
  padding: 32px;
  border: 1px solid var(--line-soft);
  background: #fff;
  border-radius: 16px;
}

.privacy-section h2 {
  color: var(--heading-ink);
}

@media (max-width: 1100px) {
  :root {
    --header-height: 74px;
  }
  .header .header-flex {
    width: calc(100% - 32px);
  }
  .header .logo {
    width: min(280px, calc(100% - 66px));
    height: 60px;
    padding: 0;
  }
  .header .menu-toggle {
    right: 16px;
    width: 46px;
    height: 44px;
    border: 1px solid #d7a84a66;
    border-radius: 12px;
    background: #400707;
    box-shadow: 0 3px 8px #26000033;
  }
  .header .menu-toggle span {
    background: #fff5e6;
    left: 11px;
    width: 24px;
    height: 3px;
  }
  .header .menu-toggle span:first-child {
    transform: translateY(-7px);
  }
  .header .menu-toggle span:last-child {
    transform: translateY(7px);
  }
  .header .nav {
    inset: 0 auto auto 0;
    width: min(380px, 92vw);
    background: #470909;
    color: #fff8ef;
    transform: translateX(-100%);
    border-left: 0;
    border-right: 1px solid #d7a84a66;
  }
  .header .nav.open {
    transform: translateX(0);
  }
  .header .menu-header {
    border-bottom: 1px solid #d7a84a40;
    padding: 16px;
  }
  .header .menu-header img {
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-height: none;
    height: auto;
  }
  .header .menu-close {
    background: #ffffff10;
    border-radius: 12px;
    color: #fff5e6;
  }
  .header .nav .nav-links {
    display: block;
    padding: 12px;
  }
  .header .nav-links > li > a {
    display: flex;
    min-height: 48px;
    padding: 11px 16px;
    margin: 2px 0;
    border-left: 3px solid transparent;
    text-transform: none;
    font-size: 1rem;
    border-radius: 10px;
  }
  .header .nav-links > li > a.active {
    border-left-color: var(--brand-gold);
    box-shadow: none;
  }
  .header .nav-links > li > a.nav-contact {
    margin: 8px 0 0;
    padding-inline: 16px;
  }
  .header .menu-extra {
    color: #f1e5d8;
    padding: 16px 24px 24px;
  }
  .header .menu-contact .menu-item {
    padding: 10px 0;
    border-bottom: 1px solid #ffffff24;
  }
  .header .menu-contact p {
    color: #f1e5d8;
    font-size: .87rem;
    line-height: 1.7;
  }
  .header .menu-contact i {
    color: #edca79;
  }
  .header .menu-contact a {
    color: #fff2d1;
  }
  .header .menu-social {
    margin-top: 18px;
    gap: 12px;
  }
  .header .menu-social a {
    background: #ffffff12;
    color: #edca79;
    border-radius: 12px;
  }
  .header .menu-overlay {
    background: #102a4370;
  }
}

@media (max-width: 900px) {
  .masthead-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, .6fr);
    gap: 28px;
  }
  .masthead-image {
    height: 150px;
  }
  .nosotros .postit-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .library-layout .library-grid {
    grid-template-columns: 1fr;
  }
  .library-layout .library-card {
    grid-template-columns: minmax(120px, .5fr) minmax(0, 1fr);
  }
  .privacy-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .privacy-index {
    position: static;
  }
  .privacy-index a {
    display: inline-block;
    border: 1px solid #d6e4ed;
    margin: 4px 6px 4px 0;
    padding: 9px 12px;
  }
}

@media (max-width: 768px) {
  .hero-video-copy {
    flex-wrap: wrap;
  }
  .nivel-card {
    grid-template-columns: 1fr;
  }
  .nivel-card:nth-child(even) .nivel-visual {
    order: 0;
  }
  .nivel-visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .slider .slide .slide-caption {
    inset: auto 56px 24px;
  }
  .slider .slide-caption h2 {
    font-size: clamp(1.35rem, 4vw, 2rem);
    margin-bottom: 10px;
  }
  .slider .slide-caption p {
    font-size: .92rem;
    line-height: 1.6;
  }
  .slide-caption-content::before {
    margin-bottom: 12px;
  }
  .slider-buttons {
    padding-inline: 8px;
  }
  .slider-buttons button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 21px;
  }
}

@media (max-width: 600px) {
  .masthead-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .masthead-image {
    height: 140px;
    border-radius: 12px 12px 30px 12px;
  }
  .page-masthead, .contact-hero.page-masthead {
    padding-block: 20px;
  }
  .page-masthead h1 {
    font-size: 1.75rem;
  }
  .page-masthead p {
    font-size: .92rem;
  }
  .masthead-about {
    background-position: 60% center;
  }
  .library-layout .library-card {
    grid-template-columns: 1fr;
  }
  .library-layout .library-cover {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .library-layout .library-card-body {
    padding: 20px;
  }
  .library-panel {
    padding: 20px;
  }
  .privacy-layout .privacy-content {
    padding: 24px;
  }
  .slider {
    height: 340px;
    aspect-ratio: auto;
  }
  .slider .slide .slide-caption {
    inset: auto 54px 22px;
  }
  .slider .slide-caption h2 {
    font-size: 1.5rem;
  }
  .slider .slide-caption p {
    font-size: .87rem;
  }
}

.gallery-promo-inner.has-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: 22px 40px;
  align-items: center;
}

.has-preview .gallery-promo-copy {
  grid-column: 1;
}

.has-preview .gallery-promo-actions {
  grid-column: 1;
  justify-content: flex-start;
}

.gallery-promo-preview {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.gallery-promo-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 8px;
}

body[data-page="galeria"] .card.poster-card img {
  object-fit: contain;
  object-position: center;
  aspect-ratio: 4 / 5;
}

body[data-page="galeria"] .card.poster-card:hover img {
  transform: none;
}

body[data-page="galeria"] .poster-category {
  color: var(--action-blue-hover);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.content-album-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  margin-top: 12px;
  color: var(--action-blue-hover);
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: .2em;
}

.graduates-section {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid var(--line-soft);
}

.graduates-section .page-eyebrow {
  border: 0;
  padding-left: 0;
  color: #80652f;
  margin-bottom: 8px;
}

.graduates-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.graduate-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.graduate-card > a {
  display: block;
}

.graduate-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.graduate-copy {
  padding: 20px;
}

.graduate-copy > span {
  display: block;
  color: var(--brand-wine);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.graduate-copy h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--heading-ink);
  margin-bottom: 10px;
}

.graduate-copy p {
  font-size: .87rem;
  line-height: 1.6;
  color: var(--text-muted);
}

body[data-page="noticias"] .hero-card.poster-feature {
  background: #203b55;
}

body[data-page="noticias"] .hero-card.poster-feature img {
  inset: 0 0 0 auto;
  width: 44%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  background: #e9e2d7;
}

body[data-page="noticias"] .hero-card.poster-feature .hero-body {
  inset: 0 auto 0 0;
  width: 56%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 56px 28px 28px;
  background: none;
}

body[data-page="noticias"] .poster-feature .hero-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.3;
  margin: 0;
}

body[data-page="noticias"] .hero-card.poster-feature .hero-body > div:last-child {
  font-size: .94rem;
  line-height: 1.7;
}

body[data-page="noticias"] .mini-card.poster-feature img {
  object-fit: contain;
  object-position: center;
  filter: none;
  background: #e9e2d7;
}

body[data-page="noticias"] .poster-thumb {
  background: #e9e2d7;
}

body[data-page="noticias"] .poster-thumb img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .graduates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-promo-inner.has-preview {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: 18px 24px;
  }
}

@media (max-width: 768px) {
  body[data-page="noticias"] .hero-card.poster-feature {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  body[data-page="noticias"] .hero-card.poster-feature img {
    position: static;
    width: 100%;
    height: 260px;
  }
  body[data-page="noticias"] .hero-card.poster-feature .hero-body {
    position: static;
    width: 100%;
    padding: 22px;
    gap: 10px;
  }
  body[data-page="noticias"] .poster-feature .hero-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .gallery-promo-inner.has-preview {
    grid-template-columns: 1fr;
  }
  .gallery-promo-preview {
    grid-column: 1;
    grid-row: 2;
    gap: 12px;
  }
  .has-preview .gallery-promo-actions {
    grid-row: 3;
  }
}

@media (max-width: 579px) {
  .graduates-grid {
    grid-template-columns: 1fr;
  }
  .graduate-card {
    max-width: 400px;
    width: 100%;
    margin-inline: auto;
  }
}

.lightbox {
  padding: 72px 20px 26px;
  background: #101c2af2;
}

.lightbox::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  background: linear-gradient(#101c2a 80%, #101c2a00);
  z-index: 3;
  pointer-events: none;
}

.lightbox .lb-controls {
  position: fixed;
  inset: max(14px, env(safe-area-inset-top)) auto auto max(16px, env(safe-area-inset-left));
  width: auto;
  height: 44px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  z-index: 4;
}

.lightbox .lb-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 4;
}

.lightbox .lb-btn {
  border-radius: 12px;
  background: #25465f;
  border: 1px solid #ffffff26;
  box-shadow: 0 4px 12px #0003;
}

.lightbox .lb-close {
  background: #562226;
}

.lightbox .lb-close:hover {
  background: #793239;
}

.lightbox .lb-btn:focus-visible, .lightbox .lb-thumb:focus-visible {
  outline-color: #efca78;
}

.lightbox .lb-meta {
  align-items: flex-start;
}

.lightbox .lb-title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
}

.lightbox .lb-caption {
  line-height: 1.7;
}

.lightbox .lb-thumb img {
  width: 58px;
  height: 72px;
  object-fit: contain;
  background: #1a2c3e;
}

.lightbox .lb-thumb.active {
  border-color: #edca79;
}

.lightbox .lb-related-title {
  font-size: .75rem;
}

.album-title-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.album-title-button:hover {
  color: var(--action-blue-hover);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.modal {
  background: #101c2ab8;
}

.modal-card {
  box-shadow: 0 18px 60px #0004;
}

.modal-header h3 {
  min-width: 0;
}

.modal-header .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.35;
}

.library-viewer .preview-toggle {
  margin-top: 18px;
}

@media (max-height: 600px) {
  .lightbox {
    padding-top: 68px;
  }
  .lightbox .lb-thumb img {
    width: 44px;
    height: 55px;
  }
}
