/* =========================================
   Colegio Ibero - Replica Stylesheet
   Palette:
   - Primary Blue:       #567393 (headings / links)
   - Dark Blue:          #557291 (footer / cta bg)
   - Light Blue:         #84ADD8 (stats bg)
   - Yellow (CTA):       #FEE775
   - Yellow Hover:       #FDD94A
   - Body Text:          #6F6B80
   - Heading Dark:       #231F40
   - White:              #FFFFFF
   - Light Gray (alt):   #F6F8FB
   - Border:             #E6E8EF
   Font: Urbanist 300..800
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #6F6B80;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #567393;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: #3E5571;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #567393;
  color: #fff;
  padding: .5rem 1rem;
  z-index: 99999;
}

.skip-link:focus {
  left: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .6rem;
  font-weight: 700;
  color: #567393;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

ul li {
  margin-bottom: .4rem;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left: 20px !important;
  padding-right: 20px !important;
  width: 100%;
}

.container-fluid {
  width: 100%;
  padding: 4px 28px;
}

.centered {
  text-align: center;
}

.two-col,
.three-col,
.four-col,
.six-col {
  display: grid;
  gap: 40px;
  align-items: center;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.four-col {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.six-col {
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.two-col.reverse> :first-child {
  order: 2;
}

.two-col.reverse> :last-child {
  order: 1;
}

/* ============== CONTACTO: MOBILE 1-COL + FORM FIRST ============== */
/* Small screens only (≤768px). Scoped exclusively to #forma_de_contacto
   (contacto.html section id), so NO other two-col layouts on other
   pages are affected. Goals:
   (1) Collapse cramped 2-col → 1 full-width stacked column
   (2) Re-order: contact form (feature-text) FIRST / top of page,
       info cards (feature-visual) SECOND / below it               */
@media (max-width: 768px) {
  #forma_de_contacto .two-col {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }


  #forma_de_contacto .two-col>.feature-visual {
    order: 2;
  }

  #forma_de_contacto .two-col>.feature-text {
    order: 1;
    margin-top: -4px;
  }

  #contactodata {
    margin-top: 2rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.8rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.1;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  white-space: nowrap;
}

#btn-admisiones {
  background: #FEE775;
  border-color: #FEE775;
  color: #567391;
}

#btn-admisiones:hover {
  background: #FDD94A;
  border-color: #FDD94A;
}

.btn-sm {
  padding: .65rem 1.35rem;
  font-size: .88rem;
}

.btn-admisiones {
  background: #FEE775;
  border-color: #FEE775;
  color: #567391;
}

.btn-admisiones:hover {
  background: #231F40;
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-primary {
  background: #83add7;
  color: #FFFFFF;
  border-color: #83add7;
}

.btn-primary:hover {
  background: #3E5571;
  border-color: #3E5571;
  color: #FFFFFF;
}

.btn-ghost {
  padding: 4px !important;
  font-size: .8rem !important;
  margin-left: 3rem;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
}

.btn-ghost:hover {
  background: #FFFFFF;
  color: #567393;
  border-color: #FFFFFF;
}

.btn-outline2 {
  background-color: transparent;
  border: 2px solid #567393;
  border-radius: 6px;
}

.btn-outline2:hover {
  border: 2px solid #7ba7d5;
  box-shadow: 0 0 10px rgba(123, 167, 213, 0.5);
}


.btn-outline:hover {
  background: #FEE775;
  color: #567391;
  border-color: #FEE775;
}

.btn-yellow {
  background-color: #FEE775;
  color: #567391;
  border-color: #FEE775;
}

.btn-yellow:hover {
  background: #FDD94A;
  color: #3E5571;
  transform: translateY(-1px);
}

.cta-btn:hover {
  background: #231F40;
  border-color: #D6DEEF;
  color: #D6DEEF;
}

.cta.comunidadibero:hover {
  background: #83add7;
  border-color: #83add7;
  color: #D6DEEF;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px -14px rgba(35, 31, 64, 0.2);
  border-bottom-color: #E6E8EF;
}

.header-inner {
  padding-top: 9px;
  padding-bottom: 9px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-col.logo-col {
  flex: 0 0 auto;
}

.header-col.nav-col {
  flex: 1 1 auto;
}

.logo-wrapper img {
  max-width: 189px;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.header-col.mobile-only {
  display: none;
}

@media (max-width: 1250px) {
  .header-col.mobile-only {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .header-col.mobile-only>a {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    line-height: 0;
  }
}

.main-navigation {
  display: flex;
  justify-content: flex-start;
}

.comunidad-mainnav {
  margin-left: 0;
}

.primary-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

.nav-item.cta-nav {
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: .55rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: #567393;
  border-radius: 6px;

}

.nav-link:hover {
  background: rgba(86, 115, 147, 0.08);
  color: #3E5571;
}

.nav-comunidadibero {
  font-size: .9rem;
  font-weight: bold;
  background: #83add7;
  border: 1px solid #83add7;
  color: #ffffff;
  padding: .55rem .9rem;
  border-radius: 10%;

}

.nav-comunidadibero:hover {
  background: #231F40;
  border-color: #231F40;
  color: #ffffff !important;
}

.nav-item.active .nav-link {
  color: #3E5571;
  background: rgba(86, 115, 147, 0.08);
}

.nav-item.cta-nav .nav-link {
  background: #ffffff;
  color: #567391 !important;
  padding: .6rem 1.25rem;
  border-radius: 6px;
  margin-left: 0;
  font-weight: 700;
}

.nav-item.cta-nav .nav-link:hover {
  background: #231F40;
  color: #ffffff !important;
}

/* Dropdown */
.nav-item.has-dropdown>.nav-link::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .7rem;
  margin-left: 6px;
  opacity: .7;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  padding: 10px 6px;
  margin: 6px 0 0;
  background: #FFFFFF;
  border: 1px solid #E6E8EF;
  border-radius: 12px;
  box-shadow: 0 20px 50px -20px rgba(35, 31, 64, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 1000;
}

.nav-item.has-dropdown:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: .6rem .9rem;
  color: #567393;
  font-weight: 600;
  font-size: .94rem;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: rgba(86, 115, 147, 0.08);
  color: #3E5571;
}

.comindad-mobile-btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #83add7;
  color: #ffffff;
  border: 1px solid #83add7;
  border-radius: 10%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  padding-left: 12px;
  padding-right: 12px;
  transition: transform .2s ease, background .2s ease;
  margin-right: 0.5rem;
}

/* Hamburger */
.hamburger-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  color: #868686;
  border: 1px solid #868686;
  border-radius: 10%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform .2s ease, background .2s ease;
  margin-right: 0.2rem;
}

/* .hamburger-btn:hover { background: #FDD94A; transform: scale(1.03); } */

/* =========================================
   MOBILE MENU (Offcanvas)
   ========================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility .45s ease;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}

.mobile-menu.is-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(86%, 360px);
  height: 100%;
  background: #FFFFFF;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform .4s cubic-bezier(.22, .61, .36, 1),
    opacity .4s ease,
    visibility .4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 20px 0 50px -10px rgba(35, 31, 64, 0.25);
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #E6E8EF;
  background: #F6F8FB;
}

.mobile-logo img {
  max-width: 160px;
}

.mobile-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 10%;
  border: none;
  color: #567391;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}

.mobile-menu-list {
  list-style: none;
  padding: 2px 0;
  margin: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.mobile-item {
  border-bottom: 1px solid #e0e2e7;
}

.mobile-item>a,
.mobile-link-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 22px;
  color: #394c60;
  font-weight: 600;
  font-size: 0.85rem;
}

.mobile-item>a:hover {
  color: #5684bd;
}

.mobile-item.active>a {
  color: #3f5e84;
  background: rgba(86, 115, 147, 0.06);
}

.mobile-item.cta-mobile>a {
  background: #FEE775;
  color: #567391;
  font-weight: 700;
  margin: 10px 22px;
  border-radius: 6px;
  justify-content: center;
}

.mobile-item.cta-mobile-blue>a {
  background: #567391;
  color: #ffffff;
  font-weight: 700;
  margin: 10px 22px;
  border-radius: 6px;
  justify-content: center;
}

.mobile-item.cta-mobile {
  border: 0;
}

.arrow-icon {
  font-size: .7rem;
  transition: transform .25s ease;
}

.mobile-item.is-open .arrow-icon {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.mobile-item.is-open .mobile-submenu {
  max-height: 400px;
}

.mobile-item.has-children.always-open .mobile-submenu,
.mobile-item.always-open .mobile-submenu {
  max-height: 400px;
  overflow: visible;
  transition: none;
  margin-top: -0.8rem;
}

.mobile-item.has-children.always-open>.mobile-link-parent,
.mobile-item.always-open>.mobile-link-parent {
  cursor: default;
}

.mobile-item.has-children.always-open>.mobile-link-parent .arrow-icon,
.mobile-item.always-open>.mobile-link-parent .arrow-icon {
  display: none;
}

.mobile-item.has-children.always-open.is-open .arrow-icon,
.mobile-item.always-open.is-open .arrow-icon {
  display: none;
}

.mobile-submenu li {
  padding: 1px;
}

.mobile-submenu a {
  display: block;
  padding: 2px 22px 2px 40px;
  color: #394c60;
  font-weight: 500;
  font-size: .85rem;
}

.mobile-submenu a:hover {
  color: #5684bd;
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin-top: 0;
  padding-top: 0;
}

main {
  padding-top: 0 !important;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 700px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  visibility: hidden;
  filter: blur(34px) saturate(.18);
  transform: scale(1.025);
  transition:
    filter .95s cubic-bezier(.22, .61, .36, 1),
    transform .95s cubic-bezier(.22, .61, .36, 1),
    opacity .85s ease,
    visibility .85s ease;
  display: block;
}


.slide.active {
  opacity: 1;
  visibility: visible;
  filter: blur(0) saturate(1);
  transform: scale(1);
}

.slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 24px 140px;
  position: relative;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

.slide-counter {
  position: absolute;
  top: 92px;
  right: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.slide-counter .current {
  opacity: 1;
}

.slide-counter .sep {
  opacity: .55;
}

.slide-counter .total {
  opacity: .55;
}

.slide-label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.88);
  font-size: .82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.slide-content {
  min-width: 620px;
  color: #FFFFFF;
}

.slide-title {
  color: #FFFFFF;
  line-height: 3.9rem;
  font-size: 4.2rem;
  font-weight: 800;
  margin-left: 2.5rem;
  margin-bottom: 4px;
  letter-spacing: -0.6px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: all .25s ease;
  font-size: 1rem;
  z-index: 5;
}

.slider-btn:hover {
  background: #FFFFFF;
  color: #567393;
}

.slider-prev {
  left: 22px;
}

.slider-next {
  right: 22px;
}

.slider-ui {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 640px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.slider-thumbs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(58, 93, 130, 0.78);
  padding: 8px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.slider-thumbs .thumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all .25s ease;
}

.slider-thumbs .thumb:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
}

.slider-thumbs .thumb.active {
  background: rgba(255, 255, 255, 0.96);
  color: #231F40;
  border-color: rgba(86, 115, 147, 0.16);
  box-shadow: 0 14px 28px -16px rgba(35, 31, 64, 0.42);
}

.thumb-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(86, 115, 147, 0.18);
  color: #567393;
}

.slider-thumbs .thumb:not(.active) .thumb-num {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.thumb-title {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider-dots {
  display: none;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all .25s ease;
}

.slider-dots .dot.active {
  background: #FEE775;
  width: 28px;
  border-radius: 6px;
}

/* =========================================
   SECTIONS COMMON
   ========================================= */
section {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  position: relative;
}

section.alt-bg {
  background: rgba(241, 243, 246, 0.6);
}

.section-head {
  margin-bottom: 56px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.section-head.centered {
  text-align: center;
}

.section-pre {
  display: inline-block;
  color: #84ADD8;
  font-weight: 700;
  letter-spacing: 3px;
  font-size: .82rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2rem;
  line-height: 2.1rem;
  font-weight: 800;
  color: #567393;
  margin: 0;
  margin-top: -0.7rem;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1rem;
  line-height: 1.65;
  color: #6F6B80;
  margin-bottom: 1rem;
  text-align: justify;
}

.feature-title {
  font-size: 1.2rem;
  line-height: 1.3;
  color: #567393;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.feature-content {
  font-size: 1rem;
  line-height: 1.65;
  color: #6F6B80;
  margin-bottom: 0.1rem;
  text-align: justify;
}

.feature-text>ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0 0;
}

.feature-text>ul>li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 0.2rem;
}

