:root { font-family: Arial, sans-serif; color: #162233; background: #f4f7fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 10px max(24px, calc((100% - 1180px) / 2)); background: #071f2b; }
.marca img { display: block; width: 210px; height: 52px; object-fit: contain; object-position: left center; }
.volver { color: #d9eef3; font-weight: 700; text-decoration: none; }
.acciones-cabecera { display: flex; align-items: center; gap: 12px; }
.aula-virtual { padding: 10px 15px; border: 1px solid #38bdf8; border-radius: 8px; background: #08789b; color: #fff; font-weight: 800; text-decoration: none; transition: background-color .2s, transform .2s; }
.aula-virtual:hover { background: #0b8db4; transform: translateY(-1px); }
.acceso-aula-portada { display: none; width: fit-content; margin-top: 18px; border-color: #ffffff70; }
.portada { padding: 58px max(24px, calc((100% - 1180px) / 2)); background: linear-gradient(125deg, #0f766e, #075985); color: #fff; }
.portada h1 { max-width: 850px; margin: 8px 0 14px; font-size: clamp(32px, 5vw, 52px); }
.portada > p:not(.etiqueta) { max-width: 760px; margin: 0; line-height: 1.65; }
.etiqueta { margin: 0; color: #bff7ed; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.convocatoria { width: fit-content; margin-top: 24px; padding: 10px 14px; border: 1px solid #ffffff52; border-radius: 8px; background: #ffffff18; font-weight: 700; }
.distribucion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); gap: 28px; width: min(calc(100% - 40px), 1180px); margin: 32px auto 60px; align-items: start; }
.tarjeta { margin-bottom: 24px; padding: 28px; border: 1px solid #dce5ec; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #0f172a0d; }
.tarjeta h2 { margin: 0 0 20px; }
.carreras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 0; list-style: none; }
.carreras li { position: relative; padding-left: 25px; line-height: 1.45; }
.carreras li::before { position: absolute; left: 0; content: "✓"; color: #0f9f75; font-weight: 900; }
.subtitulo-seccion { margin: 0 0 7px; color: #0f766e; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.examen-admision { border-top: 4px solid #0f766e; }
.detalle-examen { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(190px, .7fr); gap: 18px; }
.comentario-examen, .fecha-examen { padding: 20px; border-radius: 10px; }
.comentario-examen { background: #f0f7f8; color: #354b58; }
.comentario-examen h3 { margin: 0 0 9px; color: #18323e; font-size: 15px; }
.comentario-examen p { margin: 0; line-height: 1.65; white-space: pre-line; }
.fecha-examen { display: flex; flex-direction: column; justify-content: center; background: #0f766e; color: #fff; }
.fecha-examen span { font-size: 12px; font-weight: 700; opacity: .85; }
.fecha-examen strong { margin-top: 8px; font-size: 21px; line-height: 1.3; }
dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
dt, dd { margin: 0; padding: 12px; border-bottom: 1px solid #e5eaf0; }
dt { color: #516171; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.enlaces { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.enlaces a { padding: 9px 13px; border-radius: 7px; background: #e6f3f5; color: #075985; font-weight: 700; text-decoration: none; }
.formulario-admision { position: sticky; top: 20px; border-color: #a9d8e5; background: #edf9fc; }
.formulario-admision > p { color: #536575; }
.cabecera-formulario-aislado { margin: -24px -24px 24px; padding: 20px 24px; border-radius: 12px 12px 0 0; background: linear-gradient(120deg, #06354a, #087f91); color: #fff; }
.cabecera-formulario-aislado > span { display: block; margin-bottom: 7px; color: #bdebf2; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nombre-formulario-aislado { margin: 0; color: #fff !important; font-size: clamp(20px, 4vw, 28px); font-weight: 800; line-height: 1.25; }
form, label { display: grid; gap: 7px; }
form { gap: 14px; }
label { font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #cbd8e0; border-radius: 6px; background: #fff; font: inherit; }
textarea { min-height: 85px; resize: vertical; }
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dos-columnas[hidden], .consentimiento[hidden], .instrucciones-matricula[hidden] { display: none; }
.ancho-doble { grid-column: 1 / -1; }
.titulo-bloque { margin: 8px 0 2px; padding-bottom: 8px; border-bottom: 1px solid #cbdde6; color: #123047; font-size: 17px; }
.grupo-opciones { margin: 0; padding: 14px; border: 1px solid #c7d8e2; border-radius: 9px; background: #fff; }
.grupo-opciones[hidden] { display: none; }
.grupo-opciones legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: #152334; }
.grupo-opciones > div { display: grid; gap: 8px; margin-top: 3px; }
.opcion-radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dce6ec; border-radius: 7px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color .15s, border-color .15s; }
.opcion-radio:hover { border-color: #38a6c5; background: #f0f9fc; }
.opcion-radio:has(input:checked) { border-color: #087fa2; background: #e2f5fa; }
.opcion-radio input { width: auto; margin: 0; accent-color: #076b91; }
.opciones-binarias { margin: 0; padding: 0; border: 0; }
.opciones-binarias legend { margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 700; }
.opciones-binarias > div { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.opciones-binarias label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; font-weight: 500; }
.opciones-binarias input { width: 18px; height: 18px; margin: 0; accent-color: #076b91; cursor: pointer; }
.campos-academia input:disabled { background: #eef2f5; color: #64748b; cursor: not-allowed; }
.campos-academia small { color: #64748b; font-weight: 400; }
.instrucciones-matricula { margin-bottom: 15px; padding: 13px; border-radius: 8px; background: #fff8e8; color: #684c16; font-size: 13px; line-height: 1.5; }
.instrucciones-matricula p { margin: 6px 0 0; white-space: pre-line; }
.consentimiento { display: flex; align-items: flex-start; font-size: 12px; font-weight: 400; line-height: 1.45; }
.consentimiento input { width: auto; margin-top: 2px; }
.carga-foto { padding: 14px; border: 1px dashed #82b7c7; border-radius: 8px; background: #f8fdff; }
.carga-foto input { padding: 8px; }
.carga-foto small { color: #64748b; font-weight: 400; line-height: 1.4; }
.vista-previa-foto { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; background: #fff; }
.vista-previa-foto[hidden] { display: none; }
.vista-previa-foto img { width: 68px; height: 68px; border-radius: 8px; object-fit: cover; }
.vista-previa-foto button { min-height: 34px; padding: 7px 10px; background: #475569; }
.nota-biometrica { margin: 0; padding: 12px; border-left: 3px solid #0f766e; background: #e6f5f3; color: #3d5962; font-size: 12px; line-height: 1.5; }
.identidad-institucion { display: grid; gap: 14px; }
button { min-height: 46px; border: 0; border-radius: 7px; background: #075985; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #064b70; }
.boton-enviar-admision { box-shadow: 0 5px 14px #0759852e; }
button:disabled { background: #94a3b8; cursor: wait; }
.mensaje { min-height: 20px; margin: 0; color: #b91c1c; font-size: 13px; }
.mensaje.correcto { color: #166534; }
.estado { max-width: 760px; margin: 70px auto; padding: 30px; color: #526273; text-align: center; }
body.modo-formulario header, body.modo-formulario .portada, body.modo-formulario .distribucion > div { display: none; }
body.modo-pagina-aislada header { display: none; }
body.modo-pagina-aislada .acceso-aula-portada { display: inline-block; }
body.modo-formulario .distribucion { display: block; width: min(calc(100% - 32px), 720px); margin: 24px auto; }
body.modo-formulario .formulario-admision { position: static; margin: 0; }
body.modo-formulario .estado { min-height: 100vh; margin: 0 auto; display: grid; place-items: center; }
@media (max-width: 820px) { .distribucion { grid-template-columns: 1fr; } .formulario-admision { position: static; } }
@media (max-width: 620px) { .detalle-examen { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .carreras, .dos-columnas { grid-template-columns: 1fr; } dl { grid-template-columns: 1fr; } dt { padding-bottom: 3px; border-bottom: 0; } dd { padding-top: 3px; } .tarjeta { padding: 22px; } }
