:root {
  --primary: #0c3b8c;
  --primary-2: #1a62d4;
  --accent: #10b981;
  --bg: #f5f8ff;
  --text: #13233f;
  --muted: #60708f;
  --white: #ffffff;
  --line: rgba(12, 59, 140, 0.1);
  --shadow: 0 18px 50px rgba(8, 31, 77, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 30%, #f8fbff 100%);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(19,35,63,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; font-weight: 800;
}
.brand strong { display: block; font-size: 1rem; }
.brand small { color: var(--muted); }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--muted); font-weight: 500; }
.menu a:hover { color: var(--primary); }
.menu-toggle { display: none; font-size: 1.6rem; background: none; border: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; border: none; cursor: pointer;
}
.btn-soft { background: #e8f0ff; color: var(--primary); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1px solid rgba(12,59,140,0.16);
}
.full { width: 100%; }
.hero { padding: 72px 0 36px; }
.hero-grid, .two-col, .feature-grid, .contact-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center;
}
.eyebrow, .section-tag {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  background: #e8f0ff; color: var(--primary); font-weight: 700; font-size: .92rem;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.02; margin: 16px 0; }
.hero p, .section-head p, .feature-copy p, .footer p, .two-col p { color: var(--muted); font-size: 1.03rem; line-height: 1.8; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quick-links {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px;
}
.quick-links a { color: var(--primary); font-weight: 600; }
.hero-card {
  position: relative; padding: 18px;
  background: radial-gradient(circle at top, #f0f6ff, #dfeeff 70%, #d8eaff);
  border-radius: 32px;
  border: 1px solid rgba(12,59,140,0.08);
}
.hero-float {
  position: absolute; right: 16px; bottom: 16px; padding: 16px 18px;
  max-width: 220px;
}
.hero-float strong { display: block; margin-bottom: 6px; }
.hero-float span { color: var(--muted); font-size: .92rem; }
.stats { padding: 10px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 24px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--primary); }
.stat span { color: var(--muted); }
.section { padding: 72px 0; }
.muted { background: linear-gradient(180deg, #f7faff 0%, #eef5ff 100%); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px;
}
.section-head.center { text-align: center; display: block; }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 10px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { padding: 28px; }
.info-card h3 { margin-top: 0; font-size: 1.4rem; }
.info-card p { color: var(--muted); line-height: 1.8; }
.image-panel, .image-wrap { padding: 18px; }
.program-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.program-card { overflow: hidden; }
.program-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: #eef4ff; }
.program-card div { padding: 20px; }
.program-card h3 { margin: 10px 0 8px; }
.program-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.pill {
  display: inline-flex; padding: 8px 12px; border-radius: 999px;
  background: #eef4ff; color: var(--primary); font-size: .85rem; font-weight: 700;
}
.feature-copy { padding-right: 12px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li {
  padding: 14px 16px; background: white; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative; padding-left: 48px;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 16px; top: 12px; width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; background: #e9fff6; color: var(--accent); font-weight: 800;
}
.cta-band {
  padding: 28px; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band .section-tag { background: rgba(255,255,255,0.14); color: white; }
.cta-band .btn { background: white; color: var(--primary); }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.32); color: white; background: transparent; }
.contact-cards { display: grid; gap: 14px; margin-top: 22px; }
.mini-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.mini-card span { color: var(--muted); }
.contact-form { padding: 28px; }
.contact-form h3 { margin-top: 0; }
.contact-form label {
  display: block; margin-bottom: 16px; font-size: .95rem; font-weight: 600;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(19,35,63,0.12); background: #fbfdff; font: inherit;
}
.footer {
  padding: 32px 0 48px; border-top: 1px solid rgba(19,35,63,0.08); background: #fbfdff;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
}
.footer a { display: block; color: var(--muted); margin-top: 10px; }

@media (max-width: 980px) {
  .hero-grid, .two-col, .feature-grid, .contact-grid, .cards-2, .footer-grid, .stats-grid, .program-grid {
    grid-template-columns: 1fr 1fr;
  }
  .section-head { display: block; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; left: 16px; right: 16px; top: 82px;
    flex-direction: column; align-items: flex-start; gap: 14px;
    background: rgba(255,255,255,0.98); padding: 18px; border-radius: 20px; box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .hero-grid, .two-col, .feature-grid, .contact-grid, .cards-2, .footer-grid, .stats-grid, .program-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 42px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}



/* Prioridad comercial: Programas y Bachillerato */
#programas, #oferta, #bachillerato{
  scroll-margin-top: 90px;
}

#programas .section-header h2,
#oferta .section-header h2,
#bachillerato .section-header h2{
  position: relative;
}

#programas .section-header h2::after,
#oferta .section-header h2::after,
#bachillerato .section-header h2::after{
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: currentColor;
  opacity: .18;
}





/* Logo encabezado Fundetec */
.navbar-brand{
  display:flex;
  align-items:center;
}

.navbar-logo{
  display:block;
  height:72px;
  width:auto;
}

}