.feature-text>ul>li:last-child {
  margin-bottom: 0;
}

.feature-text>ul>li>.bullet-text-wrap {
  flex: 1 1 0;
  min-width: 0;
}

.feature-bullet {
  --feature-bullet-icon-size: 1.6rem;
  --feature-bullet-size: calc(var(--feature-bullet-icon-size) * 1.6);
  flex: 0 0 auto;
  width: var(--feature-bullet-size);
  height: var(--feature-bullet-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #567393;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(86, 115, 147, 0.55);
}

.feature-bullet svg {
  width: var(--feature-bullet-icon-size);
  height: var(--feature-bullet-icon-size);
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 0;
  flex: 0 0 auto;
  display: block;
}

.feature-bullet.feature-bullet--blue {
  background-color: #84ADD7;
  box-shadow: 0 6px 16px -8px rgba(132, 173, 215, 0.6);
}

.feature-bullet.feature-bullet--green {
  background-color: #6BA368;
  box-shadow: 0 6px 16px -8px rgba(107, 163, 104, 0.6);
}

.feature-bullet.feature-bullet--gold {
  background-color: #D4A84B;
  box-shadow: 0 6px 16px -8px rgba(212, 168, 75, 0.6);
}

/* =========================================
   FEATURE SECTIONS
   ========================================= */
.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.testimonials-grid {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-visual {
  max-width: 90%;
  margin-left: 1rem;
}

.feature-text .btn {
  margin-top: 4px;
}

.feature-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0;
  overflow: hidden;
  background: #E4ECF5;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 40px -30px rgba(35, 31, 64, 0.38);
}

.feature-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
}

.feature-img-placeholder.vr-bg,
.feature-img-placeholder.ai-bg,
.feature-img-placeholder.vr-rounded,
.feature-img-placeholder.ai-rounded,
.feature-img-placeholder.emotions-rounded,
.feature-img-placeholder.con-ciencia-rounded {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: min(90%, 414px);
  margin-left: auto;
  margin-right: auto;
}

.nosotros-1 {
  text-align: left;
}

