/* =========================================================================
   Panel de colaboradores de Tribuna Atlántica.
   Mismo lenguaje visual que el diario, pero autónomo: esta aplicación no
   comparte hoja de estilos con WordPress.
   ========================================================================= */

:root {
	--fondo:        #ffffff;
	--fondo-alt:    #f5f6f8;
	--fondo-hueco:  #e9ebef;
	--texto:        #15171c;
	--texto-suave:  #565c66;
	--texto-tenue:  #7c828c;
	--filete:       #dfe2e7;
	--filete-fuerte:#15171c;
	--acento:       #0a3ce0;
	--acento-fondo: #e8eeff;
	--sombra:       0 1px 2px rgba(21,23,28,.05), 0 8px 24px rgba(21,23,28,.06);
	--radio:        3px;
	--serif: Charter, Georgia, "Times New Roman", serif;
	--sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--fondo);
	color: var(--texto);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code { font-family: Consolas, Monaco, monospace; font-size: .9em; background: var(--fondo-alt); padding: .1em .35em; border-radius: 3px; }

.marco { width: min(100% - 2rem, 1180px); margin-inline: auto; }

/* ------------------------------------------------------------- cabecera */

.cabecera {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; flex-wrap: wrap;
	padding: 1.25rem 0;
	border-bottom: 2px solid var(--filete-fuerte);
}
.marca { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.marca__logo { display: block; width: 200px; height: auto; }
.marca span { font-size: .75rem; color: var(--texto-tenue); }

.quien { display: flex; align-items: center; gap: .75rem; }
.quien img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--fondo-hueco); }
.quien__nombre { font-weight: 600; font-size: .875rem; margin: 0; line-height: 1.2; }
.quien__rol { font-size: .75rem; color: var(--texto-tenue); margin: 0; }

.nav { border-bottom: 1px solid var(--filete); }
.nav ul { display: flex; gap: 1.5rem; list-style: none; overflow-x: auto; }
.nav a {
	display: block; padding: .8rem 0;
	font-size: .875rem; font-weight: 600; white-space: nowrap;
	color: var(--texto-suave);
	border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--texto); }
.nav a.es-activa { color: var(--acento); border-bottom-color: var(--acento); }

.contenido { padding: 1.75rem 0 4rem; }
.titulo-zona { margin-bottom: 1.75rem; }
.titulo-zona h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -.02em; }
.descripcion { font-family: var(--serif); color: var(--texto-suave); margin: .5rem 0 0; max-width: 62ch; }

.pie { border-top: 1px solid var(--filete); padding: 1.5rem 0; font-size: .75rem; color: var(--texto-tenue); }
.pie p { margin: 0; }

/* El selector claro / oscuro de la cabecera. */
.tema { display: inline-flex; margin-left: auto; border: 1px solid var(--filete); border-radius: 999px; padding: 2px; }
.tema button {
	font: 600 .75rem/1 var(--sans); color: var(--texto-suave);
	background: none; border: 0; border-radius: 999px; padding: .45rem .8rem; cursor: pointer;
}
.tema button:hover { color: var(--texto); }
.tema button[aria-pressed="true"] { background: var(--filete-fuerte); color: var(--fondo); }

/* --------------------------------------------------------------- avisos */