/* Mejora logo FUNDETEC */
.brand{
  display:flex;
  align-items:center;
}

.logo-fundetec{
  height:85px;
  width:auto;
  display:block;
}

.topbar .nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.menu{
  display:flex;
  align-items:center;
  gap:24px;
}

@media (max-width:768px){
  .logo-fundetec{
    height:60px;
  }
}



/* Ajuste header FUNDETEC */
.topbar .nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  margin-right:34px;
}

.logo-fundetec{
  display:block;
  height:80px;
  width:auto;
}



/* Iconos propios de redes sociales */
.social-icons{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:10px;
}

.social-icon-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  text-decoration:none;
  transition:transform .2s ease, opacity .2s ease;
}

.social-icon-link:hover{
  transform:translateY(-1px) scale(1.05);
  opacity:.95;
}

.social-icon-img{
  display:block;
  width:24px;
  height:24px;
}

.logo-fundetec{
  margin-right:60px;
}

.social-icon-link{
    width:32px;
    height:32px;
  }

  .social-icon-img{
    width:22px;
    height:22px;
  }
}


/* Iconos redes sociales (imágenes oficiales) */
.social-icons{
display:flex;
align-items:center;
gap:12px;
margin-left:10px;
}

.social-link{
display:flex;
align-items:center;
justify-content:center;
width:34px;
height:34px;
}

.social-img{
width:28px;
height:28px;
object-fit:contain;
}

.logo-fundetec{
margin-right:60px;
}


/* HEADER UNIVERSITARIO PROFESIONAL */
.topbar{
background:#ffffff;
padding:14px 0;
border-bottom:4px solid #2e9e3f;
box-shadow:0 4px 14px rgba(0,0,0,0.05);
}

.topbar .nav{
display:flex;
align-items:center;
justify-content:space-between;
}

.topbar .menu{
display:flex;
align-items:center;
gap:26px;
}

.topbar .menu a{
color:#24364b;
font-weight:600;
font-size:15px;
text-decoration:none;
transition:color .2s ease;
}

.topbar .menu a:hover{
color:#2e9e3f;
}

/* logo */
.logo-fundetec{
height:78px;
margin-right:40px;
}



/* iconos redes sociales */
.social-icons{
display:flex;
align-items:center;
gap:10px;
margin-left:10px;
}

.social-img{
width:20px;
height:20px;
opacity:.8;
transition:transform .2s ease, opacity .2s ease;
}

.social-img:hover{
opacity:1;
transform:scale(1.1);
}



/* Campus virtual como item de menú */
.menu a{
padding:6px 4px;
}




/* navegación */




/* navegación */
@media (max-width: 768px){
  }




/* Franja de estadisticas premium */
.stats-strip{
  position: relative;
  margin-top: -24px;
  margin-bottom: 8px;
  padding: 0 24px 8px;
  z-index: 3;
}

.stats-strip .container{
  max-width: 1180px;
}