.ai-rounded {
  background-image: url('../images/inteligencia-artificial-colegio-ibero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vr-rounded {
  background-image: url('../images/Alumno_utilizando_realidad_virtual.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.emotions-rounded {
  background-image: url('../images/COLEGIO-IBERO-escucha-tus-emociones.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.con-ciencia-rounded {
  background-image: url('../images/COLEGIO-IBERO-inicio-programa-emotions.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vr-rounded.img-wrap,
.ai-rounded.img-wrap,
.emotions-rounded.img-wrap,
.con-ciencia-rounded.img-wrap,
.testimonials-vid-thumb.img-wrap {
  background-image: url('../images/testimonios-ibero-video-thumbnail.webp');
}

.testimonials-vid-thumb {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  aspect-ratio: 470 / 620;
  max-width: 470px;
  max-height: 620px;
  margin: 0 auto;
  background-color: #FFFFFF;
  background-image: url('../images/testimonios-ibero-video-thumbnail.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 42% / 34%;
  border: 5px solid #F2C94C;
  overflow: hidden;
  box-shadow: 0 30px 40px -30px rgba(35, 31, 64, 0.38);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

.testimonials-vid-thumb:hover,
.testimonials-vid-thumb:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 36px 44px -30px rgba(35, 31, 64, 0.45);
  outline: none;
}

.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px -12px rgba(35, 31, 64, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
  pointer-events: none;
}

.testimonials-vid-thumb:hover .play-btn-overlay,
.testimonials-vid-thumb:focus-visible .play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 22px 42px -12px rgba(35, 31, 64, 0.6);
}

.play-btn-overlay i {
  color: #8FA8CA;
  font-size: 2rem;
  margin-left: 6px;
}

.testimonials-vid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 42% / 34%;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
  align-items: stretch;
  justify-content: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  background-color: #84ADD8;
  background-image: linear-gradient(135deg, rgba(86, 115, 147, 0.55), rgba(132, 173, 216, 0.35));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 18px 30px -20px rgba(35, 31, 64, 0.4);
  transition: transform .28s ease, box-shadow .28s ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 26px 38px -22px rgba(35, 31, 64, 0.5);
  outline: none;
}

.video-card-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(35, 31, 64, 0.55);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
  pointer-events: none;
}

.video-card:hover .video-card-play,
.video-card:focus-visible .video-card-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #FFFFFF;
  box-shadow: 0 14px 28px -10px rgba(35, 31, 64, 0.62);
}

.video-card-play i {
  color: #567393;
  font-size: 1.3rem;
  margin-left: 4px;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vr-bg {
  background-image: linear-gradient(135deg, rgba(86, 115, 147, 0.35), rgba(132, 173, 216, 0.25)), url('../images/ColegioIberoVeracruz_RealidadVirtual.webp');
}

.ai-bg {
  background-image: linear-gradient(135deg, rgba(86, 115, 147, 0.35), rgba(132, 173, 216, 0.25)), url('https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=children%20learning%20artificial%20intelligence%20with%20robot%20in%20modern%20school%20lab%2C%20coding&image_size=landscape_4_3');
}

/* ---- Emotions Section ---- */
.emotions-block {
  margin-bottom: 32px;
}

.emotions-heading {
  color: #4a86b1;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.emotions-list {
  margin: 0 0 0 0;
  padding-left: 1.3rem;
}

.emotions-list li {
  margin-bottom: .7rem;
}

.programs-grid {
  align-items: stretch;
  margin-top: 24px;
  gap: 28px;
}

.program-card {
  background: #FFFFFF;
  border: 1px solid #E6E8EF;
  border-radius: 18px;
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(35, 31, 64, 0.18);
}

.program-title {
  color: #567393;
  margin-bottom: 14px;
}

.program-list {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.bases-list.three-col {
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin-top: 16px;
  gap: 12px;
}

.bases-list li {
  background: #F6F8FB;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  color: #567393;
  margin: 0;
  font-size: .8rrem;
}

.bases-list i {
  display: block;
  color: #FEE775;
  font-size: 1.3rem;
  margin-bottom: 8px;
  -webkit-text-stroke: 1px #D9B32E;
}

/* =========================================
   ALLIES SECTION
   ========================================= */
.allies-grid.six-col {
  margin-top: -30px;
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
  gap: 18px 28px;
}

.ally-card {
  position: relative;
  padding: 10px 10px;
  min-height: 100px;
  transition: transform .3s ease, scale .3s ease;
}

.ally-card:hover {
  transform: scale(1.2);
  overflow: hidden;
}

.ally-card img {
  max-height: 80px;
  max-width: 90%;
  display: block;
  transition: opacity .25s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.ally-card .ally-bw,
.ally-card .ally-color {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  filter: none;
}

.ally-card .ally-bw {
  opacity: 1;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.ally-card .ally-color {
  opacity: 0;
  display: none;
  pointer-events: none;
  z-index: 2;
}

.ally-card:hover .ally-bw {
  opacity: 0;
  display: none;
}

.ally-card:hover .ally-color {
  opacity: 1;
  display: block;
}

/* =========================================
   LEVELS / Oferta Académica
   ========================================= */
.levels-grid {
  align-items: stretch;
}

.level-card {
  background: #FFFFFF;
  border: 1px solid #E6E8EF;
  border-radius: 20px;
  overflow: hidden;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -20px rgba(35, 31, 64, 0.22);
  border-color: #CFD9EC;
}

.level-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #E7EEF9, #F6F8FB);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.level-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.level-body {
  padding: 28px 26px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.level-badge {
  position: absolute;
  left: 16px;
  bottom: 5px;
  z-index: 2;
  display: inline-block;
  color: #567393;
  background-color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: .7rem;
  padding: 6px 14px;
  border-radius: 2px;
  margin: 0;
  align-self: auto;
  vertical-align: baseline;
  box-shadow: 0 6px 14px -6px rgba(35, 31, 64, 0.28);
}

.level-specs.two-col-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: .88rem;
  color: #6F6B80;
  font-weight: 500;
}

.level-specs li {
  margin: 0;
  list-style-type: none;
  font-size: 0.9rem;
  padding-left: 0;
  margin-left: 0;
}

.level-specs i {
  color: #84ADD8;
  margin-right: 6px;
}

.level-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  padding-left: 0;
  margin-left: 0;
}

.level-title a {
  color: #557391;
}

.level-title a:hover {
  color: #567393;
}

.level-reviews {
  color: #84ADD8;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.level-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 6px;
}

.level-head>.level-title {
  margin: 0;
  flex: 1 1 45%;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.level-head>.google-reviews-row {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.8rem;
  gap: 5px;
  flex-wrap: nowrap;
  max-width: 54%;
}

.level-head>.google-reviews-row .stars {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.level-head>.google-reviews-row strong {
  flex: 0 1 auto;
  white-space: normal;
  line-height: 1.15;
}

.level-details {
  list-style-type: none;
  padding-left: 0.1rem;
  margin-bottom: 0;
  font-size: .90rem;
  color: #4b4956;
}

.level-body .btn {
  margin-top: auto;
  align-self: flex-start;
  margin-bottom: 5px;
}

.levels-cta {
  margin-top: 48px;
}

/* =========================================
   STATS
   ========================================= */
.stats-section {
  background: #84ADD8;
  padding: 68px 0;
}

.stats-grid {
  align-items: stretch;
}

.stat-item {
  text-align: center;
  padding: 12px 10px;
}

.stat-icon img {
  margin-bottom: 0.5rem !important;
}

.stat-num {
  font-size: 3.4rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: .84rem;
  text-transform: uppercase;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-carousel {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.testi-track {
  position: relative;
  min-height: 380px;
}

.testi-card {
  position: absolute;
  inset: 0;
  padding: 36px 42px;
  background: #FFFFFF;
  border: 1px solid #E6E8EF;
  border-radius: 22px;
  box-shadow: 0 22px 50px -25px rgba(35, 31, 64, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease, transform .5s ease;
  transform: translateY(8px);
}

.testi-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.testi-quote {
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  color: #231F40;
  margin: 0 0 28px;
  padding-top: 12px;
  font-style: normal;
}

.testi-quote::before {
  content: "\201C";
  position: absolute;
  top: -36px;
  left: 0;
  font-size: 6rem;
  color: #84ADD8;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: .22;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E6E8EF;
  flex: 0 0 auto;
}

.testi-name {
  font-size: 1.05rem;
  margin: 0 0 2px;
  color: #231F40;
}

.testi-role {
  font-size: .84rem;
  color: #84ADD8;
  font-weight: 600;
  letter-spacing: .5px;
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.testi-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E6E8EF;
  color: #567393;
  cursor: pointer;
  font-size: .9rem;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.testi-btn:hover {
  background: #567393;
  color: #FFFFFF;
  border-color: #567393;
}

.testi-dots {
  display: flex;
  gap: 8px;
}

.testi-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D6DEEF;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all .25s ease;
}

.testi-dots .dot.active {
  background: #FEE775;
  width: 28px;
  border-radius: 6px;
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  position: relative;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  color: #FFFFFF;
  isolation: isolate;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 12px;
  background-image: url('../images/ConoceelColegioIberoVeracruz_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: none;
}

.cta-decor {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  pointer-events: none;
  z-index: -1;
}

.cta-decor-1 {
  width: 340px;
  height: 340px;
  top: -140px;
  left: -80px;
  opacity: .28;
}

.cta-decor-2 {
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: 26%;
  opacity: .24;
}

.cta-decor-3 {
  width: 300px;
  height: 300px;
  top: -110px;
  right: 8%;
  opacity: .22;
}

.cta-decor-4 {
  width: 170px;
  height: 170px;
  top: 30%;
  right: -50px;
  opacity: .18;
}

.cta-section>.cta-content {
  max-width: 910px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.cta-copy {
  max-width: 100%;
}

.cta-title {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.4px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

.cta-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cta-btn {
  padding: 1rem 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 12px;
  min-width: 220px;
  justify-content: space-between;
  gap: 0.9rem;
}

.cta-btn i {
  font-size: 1.15rem;
  margin-left: 6px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #557291;
  color: rgba(255, 255, 255, 0.88);
}

.footer-top {
  padding: 70px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-top::before,
.footer-top::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .18;
  pointer-events: none;
}

.footer-top::before {
  top: 30px;
  left: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><circle cx='80' cy='80' r='70' fill='none' stroke='white' stroke-width='1' stroke-dasharray='4 6'/><circle cx='80' cy='80' r='40' fill='none' stroke='white' stroke-width='1'/></svg>");
}

.footer-top::after {
  top: 100px;
  right: 30px;
  width: 122px;
  height: 123px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 122 123'><path d='M10 110 Q30 40 80 20 T115 100' fill='none' stroke='white' stroke-width='1' stroke-dasharray='3 5'/><circle cx='85' cy='30' r='6' fill='white' opacity='.5'/></svg>");
}

.badge-row {
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.sustainable-badge {
  margin: 0 auto;
}

.sustainable-text {
  max-width: 720px;
  margin: 0 auto 54px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  /* Desktop column widths tuned to actual column content:
       Col 1 (Sustainable + social)  ~20% wider than Col 2 (Oferta Educativa = baseline)
       Col 3 (Colegio)              shorter label list → visually narrower
       Col 4 (Contacto)             multi-line address + 3 phones + email → widest link column
     Ratios (fr): 17 / 14 / 12 / 16
       A/B ≈ 1.21  (≈+20% vs Oferta)
       C/B ≈ 0.86  (Colegio ~14% narrower than Oferta)
       D/B ≈ 1.14  (Contacto ~14% wider than Oferta, avoids address wrapping) */
  grid-template-columns: 18fr 14fr 10fr 17fr;
  place-items: start stretch;
  column-gap: 45px;
  row-gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-col {
  width: 100%;
  box-sizing: border-box;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 0 0 10px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.2rem;
  margin-bottom: 22px;
  font-weight: 700;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: .83rem;
  padding: 2px 0;
  position: relative;

}

.footer-links a:hover {
  color: #fff4bb;
}

.footer-contact-list li {
  margin: 0 0 12px;
  font-size: .83rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact-list li.addr {
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.footer-contact-list li.addr::before {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: #FEE775;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-list a:hover {
  color: #FEE775;
}

.footer-contact-list a i {
  color: #ffffff;
  font-size: .9rem;
  width: 16px;
}

.social-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.social-icon {
  /* Distribute available row width equally across ALL 5 icons on mobile. */
  flex: 1 1 0;
  min-width: 0;
  /* Aspect ratio keeps them perfect squares regardless of their flex width. */
  aspect-ratio: 1 / 1;
  width: auto;
  height: auto;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-radius: 10%;
  font-size: .95rem;
  transition: all .25s ease;
}

.social-icon i {
  /* Slightly downscale glyph so icons stay inside their squares on narrow widths. */
  font-size: .85em;
  line-height: 1;
}

@media (min-width: 1226px) {

  .social-row,
  .social-row-top {
    gap: 10px;
  }

  .social-icon {
    /* Desktop: fixed 40×40 squares (no flex distribution), plus the original 1rem right gutter. */
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    aspect-ratio: auto;
    margin-right: 1rem;
  }

  .social-icon i {
    font-size: .95rem;
  }
}

.social-icon:hover {
  background: #FEE775;
  color: #557291;
  transform: translateY(-2px);
}

.social-row-top {
  display: none;
  justify-content: center;
  gap: 10px;
  margin: 42px 0 0;
  position: relative;
  z-index: 1;
}

/* Footer bottom / copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0;
}

.copyright-row.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.copyright-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: .92rem;
}

.copyright-links a:hover {
  color: #FEE775;
}

.copyright-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: .88rem;
  text-align: right;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1350px) {
  h1 {
    font-size: 2.5rem;
  }

  .slide-title {
    font-size: 2.9rem;
  }

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

@media (max-width: 1250px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .container-fluid {
    padding: 4px 18px;
  }

  section {
    padding: 64px 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.7rem;
    line-height: 1.6;
  }

  .slide-title {
    font-size: 2.4rem;
  }

  .hero-slider {
    min-height: 520px;
  }

  .slider-track {
    height: 520px;
  }

  .slide-inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .slide-counter {
    top: 76px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .slider-ui {
    bottom: 20px;
    width: calc(100% - 32px);
  }

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

  .thumb-title {
    font-size: .78rem;
  }

  .thumb-num {
    width: 24px;
    height: 24px;
    font-size: .7rem;
  }

  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .three-col,
  .four-col {
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    gap: 4px;
  }



  .two-col.reverse> :first-child {
    order: 1;
  }

  .two-col.reverse> :last-child {
    order: 2;
  }

  .two-col:not(.reverse)>.feature-visual {
    order: 0;
  }

  .two-col:not(.reverse)>.feature-text {
    order: 1;
  }

  .two-col>.feature-visual {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .testimonials-visual {
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .testimonials-vid-thumb {
    aspect-ratio: 16 / 9;
    max-width: 720px;
    max-height: none;
    width: 100%;
    border-radius: 16px;
    border: none;

  }

  .testimonials-vid-thumb img {
    border-radius: 16px;
  }

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

  .bases-list.three-col {
    grid-template-columns: 1fr;
  }

  .cta-section {
    max-width: 980px;
  }

  .cta-section>.cta-content {
    max-width: 780px;
    padding: 64px 24px;
  }

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

  .cta-copy {
    max-width: 100%;
    text-align: center;
  }

  .cta-title {
    font-size: 2.2rem;
    margin-bottom: 18px;
  }

  .cta-text {
    font-size: 1.1rem;
  }

  .cta-action {
    justify-content: center;
  }

  .cta-btn {
    min-width: 240px;
    padding: 1.05rem 2.1rem;
    font-size: 1.15rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .copyright-row.two-col {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .copyright-text {
    text-align: center;
  }

  .stats-section {
    padding: 56px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .stat-num {
    font-size: 2.8rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 52px 0;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.4;
  }

  .slide-title {
    font-size: 2rem;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-pre {
    font-size: .75rem;
    letter-spacing: 2px;
    margin-bottom: 0;
  }

  .hero-slider {
    min-height: 460px;
  }

  .slider-track {
    height: 460px;
  }

  .slide-inner {
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .slide-counter {
    top: 64px;
    font-size: .9rem;
    right: 16px;
  }

  .slide-label {
    font-size: .72rem;
    letter-spacing: 2px;
  }

  .slide-content {
    max-width: 100%;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: .85rem;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .slider-ui {
    bottom: 16px;
    width: calc(100% - 24px);
    gap: 8px;
  }

  .slider-thumbs {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 6px;
    border-radius: 12px;
    gap: 6px;
  }

  .slider-thumbs .thumb {
    padding: 8px 10px;
    gap: 8px;
  }

  .thumb-num {
    width: 22px;
    height: 22px;
    font-size: .68rem;
  }

  .thumb-title {
    font-size: .72rem;
    white-space: normal;
  }

  .slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
  }

  .btn {
    padding: .8rem 1.4rem;
    font-size: .9rem;
  }

  .three-col {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .allies-grid.six-col {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .level-specs.two-col-specs {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 10px;
  }

  .stat-num {
    font-size: 2.3rem;
  }

  .stat-label {
    font-size: .75rem;
    letter-spacing: 1px;
  }

  .testi-card {
    padding: 28px 22px 30px;
  }

  .testi-track {
    min-height: 440px;
  }

  .testi-quote {
    font-size: .98rem;
  }

  .testi-controls {
    gap: 12px;
  }

  .testi-btn {
    width: 40px;
    height: 40px;
  }

  .cta-section {
    max-width: 100%;
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .cta-bg {
    border-radius: 10px;
  }

  .cta-section>.cta-content {
    max-width: 100%;
    width: 100%;
    padding: 48px 24px;
  }

  .cta-grid {
    gap: 24px;
  }

  .cta-title {
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .cta-text {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }

  .cta-btn {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.4rem;
    font-size: 1.05rem;
    justify-content: space-between;
    border-radius: 8px;
  }

  .cta-decor-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    left: -70px;
  }

  .cta-decor-2 {
    width: 160px;
    height: 160px;
    bottom: -80px;
    left: 8%;
  }

  .cta-decor-3 {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -50px;
  }

  .cta-decor-4 {
    width: 110px;
    height: 110px;
    top: auto;
    bottom: 8%;
    right: -30px;
  }

  .footer-top {
    padding: 54px 0 28px;
  }

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

  .sustainable-text {
    margin-bottom: 38px;
    font-size: .95rem;
  }

  .footer-col-social .social-row {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px !important;
    width: 100%;
    padding: 0 !important;
    margin: 14px 0 0 0;
    box-sizing: border-box;
  }

  .footer-col-social .social-row .social-icon {
    /* Split available width evenly across ALL 5 squares — each icon is as big as possible while fitting. */
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    padding: 0 !important;
  }

  .footer-col-social .social-row .social-icon i {
    /* Scale glyph to 50% of square size, always fits, no clipping. */
    font-size: clamp(1rem, 5.2vw, 1.6rem);
    line-height: 1;
  }

  .social-row-top {
    display: none;
  }

  .program-card {
    padding: 24px 20px;
  }

  .programs-grid {
    gap: 20px;
  }

  .logo-wrapper img {
    max-width: 150px;
  }
}

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

  .allies-grid.six-col {
    grid-template-columns: 1fr 1fr;
  }

  .slide-title {
    font-size: 1.75rem;
  }
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid #FEE775;
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================================
   PAGE TITLE / BREADCRUMB BANNER
   ============================================================= */

.page-title-area {
  padding-top: 15px;
  padding-bottom: 25px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  text-align: left;
  background-color: #fff6f6;

}


.page-title-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-title-area.breadcrumb-has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* fallback in case inline image fails to load */
}

/* Inner content wrapper — same max width as the CTA section's outer card. */
.eduvibe-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

/* Title + breadcrumbs stack with title on top, breadcrumbs directly below. */
.eduvibe-page-title+.breadcrumb-wrapper {
  margin-top: 0px;
  max-width: 900px;
}

/* === Page title: 1.5rem / white, exactly as requested. === */
.eduvibe-page-title .entry-title {
  margin: 0;
  padding: 0;
  font-size: 2.1rem;
  line-height: 2;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
}

/* === Breadcrumbs: visually smaller, white, under the page title. === */
.breadcrumb-wrapper {
  width: 100%;
}

nav.breadcrumb,
ul.breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 500;
  font-family: "Urbanist", "Helvetica Neue", Arial, sans-serif;
}

ul.breadcrumb li {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Separator between crumbs: use "»" as a visual divider, matches MX school sites.
   First link doesn't get a separator. */
ul.breadcrumb li+li::before {
  content: "\00BB";
  display: inline-block;
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  font-size: 1rem;
}

ul.breadcrumb li a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

ul.breadcrumb li a:hover,
ul.breadcrumb li a:focus-visible {
  color: #FEE775;
  /* matches primary CTA yellow highlight brand color */
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Last crumb (the current page — "Nosotros") is white but non-interactive,
   slightly lower opacity to distinguish it. */
ul.breadcrumb li:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}



.google-reviews-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  color: #7b7b7b;
  font-weight: 600;
}

.google-reviews-row .stars {
  color: #F5B301;
  letter-spacing: 1px;
  font-size: 1.0rem;
}


/* ---- Responsive: Tablet (<=1250px) ---- */
@media (max-width: 1250px) {

  .google-reviews-row {
    display: block;
  }

  .stars {
    color: #F5B301;
    letter-spacing: 1px;
    font-size: 0.8rem;
    display: block;
  }

  .page-title-area {
    min-height: 150px;
    padding: 48px 0 40px;
  }

  .eduvibe-page-title .entry-title {
    font-size: 1.35rem;
  }

  ul.breadcrumb {
    font-size: 0.9rem;
  }
}

/* ---- Responsive: Mobile (<=640px) ---- */
@media (max-width: 640px) {
  .page-title-area {
    min-height: 130px;
    padding: 36px 0 32px;
  }

  .eduvibe-container {
    padding: 0 18px;
  }

  .eduvibe-page-title .entry-title {
    font-size: 1.2rem;
  }

  ul.breadcrumb {
    font-size: 0.82rem;
    gap: 6px 12px;
  }

  ul.breadcrumb li+li::before {
    margin-right: 10px;
  }

  .eduvibe-page-title+.breadcrumb-wrapper {
    margin-top: 8px;
  }
}

/* ---- Responsive: Very small phones (<=400px) ---- */
@media (max-width: 400px) {
  .page-title-area {
    min-height: 120px;
    padding: 28px 0 26px;
  }

  .eduvibe-page-title .entry-title {
    font-size: 1.08rem;
  }
}

/* ===== SCHOOL TEMPLATE (schooltemplate.html) ===== */
.page-hero-banner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
}

.page-hero-banner__inner {
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
}

.page-hero-banner__inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ====== NIVEL GRID / LAYOUT — BASE (mobile-first): 1 column, full width, responsive ====== */
.school-level-grid {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0.2rem 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  row-gap: 56px;
  -webkit-column-gap: 2rem;
  -moz-column-gap: 2rem;
  column-gap: 2rem;
  gap: 56px 2rem;
}

.school-level-left,
.school-level-right {
  display: block;
  width: 100%;
  max-width: 100%;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  flex-grow: 0;
  min-height: 0;
  min-width: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: auto;
  position: static;
  top: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  -webkit-transform: none;
  -ms-transform: none;
  transform: none;
}

.school-level-left {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.5rem;
}

.school-level-right {
  margin-top: -1.5rem;
}

/* ====== DESKTOP ONLY (≥ 1021px) — 2-column flex ====== */
/* Safari sidebar-growth fix: flex (not grid) + explicit widths + top:-150px visual overlap */
@media (min-width: 1021px) {
  .school-level-grid {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    row-gap: 0;
    gap: 2rem;
    padding: 20px 0.2rem 0;
  }

  .school-level-left,
  .school-level-right {
    height: -webkit-max-content;
    height: -moz-max-content;
    height: max-content;
    height: intrinsic;
    margin-top: 0;
  }

  .school-level-left {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 60%;
    -ms-flex: 0 0 60%;
    flex: 0 0 60%;
    max-width: 60% !important;
    width: 60%;
  }

  .school-level-right {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(40% - 1rem);
    -ms-flex: 0 0 calc(40% - 1rem);
    flex: 0 0 calc(40% - 1rem);
    max-width: calc(40% - 1rem);
    width: calc(40% - 1rem);
    position: relative;
    top: -150px;
    z-index: 2;
    margin-top: 0;
    margin-bottom: -150px;
    -webkit-flex-basis: calc(40% - 1rem);
    -ms-flex-preferred-size: calc(40% - 1rem);
    flex-basis: calc(40% - 1rem);
  }
}

.school-level-left h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: #231F40;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.school-level-left .tagline {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: #567393;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.35;
}

.school-level-left .school-desc {
  margin: 0;
  color: #4B596B;
  font-size: 1rem;
  line-height: 1.65;
}

/* ====== SCHOOL PHOTO CAROUSEL ====== */
/* Base shared wrapper */
.school-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ========== MOBILE MODE (fade / 16:9 / dots-only) ========== */
.school-carousel--mobile-only {
  border-radius: 0 0 14px 14px;
}

.school-carousel--mobile-only .school-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.school-carousel--mobile-only .school-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}

.school-carousel--mobile-only .school-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.school-carousel--mobile-only .school-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.school-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(5, 9, 14, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 3;
  cursor: pointer;
}

.school-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.school-carousel-dots button.active {
  background: #ffffff;
  transform: scale(1.25);
}

/* ========== DESKTOP MODE (horizontal thumbnail row / 218×270 + arrows) ========== */
.school-carousel--desktop-only {
  padding: 0 56px;
  overflow: visible;
}

/* Clipping viewport: exactly fits 2 thumbnails + 1 gap = 456px, centered. Everything outside HIDDEN */
.school-carousel-viewport {
  max-width: 650px;
  /*  218 * 2 + 20 = exactly 2 side-by-side thumbs with their 20px gap */
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  /*  <-- THIS hides all the non-visible thumbs */
}

.school-carousel--desktop-only .school-carousel-track {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  flex-wrap: nowrap !important;
  align-items: stretch;
  overflow: visible;
  height: 270px;
  gap: 6px;
  width: max-content;
  will-change: transform;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.school-carousel--desktop-only .school-carousel-slide {
  position: static;
  flex: 0 0 218px;
  /* each thumb fixed 218 wide 270 tall */
  width: 218px;
  height: 270px;
  box-sizing: border-box;
  opacity: 1;
  pointer-events: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px -16px rgba(35, 31, 64, 0.42);
  cursor: pointer;
}

.school-carousel--desktop-only .school-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.school-carousel--desktop-only .school-carousel-dots {
  display: none;
  cursor: pointer;
}

/* Prev / Next arrow buttons (desktop only) */
.school-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(229, 236, 245, 0.9);
  background: #ffffff;
  color: #567393;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(35, 31, 64, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.school-carousel-arrow:hover {
  background: #567393;
  color: #ffffff;
}

.school-carousel-arrow:focus {
  outline: 2px solid #84ADD8;
  outline-offset: 2px;
}

.school-carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.school-carousel-arrow[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: #ffffff;
  color: #84ADD8;
  box-shadow: none;
}

.school-carousel-arrow--left {
  left: 6px;
}

.school-carousel-arrow--right {
  right: 6px;
}

.school-carousel-arrow::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2.4px solid currentColor;
  border-right: 2.4px solid currentColor;
  transform: rotate(45deg);
  margin-right: -3px;
}

.school-carousel-arrow--left::after {
  transform: rotate(-135deg);
  margin-right: 3px;
}

/* Visibility toggles: desktop = thumb row; mobile = fade image */
.school-carousel--desktop-only {
  display: block;
}

.school-carousel--mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .school-carousel--desktop-only {
    display: none;
  }

  .school-carousel--mobile-only {
    display: block;
  }
}

/* ====== DETALLE NIVEL CARD ====== */
.detalle-nivel-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 40px -22px rgba(35, 31, 64, 0.32);
  border: 1px solid #E5ECF5;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-right: 10px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
  height: intrinsic;
}

.dn-yt {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 14px 28px -18px rgba(35, 31, 64, 0.55);
  line-height: 0;
  background: #05090E;
}

.dn-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform .3s ease, opacity .3s ease;
}

.dn-yt:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.dn-yt__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #83add7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 1px 18px 0 rgb(255, 255, 255),
    0 0 0 14px rgba(86, 115, 147, 0.55);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  pointer-events: none;
}

.dn-yt:hover .dn-yt__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #2f4260;
  box-shadow: 0 14px 28px 0 rgba(86, 115, 147, 0.75),
    0 0 0 5px rgba(255, 255, 255, 0.65);
}

.dn-yt__play::before {
  content: "";
  border-left: 18px solid #ffffff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

.dn-fields {
  padding: 28px 22px 1px;
  display: flex;
  flex-direction: column;
}

.dn-field {
  padding: 4px 0;
  border-bottom: 1px solid #E5ECF5;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dn-field:last-of-type {
  border-bottom: 0;
}

.dn-field ul {
  margin: 2px 0 0;
  padding-left: 18px;
  color: #4B596B;
  line-height: 1.55;
  font-size: 0.93rem;
}

.dn-field p {
  margin: 0;
  color: #231F40;
  font-size: 0.96rem;
  line-height: 1.5;
}

.dn-field p small {
  font-size: 0.82rem;
  color: #728094;
  display: block;
  margin-top: 2px;
}

.dn-field strong {
  color: #231F40;
  font-weight: 700;
}

.dn-actions {
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}



@media (max-width: 1020px) {
  .school-level-grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
    padding: 4px 0.6rem 0;
  }

  .school-level-right {
    margin-top: -1.5rem;
  }

  .school-level {
    margin-top: -40px !important;
  }

  .detalle-nivel-card {
    width: 100%;
    margin-right: 0;
  }

  .school-carousel--desktop-only {
    display: none;
  }

  .school-carousel--mobile-only {
    display: block;
  }

  .dn-yt {
    border-radius: 2px;
  }
}

@media (max-width: 640px) {
  .page-hero-banner {
    /* padding: 0 1.25rem; */
  }

  .school-level {
    margin-top: -20px !important;
  }

  .dn-yt {
    margin-left: 12px;
    margin-right: 12px;
    width: calc(100% - 24px);
    margin-top: -36px;
  }

  .dn-yt__play {
    width: 54px;
    height: 54px;
  }

  .dn-fields {
    padding: 24px 18px 10px;
  }

  .dn-actions {
    padding: 14px 18px 22px;
  }
}

/* ===== 404 NOT FOUND ===== */
.section-notfound {
  padding: 120px 0 140px;
}

.notfound-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.notfound-code {
  font-size: clamp(6rem, 16vw, 10.5rem);
  font-weight: 800;
  color: #567393;
  line-height: 0.9;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.notfound-heading {
  font-size: clamp(1rem, 3.2vw, 1rem);
  font-weight: 600;
  color: #231F40;
  margin: 0 0 12px;
}

.notfound-sub {
  font-size: 1rem;
  color: #6F6B80;
  margin: 0 auto 36px;
  max-width: 560px;
  line-height: 1.1;
}

.notfound-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== CARRERAS DEL FUTURO GRID ===== */
.section-carreras {
  padding: 72px 1.5rem;
  background: #F4F7FB;
}

.carreras-grid {
  --carreras-cols: 4;
  --carreras-gap: 20px;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--carreras-cols), 1fr);
  column-gap: var(--carreras-gap);
  row-gap: var(--carreras-gap);
}

.carrera-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px -16px rgba(35, 31, 64, 0.28);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}

.carrera-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -18px rgba(35, 31, 64, 0.34);
}

