/* Inscripción a los talleres del MUCYT — sistema visual de prismacactus.com v3.6
   (tokens copiados de css/prisma.css). Plano: sin sombras, sin degradados suaves, sin brillos. */

@font-face { font-family: 'Clash Display'; src: url('fuentes/ClashDisplay-Variable.woff2') format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Chillax'; src: url('fuentes/Chillax-Variable.woff2') format('woff2'); font-weight: 200 700; font-display: swap; }

:root {
  --noche: #000000; --noche-alta: #0a0c10; --noche-mas: #12151c; --noche-honda: #050608;
  --tiza: #eef1f5; --tiza-2: #a7b1bf; --tiza-3: #8591a2;
  --linea: #1a2130; --linea-viva: #2b3547;
  --sol: #f5872b; --sol-alto: #ff9d4d; --tinta-sol: #1a0d02;
  --prisma: #3ddc6e; --arena: #dda45e; --cactus-hondo: #143a24;
  --wa: #25d366; --tinta-wa: #06230f;
  --ok: #3ddc6e; --error: #ff6b5e;
  --espectro: linear-gradient(90deg,
    #ff3b30 0 12.5%, #ff8c1a 12.5% 25%, #ffd63d 25% 37.5%, #3ddc6e 37.5% 50%,
    #2ee0e0 50% 62.5%, #2f7fe8 62.5% 75%, #9b4dea 75% 87.5%, #d94ad8 87.5% 100%);
  --fuente: 'Chillax', system-ui, sans-serif;
  --titulo: 'Clash Display', 'Chillax', system-ui, sans-serif;
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 18px; --e5: 26px; --e6: 38px; --e7: 56px; --e8: 80px;
  --r1: 2px; --r2: 4px; --r3: 8px;
  --sal: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--noche); color: var(--tiza);
  font-family: var(--fuente); font-size: 17px; line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--prisma); }
:focus-visible { outline: 2px solid var(--sol); outline-offset: 2px; }

.espectro { height: 4px; background: var(--espectro); }
.envoltura { max-width: 640px; margin: 0 auto; padding: var(--e5) 16px var(--e8); }

/* Aviso de modo prueba */
.modo-prueba {
  background: var(--noche-mas); border: 1px dashed var(--arena); color: var(--arena);
  padding: var(--e3) var(--e4); border-radius: var(--r2); font-size: 14px; margin-bottom: var(--e5);
}

/* Cabecera */
.marca { display: flex; align-items: center; gap: var(--e3); margin-bottom: var(--e6); }
.marca img { width: 36px; height: 36px; }
.marca-texto { font-family: var(--titulo); font-weight: 600; font-size: 20px; letter-spacing: .01em; }
.marca-texto .p { color: var(--arena); }
.marca-texto .c { color: var(--prisma); }
.marca-con { color: var(--tiza-3); font-size: 14px; margin-left: auto; text-align: right; line-height: 1.3; }

.antetitulo { color: var(--arena); font-size: 15px; font-weight: 500; margin-bottom: var(--e3); }
h1 {
  font-family: var(--titulo); font-weight: 600; font-size: clamp(34px, 8vw, 52px);
  line-height: 1.02; letter-spacing: -.01em; margin-bottom: var(--e4);
}
h1 em { font-style: normal; color: var(--prisma); }
.bajada { color: var(--tiza-2); font-size: 18px; margin-bottom: var(--e6); }
.datos { display: flex; flex-wrap: wrap; gap: var(--e2); margin-bottom: var(--e7); }
.dato {
  border: 1px solid var(--linea-viva); border-radius: var(--r2);
  padding: var(--e2) var(--e3); font-size: 14px; color: var(--tiza-2);
}
.dato b { color: var(--tiza); font-weight: 600; }

/* Secciones */
.paso { margin-bottom: var(--e7); }
.paso-titulo { font-family: var(--titulo); font-weight: 600; font-size: 24px; margin-bottom: var(--e2); }
.paso-titulo span { color: var(--tiza-3); font-weight: 500; margin-right: var(--e2); }
.paso-nota { color: var(--tiza-3); font-size: 15px; margin-bottom: var(--e4); }