.aviso {
	font-size: .9375rem; line-height: 1.5;
	padding: .9rem 1.1rem; border-radius: var(--radio);
	border-left: 3px solid; margin-bottom: 1.5rem;
}
.aviso a { color: inherit; font-weight: 600; text-decoration: underline; }
.aviso--exito      { background: #e9f6ec; border-color: #1c7c3c; color: #14532b; }
.aviso--error      { background: #fdecec; border-color: #b32d2e; color: #7d1d1e; }
.aviso--sugerencia { background: var(--acento-fondo); border-color: var(--acento); }

/* -------------------------------------------------------------- botones */

.boton {
	display: inline-flex; align-items: center; gap: .4rem;
	font-family: var(--sans); font-size: .875rem; font-weight: 600;
	padding: .55rem 1rem;
	border: 1px solid var(--filete-fuerte); border-radius: var(--radio);
	background: transparent; color: var(--texto);
	cursor: pointer; text-align: center;
}
.boton:hover { background: var(--filete-fuerte); color: #fff; }
.boton--principal { background: var(--filete-fuerte); color: #fff; }
.boton--principal:hover { background: var(--acento); border-color: var(--acento); }
.boton--sutil { border-color: var(--filete); color: var(--texto-suave); font-weight: 500; }
.boton--sutil:hover { border-color: var(--acento); background: transparent; color: var(--acento); }
.ancho { width: 100%; justify-content: center; }
.enlace-sutil { font-size: .75rem; color: var(--texto-tenue); text-decoration: underline; text-align: center; }

/* --------------------------------------------------------------- campos */

.campo { margin-bottom: 1.1rem; }
.campo > label {
	display: block; font-size: .75rem; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--texto-suave); margin-bottom: .35rem;
}
.campo input, .campo select, .campo textarea, .equipo-barra input {
	width: 100%; font-family: var(--sans); font-size: .9375rem;
	padding: .6rem .7rem;
	border: 1px solid var(--filete); border-radius: var(--radio);
	background: var(--fondo); color: var(--texto);
}
.campo textarea { font-family: var(--serif); font-size: 1rem; line-height: 1.55; resize: vertical; }
.titular { font-family: var(--serif) !important; font-size: 1.375rem !important; font-weight: 700; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--acento); outline-offset: 1px; }
.campo input:disabled { background: var(--fondo-alt); color: var(--texto-tenue); }
.con-boton { display: flex; gap: .5rem; }
.con-boton input { flex: 1; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; margin-bottom: 1rem; }
.ayuda { font-size: .75rem; color: var(--texto-tenue); margin: .35rem 0 0; line-height: 1.5; }
.ayuda--destacada { background: var(--acento-fondo); color: var(--texto); padding: .7rem .85rem; border-radius: var(--radio); }
.obl { color: var(--acento); }
.antetitulo { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acento); margin: 0 0 .3rem; }

/* -------------------------------------------------------------- columnas */

.columnas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
/* Sin esto, un campo ancho (el titular, un área de texto) fija el ancho mínimo de
   la columna y en el teléfono la tarjeta se salía por la derecha: la página
   entera se podía arrastrar de lado. */
.columnas > * { min-width: 0; }
input, select, textarea { max-width: 100%; min-width: 0; }
@media (min-width: 62rem) {
	.columnas { grid-template-columns: minmax(0, 1fr) 20rem; }
	.columnas__lateral { position: sticky; top: 1rem; }
}

.tarjeta { border: 1px solid var(--filete); border-radius: var(--radio); padding: 1.25rem; margin-bottom: 1.25rem; }
.tarjeta h2 {
	font-family: var(--sans); font-size: .75rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: var(--texto-suave);
	margin-bottom: .9rem;
}
.tarjeta--acciones { display: flex; flex-direction: column; gap: .6rem; }

.lista-opciones { display: flex; flex-direction: column; gap: .1rem; }
.lista-opciones--alta { max-height: 16rem; overflow-y: auto; border: 1px solid var(--filete); border-radius: var(--radio); padding: .35rem; margin: .5rem 0 1rem; }
.lista-opciones label {
	display: flex; align-items: center; gap: .5rem;
	font-size: .875rem; padding: .35rem .4rem; border-radius: var(--radio); cursor: pointer;
}
.lista-opciones label:hover { background: var(--fondo-alt); }
.lista-opciones label.oculta { display: none; }
.cuenta { margin-left: auto; font-size: .6875rem; color: var(--texto-tenue); }
.rol { align-items: flex-start !important; }
.rol strong { display: block; }
.rol em { display: block; font-style: normal; font-size: .75rem; color: var(--texto-tenue); }

.barra-formato { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .4rem; }
.barra-formato button {
	font-size: .75rem; padding: .3rem .6rem; cursor: pointer;
	border: 1px solid var(--filete); border-radius: var(--radio);
	background: var(--fondo-alt); color: var(--texto-suave);
}
.barra-formato button:hover { border-color: var(--acento); color: var(--acento); }

.portada-actual { width: 100%; border-radius: var(--radio); margin-bottom: .75rem; }
.foto-perfil { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: .75rem; }

/* -------------------------------------------------------------- cifras */

.cifras { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-bottom: 1.75rem; }
.cifra { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--filete); border-radius: var(--radio); }
.cifra:hover { border-color: var(--acento); }
.cifra__numero { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.cifra__texto { display: block; font-size: .8125rem; color: var(--texto-tenue); margin-top: .35rem; }
.cifra--atencion .cifra__numero { color: var(--acento); }

.atajos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: 2.5rem; }
.atajo { display: block; padding: 1.25rem; border: 1px solid var(--filete); border-radius: var(--radio); }
.atajo:hover { border-color: var(--acento); box-shadow: var(--sombra); }
.atajo strong { display: block; font-family: var(--serif); font-size: 1.125rem; margin-bottom: .25rem; }
.atajo span { font-size: .8125rem; color: var(--texto-tenue); }
.atajo--principal { background: var(--acento-fondo); border-color: var(--acento); }

/* --------------------------------------------------------------- listas */

.bloque { margin-bottom: 2.5rem; }
.bloque__cabecera { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--filete-fuerte); padding-bottom: .5rem; margin-bottom: 1rem; }
.bloque__cabecera h2 { font-size: 1.25rem; }
.bloque__cabecera a { font-size: .8125rem; font-weight: 600; color: var(--acento); }

