:root{
  --blue:#0B3D91;
  --blue-2:#0A2F6B;
  --white:#ffffff;
  --text:#0f172a;
  --muted:#f3f6fb;
  --border:#e6eaf2;

  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1120px;
  --maxw: 1120px;

  --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-h1: clamp(24px, 2.9vw, 34px);
  --fs-h2: clamp(18px, 2.3vw, 24px);
  --fs-h3: clamp(16px, 1.8vw, 20px);
  --fs-h4: 1rem;
  --fs-body: 1rem;

  /* Animaciones */
  --anim-dur: .70s;
  --anim-ease: ease-out;
}

*{ box-sizing:border-box; }

/* Preferencia visual: sin sombras en todo el sitio */
*,
*::before,
*::after{
  box-shadow: none !important;
}

html,body{
  margin:0;
  padding:0;
  font-family: var(--font-sans);
  color:var(--text);
  font-size: 16px;
  font-weight: 400;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 3px solid rgba(11,61,145,.45);
  outline-offset: 2px;
}

.skip-link{
  position:absolute;
  top:8px;
  left:8px;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 10000;
}
.skip-link:focus{
  transform: translateY(0);
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding-left:18px; }
p{
  line-height:1.65;
  font-size: var(--fs-body);
  font-weight: 400;
}

h1,h2,h3,h4{
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  line-height: 1.28;
  font-weight: 800;
}
h5,h6{
  font-family: var(--font-sans);
  line-height: 1.25;
  font-weight: 700;
}

strong{
  font-weight: 700;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}

.breadcrumbs{
  font-size:.9rem;
  color:#6b7280;
  margin: 6px 0 0;
}
.breadcrumbs ol{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:0;
}
.breadcrumbs li{
  display:flex;
  align-items:center;
  gap:8px;
}
.breadcrumbs li::after{
  content:"/";
  opacity:.5;
}
.breadcrumbs li:last-child::after{
  content:"";
}
.breadcrumbs a{
  color: inherit;
}

/* =========================================================
   ANIMACIONES REVEAL (Bootstrap fade + show)
========================================================= */

.reveal{
  will-change: opacity, transform, filter;
  opacity: 1;
}
.reveal.reveal-ready{
  opacity: 1;
  transform: translateY(12px);
  filter: none;
  transition: transform .45s ease;
}
.reveal.reveal-ready.show{
  transform: none;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  :where(.reveal, .reveal.reveal-ready){
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }
}

/* =========================================================
   Header / Footer (sin animaciones)
========================================================= */
.site-header{
  /* Header por encima del hero */
  position: relative;
  z-index: 5000;
}

/* Header */
.topbar{
  background:#EDEDED;
  color:var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
}
.topbar-mobile{
  display:none;
  background:#EDEDED;
  color:#fff;
  position: sticky;
  top: 0;
  z-index: 4800;
}
.topbar-mobile__link{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 16px;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight:700;
    font-size: .8rem;
    color: var(--blue);
  }