/* Tarjetas de taller (checkbox grande) */
.talleres { display: grid; gap: var(--e3); }
.taller { position: relative; display: block; cursor: pointer; }
.taller input { position: absolute; opacity: 0; pointer-events: none; }
.taller-caja {
  display: grid; grid-template-columns: 1fr auto; gap: var(--e2) var(--e4);
  background: var(--noche-alta); border: 1px solid var(--linea-viva); border-radius: var(--r3);
  padding: var(--e4); transition: border-color .25s var(--sal), background .25s var(--sal);
}
.taller:hover .taller-caja { border-color: var(--tiza-3); }
.taller input:focus-visible + .taller-caja { outline: 2px solid var(--sol); outline-offset: 2px; }
.taller input:checked + .taller-caja { border-color: var(--prisma); background: var(--cactus-hondo); }
.taller-fecha { font-size: 14px; font-weight: 600; color: var(--arena); }
.taller-nombre { font-family: var(--titulo); font-weight: 600; font-size: 21px; line-height: 1.15; grid-column: 1; }
.taller-desc { color: var(--tiza-2); font-size: 15px; grid-column: 1 / -1; }
.marcador {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  width: 28px; height: 28px; border: 2px solid var(--linea-viva); border-radius: var(--r2);
  display: grid; place-items: center; color: transparent; font-weight: 700; font-size: 17px;
  transition: all .2s var(--sal);
}
.taller input:checked + .taller-caja .marcador { background: var(--prisma); border-color: var(--prisma); color: var(--tinta-wa); }

.cupo { grid-column: 1 / -1; margin-top: var(--e2); }
.cupo-barra { height: 6px; background: var(--linea); border-radius: var(--r1); overflow: hidden; }
.cupo-lleno { height: 100%; width: var(--pct, 0%); background: var(--prisma); transition: width .8s var(--sal); }
.cupo-texto { display: flex; justify-content: space-between; font-size: 13px; color: var(--tiza-3); margin-top: var(--e1); }
.cupo.poco .cupo-lleno { background: var(--sol); }
.cupo.poco .cupo-texto b { color: var(--sol-alto); }

.taller.agotado { cursor: not-allowed; }
.taller.agotado .taller-caja { opacity: .55; }
.taller.agotado .cupo-lleno { background: var(--tiza-3); }
.etiqueta-agotado {
  display: none; font-size: 12px; font-weight: 600; color: var(--noche); background: var(--tiza-2);
  padding: 2px var(--e2); border-radius: var(--r1); justify-self: start;
}
.taller.agotado .etiqueta-agotado { display: inline-block; }
.taller.agotado .marcador { display: none; }
.taller.ya-inscrito .etiqueta-agotado { display: inline-block; background: var(--prisma); color: var(--tinta-wa); }

