/* Técnicas WCAG (/es/tecnicas). Colores de addaw.org: lila #744E9A, lila oscuro #412c56, azul #44AFE4, negro #0B2239, gris medio #5F6368, gris neutro #F1F3F4 */
.tec { color: #0B2239; }
.tec .bloque-contenedor { max-width: 960px; }
.tec h1, .tec h2, .tec h3, .tec h4 { line-height: 1.3; }
.tec a { color: #5b3d78; text-decoration: underline; text-underline-offset: 2px; }
.tec a:hover, .tec a:focus { color: #0B2239; }
.tec a:focus-visible { outline: 3px solid #44AFE4; outline-offset: 2px; }

/* ---------- Cabecera común ---------- */
.tec-kicker { margin: 0 0 8px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: #5b3d78; font-weight: 600; }
.tec-hero { background: linear-gradient(278.36deg, #f4eff9 18.22%, #eaf6fc 92.89%); border-bottom: 4px solid #744E9A; padding: 36px 0 28px; margin-top: 0; }
.tec-hero .bloque-contenedor { margin-top: 0; margin-bottom: 0; }
.tec-hero h1 { margin: 0 0 16px; font-size: 2rem; }
.tec-hero__intro { max-width: 820px; line-height: 1.65; font-size: 1.05rem; margin: 0 0 12px; }
.tec-cifras { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.tec-cifras li { font-size: 1rem; }
.tec-cifras strong { font-size: 1.6rem; color: #412c56; margin-right: 6px; }

/* ---------- Buscador ---------- */
.tec-buscador { margin-top: 28px; margin-bottom: 8px; }
.tec-buscador label { display: block; font-weight: 600; margin-bottom: 6px; }
.tec-buscador input[type="search"] { width: 100%; max-width: 560px; font: inherit; font-size: 1.05rem; padding: 12px 16px; border: 2px solid #5F6368; border-radius: 8px; color: #0B2239; background: #fff; }
.tec-buscador input[type="search"]:focus { border-color: #744E9A; outline: 3px solid #44AFE4; outline-offset: 1px; }
.tec-buscador__estado { min-height: 1.4em; margin: 8px 0 0; color: #5F6368; font-size: .95rem; }

/* ---------- Índice de familias ---------- */
.tec-indice { margin-top: 12px; margin-bottom: 8px; }
.tec-indice__titulo { font-size: 1rem; margin: 0 0 8px; color: #5F6368; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tec-indice ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tec-indice a { display: inline-block; padding: 6px 12px; border: 1px solid #c8bcd5; border-radius: 20px; background: #fff; text-decoration: none; font-size: .95rem; }
.tec-indice a:hover, .tec-indice a:focus { background: #744E9A; color: #fff; border-color: #744E9A; }
.tec-indice__n { color: inherit; }

/* ---------- Listado ---------- */
.tec-listado { margin-top: 8px; }
.tec-familia { margin: 28px 0 0; padding-top: 8px; }
.tec-familia h2 { font-size: 1.45rem; color: #412c56; margin: 0 0 6px; padding: 10px 14px; background: #f4eff9; border-left: 5px solid #744E9A; }
.tec-familia__n { display: inline-block; margin-left: 8px; font-size: .9rem; font-weight: 600; color: #fff; background: #744E9A; border-radius: 12px; padding: 1px 10px; vertical-align: middle; }
.tec-familia__desc { margin: 6px 0 12px; color: #5F6368; line-height: 1.55; }
.tec-lista { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.tec-item { padding: 7px 0; border-bottom: 1px solid #e6e6ea; line-height: 1.45; }
.tec-item a { text-decoration: none; display: flex; gap: .6em; align-items: baseline; }
.tec-item a:hover .tec-item__nombre, .tec-item a:focus .tec-item__nombre { text-decoration: underline; }
.tec-item__codigo { flex: 0 0 3.9em; font-weight: 700; color: #412c56; font-variant-numeric: tabular-nums; }
.tec-item__nombre { color: #0B2239; }
.tec-item--obsoleta .tec-item__nombre { color: #5F6368; }
.tec-sin-resultados { padding: 20px; background: #F1F3F4; border-radius: 8px; }

/* ---------- Etiquetas ---------- */
.tec-etiqueta { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .03em; padding: 2px 10px; border-radius: 12px; background: #F1F3F4; color: #0B2239; border: 1px solid #d9d9df; vertical-align: middle; }
.tec-etiqueta--tipo { background: #e3f3fb; border-color: #44AFE4; color: #0B2239; }
.tec-etiqueta--fallo { background: #fdecec; border-color: #E62D2C; color: #7a1413; }
.tec-etiqueta--obsoleta { background: #fff4e0; border-color: #F7A41B; color: #6b4300; }
.tec-nivel { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 4px; background: #412c56; color: #fff; vertical-align: middle; }

/* ---------- Detalle ---------- */
.tec-detalle .tec-articulo { margin-top: 20px; }
.tec-cabecera__etiquetas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tec-cabecera h1 { font-size: 1.9rem; margin: 0 0 20px; }
.tec-codigo { display: block; font-size: 1rem; letter-spacing: .1em; color: #5b3d78; font-weight: 700; margin-bottom: 4px; }
.tec-aviso { border-left: 5px solid #F7A41B; background: #fff8ea; padding: 12px 18px; margin: 0 0 20px; line-height: 1.55; }
.tec-aviso p { margin: 0; }
.tec-resumen { background: #f4eff9; border-left: 5px solid #744E9A; padding: 18px 22px; margin: 0 0 24px; border-radius: 0 8px 8px 0; }
.tec-resumen h2 { margin: 0 0 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: #412c56; }
.tec-resumen p { margin: 0; font-size: 1.08rem; line-height: 1.65; }
.tec-criterios { background: #fff; border: 1px solid #c8bcd5; border-radius: 8px; padding: 16px 20px; margin: 0 0 28px; }
.tec-criterios h2 { margin: 0 0 10px; font-size: 1.1rem; color: #412c56; }
.tec-criterios h3 { margin: 10px 0 4px; font-size: .95rem; color: #5F6368; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tec-criterios__lista { list-style: none; padding: 0; margin: 0; }
.tec-criterios__lista li { padding: 4px 0; line-height: 1.5; }
.tec-criterios__num { font-weight: 700; color: #412c56; margin-right: .4em; display: inline-block; }

/* Contenido traducido (estructura del W3C) */
.tec-contenido { line-height: 1.65; font-size: 1.02rem; }
.tec-contenido > section { margin: 0 0 30px; }
.tec-contenido h2 { font-size: 1.45rem; color: #412c56; border-bottom: 2px solid #c8bcd5; padding-bottom: 6px; margin: 32px 0 14px; }
.tec-contenido h3 { font-size: 1.15rem; margin: 22px 0 8px; color: #0B2239; }
.tec-contenido h4 { font-size: 1.02rem; margin: 16px 0 6px; }
.tec-contenido p { margin: 0 0 12px; }
.tec-contenido ul, .tec-contenido ol { margin: 0 0 14px; padding-left: 26px; }
.tec-contenido li { margin-bottom: 6px; }
.tec-contenido .example { border: 1px solid #e0e0e6; border-radius: 8px; padding: 14px 18px; margin: 0 0 18px; background: #fbfbfd; }
.tec-contenido .example h3 { margin-top: 0; }
.tec-contenido .note, .tec-contenido p.note { border-left: 4px solid #44AFE4; background: #eaf6fc; padding: 10px 16px; margin: 0 0 14px; border-radius: 0 6px 6px 0; }
.tec-contenido .note p:last-child { margin-bottom: 0; }
.tec-contenido pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #0B2239; color: #f4f4f8; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: .9rem; line-height: 1.5; tab-size: 2; margin: 0 0 14px; }
.tec-contenido pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.tec-contenido code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .92em; background: #F1F3F4; padding: 1px 5px; border-radius: 4px; color: #412c56; }
.tec-contenido table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: .95rem; }
.tec-contenido th, .tec-contenido td { border: 1px solid #d9d9df; padding: 6px 10px; text-align: left; vertical-align: top; }
.tec-contenido th { background: #F1F3F4; }
.tec-contenido img { max-width: 100%; height: auto; }
.tec-contenido figure { margin: 0 0 14px; }
.tec-contenido figcaption { font-size: .92rem; color: #5F6368; }
.tec-contenido .procedure, .tec-contenido .results { margin: 0 0 12px; }
.tec-contenido .results { background: #F1F3F4; padding: 10px 16px; border-radius: 6px; }
.tec-contenido .results h3 { margin-top: 0; }
.tec-contenido .enlace-de-ejemplo { text-decoration: underline dotted; color: #5F6368; }
.tec-contenido .tecnica-obsoleta { color: #6b4300; font-size: .9em; }
.tec-contenido abbr[title] { text-decoration: underline dotted; cursor: help; }

/* ADDAW / fuente / navegación */
.tec-addaw { background: #F1F3F4; border-left: 5px solid #5F6368; padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 36px 0 24px; }
.tec-addaw h2 { color: #412c56; margin: 0 0 8px; font-size: 1.15rem; }
.tec-addaw p { line-height: 1.6; margin: 0 0 12px; }
.tec-addaw__botones { margin: 0; }
.tec-addaw .btn { margin: 0; text-decoration: none; }
.tec-addaw a.btn-lila { color: #fff; }
.tec-addaw a.btn-lila:hover, .tec-addaw a.btn-lila:focus { color: #fff; }
.tec-fuente { font-size: .92rem; color: #5F6368; line-height: 1.55; border-top: 1px solid #e0e0e6; padding-top: 14px; background: none; text-align: left; }
.tec-fuente h2 { font-size: .95rem; margin: 0 0 6px; color: #5F6368; text-transform: uppercase; letter-spacing: .05em; }
.tec-fuente p { margin: 0; }
.tec-navegacion { margin: 28px 0 0; }
.tec-navegacion ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.tec-navegacion a { text-decoration: none; display: block; line-height: 1.45; }
.tec-navegacion a span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5F6368; }
.tec-navegacion__siguiente { text-align: right; }
.tec-navegacion__todas { text-align: center; font-size: .95rem; padding-top: 14px; }
.tec-navegacion__todas a { display: inline; }

/* Bloque de técnicas en la página del criterio */
.criterio-tecnicas { margin-top: 32px; }
.criterio-tecnicas h2 { font-size: 1.4rem; }
.criterio-tecnicas__intro { color: #5F6368; line-height: 1.55; }
.criterio-tecnicas h3 { font-size: 1.15rem; color: #412c56; margin: 22px 0 8px; padding: 8px 12px; background: #f4eff9; border-left: 4px solid #744E9A; }
#cuerpoPrincipal .criterio-tecnicas h4 { font-size: 1rem !important; font-weight: 600 !important; margin: 18px 0 6px; }
#cuerpoPrincipal .criterio-tecnicas a { color: #5b3d78; text-decoration: underline; text-underline-offset: 2px; }
#cuerpoPrincipal .criterio-tecnicas a:hover, #cuerpoPrincipal .criterio-tecnicas a:focus { color: #0B2239; }
.criterio-tecnicas ul { margin: 0 0 12px; padding-left: 24px; line-height: 1.55; }
.criterio-tecnicas li { margin-bottom: 6px; }
.criterio-tecnicas .note { border-left: 4px solid #44AFE4; background: #eaf6fc; padding: 8px 14px; margin: 8px 0 14px; }
.criterio-tecnicas .tecnica-obsoleta { color: #6b4300; font-size: .9em; }
.criterio-tecnicas__todas { margin-top: 14px; }

/* ---------- Bloque práctico de ADDAW ---------- */
.tec-practica { margin: 0 0 28px; }
.tec-practica > h2, .tec-practica h2 { font-size: 1.45rem; color: #412c56; border-bottom: 2px solid #c8bcd5; padding-bottom: 6px; margin: 32px 0 14px; }
.tec-practica__intro { line-height: 1.65; font-size: 1.04rem; }
.tec-ejemplos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tec-ejemplo { min-width: 0; border: 1px solid #e0e0e6; border-radius: 10px; padding: 16px 18px; background: #fff; border-top-width: 5px; }
.tec-ejemplo--mal { border-top-color: #E62D2C; }
.tec-ejemplo--bien { border-top-color: #1e7b3c; }
.tec-ejemplo h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.35; }
.tec-ejemplo--mal h3 { color: #a11a19; }
.tec-ejemplo--bien h3 { color: #17602e; }
.tec-marca { display: inline-block; width: 1.4em; height: 1.4em; line-height: 1.4em; text-align: center; border-radius: 50%; color: #fff; font-size: .9em; margin-right: 4px; }
.tec-ejemplo--mal .tec-marca { background: #c42222; }
.tec-ejemplo--bien .tec-marca { background: #1e7b3c; }
.tec-ejemplo p { line-height: 1.6; margin: 0 0 12px; }
.tec-ejemplo pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #0B2239; color: #f4f4f8; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: .86rem; line-height: 1.5; margin: 0 0 14px; }
.tec-ejemplo pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; background: none; color: inherit; padding: 0; }
.tec-ejemplo code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: #F1F3F4; padding: 1px 5px; border-radius: 4px; color: #412c56; }
.tec-captura { margin: 0 0 10px; }
.tec-captura img { display: block; max-width: 100%; height: auto; border: 1px solid #d9d9df; border-radius: 6px; }
.tec-captura figcaption { font-size: .88rem; color: #5F6368; margin-top: 4px; }
.tec-demo-etiqueta { font-weight: 600; margin: 4px 0 6px !important; }
.tec-demo { display: block; width: 100%; border: 2px dashed #1e7b3c; border-radius: 8px; background: #fff; margin: 0 0 6px; }
.tec-demo--mal { border-color: #c42222; }
.tec-demo-nota { font-size: .88rem; color: #5F6368; }
.tec-demo-cargar { border: 2px solid #744E9A !important; background: #fff; color: #412c56 !important; }
.tec-demo-cargar:hover, .tec-demo-cargar:focus { background: #744E9A !important; color: #fff !important; }
.tec-demo-cargar[disabled], .tec-demo-cargar[disabled]:hover, .tec-demo-cargar[disabled]:focus { cursor: default; border-style: dashed !important; background: #fff !important; color: #412c56 !important; }
.tec-comprobar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tec-comprobar__item { min-width: 0; overflow-wrap: anywhere; background: #F1F3F4; border-radius: 8px; padding: 14px 18px; }
.tec-comprobar__item h3 { margin: 0 0 8px; font-size: 1.02rem; color: #412c56; }
.tec-comprobar__item ol { margin: 0 0 8px; padding-left: 22px; line-height: 1.55; }
.tec-comprobar__item li { margin-bottom: 4px; }
.tec-comprobar__anuncio { margin: 6px 0 0; font-size: .95rem; }
.tec-errores { line-height: 1.6; padding-left: 24px; }
.tec-errores li { margin-bottom: 6px; }
.tec-separador { margin: 36px 0 0; padding-top: 14px; border-top: 3px solid #744E9A; color: #412c56; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.tec-etiqueta--practica { background: #e8f5ec; border-color: #1e7b3c; color: #17602e; }
/* ---------- Explicación en lenguaje claro y texto original plegado ---------- */
.tec-nombre-oficial { margin: -12px 0 18px; font-size: .9rem; color: #5F6368; line-height: 1.45; }
.tec-explicacion { line-height: 1.65; font-size: 1.04rem; }
.tec-explicacion h2 { font-size: 1.35rem; color: #412c56; border-bottom: 2px solid #c8bcd5; padding-bottom: 6px; margin: 30px 0 12px; }
.tec-explicacion ul, .tec-explicacion ol { padding-left: 24px; margin: 0 0 12px; }
.tec-explicacion li { margin-bottom: 6px; }
.tec-explicacion p { margin: 0 0 12px; }
.tec-explicacion code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: #F1F3F4; padding: 1px 5px; border-radius: 4px; color: #412c56; }
.tec-explicacion pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #0B2239; color: #f4f4f8; padding: 14px 16px; border-radius: 8px; font-size: .88rem; line-height: 1.5; margin: 0 0 14px; }
.tec-explicacion pre code { background: none; color: inherit; padding: 0; }
.tec-original { margin: 34px 0 10px; border: 1px solid #c8bcd5; border-radius: 8px; background: #fff; }
.tec-original > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: #412c56; list-style-position: inside; }
.tec-original > summary:hover { background: #f4eff9; }
.tec-original > summary:focus-visible { outline: 3px solid #44AFE4; outline-offset: 2px; }
.tec-original[open] > summary { border-bottom: 1px solid #c8bcd5; }
.tec-original > .tec-contenido { padding: 0 18px 10px; }
.tec-fuente a { display: inline !important; }
.tec-fuente { line-height: 1.5 !important; font-size: .85rem !important; color: #5F6368; line-height: 1.5; border-top: 1px solid #e0e0e6; padding-top: 12px; margin: 18px 0 0; }
.tec-navegacion ul { grid-template-columns: 1fr auto 1fr; }
.tec-navegacion a { font-size: .95rem; }

@media (max-width: 767px) { .tec-comprobar { grid-template-columns: 1fr; } }

@media (max-width: 767px) {
    .tec .bloque-contenedor { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
    .tec-indice a { font-size: .85rem; padding: 4px 10px; }
    .tec-hero { padding: 22px 0 18px; }
    .tec-hero__intro { font-size: 1rem; }
    .tec-ejemplo { padding: 12px 12px; }
    .tec-resumen { padding: 14px 16px; }
    .tec-criterios { padding: 12px 14px; }
    .tec-original > .tec-contenido { padding: 0 12px 8px; }
    .tec-hero h1 { font-size: 1.55rem; }
    .tec-lista { grid-template-columns: 1fr; }
    .tec-cabecera h1 { font-size: 1.5rem; }
    .tec-navegacion ul { grid-template-columns: 1fr; }
    .tec-navegacion__siguiente { text-align: left; }
    .tec-addaw { padding: 18px; }
    .tec-contenido pre { font-size: .82rem; }
}
@media print {
    .tec-addaw, .tec-navegacion, .plugin-addaw-banda, .tec-buscador, .tec-indice { display: none; }
}

/* Código de los ejemplos prácticos plegado: primero se ve el resultado */
.tec-codigo-plegable { margin: 0 0 12px; }
.tec-codigo-plegable > summary { cursor: pointer; display: inline-block; padding: 6px 12px; border: 1px solid #c8bcd5; border-radius: 6px; color: #412c56; font-weight: 600; font-size: .92rem; background: #fff; }
.tec-codigo-plegable > summary:hover { background: #f4eff9; }
.tec-codigo-plegable > summary:focus-visible { outline: 3px solid #44AFE4; outline-offset: 2px; }
.tec-codigo-plegable[open] > summary { margin-bottom: 8px; }
