/* =====================================================================
   ICSE · Capa móvil compartida (se carga la última en todas las páginas)
   Menú desplegable, barra de acciones fija, carruseles, tamaños táctiles
   y formularios sin zoom en iPhone. Todo vive bajo max-width:980px.
   ===================================================================== */
.mm,.m-bar{display:none}

@media(max-width:980px){
  /* ---- Margen lateral garantizado: algunas secciones internas anulaban el del contenedor ---- */
  .wrap{padding-left:20px !important;padding-right:20px !important}

  /* ---- Cabecera móvil: la barra superior pasa al menú ---- */
  .utility{display:none}
  .nav{height:64px}
  .burger{display:flex !important;width:44px;height:44px;align-items:center;justify-content:center;border-radius:12px;cursor:pointer;margin-right:-8px}
  .burger:focus-visible{outline:3px solid #5FB4EC}
  .nav-cta .btn-matricula{display:none}   /* en móvil Matricúlate vive en la barra fija de abajo */
  .mega{display:none !important}
  /* ---- Recorrido del edificio en móvil: pantalla completa entre cabecera y barra ---- */
  .tower{height:520vh !important}
  .tower-sticky{position:sticky !important;top:64px !important;height:calc(100svh - 64px - 72px - env(safe-area-inset-bottom)) !important;display:block !important;overflow:hidden}
  .tower-stage{position:absolute !important;inset:0;height:auto !important}
  .tower-canvas{display:block !important}
  .tower-fallback{display:none !important}
  .tower-vignette{background:linear-gradient(180deg,rgba(7,15,28,.75) 0%,rgba(7,15,28,0) 26%,rgba(7,15,28,0) 46%,rgba(7,15,28,.92) 78%) !important}
  .tower-panel{position:absolute !important;inset:0;padding:16px 18px 18px !important;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
  .tower-panel a,.tower-panel button{pointer-events:auto}
  .tower-head{padding-right:120px}
  .tower-head h2{font-size:24px !important;margin-top:8px !important}
  .tower-intro{display:none}
  .tower-hint{margin-top:10px;font-size:11px}
  .floor-cards{margin-top:0 !important;min-height:190px !important;margin-right:54px}
  .floor-card .fnum .lvl{font-size:36px}
  .floor-card h3{font-size:19px;margin-top:6px}
  .floor-card p{font-size:13.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .floor-card .flink{margin-top:12px;padding:9px 16px;font-size:13px}
  .elevator{display:flex !important;left:auto !important;right:10px;top:50% !important;gap:4px;padding:6px 5px}
  .elv-btn{width:36px;height:28px;font-size:12px}
  .tower-close{top:14px !important;right:14px !important;padding:8px 12px !important;font-size:12px !important}

  /* ---- Doble titulación plegada en móvil ---- */
  .dual-toggle{display:inline-flex !important;align-items:center;gap:8px;margin-top:14px;min-height:44px;padding:0 18px;border-radius:999px;border:1.5px solid var(--fp-line,#C9E1F3);background:#fff;color:var(--fp,#0069B4);font-family:inherit;font-weight:800;font-size:14px;cursor:pointer}
  .dual-toggle svg{width:16px;height:16px;transition:transform .2s}
  #dual.is-open .dual-toggle svg{transform:rotate(180deg)}
  #dual:not(.is-open) .dual-more,#dual:not(.is-open) #dualCards{display:none !important}
  #dual .dual-more{margin-top:14px}
  #dual .feature-grid{gap:18px !important}
  #dual .dual{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #dual .dual-card{padding:16px 12px}
  #dual .dual-card .flag{width:40px;height:40px;margin-bottom:10px}
  #dual .dual-card .t{font-size:11.5px}
  #dual .dual-card .s{font-size:11px}
  #dual .dual-card .u{font-size:9.5px;margin-top:10px;padding-top:10px}


  /* ---- Menú desplegable ---- */
  .mm{display:block;position:fixed;inset:0;z-index:140;background:rgba(8,19,32,.5);opacity:0;transition:opacity .25s}
  .mm[hidden]{display:none}
  .mm.open{opacity:1}
  .mm-panel{position:absolute;top:0;right:0;bottom:0;width:min(400px,92vw);background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .28s cubic-bezier(.16,.84,.44,1);box-shadow:-30px 0 60px -30px rgba(0,0,0,.5)}
  .mm.open .mm-panel{transform:none}
  html.mm-lock,html.mm-lock body{overflow:hidden}
  .mm-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 12px 20px;border-bottom:1px solid #E3EBF3}
  .mm-logo img{height:36px;width:auto}
  .mm-close{width:44px;height:44px;border-radius:50%;border:0;background:#F2F7FC;color:#13263d;display:grid;place-items:center;cursor:pointer}
  .mm-close svg{width:18px;height:18px}
  .mm-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:16px 20px calc(24px + env(safe-area-inset-bottom))}
  .mm-ctas{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
  .mm-matri,.mm-info{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:999px;font-weight:800;font-size:13px;letter-spacing:.04em;text-transform:uppercase;text-align:center;line-height:1.15;padding:0 10px}
  .mm-matri{background:#EC6216;color:#fff;box-shadow:0 12px 24px -12px rgba(236,98,22,.8)}
  .mm-matri svg{width:17px;height:17px;flex-shrink:0}
  .mm-info{background:#fff;color:#13263d;border:1.5px solid #C3D2E0}
  .mm-k{font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin:16px 2px 8px}
  .mm-k.gr{color:#EC6216}
  .mm-k.fp{color:#0069B4}
  .mm-link,.mm-quiz{display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 12px;border-radius:16px;margin-bottom:8px;border:1.5px solid #E3EBF3;color:#13263d}
  .mm-link .ic,.mm-quiz .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}
  .mm-link .ic svg,.mm-quiz .ic svg{width:20px;height:20px}
  .mm-link.gr .ic{background:#FFF3EA;color:#EC6216}
  .mm-link.fp .ic{background:#EAF4FB;color:#0069B4}
  .mm-link .tx,.mm-quiz .tx{flex:1;display:flex;flex-direction:column;line-height:1.25;min-width:0}
  .mm-link b,.mm-quiz b{font-size:15px;font-weight:800}
  .mm-link small,.mm-quiz small{font-size:12.5px;color:#5a6b7d;margin-top:1px}
  .mm .go{width:18px;height:18px;color:#B9C7D6;flex-shrink:0}
  .mm-link:active{background:#F4F7FA}
  .mm-areas{margin:0 0 8px;border-radius:14px;background:#F4F7FA}
  .mm-areas summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 14px;font-weight:700;font-size:14px;color:#0069B4;cursor:pointer}
  .mm-areas summary::-webkit-details-marker{display:none}
  .mm-areas[open] summary .go{transform:rotate(90deg)}
  .mm-area-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 10px 12px}
  .mm-area{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border-radius:10px;background:#fff;font-size:13.5px;font-weight:600;color:#13263d}
  .mm-area .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}
  .mm-quiz{margin-top:16px;border:0;background:linear-gradient(120deg,#FFF3EA,#EAF4FB)}
  .mm-quiz .ic{background:linear-gradient(135deg,#0069B4,#EC6216);color:#fff}
  .mm-od{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 16px;border-radius:999px;margin-top:10px;background:linear-gradient(90deg,#0069B4,#1488D4);color:#fff;font-size:14px}
  .mm-od b{font-weight:800}
  .mm-od span:not(.ld){white-space:nowrap;font-size:13.5px}
  .mm-od svg:not(.go){width:17px;height:17px}
  .mm-od .go{color:rgba(255,255,255,.8);margin-left:auto}
  .mm-od .ld{width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.25)}
  .mm-util{display:flex;flex-direction:column;margin-top:18px;border-top:1px solid #E3EBF3}
  .mm-util a{display:flex;align-items:center;gap:12px;min-height:50px;border-bottom:1px solid #E3EBF3;font-size:15px;font-weight:600;color:#13263d}
  .mm-util svg{width:19px;height:19px;color:#5a6b7d}
  .mm-campus{border-bottom:1px solid #E3EBF3}
  .mm-campus summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:50px;font-size:15px;font-weight:600;color:#13263d;cursor:pointer}
  .mm-campus summary::-webkit-details-marker{display:none}
  .mm-campus summary svg:first-child{width:19px;height:19px;color:#5a6b7d}
  .mm-campus summary .go{margin-left:auto}
  .mm-campus[open] summary .go{transform:rotate(90deg)}
  .mm-campus-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 0 12px}
  .mm-campus-list a{display:flex;align-items:center;min-height:44px !important;padding:0 10px;border-radius:10px;background:#F4F7FA;border:0 !important;font-size:13px !important;font-weight:700 !important}
  .mm-lang{display:flex;gap:8px;margin-top:16px}
  .mm-lang a{flex:1;min-height:44px;display:grid;place-items:center;border-radius:12px;border:1.5px solid #E3EBF3;font-weight:800;font-size:13px;color:#5a6b7d}
  .mm-lang a.on{border-color:#0069B4;color:#0069B4;background:#EAF4FB}

  /* ---- Barra de acciones fija (sustituye a los botones flotantes) ---- */
  .m-bar{display:grid;grid-template-columns:50px minmax(0,1fr) minmax(0,1fr);gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:90;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-top:1px solid #E3EBF3;box-shadow:0 -12px 30px -18px rgba(0,58,102,.35)}
  .m-bar a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;border-radius:999px;font-weight:800;font-size:15px;letter-spacing:0;white-space:nowrap}
  .m-bar svg{width:18px;height:18px;flex-shrink:0}
  .m-wa{background:#25D366;color:#fff}
  .m-wa svg{width:24px;height:24px}
  .m-info{background:#fff;color:#13263d;border:1.5px solid #C3D2E0}
  .m-matri{background:#EC6216;color:#fff;box-shadow:0 10px 22px -12px rgba(236,98,22,.85)}
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .spot-fab,.lead-fab,.wa-fab{display:none !important}

  /* ---- Formularios: 16 px evita el zoom automático del iPhone ---- */
  input,select,textarea,.field{font-size:16px !important}
  .field{min-height:48px}
}

@media(max-width:640px){
  /* ---- Ritmo vertical más corto ---- */
  .sec{padding:52px 0}
  .sec-head{margin-bottom:28px}
  .sec-head h2,.gr-head h2,.ul-head h2,.faq-left h2,.disc-head h2,.final h2,.feature h2{font-size:30px !important}
  .sec-head p,.gr-head p,.ul-head p{font-size:15px}
  .promo-bar{font-size:12.5px;padding:8px 14px}

  /* ---- Hero más compacto ---- */
  .hero .hero-claim{font-size:36px !important;margin-bottom:14px}
  .hero .lead{font-size:15.5px;margin-bottom:20px}
  .hero-in{padding:28px 0 54px}
  .hero-copy .eyebrow{margin-bottom:14px}
  .hero-trust{display:grid !important;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:22px}
  .hero-trust .t .n{font-size:24px}
  .hero-trust .t .l{font-size:11px}
  .chip{min-height:40px}
  /* Matricúlate (izq.) + ¿No sabes qué estudiar? (der.) en la misma fila */
  .hero-enroll{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 22px !important;align-items:stretch !important}
  .hero-enroll .he-tx{display:none}
  .btn-matricula-xl{width:auto !important;min-height:52px;padding:10px 12px !important;font-size:12.5px !important;letter-spacing:.03em !important;gap:7px !important;justify-content:center}
  .btn-matricula-xl .ic{width:26px;height:26px}
  .btn-matricula-xl .ic svg{width:15px;height:15px}
  .btn-matricula-xl .ar{display:none}
  .he-quiz{display:flex;align-items:center;justify-content:center;gap:7px;min-height:52px;padding:10px 12px;border-radius:999px;background:#fff;color:#0069B4;font-weight:800;font-size:12.5px;line-height:1.15;text-align:center;box-shadow:0 14px 30px -16px rgba(0,0,0,.5)}
  .he-quiz svg{width:16px;height:16px;flex-shrink:0;color:#EC6216}
  /* La tarjeta grande del test se oculta: se entra desde el botón "¿No sabes qué estudiar?" y el buscador sube a su sitio */
  .hero .quiz-card{display:none !important}
  .hero .ft{padding:10px !important;gap:8px !important}
  .hero .ft .ic{width:30px !important;height:30px !important}
  .hero .ft .t{font-size:14px !important;white-space:nowrap}
  .ft .t .lg{display:none}
  .ft .t .sm{display:inline}
  .xl-more{display:none}
  .finder-search .btn{min-height:46px;padding-left:18px !important;padding-right:18px !important}
  .finder-search{padding-left:14px !important}

  /* ---- Tarjetas en carrusel deslizable (cursos, ciclos y opiniones) ---- */
  .ul-grid,.testi-grid{display:flex !important;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:0 -20px;padding:4px 20px 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .ul-grid::-webkit-scrollbar,.testi-grid::-webkit-scrollbar{display:none}
  .ul-grid>.uc,.testi-grid>.testi{flex:0 0 80%;scroll-snap-align:start;opacity:1 !important;transform:none !important}
  .ul-grid>.uc.hide{display:none}
  .gr-actions{gap:10px}
  .gr-filter{width:100%}
  .gr-filter button{flex:1;min-height:42px}

  /* ---- Por qué ICSE en 2×2 ---- */
  .why2-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px}
  .w2 h3{white-space:nowrap}
  .w2{padding:16px}
  .w2 .ic{width:36px;height:36px;margin-bottom:10px}
  .w2 h3{font-size:15px}
  .w2 p{font-size:12.5px}

  /* ---- Bloques en tarjeta: menos margen interior ---- */
  .feature-grid,.final-grid{padding:26px 18px !important;margin-left:12px !important;margin-right:12px !important;gap:24px}
  .final-grid{margin-bottom:40px !important;grid-template-columns:minmax(0,1fr) !important;gap:16px !important}
  /* En móvil el formulario va antes que Puertas Abiertas */
  .final-grid>div:first-child{display:contents}
  .final-grid .form-box{order:2}
  .final-grid .od-mini{order:3;margin-top:4px}
  .final .checks{gap:8px}
  .final .checks li{font-size:14px}
  .faq-list summary{font-size:15px;padding:16px 50px 16px 16px}
  .faq-list .a{padding:0 16px 16px;font-size:14.5px}
  .logos-strip .logo-chip{min-width:0;flex:1 1 30%}
  .disc-card{min-height:210px !important}
  .disc-s{display:none}
  .disc-in{padding:18px 20px}
  .disc-play{width:52px !important;height:52px !important;top:18px !important;right:18px !important;left:auto !important;margin:0 !important}
  .discover{padding:48px 0}

  /* ---- Pie a dos columnas y enlaces con área táctil ---- */
  .foot-top{grid-template-columns:1fr 1fr !important;gap:26px 18px}
  .foot-top .foot-col:first-child{grid-column:1/-1}
  .foot-col .lite a,.foot-col p a{display:inline-block;padding:6px 0}
  .jobs-in{padding-top:14px;padding-bottom:14px}
}
@media(max-width:360px){
  .m-bar{grid-template-columns:46px minmax(0,1fr) minmax(0,1fr);gap:6px;padding-left:8px;padding-right:8px}
  .m-bar a{font-size:14px;gap:5px}
  .m-bar svg{width:16px;height:16px}
  .w2{padding:12px}
  .w2 h3{font-size:12.5px}
}
@media(max-width:360px){
  .finder-search .lens{display:none}
  .finder-search{padding-left:16px !important}
  .finder-search .btn{font-size:0 !important;width:48px;min-width:48px;padding:0 !important;justify-content:center;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:20px}
}
@media(prefers-reduced-motion:reduce){.mm,.mm-panel{transition:none}}

/* ---- Menú móvil: los 4 productos como desplegables (nov-2026) ---- */
.mm-prod{border:1.5px solid #E3EBF3;border-left:4px solid var(--pc);border-radius:16px;margin-bottom:8px;background:#fff}
.mm-prod summary{list-style:none;display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 12px;cursor:pointer;color:#13263d}
.mm-prod summary::-webkit-details-marker{display:none}
.mm-prod .pi{width:40px;height:40px;border-radius:12px;background:var(--pc);color:#fff;display:grid;place-items:center;flex-shrink:0}
.mm-prod.pc-inc .pi{box-shadow:inset 0 -3px 0 #F39A2B}
.mm-prod .pi svg{width:20px;height:20px}
.mm-prod .tx{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2}
.mm-prod .tx small{font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--pc-deep)}
.mm-prod .tx b{font-size:17px;font-weight:800}
.mm-prod summary .go{width:18px;height:18px;color:var(--pc);transition:transform .2s;flex-shrink:0}
.mm-prod[open] summary .go{transform:rotate(90deg)}
.mm-sub{padding:0 12px 12px 64px;display:flex;flex-direction:column}
.mm-sub a{display:flex;flex-direction:column;padding:9px 0;border-top:1px solid #EEF2F6;font-size:15px;font-weight:700;color:#13263d}
.mm-sub a small{font-size:12.5px;font-weight:500;color:#5a6b7d}
.mm-sub a.mm-all{color:var(--pc-deep);border-top:0}
.mm-k2{display:block;font-size:10.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#5a6b7d;margin:10px 0 6px}
.mm-sub .mm-area-grid a{flex-direction:row;font-size:13.5px;border-top:0;padding:6px 0}
.mm-hist{display:flex;align-items:center;gap:10px;padding:14px 12px;border-radius:14px;background:#F4F7FA;margin-top:8px;color:#13263d}
.mm-hist b{font-size:15px}
.mm-hist span{font-size:13px;color:#5a6b7d;flex:1}
.mm-hist .go{width:16px;height:16px;color:#0069B4}