.lista { list-style: none; }
.fila { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--filete); }
.fila__portada { flex: none; width: 76px; height: 52px; border-radius: var(--radio); overflow: hidden; background: var(--fondo-hueco); }
.fila__portada img { width: 100%; height: 100%; object-fit: cover; }
.fila__sin-portada { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: .625rem; color: var(--texto-tenue); text-align: center; }
.fila__texto { flex: 1; min-width: 0; }
.fila__texto h3 { font-size: 1.0625rem; }
.fila__texto h3 a:hover { color: var(--acento); }
.fila__meta { font-size: .75rem; color: var(--texto-tenue); margin: .3rem 0 0; }
.fila__acciones { display: flex; gap: .4rem; flex: none; }

.pastilla { display: inline-block; font-size: .6875rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; margin-right: .35rem; }
.pastilla--ok     { background: #e9f6ec; color: #1c7c3c; }
.pastilla--espera { background: #fcf0cd; color: #8a6116; }
.pastilla--neutro { background: var(--fondo-hueco); color: var(--texto-suave); }

/* -------------------------------------------------------------- filtros */

.filtros { background: var(--fondo-alt); border: 1px solid var(--filete); border-radius: var(--radio); padding: 1.1rem; margin-bottom: 1.5rem; }
.filtros__rejilla { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.filtros__rejilla .campo { margin-bottom: 0; }
.filtros__acciones { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.filtros__cuenta { font-size: .8125rem; color: var(--texto-tenue); margin-left: auto; }

.paginacion { display: flex; gap: .3rem; justify-content: center; margin-top: 2rem; }
.paginacion a { min-width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; font-size: .875rem; border: 1px solid var(--filete); border-radius: var(--radio); color: var(--texto-suave); }
.paginacion a.es-actual { background: var(--filete-fuerte); border-color: var(--filete-fuerte); color: #fff; font-weight: 600; }

.vacio { text-align: center; padding: 3rem 0; }
.vacio h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.vacio p { color: var(--texto-suave); }

/* --------------------------------------------------------------- equipo */

.equipo-barra { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.equipo-barra form { display: flex; gap: .5rem; }
.equipo-barra input { min-width: 16rem; }

.lista-equipo { list-style: none; margin-top: 1rem; }
.persona { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--filete); }
.persona__foto { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--fondo-hueco); display: flex; align-items: center; justify-content: center; }
.persona__foto img { width: 100%; height: 100%; object-fit: cover; }
.persona__foto span { font-size: .625rem; color: var(--texto-tenue); }
.persona__datos { flex: 1; min-width: 0; }
.persona__datos h3 { font-size: 1.0625rem; }
.persona__meta { font-size: .75rem; color: var(--texto-tenue); margin: .25rem 0 0; }
.persona__falta { font-size: .75rem; color: var(--acento); margin: .35rem 0 0; }
.persona__acciones { flex: none; display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; max-width: 22rem; }

/* --------------------------------------------------------------- acceso */

.acceso { display: flex; justify-content: center; padding: 3rem 0; }
.acceso__caja { width: 100%; max-width: 26rem; border: 1px solid var(--filete); border-radius: var(--radio); padding: 2rem; box-shadow: var(--sombra); }
.acceso__caja h2 { font-size: 1.75rem; margin-bottom: .4rem; }
.acceso__intro { font-family: var(--serif); color: var(--texto-suave); font-size: .9375rem; margin-bottom: 1.5rem; }
.acceso__pie, .acceso__nota { font-size: .75rem; text-align: center; color: var(--texto-tenue); margin: 1rem 0 0; }
.acceso__pie a { color: var(--acento); }
.estrecho { max-width: 30rem; }

/* --------------------------------------------------------- diagnóstico */

.diagnostico { max-width: 46rem; }
.diagnostico dl { background: var(--fondo-alt); border: 1px solid var(--filete); border-radius: var(--radio); padding: 1.25rem; margin: 1.5rem 0; }
.diagnostico dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-suave); }
.diagnostico dd { margin: .2rem 0 1rem; }
.diagnostico dd:last-child { margin-bottom: 0; }
.diagnostico h2 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.diagnostico ol { padding-left: 1.4rem; }
.diagnostico li { margin-bottom: .6rem; }
.diagnostico pre { background: var(--fondo-alt); border: 1px solid var(--filete); border-radius: var(--radio); padding: .75rem; overflow-x: auto; font-size: .8125rem; }

/* ------------------------------------------------------- medidor fuerza */

.fuerza { margin-top: .5rem; }
.fuerza__barra { height: 4px; background: var(--fondo-hueco); border-radius: 999px; overflow: hidden; }
.fuerza__barra span { display: block; height: 100%; width: 0; transition: width .25s, background-color .25s; }
.fuerza__texto { font-size: .75rem; margin: .3rem 0 0; color: var(--texto-tenue); }

/* El panel va en claro. El oscuro solo si alguien lo elige en el pie: antes
   seguía al sistema, y con el móvil en modo noche el panel salía negro sin que
   nadie lo hubiera pedido. */
:root[data-tema="oscuro"] {
	--fondo: #121317; --fondo-alt: #1a1c21; --fondo-hueco: #212429;
	--texto: #eceef1; --texto-suave: #a2a8b2; --texto-tenue: #7d838d;
	--filete: #2b2f36; --filete-fuerte: #eceef1;
	--acento: #7aa2ff; --acento-fondo: #16203a;
	color-scheme: dark;
}
[data-tema="oscuro"] .boton--principal, [data-tema="oscuro"] .boton:hover { color: #121317; }
[data-tema="oscuro"] .aviso--exito { background: #16301f; color: #b9e6c6; }
[data-tema="oscuro"] .aviso--error { background: #331a1b; color: #f0b4b4; }
/* El logo es oscuro sobre transparente: en el tema oscuro va sobre su blanco. */
[data-tema="oscuro"] .marca__logo { background: #fff; border-radius: 4px; padding: 4px 8px; }

/* ------------------------------------------------ documentación de apoyo */

.documentos-panel {
	margin-top: 2rem;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--filete, #dfe2e7);
	border-radius: .5rem;
	background: var(--fondo);
}
.documentos-panel h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.documentos-panel__lista { list-style: none; margin: 1.2rem 0; padding: 0; }
.documentos-panel__lista li {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: .9rem 0;
	border-top: 1px solid var(--filete);
}
.documentos-panel__lista li:first-child { border-top: 0; }
.documentos-panel__lista p { margin: .25rem 0 0; }
.documentos-panel__alta {
	margin-top: 1.2rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--filete);
}

/* --------------------------------------------------- mesa de redacción */

/* El aviso del menú: cuántas cosas esperan una decisión. */
.burbuja {
	display: inline-block;
	min-width: 1.25rem;
	padding: .05rem .35rem;
	margin-left: .3rem;
	border-radius: 999px;
	background: var(--acento);
	color: #fff;
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1.25rem;
	text-align: center;
	vertical-align: text-bottom;
}

.pestanas {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	border-bottom: 1px solid var(--filete);
	margin-bottom: 1.5rem;
}
.pestanas a {
	padding: .55rem .85rem;
	font-size: .875rem;
	font-weight: 600;
	color: var(--texto-suave);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.pestanas a:hover { color: var(--texto); }
.pestanas a.es-activa { color: var(--texto); border-bottom-color: var(--filete-fuerte); }
.pestanas__cuenta {
	display: inline-block;
	margin-left: .3rem;
	padding: .05rem .4rem;
	border-radius: 999px;
	background: var(--fondo-hueco);
	color: var(--texto-suave);
	font-size: .6875rem;
	font-weight: 700;
}
.pestanas a.es-activa .pestanas__cuenta { background: var(--filete-fuerte); color: var(--fondo); }

.nota-fina { font-size: .75rem; color: var(--texto-tenue); margin: 0 0 1rem; }

/* La fila de la mesa lleva más cosas que la normal: se apila. */
.fila--redaccion { align-items: flex-start; }
.fila--redaccion .fila__portada { width: 96px; height: 64px; }
.fila__extracto { font-size: .8125rem; color: var(--texto-suave); margin: .4rem 0 0; }
.fila__nota {
	font-size: .8125rem;
	margin: .45rem 0 0;
	padding: .4rem .6rem;
	border-left: 3px solid #b32d2e;
	background: var(--fondo-alt);
}
.fila__acciones--mesa {
	flex-direction: column;
	align-items: stretch;
	gap: .3rem;
	min-width: 11rem;
}
.fila__acciones--mesa .accion { display: flex; gap: .25rem; }
.fila__acciones--mesa .accion input[type="text"] {
	flex: 1;
	min-width: 0;
	padding: .3rem .45rem;
	font-size: .75rem;
	border: 1px solid var(--filete);
	border-radius: var(--radio);
	background: var(--fondo);
	color: var(--texto);
}
.fila__acciones--mesa .boton { text-align: center; }

.boton--peligro { border-color: #b32d2e; color: #b32d2e; font-weight: 600; }
.boton--peligro:hover { background: #b32d2e; border-color: #b32d2e; color: #fff; }

.pastilla--alerta { background: #fdecec; color: #b32d2e; }

/* ------------------------------------------------------- estadísticas */

.cifras--cuatro { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }

.tabla { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tabla th {
	text-align: left;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--texto-tenue);
	padding: 0 .6rem .4rem 0;
	border-bottom: 1px solid var(--filete);
}
.tabla td { padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--filete); }
.tabla--num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla--barra { width: 30%; }
.tabla .barra { display: block; height: 8px; border-radius: 999px; background: var(--acento); opacity: .75; }

.meses { display: flex; align-items: flex-end; gap: .4rem; height: 9rem; }
.mes { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.mes__barra { display: block; width: 100%; max-width: 2.5rem; background: var(--acento); opacity: .75; border-radius: 2px 2px 0 0; }
.mes__cuantos { font-size: .6875rem; color: var(--texto-suave); margin-top: .2rem; font-variant-numeric: tabular-nums; }
.mes__rotulo { font-size: .625rem; color: var(--texto-tenue); white-space: nowrap; }

.ranking { list-style: none; counter-reset: puesto; }
.ranking li {
	counter-increment: puesto;
	display: grid;
	grid-template-columns: 1.75rem 1fr auto;
	grid-template-areas: "n t c" "n m c";
	gap: 0 .5rem;
	align-items: center;
	padding: .6rem 0;
	border-bottom: 1px solid var(--filete);
}
.ranking li::before {
	content: counter( puesto );
	grid-area: n;
	font-family: var(--serif);
	font-size: 1.1rem;
	color: var(--texto-tenue);
}
.ranking li a { grid-area: t; font-weight: 600; }
.ranking li a:hover { color: var(--acento); }
.ranking__meta { grid-area: m; font-size: .75rem; color: var(--texto-tenue); }
.ranking__numero { grid-area: c; font-variant-numeric: tabular-nums; font-weight: 700; }

.letra-pequena { list-style: disc; padding-left: 1.1rem; font-size: .8125rem; color: var(--texto-suave); }
.letra-pequena li { margin-bottom: .4rem; }

@media (max-width: 720px) {
	.fila--redaccion { flex-wrap: wrap; }
	.fila__acciones--mesa { width: 100%; min-width: 0; }
	.tabla--barra { display: none; }
	.mes__rotulo { display: none; }
}

[data-tema="oscuro"] .pastilla--alerta { background: #331a1b; color: #f0b4b4; }
[data-tema="oscuro"] .fila__nota { border-left-color: #f0b4b4; }
[data-tema="oscuro"] .boton--peligro { border-color: #f0b4b4; color: #f0b4b4; }
[data-tema="oscuro"] .boton--peligro:hover { background: #f0b4b4; border-color: #f0b4b4; color: #121317; }

/* ------------------------------------------ solicitudes de colaboración */

.ficha-ia h3 { font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); margin: 1.4rem 0 .5rem; }
.ficha-ia__recomendacion { font-size: 1.15rem; margin-bottom: .4rem; }
.ficha-ia__recomendacion--aceptar strong { color: #1c7c3c; }
.ficha-ia__recomendacion--revisar strong,
.ficha-ia__recomendacion--solicitar_aclaracion strong { color: #8a6116; }
.ficha-ia__recomendacion--no_incorporar strong { color: #b32d2e; }

.hechos { list-style: none; }
.hecho {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: .15rem .9rem;
	padding: .6rem 0 .6rem .7rem;
	border-bottom: 1px solid var(--filete);
	border-left: 3px solid var(--filete);
	font-size: .875rem;
}
.hecho__estado { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-suave); grid-row: span 3; }
.hecho__dato { font-weight: 500; }
.hecho__fuente { font-size: .75rem; color: var(--acento); overflow-wrap: anywhere; }
.hecho__nota { font-size: .8125rem; color: var(--texto-suave); }
.hecho--verificado     { border-left-color: #1c7c3c; }
.hecho--verificado .hecho__estado { color: #1c7c3c; }
.hecho--contradictorio { border-left-color: #b32d2e; }
.hecho--contradictorio .hecho__estado { color: #b32d2e; }
.hecho--no_comprobado  { border-left-color: #8a6116; }
.hecho--inferido .hecho__estado { font-style: italic; }

.fila--solicitud .fila__extracto { margin-top: .35rem; }

/* =========================================================================
   Teléfono.

   El panel se diseñó para escritorio y en un móvil las filas se estrujaban:
   los botones de cada artículo se quedaban al lado del titular y lo dejaban
   en una columna de una palabra por línea; en «Equipo» el nombre y el correo
   se partían letra a letra; el menú se cortaba por la derecha. Aquí todo lo
   que va en fila pasa a ir apilado, y lo que se pulsa tiene tamaño de dedo.
   ========================================================================= */

/* Casillas y botones de opción: la regla de .campo input les daba el 100 % de
   ancho y descolocaba los roles del alta y la declaración de los documentos. */
.campo input[type="checkbox"], .campo input[type="radio"],
.lista-opciones input[type="checkbox"], .lista-opciones input[type="radio"] {
	width: auto; flex: none; padding: 0; margin: .2rem 0 0;
}
.campo--casilla > label {
	display: flex; align-items: flex-start; gap: .55rem;
	font-size: .8125rem; font-weight: 400; letter-spacing: normal; text-transform: none;
	color: var(--texto-suave); line-height: 1.45;
}
.tarjeta input[type="search"] {
	width: 100%; font-family: var(--sans); font-size: .9375rem; padding: .5rem .65rem; margin-bottom: .5rem;
	border: 1px solid var(--filete); border-radius: var(--radio); background: var(--fondo); color: var(--texto);
}

/* En cualquier anchura: textos largos sin espacios (correos, enlaces) parten. */
h1, h2, h3, p, li, td, th, dd, label, .fila__texto a { overflow-wrap: break-word; }
.persona__meta, .fila__meta, .ayuda, .aviso, .documentos-panel__lista a { overflow-wrap: anywhere; }
.paginacion { flex-wrap: wrap; }

@media (max-width: 720px) {
	.marco { width: min(100% - 1.5rem, 1180px); }

	/* Cabecera: marca arriba, quién soy y «Salir» en una línea debajo. */
	.cabecera { padding: .9rem 0; gap: .6rem; }
	.marca__logo { width: 150px; }
	.tema button { padding: .5rem .65rem; }
	.quien { width: 100%; }
	.quien > div { flex: 1; min-width: 0; }
	.quien__nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

	/* Menú: en dos líneas si hace falta, en vez de cortarse por la derecha. */
	.nav ul { flex-wrap: wrap; gap: 0 1.1rem; overflow-x: visible; }
	.nav a { padding: .7rem 0; }

	.contenido { padding: 1.25rem 0 3rem; }
	.titulo-zona { margin-bottom: 1.25rem; }

	/* Nada de zoom automático de iOS al tocar un campo: hace falta 16px. */
	.campo input, .campo select, .campo textarea, .equipo-barra input,
	.fila__acciones--mesa .accion input[type="text"], .tarjeta input[type="search"] { font-size: 16px; }

	/* Botones con altura de dedo. */
	.boton { min-height: 2.75rem; justify-content: center; }

	.tarjeta { padding: 1rem; }
	.cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.cifra { padding: .85rem 1rem; }
	.cifra__numero { font-size: 1.8rem; }
	.atajos { grid-template-columns: 1fr; gap: .6rem; }

	/* Cabecera de bloque: título y nota, uno encima de otro. */
	.bloque__cabecera { flex-wrap: wrap; gap: .25rem .75rem; }
	.bloque__cabecera .nota-fina { margin: 0; flex-basis: 100%; }

	/* Solicitudes: no llevan portada, el texto va a todo lo ancho. */
	.fila.fila--solicitud { grid-template-columns: minmax(0, 1fr); }
	.hecho { grid-template-columns: minmax(0, 1fr); }
	.hecho__estado { grid-row: auto; }

	/* Fila de artículo: portada y texto arriba; los botones, debajo y a lo ancho. */
	.fila {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		gap: .35rem .8rem;
		align-items: start;
	}
	.fila__portada { width: 64px; height: 46px; }
	.fila__texto h3 { font-size: 1rem; line-height: 1.3; }
	.fila__acciones { grid-column: 1 / -1; flex-wrap: wrap; }
	.fila__acciones > .boton { flex: 1 1 0; }

	/* En la mesa: los botones en rejilla de dos, la nota de cambios entera. */
	.fila--redaccion .fila__portada { width: 64px; height: 46px; }
	.fila__acciones--mesa {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .4rem;
		width: 100%;
		min-width: 0;
		margin-top: .4rem;
	}
	.fila__acciones--mesa .accion { display: contents; }
	.fila__acciones--mesa .accion .boton { width: 100%; }
	.fila__acciones--mesa .accion:has(input[type="text"]) {
		display: flex;
		grid-column: 1 / -1;
		gap: .4rem;
	}
	.fila__acciones--mesa .accion:has(input[type="text"]) .boton { width: auto; flex: none; }

	/* Pestañas de la mesa: se desplazan en horizontal, sin partirse en tres filas. */
	.pestanas { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.pestanas::-webkit-scrollbar { display: none; }
	.pestanas a { white-space: nowrap; padding: .55rem .6rem; }

	.filtros { padding: .9rem; }
	.filtros__abrir { margin-bottom: 1rem; }
	.filtros__rejilla { grid-template-columns: 1fr; }
	.filtros__acciones .boton { flex: 1 1 auto; }
	.filtros__cuenta { margin-left: 0; flex-basis: 100%; }

	/* Equipo: el buscador a lo ancho; cada persona con sus datos a lo ancho y
	   el botón debajo. */
	.equipo-barra { flex-direction: column; align-items: stretch; gap: .6rem; }
	.equipo-barra form { width: 100%; }
	.equipo-barra input { min-width: 0; flex: 1; }
	.persona {
		display: grid;
		grid-template-columns: 52px minmax(0, 1fr);
		gap: .5rem .8rem;
	}
	.persona__foto { width: 52px; height: 52px; }
	.persona__acciones { grid-column: 1 / -1; max-width: none; justify-content: stretch; }
	.persona__acciones > .boton, .persona__acciones form { flex: 1 1 8rem; }
	.persona__acciones .boton { width: 100%; }

	/* Contraseña con botones «Ver», «Generar», «Copiar»: el campo en su línea. */
	.con-boton { flex-wrap: wrap; }
	.con-boton input { flex: 1 1 100%; }
	.con-boton .boton { flex: 1 1 0; }
	.acceso .con-boton input, .estrecho .con-boton input { flex: 1 1 0; min-width: 0; }
	.acceso .con-boton .boton, .estrecho .con-boton .boton { flex: none; }

	/* Acceso. */
	.acceso { padding: 1rem 0 2rem; }
	.acceso__caja { padding: 1.25rem; box-shadow: none; }

	/* La casilla de Cloudflare mide como mínimo 300px y no se puede estrechar. En
	   teléfonos de 360px o menos no cabía dentro del recuadro con su margen y
	   empujaba la página hacia un lado: ahí el recuadro pierde borde y relleno. */
	.campo--turnstile { max-width: 100%; }
}

@media (max-width: 400px) {
	.acceso .marco, .marco:has(.acceso) { width: calc(100% - 1rem); }
	.acceso__caja { padding: .25rem 0; border: 0; }
	.acceso__caja h2 { font-size: 1.5rem; }

	/* Documentos de apoyo. */
	.documentos-panel { padding: 1rem; }
	.documentos-panel__lista li { flex-direction: column; gap: .5rem; }

	/* Estadísticas: columnas más juntas; el ranking, con su número estrecho. */
	.tabla td, .tabla th { padding-right: .5rem; }
	.meses { gap: .2rem; height: 7rem; }
	.ranking li { grid-template-columns: 1.5rem minmax(0, 1fr) auto; }
}

/* ------------------------------------------- inicio: qué hay en cada apartado */

.guia { list-style: none; display: grid; gap: .1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.guia li { padding: .7rem 0; border-bottom: 1px solid var(--filete); }
.guia a { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--acento); }
.guia span { display: block; font-size: .8125rem; color: var(--texto-suave); margin-top: .15rem; }

/* ------------------------------------------------ colaborador y bienvenida */

.botonera { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 .4rem; }
.vista-previa { margin-top: 1.25rem; border-top: 1px solid var(--filete); padding-top: 1rem; }
.vista-previa summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--acento); }
.vista-previa .ayuda { margin: .75rem 0; }
/* El correo se ve como en un cliente de correo: sobre blanco, también en oscuro. */
.vista-previa__correo { background: #fff; color: #15171c; border: 1px solid var(--filete); border-radius: var(--radio); overflow-x: auto; }
.vista-previa__correo h1, .vista-previa__correo h2 { line-height: 1.25; }
.vista-previa__correo a { color: #0a3ce0; }

.datos { margin: 0 0 1rem; }
.datos dt { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); margin-top: .9rem; }
.datos dt:first-child { margin-top: 0; }
.datos dd { margin: .2rem 0 0; font-size: .9375rem; }
.datos-cuenta { font-size: .8125rem; color: var(--texto-suave); overflow-wrap: anywhere; }
.persona-ficha .foto-perfil { max-width: 120px; }

/* ------------------------------------------------------ crear el perfil */

.crear-perfil > summary { cursor: pointer; list-style: none; }
.crear-perfil > summary::-webkit-details-marker { display: none; }
.crear-perfil > summary h2 { display: inline; margin: 0; }
.crear-perfil > summary h2::before { content: "+ "; color: var(--acento); }
.crear-perfil[open] > summary h2::before { content: "− "; }
.crear-perfil > summary .ayuda { display: block; margin-top: .35rem; }
.crear-perfil[open] > summary { margin-bottom: 1.1rem; }
.crear-perfil__foto { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; background: var(--fondo-hueco); margin-bottom: .4rem; }
.ayuda--ojo { color: #b32d2e; font-weight: 600; }
[data-tema="oscuro"] .ayuda--ojo { color: #f0b4b4; }

/* Descartar una solicitud: plegado, para que no compita con «Crear perfil». */
.descarte { margin-top: 1rem; border-top: 1px solid var(--filete); padding-top: .9rem; }
.descarte summary { cursor: pointer; font-size: .8125rem; color: var(--texto-suave); }
.descarte summary:hover { color: var(--texto); }
.descarte[open] summary { margin-bottom: .9rem; }
.descarte .campo { margin-bottom: .6rem; }

/* ------------------------------------------------- ventanas de confirmación */

.modal {
	width: min(100% - 2rem, 26rem);
	border: 1px solid var(--filete);
	border-radius: .5rem;
	padding: 1.5rem;
	background: var(--fondo);
	color: var(--texto);
	box-shadow: 0 12px 40px rgba(21, 23, 28, .25);
}
.modal::backdrop { background: rgba(21, 23, 28, .45); }
.modal__texto { font-size: .9375rem; line-height: 1.55; margin: 0 0 1.25rem; }
.modal__botones { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.modal__botones .boton { flex: 0 1 auto; }

@media (max-width: 720px) {
	.modal { padding: 1.2rem; }
	.modal__botones .boton { flex: 1 1 8rem; }
}

/* La dirección que tendrá el artículo, en el propio formulario. */
.url-previa {
	margin: .6rem 0 0; padding: .6rem .7rem;
	background: var(--fondo-alt); border: 1px solid var(--filete); border-radius: var(--radio);
	font-size: .8125rem; overflow-wrap: anywhere;
}
.url-previa__rotulo { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-tenue); }
.url-previa__valor { font-family: Consolas, Monaco, monospace; color: var(--texto); }

/* La barra de «Equipo» lleva ahora dos botones. */
.equipo-barra__botones { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
	.equipo-barra__botones { width: 100%; }
	.equipo-barra__botones .boton { flex: 1 1 10rem; }
}

/* El recuadro para escribir dentro de una ventana (la nota de «Pedir cambios»). */
.modal__texto-largo {
	width: 100%; font-family: var(--sans); font-size: .9375rem; line-height: 1.5;
	padding: .6rem .7rem; margin: 0 0 1.1rem;
	border: 1px solid var(--filete); border-radius: var(--radio);
	background: var(--fondo); color: var(--texto); resize: vertical;
}
.modal__texto-largo:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; }
.modal__texto-largo.es-obligatorio { border-color: #b32d2e; }


/* El acta de consentimiento: lo que marcó la persona, con su prueba. */
.acta { border-top: 1px solid var(--borde); padding: .8rem 0 0; margin: .8rem 0 0; }
.acta:first-of-type { border-top: 0; }
.acta__que { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .35rem; }
.acta ul { margin: .4rem 0 0; padding-left: 1.05rem; }
.acta li { overflow-wrap: anywhere; }

/* Escribirle desde la solicitud: los dos correos, plegados. */
.escribirle { border-top: 1px solid var(--borde); padding: .7rem 0 0; margin: .7rem 0 0; }
.escribirle > summary { cursor: pointer; font-weight: 600; }
.escribirle[open] > summary { margin-bottom: .6rem; }
.lista-correos { list-style: none; margin: .6rem 0 0; padding: 0; }
.lista-correos li { border-left: 3px solid var(--borde); padding: 0 0 0 .7rem; margin: 0 0 .7rem; }
.lista-correos strong { display: block; }

/* La firma de las Condiciones: el documento personal, los permisos y la casilla. */
.firma { max-width: 52rem; }
.documento h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.documento h2:first-child { margin-top: 0; }
.documento h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.documento p { line-height: 1.6; margin: 0 0 .8rem; }
.documento table { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .875rem; }
.documento th, .documento td { border: 1px solid var(--borde); padding: .35rem .5rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.permisos h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.permiso { border: 1px solid var(--borde); border-radius: var(--radio); padding: .8rem 1rem; margin: 0 0 1rem; }
.permiso legend { font-weight: 600; padding: 0 .3rem; }
.permiso .check, .aceptacion .check { align-items: flex-start; line-height: 1.5; }
.aceptacion .boton { margin-top: .8rem; }
.eres-tu .fila__acciones { gap: 1rem; }

@media print {
	.cabecera, .nav, .pie, .aviso, .no-imprimir, .titulo-zona { display: none !important; }
	body, .marco, .contenido, .firma { background: #fff !important; color: #000 !important; max-width: none; margin: 0; padding: 0; }
	.documento { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
	.documento a { color: #000; text-decoration: none; }
}

/* El circuito de 8.3: los cambios señalados y las decisiones que piden datos. */
.diferencias table.diff { width: 100%; border-collapse: collapse; font-size: .875rem; margin: .6rem 0 1rem; }
.diferencias td { vertical-align: top; padding: .3rem .5rem; border: 1px solid var(--borde); }
.diferencias del, .diferencias .diff-deletedline { background: #fde2e2; text-decoration: line-through; }
.diferencias ins, .diferencias .diff-addedline { background: #dff5e1; text-decoration: none; }
.accion-datos { display: inline-block; }
.accion-datos > summary { list-style: none; cursor: pointer; }
.accion-datos[open] { display: block; width: 100%; border: 1px solid var(--borde); border-radius: var(--radio); padding: .6rem; margin: .4rem 0; }
.accion-datos .campo span { display: block; font-size: .85rem; margin: .4rem 0 .2rem; }
.accion-datos textarea { width: 100%; }

/* Los cambios que alguien propone en su ficha (8.2). */
.tabla-cambios { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .4rem 0 .8rem; }
.tabla-cambios th, .tabla-cambios td { border: 1px solid var(--borde); padding: .35rem .5rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.tabla-cambios .foto-perfil { max-width: 80px; }

/* La ficha de seguimiento: un hecho debajo de otro, en orden UTC. */
.ficha { list-style: none; margin: 1rem 0; padding: 0; }
.ficha__hecho { border-left: 3px solid var(--borde); padding: .2rem 0 .2rem .8rem; margin: 0 0 .9rem; }
.ficha__cuando { font-size: .82rem; color: var(--texto-tenue); }
.ficha__que { margin: .15rem 0; overflow-wrap: anywhere; }
.ficha__detalle pre { white-space: pre-wrap; font: inherit; font-size: .875rem; color: var(--texto-tenue); margin: .3rem 0 0; overflow-wrap: anywhere; }
.ficha__correccion { margin: .3rem 0 0; padding: .3rem .6rem; border-left: 3px solid #b26b00; background: var(--acento-fondo); font-size: .9rem; }

