/* Página /homologacion/ (frame «3a_homologaciones» de Camilo Durán, 2026-11-23). Se carga solo ahí (inc/homologacion.php),
   después de movil.css. Lo del celular está en homologacion-movil.css. */

:root { --cep-lima-suave: color-mix(in srgb, var(--cep-lima) 12%, #fff); --cep-alerta: #C00000; }
.cep-seccion--niebla { background: var(--cep-niebla); }
/* Las secciones van pegadas: el espacio entre bloques de WordPress dejaba una raya blanca entre fondos de color. */
body .cep-main > * { margin-block-start: 0; }
.cep-main ol.cep-homo-reglas, .cep-main ol.cep-homo-pasos__lista, .cep-main ol.cep-homo-modulos__lista { margin: 0; padding: 0; list-style: none; }
.cep-homo-llevar strong, .cep-homo-oficina__datos strong, .cep-homo-modulos strong, .cep-homo-ruta__ejemplo strong { font-weight: 700; }
.cep-homo-corto, .cep-homo-solo-movil, .cep-homo-flujo__n { display: none; }
.cep-homo-subrayado { text-decoration: underline !important; text-underline-offset: 3px; }
.cep-homo-pill--amarilla { background: var(--cep-amarillo); color: var(--cep-noche); }
.cep-homo-boton-claro { border: 2px solid #fff; background: transparent; color: #fff !important; }
.cep-homo-boton-claro:hover { background: rgba(255, 255, 255, .1); }
.cep-homo-boton-noche { border: 2px solid var(--cep-noche); background: transparent; color: var(--cep-noche) !important; }
.cep-homo-boton-noche:hover { background: rgba(18, 38, 9, .08); }
.cep-main a:focus-visible, .cep-main summary:focus-visible { outline: 3px solid var(--cep-lima); outline-offset: 3px; }

/* ── Franja ─────────────────────────────────────────────────── */
.cep-homo-hero { background: var(--cep-noche); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cep-homo-hero__rejilla { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cep-homo-hero h1 { text-wrap: pretty; margin: .5rem 0 1.5rem !important; color: #fff; font-size: clamp(2.25rem, 3.6vw, 3.25rem) !important; font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
/* Corte del frame («…en el CEP / cuenta para tu carrera.») solo donde la primera línea cabe entera. */
.cep-homo-hero h1 br { display: none; }
@media (min-width: 1100px) { .cep-homo-hero h1 br { display: inline; } }
.cep-homo-hero__lead { color: rgba(255, 255, 255, .85); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; }
.cep-homo-hero__lead strong { color: #fff; }
.cep-homo-hero__acciones { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.75rem 0 1.9rem; }
.cep-main ul.cep-homo-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.cep-homo-cifras li { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.cep-homo-cifras strong { color: var(--cep-lima); font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 800; line-height: 1.1; }
.cep-homo-cifras li.is-amarilla strong { color: var(--cep-amarillo); }
.cep-homo-cifras span { color: rgba(255, 255, 255, .8); font-size: .9375rem; line-height: 1.4; }

.cep-main ol.cep-homo-flujo { display: grid; gap: 2.25rem; margin: 0; padding: 2rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 24px; background: rgba(255, 255, 255, .05); list-style: none; }
.cep-homo-flujo li { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: #fff; color: var(--cep-noche); }
.cep-homo-flujo li + li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 2.25rem; background: var(--cep-lima); }
.cep-homo-flujo li + li::after { content: ""; position: absolute; left: calc(50% - 5px); bottom: 100%; border: 5px solid transparent; border-top: 6px solid var(--cep-lima); }
.cep-homo-flujo li:last-child { background: var(--cep-lima); }
.cep-homo-flujo .cep-icono { width: 2rem; height: 2rem; color: var(--cep-hoja); }
.cep-homo-flujo li:last-child .cep-icono { color: var(--cep-noche); }
.cep-homo-flujo p { display: flex; flex-direction: column; flex: 1; }
.cep-homo-flujo strong { font-size: 1.1875rem; font-weight: 700; }
.cep-homo-flujo p span { color: var(--cep-tinta-2); font-size: .875rem; }
.cep-homo-flujo li:last-child p span { color: var(--cep-noche); }

/* ── Concepto: programa + certificado = créditos ───────────── */
.cep-homo-ecuacion { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.75rem; align-items: center; margin-top: 2.5rem; }
.cep-homo-ecuacion__tarjeta { display: flex; flex-direction: column; gap: .75rem; height: 100%; box-sizing: border-box; padding: 2rem; border: 1.5px solid var(--cep-borde); border-radius: 24px; }
.cep-homo-ecuacion__tarjeta .cep-icono { width: 2.5rem; height: 2.5rem; color: var(--cep-hoja); }
.cep-homo-ecuacion__tarjeta h3 { color: var(--cep-noche); font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.cep-homo-ecuacion__tarjeta p { color: var(--cep-tinta-2); line-height: 1.55; }
.cep-homo-ecuacion__tarjeta.is-oscura { border-color: var(--cep-noche); background: var(--cep-noche); }
.cep-homo-ecuacion__tarjeta.is-oscura h3 { color: #fff; }
.cep-homo-ecuacion__tarjeta.is-oscura p { color: rgba(255, 255, 255, .85); }
.cep-homo-ecuacion__tarjeta.is-oscura .cep-icono { color: var(--cep-lima); }
.cep-homo-ecuacion__signo { color: var(--cep-hoja); font-size: 3rem; font-weight: 800; line-height: 1; }

/* ── Dos rutas ─────────────────────────────────────────────── */
.cep-homo-rutas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.cep-homo-ruta { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem; border: 1px solid var(--cep-borde); border-radius: 24px; background: #fff; }
.cep-homo-ruta__cabeza { display: flex; align-items: center; justify-content: space-between; }
.cep-homo-ruta__cabeza .cep-pill { font-size: .875rem; padding: .3rem .75rem; }
.cep-homo-ruta__cabeza .cep-icono { width: 3rem; height: 3rem; color: var(--cep-hoja); }
.cep-homo-ruta h3 { color: var(--cep-noche); font-size: clamp(1.625rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.cep-homo-ruta__texto { color: var(--cep-tinta-2); font-size: 1.0625rem; line-height: 1.55; }
.cep-homo-ruta__datos { display: grid; gap: .6rem; margin: 0; }
.cep-homo-ruta__datos div { display: flex; gap: .5rem; line-height: 1.5; }
.cep-homo-ruta__datos dt { flex: none; color: var(--cep-hoja); font-weight: 700; }
.cep-homo-ruta__datos dd { margin: 0; color: var(--cep-tinta); }
.cep-homo-ruta__ejemplo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .9rem; align-items: center; margin-top: .25rem; padding: 1rem; border-radius: 16px; background: var(--cep-niebla); }
.cep-homo-ruta__ejemplo p { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: .8rem 1rem; border: 1px solid var(--cep-borde); border-radius: 10px; background: #fff; color: var(--cep-tinta-2); font-size: .9375rem; }
.cep-homo-ruta__ejemplo strong { color: var(--cep-noche); }
.cep-homo-ruta__ejemplo p.is-destino { border-color: var(--cep-noche); background: var(--cep-noche); color: rgba(255, 255, 255, .85); }
.cep-homo-ruta__ejemplo p.is-destino strong { color: #fff; }
.cep-homo-ruta__ejemplo > .cep-icono { color: var(--cep-hoja); }
.cep-homo-ruta > .cep-enlace-flecha { margin-top: auto; align-self: start; }

/* ── Crédito a crédito ─────────────────────────────────────── */
.cep-homo-creditos { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cep-homo-creditos h2 { margin-bottom: 1rem !important; }
.cep-homo-creditos__texto { color: var(--cep-tinta-2); font-size: 1.0625rem; line-height: 1.6; }
.cep-homo-modulos { margin: 0; padding: 2.25rem; border-radius: 24px; background: var(--cep-niebla); }
.cep-main ol.cep-homo-modulos__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.cep-homo-modulos__lista li { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.1rem .75rem; border-radius: 12px; background: var(--cep-lima); color: var(--cep-noche); text-align: center; }
.cep-homo-modulos__lista strong { font-size: 1.1875rem; }
.cep-homo-modulos__lista li.is-pendiente { border: 2px dashed var(--cep-hoja); background: #fff; color: var(--cep-hoja); }
.cep-homo-modulos__llave { position: relative; display: block; height: 1.4rem; margin: .9rem 2.5rem 1.6rem; border: 2px solid var(--cep-hoja); border-top: 0; border-radius: 0 0 14px 14px; }
.cep-homo-modulos__llave::after { content: ""; position: absolute; left: calc(50% - 6px); top: calc(100% + .55rem); border: 6px solid transparent; border-top: 8px solid var(--cep-hoja); }
.cep-homo-modulos__asignatura { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--cep-noche); color: #fff; }
.cep-homo-modulos__asignatura p { display: flex; flex-direction: column; gap: .3rem; }
.cep-homo-modulos__asignatura span { color: rgba(255, 255, 255, .8); font-size: .875rem; }
.cep-homo-modulos__asignatura strong { font-size: 1.3125rem; line-height: 1.3; }
.cep-homo-modulos__avance { flex: 0 0 12.5rem; }
.cep-homo-barra { display: block; height: .55rem; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.cep-homo-barra > span { display: block; width: 66.7%; height: 100%; border-radius: inherit; background: var(--cep-lima); }

/* ── 8 requisitos ──────────────────────────────────────────── */
.cep-main ol.cep-homo-reglas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.cep-homo-reglas li { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border: 1px solid var(--cep-borde); border-radius: 20px; background: #fff; }
.cep-homo-reglas__n { color: var(--cep-hoja); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.cep-homo-reglas h3 { margin-top: .4rem !important; color: var(--cep-noche); font-size: 1.25rem; font-weight: 700; }
.cep-homo-reglas p { color: var(--cep-tinta-2); font-size: .9375rem; line-height: 1.55; }
.cep-homo-chip { align-self: start; margin-top: auto; padding: .3rem .75rem; border-radius: 999px; background: var(--cep-lima-suave); color: var(--cep-hoja); font-size: .8125rem; font-weight: 700; }
.cep-homo-chip.is-pendiente { border: 1px dashed var(--cep-hoja); background: #fff; }
.cep-homo-excluidos { margin-top: 1.75rem; padding: 1.75rem; border: 1.5px solid color-mix(in srgb, var(--cep-alerta) 30%, #fff); border-radius: 20px; background: #fff; }
.cep-homo-excluidos h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem !important; color: var(--cep-alerta); font-size: 1.25rem; font-weight: 700; }
.cep-homo-excluidos h3 .cep-icono { width: 2rem; height: 2rem; border-radius: 50%; background: var(--cep-alerta); color: #fff; }
.cep-main .cep-homo-excluidos ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.cep-homo-excluidos li { padding: .5rem 1rem; border: 1px solid var(--cep-borde); border-radius: 999px; color: var(--cep-tinta); }

/* ── El trámite: 6 pasos ───────────────────────────────────── */
.cep-homo-pasos { background: var(--cep-noche); color: #fff; }
.cep-homo-pasos h2 { color: #fff; }
.cep-homo-pasos .cep-seccion__cabeza { margin-bottom: 2.75rem; }
.cep-homo-aviso { display: flex; align-items: center; gap: .9rem; max-width: 32rem; padding: 1rem 1.4rem; border-radius: 14px; background: var(--cep-amarillo); color: var(--cep-noche); font-weight: 700; line-height: 1.4; }
.cep-homo-aviso .cep-icono { width: 1.6rem; height: 1.6rem; }
.cep-main ol.cep-homo-pasos__lista { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem; }
.cep-homo-pasos__lista li { position: relative; display: flex; flex-direction: column; gap: 1.25rem; }
.cep-homo-pasos__lista li:not(:last-child)::before { content: ""; position: absolute; top: 1.75rem; left: 3.5rem; right: -1.75rem; height: 2px; background: var(--cep-hoja); }
.cep-homo-pasos__n { position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--cep-lima); color: var(--cep-noche); font-size: 1.5rem; font-weight: 800; }
.cep-homo-pasos__lista li.is-destacado .cep-homo-pasos__n { background: var(--cep-amarillo); }
.cep-homo-pasos__lista h3 { color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.cep-homo-pasos__lista p { margin: .6rem 0 .9rem !important; color: rgba(255, 255, 255, .8); font-size: .9375rem; line-height: 1.55; }
.cep-homo-pasos__chip { display: inline-block; padding: .25rem .7rem; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.cep-homo-pasos__lista li.is-destacado .cep-homo-pasos__chip { border-color: var(--cep-amarillo); background: var(--cep-amarillo); color: var(--cep-noche); }

/* ── Qué llevar ────────────────────────────────────────────── */
.cep-main ul.cep-homo-llevar { display: grid; gap: 1.25rem; max-width: 55rem; margin-top: 2rem; }
.cep-homo-llevar li { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--cep-borde); border-radius: 16px; }
.cep-homo-llevar li.is-condicional { border-style: dashed; }
.cep-homo-llevar__icono { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 10px; background: var(--cep-lima-suave); color: var(--cep-hoja); }
.cep-homo-llevar li.is-condicional .cep-homo-llevar__icono { background: var(--cep-niebla); color: var(--cep-tinta-2); }
.cep-homo-llevar p { display: flex; flex-direction: column; flex: 1; gap: .15rem; }
.cep-homo-llevar strong { color: var(--cep-noche); font-size: 1.125rem; }
.cep-homo-llevar p span { color: var(--cep-tinta-2); }

/* ── Dónde radicar ─────────────────────────────────────────── */
.cep-homo-ubicacion { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: stretch; }
.cep-homo-mapa { display: grid; place-items: center; min-height: 26rem; border-radius: 24px; background: repeating-linear-gradient(135deg, var(--cep-niebla-2) 0 24px, color-mix(in srgb, var(--cep-niebla) 60%, #fff) 24px 48px); }
.cep-homo-mapa p { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cep-homo-mapa .cep-icono { width: 3rem; height: 3rem; color: var(--cep-noche); fill: var(--cep-lima); }
.cep-homo-mapa span { padding: .55rem 1rem; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(18, 38, 9, .12); color: var(--cep-noche); font-weight: 700; }
.cep-homo-oficina { padding: 2.25rem; border: 1px solid var(--cep-borde); border-radius: 24px; background: #fff; }
.cep-main ul.cep-homo-oficina__datos { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.cep-homo-oficina__datos li { display: flex; gap: .9rem; }
.cep-homo-oficina__datos .cep-icono { margin-top: .15rem; color: var(--cep-hoja); }
.cep-homo-oficina__datos p { display: flex; flex-direction: column; }
.cep-homo-oficina__datos strong { color: var(--cep-noche); }
.cep-homo-oficina__datos span, .cep-homo-oficina__datos a { color: var(--cep-tinta-2) !important; }
.cep-homo-oficina__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ── Preguntas frecuentes ──────────────────────────────────── */
.cep-homo-preguntas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cep-homo-preguntas h2 { margin-bottom: 1rem !important; }
.cep-homo-preguntas p.cep-homo-preguntas__ayuda { margin-bottom: 1rem !important; color: var(--cep-tinta-2); line-height: 1.55; }
.cep-homo-acordeon details { border-top: 1px solid var(--cep-borde); }
.cep-homo-acordeon details:last-child { border-bottom: 1px solid var(--cep-borde); }
.cep-homo-acordeon summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; cursor: pointer; list-style: none; }
.cep-homo-acordeon summary::-webkit-details-marker { display: none; }
.cep-homo-acordeon summary::after { content: "+"; flex: none; color: var(--cep-hoja); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.cep-homo-acordeon details[open] summary::after { content: "−"; }
.cep-homo-acordeon h3 { color: var(--cep-noche); font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.cep-homo-acordeon details p { padding-bottom: 1.4rem; color: var(--cep-tinta-2); line-height: 1.6; }

/* ── Banda final ───────────────────────────────────────────── */
.cep-homo-banda { padding-block: 1rem clamp(3rem, 6vw, 4.5rem); }
.cep-homo-banda__caja { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2rem; align-items: center; padding: 2.25rem 3rem; border-radius: 24px; background: var(--cep-lima); color: var(--cep-noche); }
.cep-homo-banda__caja > .cep-icono { width: 3.5rem; height: 3.5rem; }
.cep-homo-banda h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.cep-homo-banda__acciones { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Tabletas ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .cep-main ol.cep-homo-pasos__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; }
    .cep-homo-pasos__lista li:nth-child(3)::before { display: none; }
    .cep-main ol.cep-homo-reglas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cep-homo-banda__caja { grid-template-columns: auto minmax(0, 1fr); }
    .cep-homo-banda__acciones { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .cep-homo-hero__rejilla, .cep-homo-rutas, .cep-homo-creditos, .cep-homo-ubicacion, .cep-homo-preguntas { grid-template-columns: minmax(0, 1fr); }
    .cep-homo-ecuacion { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; }
    .cep-homo-ecuacion__tarjeta { width: 100%; }
    .cep-homo-mapa { min-height: 16rem; }
}