.topbar-mobile__link i{
  font-size: 16px;
  line-height: 1;
  display:block;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:16px;
  flex-wrap:wrap;
}
.topbar__contacts{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  flex: 1 1 360px;
}
.topbar__contact{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 0.82rem;
  font-weight:600;
  white-space: nowrap;
}
.topbar__contact i{
  font-size: 16px;
  color: var(--blue);
}
.topbar__left{
  display:flex;
  align-items:center;
}
.topbar__right{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.topbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar__platforms{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar a{ color:var(--text); opacity:.95; }
.topbar__classroom{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color:var(--white);
  opacity: 1;
  background: #1e4f8f;
  padding: 6px 14px;
  border-radius: 9px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 0.74rem;
  border: 1px solid rgba(30,79,143,.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.topbar__classroom span{
  color: var(--white);
}
.topbar__classroom i{
  font-size: 20px;
  line-height: 1;
  display:block;
  color: var(--white);
}
.topbar__classroom:hover{
  background: #2560a8;
  transform: none;
  box-shadow: none;
}
.topbar__classroom--cta{
  background: #1e4f8f;
  border-color: rgba(30,79,143,.35);
}
.topbar__classroom--cta:hover{
  background: #2560a8;
  box-shadow: none;
}
.sep{ opacity:.6; padding:0 8px; }

.navbar{
  background:var(--white);
  border-bottom:1px solid var(--border);
  position: relative;
  z-index: 5000; /* dropdown sobre hero */
}
.navbar__inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding:0px;
  position:relative;
}
.brand img{
  height:120px;
  width:auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding:12px 16px;
  border-radius:12px;
  font-weight:600;
  border:1px solid transparent;
  min-height:44px;
}

/* ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â­cono dentro de botÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n */
.btn .bx{
  font-size: 18px;
  line-height: 1;
  display: block;
  transform: translateY(1px);
}

.btn--primary{
  background:#1e4f8f;
  color:var(--white);
  box-shadow:var(--shadow);
}
.btn--ghost{
  background:transparent;
  border-color:rgba(11,61,145,.25);
  color:var(--blue);
}

/* Floating WhatsApp */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  text-decoration: none;
  z-index: 999;
  transition: transform .2s ease, background .2s ease;
}
.whatsapp-float .bx{
  font-size: 28px;
  line-height: 1;
  display:block;
}
.whatsapp-float:hover{
  background: #1ebe5d;
  transform: translateY(-2px);
}
.whatsapp-float.is-hidden{
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.back-to-top{
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(11,61,145,.35);
  background: #fff;
  color: var(--blue);
  display:grid;
  place-items:center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top i{
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 520px){
  .whatsapp-float{
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
  .back-to-top{
    right: 16px;
    bottom: 80px;
  }
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  margin-left:auto;
}

.nav-toggle{
  display:none;
  margin-left:auto;
  font-size:22px;
  background:transparent;
  border:0;
  cursor:pointer;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.nav-toggle__bar{
  width:20px;
  height:2px;
  background: var(--text);
  border-radius: 999px;
  display:block;
}

/* NAV LIST */
.nav__list{
  display:flex;
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
  list-style:none;
}

.nav__link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  font-weight:400;
  padding:10px 10px;
  border-radius:10px;
}

.nav__link.is-active{
  color:var(--blue);
}

/* DROPDOWN */
.dropdown{
  position:relative;
  z-index: 5100;
}

.nav__label{
  display:inline-flex;
  align-items:center;
}
.nav__chevron{
  font-size: 12px;
  opacity: .7;
  transform: translateY(1px);
  transition: transform .2s ease, opacity .2s ease;
}

.dropdown__menu{
  position:absolute;
  top: calc(100%);
  left:0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding:10px;
  display:grid;
  gap:6px;

  opacity:0;
  transform: translateY(8px);
  pointer-events:none;
  transition: opacity .50s ease, transform .30s ease;
  z-index: 5200;
}

.dropdown__menu a{
  padding:10px 10px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:500;
  color: inherit;
}

.dropdown__menu a:hover{
  background: rgba(11,61,145,.08);
  color: var(--blue);
}

/* Desktop: hover / focus */
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

/* Icon buttons */
.icon-link{
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(11,61,145,.35);
  padding: 0;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;

  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.icon-link i{
  font-size: 20px;
  line-height: 1;
  display: block;
  color: var(--blue);
}

.icon-link:hover{
  background: rgba(11,61,145,.10);
  border-color: rgba(11,61,145,.55);
  transform: translateY(-1px);
  box-shadow: none;
}
.icon-link:hover i{ color: var(--blue); }

.icon-link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(11,61,145,.22), 0 14px 30px rgba(0,0,0,.10);
}

/* Hero */
.hero{
  height:410px;
  background-size:110% 100%;
  background-position:center;
  position:relative;
  z-index: 0;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(11,61,145,.50);
  z-index: 0;
}
.hero__inner{
  position:relative;
  padding:70px 0;
  color:var(--white);
  z-index: 1;
}
.hero h1{ font-size: var(--fs-h1); margin:0 0 10px; }
.hero p{ font-size:1rem; margin:0 0 18px; opacity:.92; }
.hero__cta{ display:flex; gap:12px; flex-wrap:wrap; }

/* Hero: botones blancos */
.hero .btn--primary{
  background: var(--white);
  color: var(--blue);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
}
.hero .btn--ghost{
  background: white;
  color: var(--blue);
  border-color: rgba(255,255,255,.8);
}

/* Sections */
.section{ padding:56px 0; }
.section--muted{ background:var(--muted); }
.section--slate{
  background:#EDEDED;
  color:var(--text);
}
.section--slate .section-title h2,
.section--slate .section-title .link{
  color:var(--text);
}
.section--white{ background:var(--white); }
.section h2{ font-size: var(--fs-h2); margin:0 0 14px; }

.grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}

.panel{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:16px;
}
.card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.card h3{ margin:0 0 8px; color:var(--blue); }
.card p{ margin:0; opacity:.85; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  margin:18px 0;
}
.step{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
}
.step h3{ margin:0 0 6px; color:var(--blue); }

/* News (grid tradicional) */
.news-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}
.news-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}
.news-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.badge{
  display:inline-flex;
  font-size:.85rem;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(11,61,145,.10);
  color:var(--blue);
  border:1px solid rgba(11,61,145,.15);
}
.date{ opacity:.8; font-size:.9rem; }
.news-card h3{ margin:8px 0 8px; color:var(--text); }
.news-card p{ margin:0 0 12px; opacity:.86; }
.link{ color:var(--blue); font-weight:600; }

/* Slider de Novedades (Inicio) */
.news-slider{ position:relative; }
.news-row{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding: 6px 62px 10px;
  scroll-padding-left: 62px;
  scroll-padding-right: 62px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.news-row::-webkit-scrollbar{ height: 8px; }
.news-row.is-dragging{ cursor: grabbing; }

.news-row .news-card{
  padding:0;
  min-width: 320px;
  max-width: 360px;
  flex: 0 0 auto;
  scroll-snap-align: start;

  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.news-card__img{
  height: 180px;
  background:#fff;
  border-bottom: 1px solid var(--border);
  padding:10px;
}
.news-card__img img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}
.news-card__body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.news-card__meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  opacity:.9;
  font-size:13px;
}
.news-card__tag{ font-weight:900; color: var(--blue); }
.news-card__title{ margin:0; color:var(--blue); font-size: 1rem; line-height: 1.35; }
.news-card__text{ margin:0; opacity:.9; line-height:1.5; }
.news-card__more{ font-weight:900; color:var(--blue); }

.news-slider__btn{
  width:42px;
  height:42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  user-select:none;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.news-slider__btn[data-news-dir="-1"]{ left: 12px; }
.news-slider__btn[data-news-dir="1"]{ right: 12px; }

/* Forms */
.form{ display:grid; gap:12px; }
.field{ display:grid; gap:6px; }

input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  outline:none;
  font:inherit;
  background:var(--white);
}
textarea{ min-height:120px; resize:vertical; }

.form-hint{
  margin:0;
  padding:10px 12px;
  border-radius: 12px;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.18);
  color: #991b1b;
  font-weight: 700;
}

/* GalerÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â­a (base) */
.gallery{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.gallery img{
  width:100%;
  height:180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Mapa interactivo (click-to-enable) */
.map-box{
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-box iframe{
  width:100%;
  height: 520px;
  display:block;
}
.map-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(2,6,23,.28);
    color:#fff;
    font-weight:900;
    cursor:pointer;
    text-align:center;
    padding: 18px;
    border: 0;
    width: 100%;
    height: 100%;
    font: inherit;
    appearance: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .map-overlay:focus-visible{
    outline: 3px solid #fff;
    outline-offset: -3px;
  }
  .map-box.is-active .map-overlay{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

/* Footer */
.site-footer{
  background:#EDEDED;
  color:var(--text);
}
.site-footer a{
  color:inherit;
  text-decoration:none;
}
.site-footer a:hover{
  opacity:1;
}

.footer__nav{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap:24px;
  padding:44px 0 28px;
  border-bottom:1px solid rgba(15,23,42,.12);
}

.footer__title{
  margin:0 0 12px;
  font-size:.95rem;
  font-weight:700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.footer__section + .footer__section{
  margin-top:18px;
}

.footer__list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
  font-size:.92rem;
}
.footer__list li{
  display:flex;
  gap:8px;
  align-items:flex-start;
  opacity:.9;
}
.footer__list li::before{
  content: "-";
  opacity:.75;
  margin-top:1px;
}
.footer__list a{
  opacity:.9;
}
.footer__list a:hover{
  opacity:1;
  text-decoration:underline;
  text-underline-offset:2px;
}

.footer__bottom{
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap:18px;
  align-items:center;
  padding:22px 0 32px;
}

.footer__brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer__logo{
  width:180px;
  height:auto;
  display:block;
}

.footer__contact{
  text-align:center;
  font-size:.9rem;
  line-height:1.5;
  opacity:.85;
}
.footer__contact p{
  margin:0;
}
.footer__dev{
  font-weight:700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__social{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.footer__social a{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(11,61,145,.35);
  display:grid;
  place-items:center;
  transition: background .2s ease, border-color .2s ease;
  color:var(--blue);
}
.footer__social a:hover{
  background: rgba(11,61,145,.10);
  border-color: rgba(11,61,145,.55);
}
.footer__social i{
  font-size:18px;
  color:var(--blue);
  line-height:1;
  display:block;
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform: translate(-50%, 16px);
  background: rgba(15,23,42,.95);
  color:white;
  padding:12px 14px;
  border-radius:12px;
  opacity:0;
  transition: .25s ease;
  max-width: min(520px, calc(100% - 32px));
  z-index:9999;
}
.toast.is-visible{
  opacity:1;
  transform: translate(-50%, 0);
}

/* =========================================================
   RESPONSIVE (Tablet/Mobile)
========================================================= */
@media (max-width: 980px){
  .container{ width: min(var(--maxw), 100% - 24px); }

  .topbar__contacts{ display:none; }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
    cursor:pointer;
  }

  .nav{
    position:absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow:hidden;
    padding: 6px;
    z-index: 50;
  }
  .nav.is-open{ display:flex; }

  .nav__list{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    width:100%;
  }

  .btn.btn--primary{ display:inline-flex; }

  .dropdown__menu{
    position:static;
    min-width: 100%;
    margin-top:8px;
    opacity:1;
    transform:none;
    pointer-events:auto;
    display:none;
  }
  .dropdown.is-open .dropdown__menu{ display:grid; }

  .grid-2{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .news-grid{ grid-template-columns:1fr; }
  .footer__nav{ grid-template-columns: 1fr 1fr; }

  .hero__inner{ padding:56px 0; }
  .hero h1{ font-size: clamp(22px, 4.5vw, 32px); }

  .gallery{ grid-template-columns: 1fr; }
  .gallery img{ height: 200px; }

  .map-box iframe{ height: 360px; }

  .icon-link{
    width: 40px;
    height: 40px;
  }
  .icon-link i{
    font-size: 22px;
  }

  .news-row{
    padding: 6px 54px 10px;
    scroll-padding-left: 54px;
    scroll-padding-right: 54px;
  }
  .news-slider__btn[data-news-dir="-1"]{ left: 8px; }
  .news-slider__btn[data-news-dir="1"]{ right: 8px; }
}

@media (max-width: 1200px){
  .topbar__inner{
    gap:12px 18px;
  }
  .topbar__contacts,
  .topbar__right{
    flex: 1 1 100%;
  }
  .topbar__right{
    justify-content:space-between;
  }
  .topbar__actions{
    flex-wrap:wrap;
  }
}

/* =========================================================
   SIDEBAR (Mobile/Tablet)
========================================================= */
.sidebar-overlay{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.55);
  opacity:0;
  pointer-events:none;
  transition: opacity .22s ease;
  z-index: 9998;
}

.sidebar{
  position:fixed;
  top:0;
  left:0;
  height:100vh;
  height:100dvh;
  width: min(360px, 86vw);
  background: var(--white);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform .25s ease;
  z-index: 9999;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.sidebar.is-open{ transform: translateX(0); }
.sidebar-overlay.is-open{ opacity:1; pointer-events:auto; }

.sidebar__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.sidebar__brand img{
  height: 70px;
  width:auto;
  display:block;
}

.sidebar__close{
  width:44px;
  height:44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor:pointer;
  font-size: 18px;
}

.sidebar__top{
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}

.sidebar__topbar{
  display:grid;
  gap:14px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}
.sidebar__contacts{
  display:grid;
  gap:4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items:center;
}
.sidebar__contacts .topbar__contact{
  justify-content:center;
}
.sidebar__contacts .topbar__contact i{
  font-size: 20px;
}
.sidebar__platforms{
  display:grid;
  gap:8px;
  justify-items:center;
  text-align:center;
}
.sidebar__actions{
  display:grid;
  gap:10px;
  justify-items:center;
}
.sidebar__actions .topbar__classroom{
    width:100%;
    justify-content:center;
    text-align:center;
  }

.sidebar__title{
  font-weight: 600;
  color: var(--blue);
}

.sidebar__icons{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.sidebar__nav .nav__list{
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  padding:0;
}

.sidebar__nav .nav__link{
  width:100%;
  justify-content:space-between;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
  padding: 12px 12px;
}

.sidebar__footer{
  margin-top: auto;
  padding-top: 14px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--white);
  display:grid;
  gap:10px;
}
.sidebar__footer .topbar__classroom{
  width:100%;
  justify-content:center;
}

/* Desktop: ocultar sidebar */
@media (min-width: 981px){
  .sidebar, .sidebar-overlay{ display:none !important; }
}

/* Mobile/Tablet */
@media (max-width: 980px){
  .topbar{ display:none; }
  .topbar-mobile{ display:block; }
  .nav{ display:none !important; }

  .navbar__inner > .btn.btn--primary{
    display: none;
  }

  .sidebar__footer .btn.btn--primary{
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
}

/* Dropdowns dentro del SIDEBAR (acordeÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n) */
@media (max-width: 980px){
  .sidebar .dropdown__menu{
    position: static !important;
    min-width: 100% !important;
    margin-top: 8px;

    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;

    display: none !important;

    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 14px;
    padding: 10px;
    gap: 6px;
  }

  .sidebar .dropdown.is-open > .dropdown__menu{
    display: grid !important;
  }

  .sidebar .nav__trigger{
    justify-content: space-between;
    width: 100%;
  }

  .sidebar .nav__chevron{
    font-size: 14px;
    opacity: .85;
    transform: translateY(1px);
  }

  .sidebar .dropdown.is-open > .nav__trigger .nav__chevron{
    transform: rotate(180deg);
  }
}

@media (max-width: 1200px){
  .footer__nav{
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 980px){
  .footer__nav{
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    text-align: left;
  }

  .footer__bottom{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand{
    justify-content: center;
  }

  .footer__contact{
    text-align: center;
  }

  .footer__social{
    justify-content: center;
  }
}

@media (max-width: 640px){
  .footer__nav{
    grid-template-columns: 1fr;
  }
  .footer__logo{
    width:150px;
  }
}

/* =========================================================
   HOME (base global que ya estÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s usando)
========================================================= */
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.lead{
  font-size:1rem;
  opacity:.92;
}

/* About (texto + imagen) */
.about{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:stretch;
}

.about__text{
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.about__copy{
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.about__copy h3{
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  color: var(--blue);
}

.about__cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.about__media{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}

.about__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height: 240px;
}

/* Cards con imagen (Carreras) */
.cards-media{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  gap:22px;
  justify-content:center;
}

.card-media{
  display:grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}

.card-media:hover{
  transform: translateY(-6px);
}

.card-media__img{
  height: 240px;
  background: var(--muted);
}

.card-media__img img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.card-media__body{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 190px;
}

.card-media__body h3{
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-media__body p{
  margin: 0;
  opacity: .86;
}

.card-media__link{
  color: var(--blue);
  font-weight: 700;
  margin-top:auto;
}

/* CTA final */
.cta-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.cta-box__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 920px){
  .about{ grid-template-columns:1fr; }
  .about__media{ display:none; }
  .cards-media{ grid-template-columns:1fr; justify-content:stretch; }
  .cta-box{ flex-direction:column; align-items:flex-start; }
}

/* Mobile: slider tÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ctil, ocultar flechas */
@media (max-width: 520px){
  .news-slider__btn{ display:none; }
}

/* =========================================================
   INSTITUTO (base global que ya estÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s usando)
========================================================= */
.section-sub{
  margin:6px 0 0;
  opacity:.82;
  font-size: .95rem;
  line-height: 1.5;
}

.info-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}

/* Autoridades */
.staff-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top:14px;
}

.staff-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}

.staff-photo{
  height: 210px;
  background: var(--muted);
}

.staff-photo img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.staff-body{
  padding: 16px;
}

.staff-body h3{
  margin:0 0 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.staff-role{
  margin:0 0 10px;
  color: var(--blue);
  font-weight:700;
}

.staff-text{
  margin:0;
  opacity:.86;
}

.hint{
  margin-top:14px;
  opacity:.8;
}

/* GalerÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â­a con items (para instituto/carreras) */
.gallery-item{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--muted);
  height: 220px;
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* San MartÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â­n */
.sanmartin{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:stretch;
  margin-top:14px;
}

.sanmartin__media{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--muted);
  min-height: 320px;
}

.sanmartin__media img{
  width:100%;
  height:100%;
  object-fit: cover;
}

@media (max-width: 920px){
  .info-grid{ grid-template-columns:1fr; }
  .staff-grid{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns:1fr; }
  .gallery-item{ height: 200px; }
  .sanmartin{ grid-template-columns:1fr; }
  .sanmartin__media{ min-height: 240px; }
}

/* =========================================================
   CARRERAS (base global que ya estÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡s usando)
========================================================= */

/* Carreras: 2 cards lado a lado */
.career-list{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}

.career-card{
  display:flex;
  flex-direction:column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .15s ease;
}

.career-card:hover{
  transform: translateY(-20px);
}

.career-card__poster{
  padding:12px;
  background: var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
}

.career-card__poster img{
  width:100%;
  height:auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: #fff;
}

.career-card__body{
  padding:16px;
}

.career-card__body h3{
  margin:0 0 10px;
  color: var(--blue);
}

.career-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.career-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* Detalle carrera */
.career-detail{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
  align-items:start;
}

.career-side .career-poster{
  width:100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:#fff;
}

.career-facts{
  margin-top:12px;
  display:grid;
  gap:8px;
}

.fact{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

/* AcordeÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n */
.accordion{
  display:grid;
  gap:10px;
}

.acc-btn{
  width:100%;
  text-align:left;
  padding:14px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor:pointer;
  font-weight:800;
}

.acc-panel{
  display:none;
  padding:14px 16px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: var(--white);
}

.acc-panel h3{
  margin:10px 0 8px;
  color: var(--blue);
}

.acc-panel ul{ margin:0; }
.acc-panel li{ margin:6px 0; }

.acc-btn.is-open + .acc-panel{
  display:block;
}

/* PDF embebido */
.pdf-viewer{
  width:100%;
  height: 760px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.pdf-viewer iframe{
  width:100%;
  height:100%;
  border:0;
}

@media (max-width: 980px){
  .career-detail{ grid-template-columns: 1fr; }
  .career-list{ grid-template-columns: 1fr; }
}

@media (max-width: 920px){
  .pdf-viewer{ height: 560px; }
}
@media (max-width: 520px){
  .pdf-viewer{ height: 480px; }
}





/* Instagram feed */
.instagram-feed{
  display:grid;
  gap:14px;
}

.instagram-feed__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.instagram-feed__title{
  margin:0;
  color:var(--text);
  font-size: var(--fs-h2);
}

.instagram-feed__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(11,61,145,.25);
  color:var(--blue);
  font-weight:700;
  background:#fff;
}

.instagram-feed__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:10px;
  align-items:start;
}

.instagram-feed__item{
  position:relative;
  display:block;
  border-radius:10px;
  overflow:hidden;
  background:#dfe7f6;
  aspect-ratio: 1 / 1;
}

.instagram-feed__placeholder{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  background:#dfe7f6;
  aspect-ratio: 1 / 1;
}

.instagram-feed__item img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.instagram-feed__play{
  position:absolute;
  inset:auto auto 8px 8px;
  width:30px;
  height:30px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(15,23,42,.7);
  color:#fff;
}

.instagram-feed__play i{
  font-size:18px;
  line-height:1;
}

.instagram-feed__empty{
  display:grid;
  gap:10px;
}

.instagram-feed__empty p{
  margin:0;
  color:#4b5563;
}

@media (max-width: 980px){
  .instagram-feed__grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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