.tec-taller { margin: 2em 0; }
.tec-h { margin: 1.4em 0 .6em; }
.tec-meta, .tec-fechas { list-style: none; margin: 0; padding: 0; }
.tec-meta li { padding: .35em 0; }
.tec-meta li span { display: inline-block; min-width: 110px; font-weight: 600; }
.tec-fechas li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5em; padding: .6em .8em; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; margin-bottom: .5em; }
.tec-fechas li em { font-style: normal; font-size: .9em; color: #1a7f45; }
.tec-fechas li.tec-llena { opacity: .6; }
.tec-fechas li.tec-llena em { color: #a12a2a; }
.tec-form p { margin: 0 0 1em; }
.tec-form label { display: block; font-weight: 600; margin-bottom: .3em; }
.tec-form .tec-ayuda { display: block; font-size: .85em; color: rgba(0,0,0,.62); margin-top: .3em; font-weight: normal; }
.tec-form input[type="text"], .tec-form input[type="email"], .tec-form input[type="tel"], .tec-form input[type="number"], .tec-form select, .tec-form textarea { width: 100%; max-width: 32em; box-sizing: border-box; padding: .55em .7em; }
.tec-pago { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: .8em 1em; margin: 0 0 1em; }
.tec-pago legend { font-weight: 600; padding: 0 .3em; }
.tec-form .tec-opcion { display: flex; gap: .6em; align-items: flex-start; font-weight: normal; margin: .5em 0; cursor: pointer; }
.tec-opcion input { margin-top: .3em; }
.tec-advertencia { color: #7a5500; }
.tec-btn { display: inline-block; background: #1f3a5f; color: #fff !important; border: 0; border-radius: 5px; padding: .7em 1.4em; font-weight: 600; text-decoration: none; cursor: pointer; }
.tec-btn:hover { opacity: .9; }
.tec-msg { padding: .9em 1.1em; border-radius: 6px; margin-bottom: 1.2em; }
.tec-msg ul { margin: 0; padding-left: 1.2em; }
.tec-ok { background: #e6f5ec; border-left: 4px solid #1a7f45; }
.tec-error { background: #fbeaea; border-left: 4px solid #a12a2a; }
.tec-aviso { padding: .8em 1em; background: rgba(0,0,0,.04); border-radius: 6px; }
.tec-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tec-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2em; }
.tec-card { border: 1px solid rgba(0,0,0,.12); border-radius: 8px; padding: 1.1em; }
.tec-card h3 { margin-top: 0; }
.tec-chips { display: flex; gap: .4em; flex-wrap: wrap; }
.tec-chip { font-size: .8em; padding: .2em .7em; border-radius: 999px; background: rgba(0,0,0,.06); }
.tec-chip.tec-virtual { background: #e5effa; color: #1d4f91; }
.tec-chip.tec-presencial { background: #e6f5ec; color: #0a5c2e; }
.tec-prox { font-size: .9em; }
.tec-chip.tec-hibrido { background: #f1e8fa; color: #5b2a86; }
.tec-lleno-aviso { color: #a12a2a; display: block; margin-top: .3em; }
.tec-opcion[hidden] { display: none; }
.tec-paso { font-weight: 700; margin: 1.6em 0 .4em; }
.tec-dia { margin: 1em 0 .5em; font-size: 1.05em; }
.tec-sel-lista { display: grid; gap: .6em; }
.tec-sel { border: 1px solid rgba(0,0,0,.14); border-radius: 8px; padding: .75em .9em; position: relative; }
.tec-sel.tec-sel-on { border-color: #1f3a5f; box-shadow: 0 0 0 1px #1f3a5f inset; background: rgba(31,58,95,.03); }
.tec-sel.tec-llena { opacity: .55; }
.tec-form .tec-sel-main { display: flex; gap: .7em; align-items: flex-start; font-weight: normal; margin: 0; cursor: pointer; }
.tec-sel-main input { margin-top: .3em; flex: none; }
.tec-sel-info { flex: 1; display: grid; gap: .1em; min-width: 0; }
.tec-sel-info small { color: rgba(0,0,0,.65); }
.tec-sel-disp { color: #1a7f45 !important; }
.tec-llena .tec-sel-disp { color: #a12a2a !important; }
.tec-sel-precio { font-weight: 700; white-space: nowrap; }
.tec-sel-mas { font-size: .85em; margin-left: 1.9em; }
.tec-sel-asis { margin: .6em 0 0 1.9em; display: flex; flex-wrap: wrap; gap: .4em 1.2em; align-items: center; font-size: .95em; }
.tec-sel-asis span { font-weight: 600; }
.tec-form .tec-sel-asis label { display: inline-flex; gap: .35em; align-items: center; font-weight: normal; margin: 0; }
.tec-sel-asis[hidden], .tec-campo[hidden], .tec-pago[hidden] { display: none; }
.tec-total { font-size: 1.1em; }
.tec-op-off { opacity: .5; }
.tec-mismo-dia { margin: 1em 0; padding: .8em 1em; border-radius: 6px; background: #eef3fa; border-left: 4px solid #1f3a5f; }
.tec-lista-jornada { margin-bottom: 1.2em; }

/* ---- Inscripción por días (jornada) ---- */
.tec-jornada { container-type: inline-size; container-name: tecj; }
.tec-jornada .tec-dias, .tec-jornada .tec-add, .tec-jornada .tec-add-dia, .tec-jornada .tec-carrito, .tec-jornada .tec-volver-paso { display: none; }
.tec-jornada.tec-js .tec-dias { display: flex; }
.tec-jornada.tec-js .tec-add, .tec-jornada.tec-js .tec-add-dia, .tec-jornada.tec-js .tec-volver-paso { display: inline-block; }
.tec-jornada.tec-js .tec-add-dia[hidden] { display: none; }
.tec-jornada.tec-js .tec-carrito { display: block; }
.tec-jornada.tec-js .tec-chk { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.tec-jornada.tec-js .tec-sel-main { cursor: default; }
.tec-jornada.tec-js .tec-paso2 { display: none; }
.tec-jornada.tec-js .tec-en-datos .tec-paso2 { display: block; }
.tec-jornada.tec-js .tec-en-datos .tec-paso1, .tec-jornada.tec-js .tec-en-datos .tec-continuar, .tec-jornada.tec-js .tec-en-datos .tec-quitar-sel { display: none; }
.tec-dia-panel[hidden] { display: none; }

/* Botones: estilos propios para que el tema no los cambie. */
.tec-jornada button.tec-dia-tab, .tec-jornada button.tec-add, .tec-jornada button.tec-add-dia, .tec-jornada button.tec-quitar-sel, .tec-jornada button.tec-volver-paso {
	font-family: inherit; font-size: 1rem; line-height: 1.2; letter-spacing: normal; text-transform: none; box-shadow: none; min-height: 0; width: auto; margin: 0;
}

.tec-jgrid { display: grid; gap: 1.5em; }
.tec-jmain { min-width: 0; }
@container tecj (min-width: 820px) {
	.tec-jornada.tec-js .tec-jgrid { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; }
	.tec-jornada.tec-js .tec-carrito { position: sticky; top: 1.5em; }
}
@container tecj (max-width: 819px) {
	/* Columna angosta o celular: la selección queda como barra fija abajo. */
	.tec-jornada.tec-js .tec-carrito { position: sticky; bottom: 0; z-index: 5; border-radius: 12px 12px 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: .8em 1em; }
	.tec-jornada.tec-js .tec-form:not(.tec-en-datos) .tec-carrito:not(.tec-abierto) .tec-carrito-items, .tec-jornada.tec-js .tec-carrito-vacio { display: none; }
	.tec-jornada.tec-js .tec-form:not(.tec-en-datos) button.tec-carrito-ver { display: inline-block; }
	.tec-jornada.tec-js .tec-en-datos .tec-carrito { position: static; box-shadow: none; border-radius: 10px; }
}

.tec-dias { gap: .5em; overflow-x: auto; padding: .5em .4em .6em; margin: 0 -.4em; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.tec-jornada button.tec-dia-tab { flex: none; scroll-snap-align: start; position: relative; display: grid; justify-items: center; gap: 0; min-width: 74px; padding: .5em .65em; border: 1px solid rgba(0,0,0,.18); border-radius: 10px; background: #fff; color: inherit; cursor: pointer; }
.tec-jornada button.tec-dia-tab:hover { border-color: #1f3a5f; }
.tec-jornada button.tec-dia-tab[aria-selected="true"] { background: #1f3a5f; border-color: #1f3a5f; color: #fff; }
.tec-dia-tab .tec-d1, .tec-dia-tab .tec-d3 { font-size: .72em; text-transform: uppercase; letter-spacing: .04em; }
.tec-dia-tab .tec-d2 { font-size: 1.45em; font-weight: 700; }
.tec-dia-tab small { font-size: .68em; opacity: .8; margin-top: .2em; white-space: nowrap; }
.tec-dia-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #1a7f45; color: #fff; font-size: .72rem; font-style: normal; font-weight: 700; display: grid; place-items: center; box-sizing: border-box; }
.tec-dia-badge[hidden] { display: none; }

.tec-dia-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3em .8em; margin: .6em 0 .7em; }
.tec-dia-head .tec-dia { margin: 0; }
.tec-jornada button.tec-add-dia { border: 0; background: none; color: #1f3a5f; font-size: .92rem; font-weight: 600; cursor: pointer; padding: .2em 0; text-decoration: underline; text-underline-offset: 3px; }
.tec-sel-hora { display: none; }
.tec-jornada.tec-js .tec-sel-hora { display: block; flex: none; width: 4.4em; font-weight: 700; color: #1f3a5f; padding-top: .1em; }
.tec-sel-pie { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-top: .55em; }
.tec-jornada.tec-js .tec-sel-pie { padding-left: 5.1em; }
.tec-sel-pie .tec-sel-mas { margin: 0; }
.tec-jornada button.tec-add { border: 1px solid #1f3a5f; background: #fff; color: #1f3a5f; border-radius: 999px; padding: .45em 1.1em; font-size: .92rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tec-jornada button.tec-add:hover { background: #eef3fa; }
.tec-jornada button.tec-add[aria-pressed="true"] { background: #1a7f45; border-color: #1a7f45; color: #fff; }
.tec-jornada.tec-js .tec-sel-asis { margin-left: 5.1em; }
@container tecj (max-width: 480px) {
	.tec-jornada.tec-js .tec-sel-hora { display: none; }
	.tec-jornada.tec-js .tec-sel-pie, .tec-jornada.tec-js .tec-sel-asis { padding-left: 0; margin-left: 0; }
	.tec-sel-main { flex-wrap: wrap; }
}

.tec-carrito { border: 1px solid rgba(0,0,0,.14); border-radius: 10px; padding: 1em; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.tec-carrito-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2em .6em; margin-bottom: .5em; }
.tec-carrito-total { font-size: .9em; white-space: nowrap; }
.tec-carrito-items { list-style: none; margin: 0 0 .8em; padding: 0; display: grid; gap: .3em; }
.tec-carrito-items li { display: flex; gap: .5em; align-items: flex-start; padding: .5em 0; border-top: 1px solid rgba(0,0,0,.08); font-size: .95em; }
.tec-carrito-items li > span:first-child { flex: 1; display: grid; min-width: 0; }
.tec-carrito-items small { color: rgba(0,0,0,.6); font-size: .85em; }
.tec-carrito-items em { color: #a12a2a; font-style: normal; }
.tec-ci-precio { font-weight: 700; white-space: nowrap; }
.tec-jornada button.tec-quitar-sel { border: 0; background: none; font-size: 1.25rem; line-height: 1; cursor: pointer; color: rgba(0,0,0,.45); padding: 0 .2em; }
.tec-jornada button.tec-quitar-sel:hover { color: #a12a2a; }
.tec-carrito-vacio, .tec-carrito-falta { font-size: .9em; margin: 0 0 .8em; }
.tec-carrito-falta { color: #a12a2a; }
.tec-carrito .tec-continuar { width: 100%; }
.tec-btn:disabled { opacity: .45; cursor: not-allowed; }
.tec-jornada button.tec-volver-paso { margin-left: .8em; border: 0; background: none; color: #1f3a5f; font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }

.tec-jornada button.tec-carrito-ver { display: none; border: 0; background: none; color: #1f3a5f; font-family: inherit; font-size: .85rem; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; margin: 0; min-height: 0; width: auto; box-shadow: none; }

/* Modalidad por día */
.tec-dia-asis { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em; margin: 0 0 .9em; padding: .6em .8em; border-radius: 8px; background: #eef3fa; }
.tec-dia-asis > span { font-weight: 600; }
.tec-form .tec-dia-asis label { display: inline-flex; align-items: center; gap: .35em; font-weight: normal; margin: 0; cursor: pointer; }
.tec-dia-asis small { flex-basis: 100%; color: rgba(0,0,0,.6); }
.tec-dia-asis-fija { margin: 0 0 .9em; font-size: .92em; color: rgba(0,0,0,.65); }
.tec-dia-asis.tec-pide { animation: tec-pide 1.2s ease; box-shadow: 0 0 0 2px #d63638; }
@keyframes tec-pide { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.tec-sel.tec-incompat { opacity: .55; }
.tec-jornada button.tec-add:disabled { border-color: rgba(0,0,0,.25); color: rgba(0,0,0,.55); background: #f3f3f3; cursor: not-allowed; }
.tec-dia-asis-unica .tec-chip { font-size: .95em; padding: .2em .8em; font-weight: 700; }

/* Pantalla final después de inscribirse */
.tec-listo { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 1.4em 1.5em; max-width: 44em; }
.tec-listo-titulo { margin: 0 0 .4em; font-size: 1.35em; line-height: 1.3; }
.tec-listo-titulo span { color: #1a7f45; }
.tec-listo-lista { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: .6em; }
.tec-listo-lista li { display: grid; gap: .15em; padding: .8em 1em; border: 1px solid #e3e5e8; border-radius: 8px; background: #fafbfc; }
.tec-listo-lista span { font-size: .92em; color: rgba(0,0,0,.7); }
.tec-listo-lista .tec-listo-estado { font-weight: 600; color: #1a7f45; }
.tec-listo-lista .tec-listo-estado.tec-pend { color: #8a5a00; }
.tec-listo-aviso { background: #fcf4e2; border-left: 4px solid #d29a1c; border-radius: 6px; padding: .8em 1em; margin: 1em 0; }
.tec-listo-aviso p { margin: .35em 0 0; font-size: .92em; }
.tec-listo-acciones { margin: 1.2em 0 0; }
.tec-form .tec-info-ok { margin-top: .5em; }
.tec-form .tec-info-ok small { display: block; opacity: .75; }
