.eco-cursos{max-width:1200px;margin:auto;padding:clamp(14px,3vw,32px);color:inherit}.eco-cursos header{margin-bottom:20px}.eco-panel{border:1px solid #cbd5e1;border-radius:12px;padding:16px;margin:14px 0}.eco-panel summary{cursor:pointer;font-weight:650}.eco-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.eco-form label,.eco-filters label{display:flex;flex-direction:column;gap:5px}.eco-form input,.eco-form select,.eco-form textarea,.eco-filters input,.eco-filters select{max-width:100%;min-width:0;padding:9px;border:1px solid #94a3b8;border-radius:7px;background:transparent;color:inherit}.eco-form .wide{grid-column:1/-1}.eco-form button,.eco-pages button{padding:9px 15px;cursor:pointer;border:1px solid #64748b;border-radius:8px;background:transparent;color:inherit}.eco-form button{grid-column:1/-1;justify-self:start}.eco-scroll{overflow-x:auto}.eco-scroll table{width:100%;border-collapse:collapse}.eco-scroll th,.eco-scroll td{text-align:left;padding:10px;border-bottom:1px solid #94a3b8}.eco-filters{margin-bottom:12px}.eco-filters label{margin:10px 0}.eco-pages{display:flex;align-items:center;gap:12px;margin-top:12px}.eco-error{color:#b91c1c}.eco-ok{color:#15803d}@media(max-width:640px){.eco-form{grid-template-columns:1fr}.eco-cursos{padding:12px}.eco-panel{padding:12px}.eco-form button{width:100%}.eco-pages{justify-content:space-between}}

.eco-inline-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.eco-inline-form label{display:flex;flex-direction:column;gap:4px;font-size:.9rem}.eco-inline-form select,.eco-inline-form button{padding:7px;border:1px solid #94a3b8;border-radius:7px;background:transparent;color:inherit}.eco-scroll td{vertical-align:top}@media(max-width:640px){.eco-inline-form{flex-direction:column;align-items:stretch}.eco-scroll{max-width:100%}}

.eco-public-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}.eco-public-grid .eco-panel{margin:0}.eco-publico h2{overflow-wrap:anywhere}.eco-publico .eco-pages{flex-wrap:wrap}.eco-publico a{overflow-wrap:anywhere}

/* V084.03.02: autoservicio de solicitudes, controles adaptables sin scroll horizontal de formularios. */
.eco-cursos .eco-solicitud-cancelar{margin:0;display:flex;min-width:0}
.eco-cursos .eco-solicitud-cancelar button{padding:8px 12px;border:1px solid #b45309;border-radius:8px;background:transparent;color:inherit;cursor:pointer;white-space:normal;text-align:center;min-height:40px}
.eco-cursos .eco-solicitud-cancelar button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.eco-cursos .eco-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.eco-cursos .eco-scroll table{min-width:600px}
@media(max-width:640px){.eco-cursos .eco-solicitud-cancelar{display:block}.eco-cursos .eco-solicitud-cancelar button{width:100%;min-width:118px}.eco-cursos .eco-pages{flex-wrap:wrap}.eco-cursos .eco-filters summary{min-height:40px}}

/* V084.03.03: cola visible para alumno y promoción manual en administración. */
.eco-cursos .eco-wait-position{display:inline-block;padding:4px 9px;border:1px solid #64748b;border-radius:999px;font-size:.9rem;font-weight:600}
.eco-cursos .eco-wait-help{font-size:.92rem;line-height:1.45}
.eco-cursos .eco-wait-promote{display:flex;min-width:0;margin:0}
.eco-cursos .eco-wait-promote button{border:1px solid #64748b;border-radius:8px;background:transparent;color:inherit;padding:9px 12px;min-height:42px;white-space:normal;cursor:pointer}
.eco-cursos .eco-wait-promote button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media(max-width:640px){.eco-cursos .eco-wait-promote button{width:100%;min-width:150px}.eco-cursos .eco-wait-position{white-space:normal}}

/* V084.03.04: filtros GET plegados y paginación SQL adaptable. */
.eco-cursos .eco-filters-sql .eco-form{grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:12px;padding:10px 0;align-items:end}
.eco-cursos .eco-filters-sql .eco-form button{grid-column:auto;min-height:42px}
.eco-cursos .eco-pages-sql{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}
.eco-cursos .eco-pages-sql a,.eco-cursos .eco-pages-sql [aria-disabled]{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid #64748b;border-radius:8px;color:inherit;text-decoration:none}
.eco-cursos .eco-pages-sql [aria-disabled]{opacity:.55}
.eco-cursos .eco-pages-sql a:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media(max-width:640px){.eco-cursos .eco-filters-sql .eco-form{grid-template-columns:1fr}.eco-cursos .eco-filters-sql .eco-form button{width:100%}.eco-cursos .eco-pages-sql{justify-content:center}.eco-cursos .eco-pages-sql span[role="status"]{width:100%;text-align:center;order:-1}}


/* V084.03.07: selectores privados compatibles con pantalla pequeña. */
.eco-cursos .eco-curso-catalogo{min-width:0;max-width:100%;margin:8px 0 14px;grid-column:1/-1;border:1px solid #94a3b8;border-radius:9px;padding:8px 12px}
.eco-cursos .eco-curso-catalogo summary{min-height:32px;cursor:pointer;overflow-wrap:anywhere}
.eco-cursos .eco-curso-catalogo__controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 0}
.eco-cursos .eco-curso-catalogo__controls input{min-width:min(100%,190px);flex:1 1 170px}
.eco-cursos .eco-curso-catalogo__controls select{flex:0 0 auto;max-width:100%}
.eco-cursos .eco-curso-catalogo__controls button{width:auto;min-height:40px;grid-column:auto}
.eco-cursos .eco-curso-catalogo__controls span{min-width:140px;flex:1 1 160px;overflow-wrap:anywhere}
@media(max-width:640px){.eco-cursos .eco-curso-catalogo{padding:8px}.eco-cursos .eco-curso-catalogo__controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.eco-cursos .eco-curso-catalogo__controls input,.eco-cursos .eco-curso-catalogo__controls select,.eco-cursos .eco-curso-catalogo__controls span{grid-column:1/-1;width:100%}.eco-cursos .eco-curso-catalogo__controls button{width:100%;min-width:0}}

/* V084.03.11: certificados personales SQL, móviles sin desbordar. */
.eco-cursos .eco-filters-sql form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px;margin:12px 0}
.eco-cursos .eco-filters-sql label{display:grid;gap:5px;min-width:0}
.eco-cursos .eco-filters-sql input,.eco-cursos .eco-filters-sql select{width:100%;min-width:0;box-sizing:border-box}
.eco-cursos .eco-pages-sql{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
@media(max-width:640px){.eco-cursos .eco-pages-sql{flex-direction:column;align-items:stretch;text-align:center}.eco-cursos .eco-pages-sql a,.eco-cursos .eco-pages-sql span[aria-disabled]{justify-content:center}}

/* V084.03.14: navegación y tabla accesibles sin JavaScript para instructores. */
.eco-cursos .eco-filters-sql summary:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
.eco-cursos .eco-pages-sql a:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media(max-width:640px){.eco-cursos .eco-filters-sql input,.eco-cursos .eco-filters-sql select{width:100%;min-width:0}.eco-cursos .eco-pages-sql a{width:100%;box-sizing:border-box}}

.eco-progreso-curso{display:grid;gap:.35rem;min-width:0;overflow-wrap:anywhere}.eco-progreso-curso progress{width:100%;max-width:24rem;height:.85rem;accent-color:#2563eb}

/* V084.04.09: texto largo en pantallas estrechas */
.eco-cursos .eco-public-grid article, .eco-cursos .eco-panel { min-width:0; overflow-wrap:anywhere; }