.stats-panel{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(135deg, #0f4c74 0%, #0d5d87 45%, #1371a5 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(12, 74, 110, 0.20);
  border: 1px solid rgba(255,255,255,0.18);
}

.stats-card{
  position: relative;
  padding: 28px 24px 26px;
  text-align: center;
  color: #ffffff;
}

.stats-card + .stats-card{
  border-left: 1px solid rgba(255,255,255,0.22);
}

.stats-card__number{
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stats-card__label{
  font-size: 1rem;
  line-height: 1.35;
  opacity: .96;
  max-width: 18ch;
  margin: 0 auto;
}

@media (max-width: 980px){
  .stats-panel{
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-card:nth-child(3),
  .stats-card:nth-child(4){
    border-top: 1px solid rgba(255,255,255,0.16);
  }

  .stats-card:nth-child(3){
    border-left: none;
  }
}

@media (max-width: 768px){
  .stats-strip{
    margin-top: -16px;
    padding: 0 16px 4px;
  }

  .stats-panel{
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .stats-card + .stats-card{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.16);
  }

  .stats-card:nth-child(3),
  .stats-card:nth-child(4){
    border-top: 1px solid rgba(255,255,255,0.16);
  }

  .stats-card{
    padding: 22px 20px;
  }

  .stats-card__number{
    font-size: 1.9rem;
  }
}



/* Slider principal FUNDETEC sin texto */
.hero-slider{
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

.hero-slider__viewport{
  width: 100%;
  overflow: hidden;
}

.hero-slider__track{
  display: flex;
  transition: transform .7s ease;
  will-change: transform;
}

.hero-slide{
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #eaf6ec 0%, #ffffff 100%);
}

.hero-slide img{
  display: block;
  width: 100%;
  max-width: 1920px;
  height: auto;
  margin: 0 auto;
}

.hero-slider__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 40, 30, .28);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}

.hero-slider__nav--prev{ left: 18px; }
.hero-slider__nav--next{ right: 18px; }

.hero-slider__dots{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}

.hero-slider__dot{
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  cursor: pointer;
  padding: 0;
}

.hero-slider__dot.is-active{
  background: #ffffff;
  transform: scale(1.12);
}

@media (max-width: 768px){
  .hero-slider__nav{
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}


/* ===== VERSION PRO FUNDETEC ===== */
:root{--fundetec-green:#2e7d32;--fundetec-green-light:#4caf50;--fundetec-dark:#2c3e50;}
html{scroll-behavior:smooth;}
body{background:#f7faf8;}
.topbar--pro{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);box-shadow:0 8px 28px rgba(16,24,40,.06);}
.topbar{border-bottom:3px solid rgba(46,125,50,.18);}
.topbar .menu a{color:var(--fundetec-dark);position:relative;}
.topbar .menu a:hover{color:var(--fundetec-green);}
.topbar .menu a::after{content:"";position:absolute;left:0;bottom:-8px;width:0;height:2px;background:linear-gradient(90deg,var(--fundetec-green),var(--fundetec-green-light));transition:width .25s ease;}
.topbar .menu a:hover::after{width:100%;}
.hero-slider{box-shadow:0 18px 40px rgba(15,23,42,.08);}
.stats-strip{margin-top:-28px;margin-bottom:0;padding-bottom:0;}
.stats-panel{background:linear-gradient(135deg,#1b4f72 0%,#0d5d87 45%,#157aad 100%);border-radius:26px;box-shadow:0 18px 40px rgba(13,93,135,.16);}
.stats-card{padding:24px 18px;}
.stats-card__number{font-size:2.3rem;}
.stats-card__label{font-size:.98rem;}
section{scroll-margin-top:110px;}
.section-header .eyebrow{display:inline-block;margin-bottom:12px;padding:8px 14px;border-radius:999px;background:rgba(46,125,50,.10);color:var(--fundetec-green);font-weight:700;font-size:.9rem;}
.section-header p{max-width:60ch;margin-inline:auto;}
.why-fundetec{padding:58px 0 34px;}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:26px;}
.why-card{background:rgba(255,255,255,.88);border:1px solid rgba(46,125,50,.10);border-radius:20px;padding:24px 20px;box-shadow:0 14px 30px rgba(15,23,42,.06);transition:transform .25s ease,box-shadow .25s ease;}
.why-card:hover{transform:translateY(-6px);box-shadow:0 20px 38px rgba(15,23,42,.10);}
.why-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(46,125,50,.14),rgba(76,175,80,.22));font-size:1.5rem;margin-bottom:14px;}
.why-card h3{margin:0 0 10px;color:var(--fundetec-dark);}
.why-card p{margin:0;color:#5c6670;line-height:1.55;}
.testimonials{padding:26px 0 56px;}
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px;}
.testimonial-card{background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%);border:1px solid rgba(46,125,50,.10);border-radius:22px;padding:24px 22px;box-shadow:0 14px 30px rgba(15,23,42,.06);}
.testimonial-stars{font-size:1rem;color:#f4b400;letter-spacing:.08em;margin-bottom:12px;}
.testimonial-card p{color:#495560;line-height:1.65;margin:0 0 16px;}
.testimonial-card strong{display:block;color:var(--fundetec-dark);}
.testimonial-card span{color:#6b7680;font-size:.95rem;}
.site-footer{margin-top:26px;background:linear-gradient(135deg,#17382b 0%,#1d4a35 55%,#245c42 100%);color:#eef6f0;padding:52px 0;}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:26px;}
.footer-logo{max-width:210px;height:auto;display:block;margin-bottom:14px;}
.site-footer h4{margin:0 0 14px;font-size:1rem;}
.site-footer p,.site-footer li,.site-footer a{color:rgba(238,246,240,.86);text-decoration:none;}
.site-footer ul{margin:0;padding:0;list-style:none;display:grid;gap:10px;}
.whatsapp-float{position:fixed;right:20px;bottom:20px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#20c05c,#1aa34f);color:#fff;font-size:1.4rem;text-decoration:none;box-shadow:0 16px 32px rgba(32,192,92,.26);z-index:120;}
.reveal-on-scroll{opacity:0;transform:translateY(24px);transition:opacity .65s ease,transform .65s ease;}
.reveal-on-scroll.is-visible{opacity:1;transform:translateY(0);}
@media (max-width:1100px){.why-grid{grid-template-columns:repeat(2,1fr);}.testimonials-grid{grid-template-columns:1fr;}.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:768px){.why-fundetec{padding:44px 0 26px;}.why-grid,.footer-grid{grid-template-columns:1fr;}.site-footer{padding:40px 0;}}



/* Conversion comercial */
.conversion-strip{
  margin-top: 8px;
  padding: 8px 24px 10px;
}

.conversion-strip__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.conversion-pill{
  display:block;
  text-decoration:none;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(46,125,50,.12);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 26px rgba(15,23,42,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.conversion-pill:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15,23,42,.10);
  border-color: rgba(46,125,50,.25);
}

.conversion-pill strong{
  display:block;
  color: var(--fundetec-dark);
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.conversion-pill span{
  display:block;
  color:#5f6973;
  font-size: .95rem;
}

.conversion-pill--accent{
  background: linear-gradient(135deg, var(--fundetec-green) 0%, var(--fundetec-green-light) 100%);
  border-color: transparent;
}

.conversion-pill--accent strong,
.conversion-pill--accent span{
  color:#fff;
}

#programas, #bachillerato{
  scroll-margin-top: 120px;
}

#programas .section-header,
#bachillerato .section-header{
  margin-top: 10px;
}

@media (max-width: 980px){
  .conversion-strip__grid{
    grid-template-columns: 1fr;
  }
}


/* Programas filtro premium */
.programs-showcase{
  padding: 34px 0 54px;
}

.programs-filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin: 24px 0 28px;
}

.filter-btn{
  border:none;
  background:#e9f3ec;
  color:#24553d;
  padding:10px 18px;
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  transition:all .22s ease;
}

.filter-btn:hover,
.filter-btn.is-active{
  background:linear-gradient(135deg, #0f5d87, #1f78a8);
  color:#fff;
  box-shadow:0 10px 20px rgba(15,93,135,.16);
}

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

.program-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  transition:transform .25s ease, box-shadow .25s ease;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.program-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 38px rgba(15,23,42,.12);
}

.program-card__media{
  position:relative;
  height:185px;
  overflow:hidden;
  background:linear-gradient(135deg,#eaf6ec,#f6fbf8);
}

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

.program-card__tag{
  position:absolute;
  top:14px;
  left:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(15,93,135,.95);
  color:#fff;
  padding:8px 14px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  box-shadow:0 8px 18px rgba(15,93,135,.18);
}

.program-card__body{
  padding:20px 20px 22px;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}

.program-card__meta{
  margin:0 0 8px;
  color:#6b7680;
  font-size:.92rem;
}

.program-card h3{
  margin:0 0 14px;
  color:#1f2937;
  font-size:1.15rem;
  line-height:1.22;
  letter-spacing:-0.01em;
  min-height:3.7em;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.program-card__info{
  display:grid;
  gap:8px;
  color:#344054;
  font-size:.95rem;
  margin-bottom:18px;
}

.program-card__cta{
  display:inline-block;
  text-decoration:none;
  background:linear-gradient(135deg, var(--fundetec-green), var(--fundetec-green-light));
  color:#fff;
  padding:11px 16px;
  border-radius:12px;
  font-weight:700;
  box-shadow:0 10px 20px rgba(46,125,50,.18);
  margin-top:auto;
  text-align:center;
}

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

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

@media (max-width:768px){
  .programs-showcase{
    padding:24px 0 40px;
  }
  .programs-grid{
    grid-template-columns: 1fr;
  }
  .program-card h3{
    font-size:1.05rem;
    min-height:auto;
  }
}


/* Modal de programas */
.program-card__cta--modal{
  width: 100%;
  border: none;
  cursor: pointer;
}

.program-modal{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.program-modal.is-open{
  display: block;
}

.program-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.program-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(15,23,42,.28);
  padding: 28px;
}

.program-modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 93, 135, .08);
  color: #0f5d87;
  font-size: 1.8rem;
  cursor: pointer;
}

.program-modal__header{
  padding-right: 56px;
  margin-bottom: 22px;
}

.program-modal__eyebrow{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(46,125,50,.10);
  color: var(--fundetec-green);
  font-weight: 700;
  margin-bottom: 12px;
}

.program-modal__header h3{
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.08;
  color: #18212b;
}

.program-modal__header p{
  margin: 0;
  color: #5f6973;
}

.program-modal__meta{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.program-meta-card{
  background: #fff;
  border: 1px solid rgba(15,93,135,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.program-meta-card strong{
  display: block;
  font-size: .86rem;
  color: #667085;
  margin-bottom: 6px;
}

.program-meta-card span{
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.program-modal__tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.program-tab{
  border: none;
  background: #e9f3ec;
  color: #24553d;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.program-tab.is-active{
  background: linear-gradient(135deg, #0f5d87, #1f78a8);
  color: #fff;
}

.program-tabpanel{
  display: none;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15,93,135,.08);
  padding: 20px;
  box-shadow: 0 12px 24px rgba(15,23,42,.04);
}

.program-tabpanel.is-active{
  display: block;
}

.program-tabpanel h4{
  margin: 0 0 14px;
  color: #1f2937;
}

.program-list{
  margin: 0;
  padding-left: 18px;
  color: #46515c;
  line-height: 1.65;
  display: grid;
  gap: 8px;
}

.program-modal__footer{
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

.program-modal__primary,
.program-modal__secondary{
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.program-modal__primary{
  background: linear-gradient(135deg, var(--fundetec-green), var(--fundetec-green-light));
  color: #fff;
}

.program-modal__secondary{
  background: rgba(15,93,135,.08);
  color: #0f5d87;
}

body.modal-open{
  overflow: hidden;
}

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

@media (max-width: 640px){
  .program-modal__dialog{
    width: min(100% - 20px, 100%);
    margin: 10px auto;
    padding: 20px;
    border-radius: 18px;
  }

  .program-modal__header h3{
    font-size: 1.55rem;
  }

  .program-modal__meta{
    grid-template-columns: 1fr;
  }

  .program-modal__footer{
    flex-direction: column;
  }

  .program-modal__primary,
  .program-modal__secondary{
    text-align: center;
  }
}



/* Ajustes solicitados sobre base estable */
.program-card__body{
  display:flex;
  flex-direction:column;
  gap:0;
}

.program-card__meta{
  margin:0 0 4px;
  color:#667085;
  font-size:.9rem;
  font-weight:500;
}

.program-card h3{
  margin:0 0 10px;
  color:#1f2937;
  font-size:1.15rem;
  line-height:1.2;
  font-weight:800;
  letter-spacing:-0.01em;
  min-height:auto;
  display:block;
  overflow:visible;
}

.program-card__info{
  display:block;
  color:#344054;
  font-size:.95rem;
  margin:0 0 14px;
  line-height:1.35;
}

.programs-filters{
  justify-content:center;
}

@media (max-width:768px){
  .program-card h3{
    font-size:1.05rem;
  }
}



/* Ajuste de línea inferior en tarjetas */
.program-card__info{
  display:block;
  color:#1f2937;
  font-size:.95rem;
  font-weight:700;
  margin:0 0 14px;
  line-height:1.3;
}


/* Ajuste linea semestres ciudad compacto */
.program-card__info{
  font-size:0.85rem;
  font-weight:400;
  color:#4b5563;
  margin:4px 0 12px;
  white-space:nowrap;
}



/* Iconos semestres y ciudad */
.program-card__info{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:0.85rem;
  font-weight:400;
  color:#4b5563;
  margin:4px 0 12px;
  white-space:nowrap;
}

.info-item{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.info-icon{
  width:14px;
  height:14px;
  stroke:#6b7280;
}

.info-sep{
  margin:0 4px;
  color:#9ca3af;
}



/* Ajuste imagen categoría cubriendo todo el marco */
.program-card__media{
  background: transparent !important;
}

.program-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}



/* Reducción de espacios en blanco en tarjetas */
.program-card{
  min-height: auto;
}

.program-card__media{
  height: 240px;
}

.program-card__body{
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.program-card__meta{
  margin: 0 0 4px;
  font-size: .88rem;
  line-height: 1.2;
}

.program-card h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.15;
  min-height: auto;
}

.program-card__info{
  margin: 0 0 10px;
  font-size: .84rem;
  line-height: 1.2;
}

.program-card__cta{
  margin-top: 0;
  padding: 11px 14px;
  border-radius: 14px;
}

@media (max-width: 768px){
  .program-card__media{
    height: 220px;
  }
}


/* Ajuste imagen tarjeta a frame completo */
.program-card{
  padding: 0;
  overflow: hidden;
}

.program-card__media{
  width: 100%;
  height: 250px;
  margin: 0;
  border-radius: 0;
  background: transparent !important;
}

.program-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
  display: block;
}

.program-card__body{
  padding: 16px 20px 18px;
}

@media (max-width: 768px){
  .program-card__media{
    height: 220px;
  }
}



/* Corrección real para que la imagen ocupe todo el frame */
.program-card{
  padding: 0 !important;
  overflow: hidden !important;
}

.program-card__media{
  position: relative !important;
  width: 100% !important;
  height: 250px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.program-card__media img{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.program-card__tag{
  z-index: 3 !important;
}

.program-card__body{
  padding: 16px 20px 18px !important;
}

@media (max-width: 768px){
  .program-card__media{
    height: 220px !important;
  }
}


/* WhatsApp oficial FUNDETEC */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, #20c05c, #1aa34f);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(32,192,92,.28);
  font-weight: 800;
}

.whatsapp-float__icon{
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 1rem;
}

.whatsapp-float__text{
  font-size: .96rem;
  line-height: 1;
}

@media (max-width: 768px){
  .whatsapp-float{
    right: 14px;
    bottom: 14px;
    padding: 13px 16px;
  }

  .whatsapp-float__text{
    display: none;
  }
}



/* Franja azul degradada programas */
.programs-band-azul{
  width:100%;
  background:linear-gradient(135deg,#0f4c81,#1f7ab8);
  margin:30px 0 10px;
}

.programs-band-azul__inner{
  max-width:1200px;
  margin:auto;
  padding:40px 20px;
  text-align:center;
  color:white;
}

.programs-band-azul__inner h2{
  margin:0;
  font-size:32px;
  font-weight:700;
}

.programs-band-azul__line{
  display:block;
  width:80px;
  height:3px;
  background:white;
  margin:14px auto;
  border-radius:6px;
}

.programs-band-azul__inner p{
  margin:0;
  opacity:.9;
  font-size:16px;
}



/* Sistema de doble color estratégico */
.text-white-soft{
  color: #ffffff;
}

.text-dark{
  color: #1f2937;
}

.text-accent-green{
  color: #7dff9a;
}

.text-highlight-light{
  color: #d4ffe1;
}

.programs-band-azul__inner h2{
  letter-spacing: -0.02em;
}

.programs-band-azul__inner p .text-highlight-light{
  font-weight: 700;
}

.stats-card__number{
  color: #ffffff;
}

.stats-card__label{
  color: rgba(255,255,255,.88);
}

.stats-accent-word{
  color: #9df7b0;
  font-weight: 800;
}

.conversion-pill strong .text-accent-green{
  color: #2e7d32;
}

.conversion-pill--accent .text-highlight-light{
  color: #d4ffe1;
}

.conversion-pill strong{
  letter-spacing: -0.01em;
}



/* Jerarquía tipográfica reforzada */
.programs-band-azul__inner h2{
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.filter-btn{
  font-weight: 600;
}

.program-card__meta{
  font-weight: 500;
  text-transform: none;
  letter-spacing: .01em;
}

.program-card h3{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.program-card__cta{
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
}

.stats-card__number{
  font-weight: 800;
}

.stats-card__label{
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .03em;
}

.section-header h2,
.why-card h3,
.testimonial-card strong,
.site-footer h4{
  font-weight: 700;
}



/* Filtros premium de categorías */
.programs-filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px 14px;
  margin: 28px 0 34px;
}

.filter-btn{
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(20, 60, 40, 0.08);
  background: rgba(255,255,255,0.82);
  color: #24553d;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(6px);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.filter-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border-color: rgba(15, 76, 129, 0.12);
}

.filter-btn.is-active{
  background: linear-gradient(135deg, #0f4c81, #1f7ab8);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.18);
}

.filter-btn:focus-visible{
  outline: 3px solid rgba(31, 122, 184, 0.18);
  outline-offset: 2px;
}

@media (max-width: 768px){
  .programs-filters{
    gap: 10px;
    margin: 20px 0 26px;
  }

  .filter-btn{
    padding: 12px 18px;
    font-size: .92rem;
  }
}



/* Ajuste hover filtros premium */
.filter-btn:hover{
  color: #24553d !important;
}

.filter-btn.is-active:hover{
  color: #ffffff !important;
}


/* Sección compacta Why FUNDETEC */
.why-fundetec-compact{
  padding: 24px 0 34px;
}

.why-fundetec-compact__header{
  text-align: center;
  margin-bottom: 20px;
}

.why-fundetec-compact__eyebrow{
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(46,125,50,.10);
  color: #2e7d32;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.why-fundetec-compact__header h2{
  margin: 0 0 8px;
  color: #132c4f;
  font-size: 1.95rem;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.why-fundetec-compact__header p{
  margin: 0 auto;
  max-width: 760px;
  color: #5f6973;
  font-size: 1rem;
  line-height: 1.45;
}

.why-fundetec-compact__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.why-mini-card{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.why-mini-card__icon{
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg,#eef7f1,#eef5ff);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.why-mini-card h3{
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.18;
  color: #16335d;
  font-weight: 800;
}

.why-mini-card p{
  margin: 0;
  color: #5f6973;
  line-height: 1.45;
  font-size: .95rem;
}

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

@media (max-width: 768px){
  .why-fundetec-compact{
    padding: 18px 0 28px;
  }
  .why-fundetec-compact__header h2{
    font-size: 1.6rem;
  }
  .why-fundetec-compact__grid{
    grid-template-columns: 1fr;
  }
}


/* Franjas horizontales de secciones */
.section-band{
  width: 100%;
  margin: 26px 0 16px;
  overflow: hidden;
}

.section-band__inner{
  min-height: 116px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-band__eyebrow{
  display: inline-block;
  margin-bottom: 8px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  opacity: .9;
}

.section-band h2{
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.section-band__line{
  display: inline-block;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  margin: 14px 0 12px;
  background: currentColor;
  opacity: .9;
}

.section-band p{
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.45;
  opacity: .92;
}

.section-band--green{
  background: linear-gradient(135deg, #1f7a4f 0%, #3bbf68 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(31,122,79,.16);
}

.section-band--blue{
  background: linear-gradient(135deg, #0f4c81 0%, #2f80ed 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15,76,129,.16);
}

.section-band--dark{
  background: linear-gradient(135deg, #132c4f 0%, #1f4f84 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(19,44,79,.16);
}

@media (max-width: 768px){
  .section-band{
    margin: 18px 0 12px;
  }

  .section-band__inner{
    min-height: 102px;
    padding: 24px 18px;
  }

  .section-band h2{
    font-size: 1.6rem;
  }

  .section-band p{
    font-size: .92rem;
  }
}


.identity-extended{
  margin-top:8px;
  font-size:1rem;
  color:#5f6973;
  max-width:760px;
}



/* Footer premium FUNDETEC */
.site-footer--premium{
  margin-top: 26px;
  background:
    radial-gradient(circle at top right, rgba(63, 132, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #0f1f38 0%, #16335d 50%, #0f4c81 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.site-footer--premium::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 32%);
  pointer-events: none;
}

.site-footer__top{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 52px 24px 30px;
}

.site-footer__brand{
  max-width: 420px;
}

.site-footer__logo{
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.16));
}

.site-footer__desc{
  margin: 0 0 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}

.site-footer__contact{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__contact a{
  color: #d9ebff;
  text-decoration: none;
  font-weight: 600;
}

.site-footer__col h4{
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #ffffff;
}

.site-footer__col ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site-footer__col a{
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
  display: inline-block;
}

.site-footer__col a:hover,
.site-footer__contact a:hover{
  color: #9fd2ff;
  transform: translateX(2px);
}

.site-footer__bottom{
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

@media (max-width: 1100px){
  .site-footer__top{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px){
  .site-footer__top{
    grid-template-columns: 1fr;
    padding: 40px 18px 24px;
  }

  .site-footer__bottom{
    padding: 16px 18px 20px;
    flex-direction: column;
  }
}



/* Bachillerato con botones y modal */
.feature-grid--bachillerato{
  align-items: center;
}

.bachillerato-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.bachillerato-actions .btn{
  min-width: 240px;
  justify-content: center;
}

.bachillerato-inline-links{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bachillerato-inline-links a{
  color: #0f4c81;
  text-decoration: none;
  font-weight: 700;
}

.bach-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 300;
}

.bach-modal.is-open{
  display: block;
}

.bach-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 40, .68);
  backdrop-filter: blur(4px);
}

.bach-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  max-height:90vh;
}

.bach-modal__close{
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: rgba(15, 23, 42, .08);
  color: #16335d;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}

.bach-modal__content{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  min-height:540px;
  max-height:90vh;
  overflow-y:auto;
}

.bach-modal__media{
  background:#000;
  width:100%;
  height:100%;
  overflow:hidden;
}

.bach-modal__media img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
}

.bach-modal__aside{
  padding: 42px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.bach-modal__tag{
  display: inline-block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 76, 129, .08);
  color: #0f4c81;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.bach-modal__aside h3{
  margin: 0 0 12px;
  color: #132c4f;
  font-size: 2rem;
  line-height: 1.08;
}

.bach-modal__aside p{
  margin: 0 0 22px;
  color: #5f6973;
  line-height: 1.55;
}

.bach-modal__actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bach-modal__actions .btn{
  justify-content: center;
}

body.bach-modal-open{
  overflow: hidden;
}

@media (max-width: 900px){
  .bach-modal__content{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  min-height:540px;
  max-height:90vh;
  overflow-y:auto;
}

  .bach-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  max-height:90vh;
}

  .bach-modal__media{
  background:#000;
  width:100%;
  height:100%;
  overflow:hidden;
}

  .bachillerato-actions .btn{
    min-width: 0;
    width: 100%;
  }
}



/* Ajuste línea de info de programas */
.program-card__info{
  gap: 8px;
}

.program-card__info .info-item:last-child{
  white-space: nowrap;
}

.program-card__info .info-icon{
  width: 15px;
  height: 15px;
}



/* Contacto sin formulario */
.contact-grid--single{
  grid-template-columns: 1fr;
}

.contact-cards .mini-card a{
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.contact-cards .mini-card a:hover{
  text-decoration: underline;
}



/* Ajuste del menú móvil */
@media (max-width: 900px){
  .topbar--pro .nav{
    min-height: 84px;
    align-items: center;
    position: relative;
  }

  .brand{
    max-width: calc(100% - 72px);
    position: relative;
    z-index: 1201;
  }

  .logo-fundetec{
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .menu-toggle{
    position: relative;
    z-index: 1202;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: min(68vh, 460px);
    overflow-y: auto;
    z-index: 1200;
  }

  .menu.is-open,
  .menu.active,
  .menu.open{
    display: flex;
  }

  .menu a{
    display: block;
    padding: 11px 10px;
    margin: 0;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .menu a:hover{
    background: rgba(15, 76, 129, 0.06);
  }

  .menu .btn-campus,
  .menu a[href*="campus"],
  .menu a:last-child{
    margin-top: 8px;
    padding: 11px 14px;
    font-size: .98rem;
    border-radius: 999px;
  }
}

@media (max-width: 640px){
  .topbar--pro .nav{
    min-height: 76px;
  }

  .logo-fundetec{
    max-width: 220px;
  }

  .menu{
    left: 10px;
    right: 10px;
    top: calc(100% + 6px);
    padding: 10px;
    border-radius: 18px;
    max-height: min(64vh, 420px);
  }

  .menu a{
    padding: 10px 8px;
    font-size: .98rem;
  }
}



/* Corrección definitiva del menú móvil */
@media (max-width: 900px){
  .menu{
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(10px) !important;
    flex-direction: column !important;
    gap: 4px !important;
    max-height: min(68vh, 460px) !important;
    overflow-y: auto !important;
    z-index: 1200 !important;
  }

  .menu.open{
    display: flex !important;
  }

  .menu-toggle{
    display: inline-flex !important;
    position: relative !important;
    z-index: 1202 !important;
  }

  .topbar--pro .nav{
    position: relative !important;
    min-height: 76px !important;
    align-items: center !important;
  }

  .brand{
    max-width: calc(100% - 72px) !important;
    position: relative !important;
    z-index: 1201 !important;
  }

  .logo-fundetec{
    max-width: 220px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .menu a{
    display: block !important;
    padding: 11px 10px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }

  .menu .btn,
  .menu a[href*="campus"],
  .menu a:last-child{
    margin-top: 8px !important;
    border-radius: 999px !important;
  }
}

@media (min-width: 901px){
  .menu{
    display: flex !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .menu-toggle{
    display: none !important;
  }
}


.program-tab.is-hidden,
.program-tabpanel.is-hidden{
  display:none !important;
}



/* Fix clic menú hamburguesa tras actualización de planes */
@media screen and (max-width: 900px){
  .menu.open{
    display:flex !important;
  }
}


/* Modal de asesores */
.contact-advisors-cta{
  margin: 14px 0 0;
}

.advisors-modal{
  position: fixed;
  inset: 0;
  z-index: 350;
  display: none;
}

.advisors-modal.is-open{
  display: block;
}

.advisors-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(5px);
}

.advisors-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(15,23,42,.28);
  padding: 28px;
}

.advisors-modal__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(15,93,135,.08);
  color: #0f5d87;
  font-size: 1.8rem;
  cursor: pointer;
}

.advisors-modal__header{
  padding-right: 52px;
  margin-bottom: 18px;
}

.advisors-modal__eyebrow{
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16,185,129,.10);
  color: #0a7f5a;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: .06em;
  font-size: .82rem;
}

.advisors-modal__header h3{
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.08;
  color: #18212b;
}

.advisors-modal__header p{
  margin: 0 0 16px;
  color: #5f6973;
}

.advisors-modal__search input{
  width: 100%;
  border: 1px solid rgba(15,93,135,.12);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
  background: #fff;
}

.advisors-modal__section{
  margin-top: 22px;
}

.advisors-modal__section h4{
  margin: 0 0 14px;
  color: #16335d;
  font-size: 1.05rem;
}

.advisors-list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.advisor-card{
  background: #fff;
  border: 1px solid rgba(15,93,135,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.advisor-card__role{
  display: inline-block;
  margin-bottom: 8px;
  color: #0f5d87;
  font-size: .8rem;
  font-weight: 800;
}

.advisor-card h5{
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.2;
  color: #1f2937;
}

.advisor-card p{
  margin: 0 0 14px;
  color: #667085;
  font-weight: 600;
}

.advisor-card .btn{
  width: 100%;
}

.advisor-card.is-hidden{
  display: none;
}

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

@media (max-width: 768px){
  .advisors-modal__dialog{
    width: min(100% - 16px, 100%);
    padding: 20px;
    border-radius: 18px;
    margin: 8px auto;
  }

  .advisors-modal__header h3{
    font-size: 1.45rem;
  }

  .advisors-list{
    grid-template-columns: 1fr;
  }
}


/* Botón asesores arriba */
.advisor-cta-top{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0f5d87,#0a7f5a);
    color:#fff;
    border-radius:18px;
    padding:22px;
    font-size:1.1rem;
}

.advisor-cta-top .btn{
    background:#fff;
    color:#0f5d87;
    font-weight:700;
    padding:14px 22px;
    border-radius:999px;
}



/* Testimonios en video */
.testimonials-video{
  padding: 72px 0;
}

.section-heading--center{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.section-heading--center h2{
  margin: 10px 0 12px;
}

.section-heading--center p{
  margin: 0;
  color: var(--muted);
}

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

.video-testimonial-card{
  overflow: hidden;
  border-radius: 24px;
}

.video-testimonial-card__frame{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0f172a;
  overflow: hidden;
}

.video-testimonial-card__frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-testimonial-card__body{
  padding: 18px 18px 20px;
}

.video-testimonial-card__body h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.video-testimonial-card__body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

@media (max-width: 768px){
  .testimonials-video{
    padding: 56px 0;
  }

  .video-testimonials-grid{
    grid-template-columns: 1fr;
  }
}