.carrera-card-header {
  --carrera-icon-size: 2.1rem;
  background-color: #84ADD7;
  min-height: calc(var(--carrera-icon-size) + 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: 14px 14px 0 0;
}

.carrera-card-header svg {
  width: var(--carrera-icon-size);
  height: var(--carrera-icon-size);
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carrera-card-body {
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
}

.carrera-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #231F40;
  line-height: 32px;
}

.carrera-card-desc {
  margin: 0;
  color: #4B596B;
  font-size: 0.92rem;
  line-height: 1.55;
}

.carrera-card-image {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

@media (max-width: 1080px) {
  .carreras-grid {
    --carreras-cols: 3;
  }
}

@media (max-width: 820px) {
  .carreras-grid {
    --carreras-cols: 2;
  }
}

@media (max-width: 540px) {
  .carreras-grid {
    --carreras-cols: 1;
    --carreras-gap: 16px;
  }

  .section-carreras {
    padding: 48px 1.25rem;
  }
}

/* ===== GALERÍA GRID ===== */
.section-gallery {
  padding: 64px 1.5rem;
  display: block;
}

.gallery-grid {
  --gallery-cols: 3;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols), minmax(0, 1fr));
  grid-auto-rows: min-content;
  gap: 20px 20px;
}

.gallery-cell {
  position: relative;
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #E4ECF5;
  box-shadow: 0 6px 18px -10px rgba(44, 69, 102, 0.28);
  cursor: pointer;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 820px) {
  .gallery-grid {
    --gallery-cols: 2;
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    --gallery-cols: 1;
    gap: 16px 16px;
  }
}