/* Campos */
.campos { display: grid; gap: var(--e4); }
.campo label, .campo .rotulo { display: block; font-size: 15px; font-weight: 500; margin-bottom: var(--e2); }
.campo .opcional { color: var(--tiza-3); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], select {
  width: 100%; min-height: 48px; font: inherit; font-size: 17px; color: var(--tiza);
  background: var(--noche-alta); border: 1px solid var(--linea-viva); border-radius: var(--r2);
  padding: var(--e3) var(--e3);
}
input::placeholder { color: var(--tiza-3); }
input:focus, select:focus { outline: none; border-color: var(--sol); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tiza-2) 50%), linear-gradient(135deg, var(--tiza-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.cedula { display: grid; grid-template-columns: 84px 1fr; gap: var(--e2); }
.campo.con-error input, .campo.con-error select { border-color: var(--error); }
.error { display: none; color: var(--error); font-size: 14px; margin-top: var(--e1); }
.campo.con-error .error, .error.visible { display: block; }
.ayuda { color: var(--tiza-3); font-size: 13px; margin-top: var(--e1); }

.ocupaciones { display: flex; flex-wrap: wrap; gap: var(--e2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--e4);
  border: 1px solid var(--linea-viva); border-radius: var(--r2); font-size: 15px; cursor: pointer; color: var(--tiza-2);
}
.chip input:checked + span { border-color: var(--arena); color: var(--arena); background: var(--noche-mas); }
.chip input:focus-visible + span { outline: 2px solid var(--sol); outline-offset: 2px; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: 54px; width: 100%; padding: 0 var(--e5); border: 0; border-radius: var(--r2);
  font: inherit; font-weight: 600; font-size: 18px; cursor: pointer; text-decoration: none;
  background: var(--sol); color: var(--tinta-sol); transition: background .2s var(--sal), transform .2s var(--sal);
}
.boton:hover { background: var(--sol-alto); }
.boton:active { transform: translateY(1px); }
.boton[disabled] { background: var(--linea-viva); color: var(--tiza-3); cursor: wait; }
.boton.secundario { background: transparent; color: var(--tiza); border: 1px solid var(--linea-viva); min-height: 48px; font-size: 16px; }
.boton.secundario:hover { border-color: var(--tiza-3); }
.boton.wa { background: var(--wa); color: var(--tinta-wa); }
.legal { color: var(--tiza-3); font-size: 13px; margin-top: var(--e3); text-align: center; }
.error-general { margin-top: var(--e3); padding: var(--e3); border: 1px solid var(--error); border-radius: var(--r2); color: var(--error); font-size: 15px; display: none; }
.error-general.visible { display: block; }

/* Consulta */
.consulta { border-top: 1px solid var(--linea); padding-top: var(--e5); }
.consulta summary { cursor: pointer; color: var(--tiza-2); font-size: 15px; min-height: 40px; display: flex; align-items: center; }
.consulta-fila { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--e2); margin-top: var(--e3); }
.consulta-fila .boton { width: auto; min-height: 48px; font-size: 16px; }
.consulta-resultado { margin-top: var(--e3); font-size: 15px; color: var(--tiza-2); }
.consulta-resultado b { color: var(--tiza); }

/* Éxito */
.exito { display: none; }
.exito.visible { display: block; animation: subir .6s var(--sal); }
.exito-sello { width: 56px; height: 56px; border-radius: var(--r3); background: var(--prisma); color: var(--tinta-wa);
  display: grid; place-items: center; font-size: 30px; font-weight: 700; margin-bottom: var(--e4); }
.ficha { background: var(--noche-alta); border: 1px solid var(--linea-viva); border-radius: var(--r3); margin: var(--e5) 0; overflow: hidden; }
.ficha .espectro { height: 3px; }
.ficha-cuerpo { padding: var(--e5) var(--e4); }
.ficha-rotulo { font-size: 13px; color: var(--tiza-3); }
.ficha-codigo { font-family: var(--titulo); font-weight: 600; font-size: clamp(28px, 8vw, 38px); letter-spacing: .04em; color: var(--arena); margin: var(--e1) 0 var(--e4); word-break: break-all; }
.ficha-nombre { font-weight: 600; margin-bottom: var(--e3); }
.ficha ul { list-style: none; padding: 0; display: grid; gap: var(--e2); }
.ficha li { border-left: 3px solid var(--prisma); padding-left: var(--e3); font-size: 15px; }
.ficha li small { display: block; color: var(--tiza-3); font-size: 13px; }
.acciones { display: grid; gap: var(--e2); }

.pie { color: var(--tiza-3); font-size: 13px; margin-top: var(--e7); border-top: 1px solid var(--linea); padding-top: var(--e4); }

/* Entrada */
.entra { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--sal), transform .7s var(--sal); }
.entra.dentro { opacity: 1; transform: none; }
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .entra { opacity: 1; transform: none; }
}
@media (min-width: 560px) {
  .campos.dos { grid-template-columns: 1fr 1fr; }
  .campos .ancho { grid-column: 1 / -1; }
}
