/* Celular de /homologacion/ (frame «3a_homologaciones_movil», 390 px, de Camilo Durán, 2026-11-23). Se carga después de
   homologacion.css. Las migas pasan a «‹ Rutas homologables» (movil.css). */

@media (max-width: 600px) {
    .cep-homo-largo { display: none !important; }
    .cep-homo-corto { display: inline; }
    .cep-homo-solo-movil { display: inline-flex; }

    /* Franja: botones a lo ancho, cifras compactas y el recorrido con números en lugar de íconos. */
    .cep-homo-hero { padding-block: 2.5rem; }
    .cep-homo-hero h1 { font-size: 2.25rem !important; }
    .cep-homo-hero__lead { font-size: 1.0625rem; }
    .cep-homo-hero__acciones { flex-direction: column; }
    .cep-homo-hero__acciones .cep-boton { width: 100%; box-sizing: border-box; }
    .cep-main ul.cep-homo-cifras { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; }
    .cep-homo-cifras li { padding: .7rem .75rem; border-radius: 12px; }
    .cep-homo-cifras strong { font-size: 1.25rem; }
    .cep-homo-cifras span { font-size: .8125rem; }
    .cep-main ol.cep-homo-flujo { gap: 1rem; padding: 1rem; }
    .cep-homo-flujo li { padding: .9rem 1rem; }
    .cep-homo-flujo li + li::before { left: 2.05rem; height: 1rem; }
    .cep-homo-flujo li + li::after, .cep-homo-flujo .cep-icono, .cep-homo-flujo .cep-pill { display: none; }
    .cep-homo-flujo__n { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--cep-noche); color: var(--cep-lima); font-weight: 800; }
    .cep-homo-flujo strong { font-size: 1.0625rem; }

    /* Concepto, rutas y créditos. */
    .cep-homo-ecuacion { margin-top: 1.5rem; }
    .cep-homo-ecuacion__tarjeta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .9rem; padding: 1.25rem; border-radius: 18px; }
    .cep-homo-ecuacion__tarjeta .cep-icono { grid-row: span 2; width: 2rem; height: 2rem; }
    .cep-homo-ecuacion__tarjeta h3 { font-size: 1.125rem; }
    .cep-homo-ecuacion__tarjeta p { font-size: .9375rem; }
    .cep-homo-ecuacion__signo { font-size: 2rem; }
    .cep-homo-rutas { gap: 1rem; margin-top: 1.5rem; }
    .cep-homo-ruta { padding: 1.5rem 1.25rem; border-radius: 20px; }
    .cep-homo-ruta__cabeza .cep-icono { display: none; }
    .cep-homo-ruta__datos div { display: block; }
    .cep-homo-ruta__ejemplo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .cep-homo-ruta__ejemplo p { width: 100%; }
    .cep-homo-ruta__ejemplo > .cep-icono { rotate: 90deg; }
    .cep-homo-modulos { padding: 1.25rem; }
    .cep-homo-modulos__lista li { padding: .8rem .4rem; }
    .cep-homo-modulos__lista strong { font-size: 1rem; }
    .cep-homo-modulos__lista span { font-size: .8125rem; }
    .cep-homo-modulos__llave { display: none; }
    .cep-homo-modulos__asignatura { flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 1rem; padding: 1.25rem; }
    .cep-homo-modulos__avance { flex: none; }
    .cep-homo-modulos__asignatura strong { font-size: 1.125rem; }

    /* Requisitos: número a la izquierda. */
    .cep-main ol.cep-homo-reglas { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
    .cep-homo-reglas li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: .35rem .5rem; padding: 1.1rem 1.25rem; }
    .cep-homo-reglas__n { grid-row: span 3; font-size: 1.75rem; }
    .cep-homo-reglas h3 { margin-top: 0 !important; font-size: 1.125rem; }
    .cep-homo-chip { justify-self: start; margin-top: .25rem; }
    .cep-homo-excluidos { padding: 1.25rem; }

    /* Pasos: línea de tiempo vertical. */
    .cep-homo-aviso { padding: .9rem 1rem; font-size: .9375rem; }
    .cep-main ol.cep-homo-pasos__lista { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
    .cep-homo-pasos__lista li { flex-direction: row; gap: 1rem; }
    .cep-homo-pasos__lista li:not(:last-child)::before { display: block; top: 2.5rem; bottom: -1.75rem; left: 1.2rem; right: auto; width: 2px; height: auto; }
    .cep-homo-pasos__n { flex: none; width: 2.4rem; height: 2.4rem; font-size: 1.125rem; }
    .cep-homo-pasos__lista h3 { font-size: 1.125rem; }
    .cep-homo-pasos__lista p { margin: .4rem 0 .7rem !important; }

    /* Qué llevar, dónde radicar y preguntas. */
    .cep-main ul.cep-homo-llevar { gap: .75rem; margin-top: 1.5rem; }
    .cep-homo-llevar li { align-items: flex-start; padding: 1rem; }
    .cep-homo-llevar__icono { width: 2.5rem; height: 2.5rem; }
    .cep-homo-llevar strong { font-size: 1.0625rem; }
    .cep-homo-oficina { padding: 1.5rem 1.25rem; }
    .cep-homo-oficina__datos .cep-icono { display: none; }
    .cep-homo-oficina__acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
    .cep-homo-oficina__acciones .cep-boton { width: 100%; box-sizing: border-box; }
    .cep-homo-oficina__acciones .cep-boton--borde { grid-column: 1 / -1; }
    .cep-homo-preguntas { gap: 1.25rem; }
    .cep-homo-preguntas p.cep-homo-preguntas__ayuda, .cep-homo-preguntas a.cep-homo-preguntas__ayuda { display: none; }
    .cep-homo-acordeon h3 { font-size: 1.0625rem; }

    /* Banda final. */
    .cep-homo-banda__caja { grid-template-columns: minmax(0, 1fr); padding: 1.75rem 1.25rem; }
    .cep-homo-banda__caja > .cep-icono { width: 2.5rem; height: 2.5rem; }
    .cep-homo-banda h2 { font-size: 1.625rem; }
    .cep-homo-banda__acciones { flex-direction: column; }
    .cep-homo-banda__acciones .cep-boton { width: 100%; box-sizing: border-box; }
}