/* ===== SCROLL-TO-TOP (sticky yellow arrow) ===== */
.scroll-to-top {
  position: fixed;
  right: 1rem;
  bottom: 175px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10%;
  background: #FEE775;
  color: #231F40;
  box-shadow: 0 10px 26px -10px rgba(35, 31, 64, 0.36),
    0 6px 14px -6px rgba(35, 31, 64, 0.18);
  text-decoration: none;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.94);
  transition:
    opacity .25s ease,
    visibility .25s ease,
    transform .25s cubic-bezier(.22, .61, .36, 1),
    background-color .2s ease,
    color .2s ease;
}

.scroll-to-top i {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.scroll-to-top:hover {
  background: #FDD94A;
  color: #0C0A1F;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px -14px rgba(35, 31, 64, 0.46),
    0 8px 18px -8px rgba(35, 31, 64, 0.22);
}

.scroll-to-top:focus-visible {
  outline: 3px solid #567393;
  outline-offset: 3px;
}

.scroll-to-top.is-visible {
  opacity: 0.9;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .scroll-to-top {
    right: 1rem;
    bottom: 190px;
    width: 42px;
    height: 42px;
  }

  .scroll-to-top i {
    font-size: .95rem;
  }
}

/* ============================================================
   REUSABLE ICON LIST BULLETS — any image, any size, any li
   Apply class="icon-bullet" then override --icon-bullet-url
   per <li> (or per parent <ul> for a shared icon).
   Example:
     <li class="icon-bullet"
         style="--icon-bullet-url: url('/images/check.webp');
                --icon-bullet-size: 20px;">…</li>
   ============================================================ */
li.icon-bullet {
  --icon-bullet-url: none;
  --icon-bullet-size: 22px;
  --icon-bullet-gap: 10px;
  position: relative !important;
  padding-left: calc(var(--icon-bullet-size) + var(--icon-bullet-gap)) !important;
  list-style: none !important;
  margin: 0 0 6px;
}

li.icon-bullet::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: calc(0.7em - var(--icon-bullet-size) / 2);
  width: var(--icon-bullet-size);
  height: var(--icon-bullet-size);
  background-image: var(--icon-bullet-url);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

li.icon-bullet-lg {
  --icon-bullet-url: none;
  --icon-bullet-size: 42px;
  --icon-bullet-gap: 12px;
  display: flex !important;
  /* flex row layout */
  flex-direction: row;
  align-items: center !important;
  /* ← VERTICALLY CENTER TEXT with icon */
  list-style: none !important;
  margin: 32px 10px 6px;
  padding-left: 0 !important;
  /* old padding-left calc destroyed — gap replaces it */
  min-height: var(--icon-bullet-size);
  /* 1 line text → 42px tall row */
}

li.icon-bullet-lg::before {
  content: "";
  display: inline-flex;
  flex: 0 0 var(--icon-bullet-size);
  /* never shrink, always 42×42 */
  width: var(--icon-bullet-size);
  height: var(--icon-bullet-size);
  margin-right: var(--icon-bullet-gap);
  /* 14px between icon edge and text start */
  background-image: var(--icon-bullet-url);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  /* icon sits perfectly center-vert with li because both use align-items:center */
}

.prebold {
  font-weight: 800 !important;
  letter-spacing: 1px !important;
}

.nivelescolar {
  font-size: 1.2rem !important;
  text-transform: none;
  color: #231F40;
}

/* ============================================================
   LIGHTBOX — gallery image modal
   ( gallery.js writes #lightbox-root DOM on first open )
   ============================================================ */
.lb-locked {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: contain;
}

#lightbox-root {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
}

#lightbox-root[aria-hidden="false"] {
  display: flex;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 14, 0.90);
  backdrop-filter: blur(6px);
}

.lb-stage {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1400px;
  height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-drag: none;
}

/* YouTube iframe video player, shared .lb-stage
   Aspect-ratio 16/9, capped at 92vw × 86vh so never exceeds viewport. */
.lb-video {
  display: none;
  width: min(92vw, 1600px);
  aspect-ratio: 16 / 9;
  max-width: 1400px;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
  background: #000;
  border: 0;
}

.lb-counter {
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
  font-family: inherit;
  white-space: nowrap;
}

/* ===== IBERO FORM — contacto + reusable inputs =============================== */

.ibero-form {
  width: 90%;
  max-width: 90%;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ibero-form__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.ibero-form__label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #344b75;
  letter-spacing: 0.2px;
  line-height: 1.3;
  padding-left: 1rem;
  margin: 0;
}

.ibero-form__input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  background-color: transparent;
  border: 2px solid #88A4C6;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  color: #000000;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  margin: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  word-spacing: 2px;
  font-weight: 400;
}

.ibero-form__input::placeholder {
  color: #8FA5C4;
  opacity: 0.85;
}

.ibero-form__input:hover {
  border-color: #567393;
}

.ibero-form__input:focus {
  border-color: #567393;
  box-shadow: 0 0 0 3px rgba(86, 115, 147, 0.14);
  background-color: rgba(255, 255, 255, 0.55);
}

.ibero-form__input[disabled],
.ibero-form__input[readonly] {
  background-color: rgba(136, 164, 198, 0.08);
  color: #5C6E8E;
  cursor: not-allowed;
}

.ibero-form__input--textarea {
  min-height: 130px;
  resize: vertical;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.ibero-form__row--submit {
  align-items: center;
  margin-top: 4px;
}

.ibero-form__row--submit .btn {
  width: 70%;
}

@media (max-width: 768px) {
  .ibero-form {
    gap: 16px;
  }

  .ibero-form__row--submit {
    align-items: stretch;
  }

  .ibero-form__row--submit .btn {
    width: 100%;
  }
}

/* ===== IBERO CONTACT INFO CARDS (4-up 2x2 grid) ============================ */

.info-cards-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 22px 12px;
  box-sizing: border-box;
  margin-top: -4rem;
  padding: 8px 10px;
}

.info-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 10px 10px 20px;
  box-sizing: border-box;
  box-shadow: 0 22px 50px -22px rgba(44, 62, 96, 0.18),
    0 2px 6px -2px rgba(44, 62, 96, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(44, 62, 96, 0.24),
    0 4px 10px -4px rgba(44, 62, 96, 0.08);
}

.info-card__icon {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex: 0 0 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tinted backgrounds matching the 4 reference icon pills */
.info-card__icon--mint {
  background: #c0ffdf;
}

/* mint soft green (headphones) */
.info-card__icon--lilac {
  background: #d4d9fd;
}

/* soft lilac (globe)     */
.info-card__icon--amber {
  background: #fff0c9;
}

/* soft amber (email)     */
.info-card__icon--peach {
  background: #facbcb;
}

/* soft peach (pin)       */

.info-card__icon-inner {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  --icon-bullet-size: 30px;
}

.info-card__icon-inner::before {
  content: '';
  display: block;
  width: var(--icon-bullet-size, 38px);
  height: var(--icon-bullet-size, 38px);
  background-image: var(--icon-bullet-url, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  flex: 0 0 auto;
}

.info-card__title {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #1F2A44;
  line-height: 1.1;
  letter-spacing: 0.2px;
  margin: 0;
  padding: 0;
}

.info-card__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.info-card__line {
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #3C4A69;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin: 0;
  padding: 0;
}

.info-card__line a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.info-card__line a:hover {
  color: #567393;
  border-bottom-color: rgba(86, 115, 147, 0.35);
}

.info-card__line--addr {
  color: #6B7A99;
  font-weight: 400;
  letter-spacing: 0.2px;
}

@media (max-width: 1100px) {
  .info-cards-grid {
    gap: 16px 16px;
    margin-top: -2rem;
  }

  .info-card {
    padding: 24px 16px 22px;
  }

  .info-card__title {
    font-size: 1.3rem;
  }

  .info-card__line {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .info-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .info-card__icon,
  .info-card__icon-inner {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .info-card__icon-inner {
    --icon-bullet-size: 32px;
  }
}

@media (max-width: 640px) {
  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ===== GOOGLE MAPS SECTION ==================================================== */

.map-section {
  width: 90%;
  background: #F4F7FC;
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto;
}

.map-section__container {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: stretch;
}


.map-section__subtitle strong {
  color: #2C3E60;
  font-weight: 700;
}

.map-section__frame {
  max-width: 1140px !important;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 28px 60px -24px rgba(44, 62, 96, 0.22),
    0 4px 10px -4px rgba(44, 62, 96, 0.08);
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 1.5rem;
}

.map-section__iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  overflow: hidden;
  background: #DDE6F2;
}

.map-section__iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .map-section {
    padding: 0;
  }

  .map-section__iframe-wrap {
    aspect-ratio: 4 / 3;
  }

  .map-section__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .map-section__container {
    padding: 0;
    gap: 16px;
  }

  .map-section__iframe-wrap {
    aspect-ratio: 4 / 3;
  }

  .map-section__actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== WIZARD MODAL (ven a conocernos 8 pasos) =============================== */

html.agendar-locked,
body.agendar-locked {
  overflow: hidden;
  touch-action: none;
}

.wizard-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.wizard-modal[hidden] {
  display: none;
}

.wizard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 22, 40, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 0;
}

.wizard-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  max-height: min(88vh, 900px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 40px 90px -24px rgba(17, 22, 40, 0.38),
    0 6px 18px -10px rgba(17, 22, 40, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
}

.wizard-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #F1F5FB;
  color: #2C3E60;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.wizard-modal__close:hover {
  background: #E0E9F6;
  color: #1F2A44;
  transform: scale(1.04);
}

.wizard {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 32px 40px 24px;
  margin: 0;
}

.wizard__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  padding-right: 48px;
  flex: 0 0 auto;
  padding-bottom: 16px;
  border-bottom: 1px solid #EDF0F7;
}

.wizard__title {
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: #1F2A44;
  margin: 0;
  padding: 0;
}

.wizard__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.wizard__steps>li {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.wizard__steps>li>span {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8FA5C4;
  line-height: 1.2;
  letter-spacing: 0.3px;
  padding: 8px 4px;
  border-radius: 8px;
  background: #F1F5FB;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wizard__steps>li[data-state="done"]>span {
  background: #E9F5EF;
  color: #2E7D54;
}

.wizard__steps>li[data-state="active"]>span {
  background: #567393;
  color: #FFFFFF;
}

.wizard__pane {
  border: none;
  margin: 20px 0 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 2px;
}

.wizard__pane[hidden] {
  display: none;
}

/* Section-head overrides inside wizard pane: match step-1 "EL PROTAGONISTA" pattern */
.wizard__pane>.section-head {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
}

.wizard__pane>.section-head>.section-pre {
  margin-bottom: 6px;
}

.wizard__pane>.section-head>.section-title {
  font-size: 1.1rem;
  line-height: 1;
  margin: 0;
  padding: 0;
  color: #567393;
  outline: none;
  margin-bottom: 0 !important;
}

.wizard__q {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 1rem !important;
  line-height: 1.35;
  color: #1F2A44 !important;
  padding-left: 0 !important;
  outline: none;
}

.wizard__q--thanks {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  text-align: center;
  color: #567393 !important;
  padding: 20px 0 0 !important;
}

.wizard__pane--thanks {
  align-items: center;
  justify-content: center;
  padding: 24px 12px 32px;
  gap: 14px;
}

.wizard__thanks-msg {
  max-width: 520px;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: #3C4A69;
  margin: 0;
  padding: 0;
}

.wiz-opts {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
  align-items: stretch;
  justify-content: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  margin-top: -0.5rem !important;
}

.wiz-opts--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.wiz-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 44px;
  border-radius: 10px;
  border: 1px solid #D6DEEF;
  background: #FFFFFF;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  font-size: 0.9rem;
  color: #2C3E60;
  line-height: 1.35;
  font-weight: 500;
  min-height: 48px;
}

.wiz-opt:hover {
  border-color: #88A4C6;
  background: #F7FAFF;
}

.wiz-opt>input[type="radio"],
.wiz-opt>input[type="checkbox"] {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  accent-color: #567393;
  margin: 0;
  padding: 0;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.wiz-opt__box {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #B6C4DD;
  background: #FFFFFF;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wiz-opt--radio .wiz-opt__box {
  border-radius: 50%;
}

.wiz-opt>input[type="radio"]:checked~.wiz-opt__box,
.wiz-opt>input[type="checkbox"]:checked~.wiz-opt__box {
  border-color: #567393;
  background: #567393;
  box-shadow: 0 0 0 3px rgba(86, 115, 147, 0.16);
}

.wiz-opt>input[type="checkbox"]:checked~.wiz-opt__box::after {
  content: "";
  display: block;
  width: 12px;
  height: 6px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(1px, -2px);
  margin-top: -3px;
}

.wiz-opt>input[type="radio"]:checked~.wiz-opt__box::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

.wiz-opt__text {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  pointer-events: none;
}

.wiz-opt>input[type="radio"]:checked~.wiz-opt__text,
.wiz-opt>input[type="checkbox"]:checked~.wiz-opt__text {
  color: #1F2A44;
  font-weight: 600;
}

.wizard__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid #EDF0F7;
}

.wizard__nav-left,
.wizard__nav-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.wizard__step-count {
  font-family: inherit;
  font-size: 0.88rem;
  color: #567393;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
  display: none;
}

.wizard__btn[hidden] {
  display: none;
}

.wizard__submit-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  color: inherit;
  font-size: 0.95rem;
}

[data-wizard-loading="1"] {
  opacity: 0.85;
  pointer-events: none;
}

@media (max-width: 900px) {
  .wizard {
    padding: 28px 24px 20px;
  }

  .wizard__steps {
    gap: 6px;
  }

  .wizard__steps>li>span {
    font-size: 0.62rem;
    padding: 7px 2px;
    letter-spacing: 0;
  }

  .wiz-opts--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wizard-modal {
    padding: 0;
  }

  .wizard-modal__panel {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    max-width: 100vw;
    width: 100vw;
  }

  .wizard {
    padding: 64px 16px 16px;
  }

  .wizard__header {
    padding-right: 0;
    padding-bottom: 12px;
  }

  .wizard__title {
    font-size: 1.2rem;
  }

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

  .wiz-opts--cols-3 {
    /* grid-template-columns: 1fr; */
    gap: 1px 18px;
  }

  .wizard__nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .wizard__nav-right {
    display: flex;
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .wizard__nav-left,
  .wizard__nav-left .btn,
  .wizard__nav-right .btn {
    width: 100%;
    justify-content: center;
  }

  .wizard__step-count {
    text-align: center;
  }
}

/* ===== LIGHTBOX BUTTONS ===================================================== */

.lb-btn {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  backdrop-filter: blur(3px);
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}

.lb-btn:hover,
.lb-btn:focus {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.lb-btn:focus-visible {
  outline: 2px solid #84ADD7;
  outline-offset: 2px;
}

.lb-close {
  top: 20px;
  right: 20px;
  font-size: 2rem;
  line-height: 44px;
  width: 48px;
  height: 48px;
}

.lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.lb-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* Mobile: bigger tap targets, tighter */
@media (max-width: 640px) {
  .lb-stage {
    width: 94vw;
    height: 74vh;
  }

  .lb-img {
    max-width: 94vw;
    max-height: 74vh;
    border-radius: 8px;
  }

  .lb-prev {
    width: 52px;
    height: 52px;
    left: 8px;
    font-size: 1.6rem;
  }

  .lb-next {
    width: 52px;
    height: 52px;
    right: 8px;
    font-size: 1.6rem;
  }

  .lb-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }

  .lb-counter {
    bottom: -28px;
    font-size: 0.8rem;
  }
}

/* ===== Estrategias del Aprendizaje - oferta academica ===== */

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.strategy-grid> :nth-child(4),
.strategy-grid> :nth-child(5) {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
}

.strategy-grid> :nth-child(4) {
  transform: translateX(calc(-50% - 16px));
}

.strategy-grid> :nth-child(5) {
  transform: translateX(calc(50% + 16px));
}

.strategy-card {
  --strat-heading-gap: 10px;
  max-width: 330px;
  width: 100%;
  margin: 1px 0 0;
  padding: 20px 20px 25px;
  border-radius: 15px;
  background-color: #83add3;
  color: #fff;
  box-sizing: border-box;
}

.strategy-card h4 {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15px;
  margin-bottom: var(--strat-heading-gap);
}

.strategy-card p {
  margin: 0;
  padding: 0;
  text-align: justify;
  color: #fff;
  font-size: 0.77rem;
  line-height: 1rem;
}

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

  .strategy-grid> :nth-child(4),
  .strategy-grid> :nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    transform: none;
  }
}

@media (max-width: 640px) {
  .strategy-grid {
    grid-template-columns: 1fr;
    padding: 1rem 1.1rem 2.5rem;
    gap: 18px;
  }

  .strategy-card {
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .video-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .video-card-play {
    width: 52px;
    height: 52px;
  }

  .video-card-play i {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
}