/* Portal de Archivos — Grupo Torres (marca propia, sin Synology) */
:root {
	--fondo: #f4f6f9;
	--tarjeta: #ffffff;
	--borde: #e3e8ef;
	--texto: #1f2937;
	--tenue: #6b7280;
	--acento: #7C1D9B;      /* SOLTEC */
	--acento-osc: #5B1682;  /* SOLTEC oscuro */
	--boreale: #006B5B;     /* BOREALE */
	--boreale-osc: #063B3A;
	--ambre: #F59E0B;       /* acento SOLTEC */
	--degradado-marca: linear-gradient(135deg, var(--acento), #1393ba); /* SOLTEC */
	--tinte-suave: #efe7f7; /* fondo suave SOLTEC (anillo de progreso, árbol activo) */
}

/* Marca BOREALE (nas.boreale.com.mx): sobreescribe la paleta por defecto (SOLTEC) */
body.marca-boreale {
	--acento: var(--boreale);
	--acento-osc: var(--boreale-osc);
	--degradado-marca: linear-gradient(135deg, #006B5B, #14b8a6);
	--tinte-suave: #e0f2ee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--fondo);
	color: var(--texto);
	min-height: 100vh;
}

/* ── Pantalla de acceso ── */
body.acceso { display: grid; place-items: center; padding: 1rem; }

.tarjeta {
	background: var(--tarjeta);
	border: 1px solid var(--borde);
	border-radius: 12px;
	padding: 2rem;
	width: 100%;
	max-width: 420px;
	box-shadow: 0 8px 24px rgba(15, 111, 143, 0.06);
}

.marca { text-align: center; margin-bottom: 1.5rem; }
.logo-firma {
	width: 240px; max-width: 85%; height: auto;
	display: block; margin: 0 auto 0.75rem; user-select: none;
}
.logo {
	width: 56px; height: 56px; margin: 0 auto 0.75rem;
	background: var(--degradado-marca);
	color: #fff; font-weight: 700; font-size: 1.4rem;
	border-radius: 14px; display: grid; place-items: center;
	letter-spacing: 0.5px;
}
.marca h1 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.subtitulo { color: var(--tenue); font-size: 0.85rem; }

label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0 0 0.35rem; }
input {
	width: 100%; padding: 0.65rem 0.8rem; font-size: 1rem;
	border: 1px solid var(--borde); border-radius: 8px; margin-bottom: 1rem;
}
input:focus { outline: 2px solid var(--acento); outline-offset: -1px; border-color: var(--acento); }

/* Campo de PIN: 6 puntos separados (placeholder y al teclear), sin línea */
input.campo-pin {
	letter-spacing: 0.55em;
	text-align: center;
	font-size: 1.25rem;
	padding-left: 1.35rem; /* compensa el espacio del último punto para centrar */
	caret-color: var(--acento);
}

button {
	width: 100%; padding: 0.7rem; font-size: 1rem; font-weight: 600;
	background: var(--acento); color: #fff; border: 0; border-radius: 8px;
	cursor: pointer;
}
button:hover { background: var(--acento-osc); }

.aviso {
	background: #eef7fa; border: 1px solid #cfe6ef; color: #0b5a75;
	padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1rem;
}
.pie { text-align: center; margin-top: 0.9rem; font-size: 0.85rem; }
.pie a { color: var(--acento); }

/* ── Pantalla de archivos ── */
.barra {
	display: flex; align-items: center; gap: 0.8rem;
	background: #fff; border-bottom: 1px solid var(--borde);
	padding: 0.7rem 1.25rem; position: sticky; top: 0;
}
.barra .logo { width: 34px; height: 34px; font-size: 0.9rem; margin: 0; border-radius: 9px; }
.barra .logo-firma-barra { height: 30px; width: auto; }
.titulo-barra { font-weight: 700; }
.quien { margin-left: auto; color: var(--tenue); font-size: 0.85rem; }
.boton-barra {
	color: var(--acento); text-decoration: none; font-size: 0.9rem; font-weight: 600;
	border: 1px solid var(--borde); padding: 0.35rem 0.8rem; border-radius: 8px;
}
.boton-barra:hover { background: #eef7fa; }

.contenido { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.contenido .tarjeta { max-width: none; margin-bottom: 1.25rem; }
.tarjeta h2 { font-size: 1.1rem; margin-bottom: 0.9rem; }
.tarjeta p { color: var(--tenue); font-size: 0.9rem; }
.vacio { color: var(--tenue); font-size: 0.9rem; }

.lista { list-style: none; margin-bottom: 1rem; }
.lista li { border-top: 1px solid var(--borde); }
.lista li:first-child { border-top: 0; }
.lista a {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 0.6rem 0.25rem; text-decoration: none; color: var(--texto);
}
.lista a:hover .fichero { color: var(--acento); }
.fichero { font-weight: 500; word-break: break-all; }
.meta { color: var(--tenue); font-size: 0.8rem; white-space: nowrap; }

.subida {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
	border-top: 1px dashed var(--borde); padding-top: 1rem;
}
.subida label { margin: 0; font-weight: 600; font-size: 0.85rem; }
.subida input[type="file"] {
	width: auto; flex: 1; min-width: 200px; margin: 0; padding: 0.4rem 0;
	font-size: 0.85rem; border: 0;
}
.subida button { width: auto; padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* ── Panel de administración ── */
.aviso-ok { background: #e9f7ef; border-color: #bfe6cf; color: #14532d; }
.form-admin label { margin-top: 0.6rem; }
.form-admin input[type="file"] { padding: 0.4rem 0; font-size: 0.9rem; border: 0; margin-bottom: 0.4rem; }
.radio {
	display: flex; align-items: center; gap: 0.5rem;
	font-weight: 500; font-size: 0.9rem; margin: 0 0 0.35rem;
}
.radio input { width: auto; margin: 0; }
.lista-admin { list-style: none; }
.lista-admin .fila {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem;
	border-top: 1px solid var(--borde); padding: 0.55rem 0.25rem;
}
.lista-admin .fila:first-child { border-top: 0; }
.lista-admin .fichero { flex: 1 1 180px; font-weight: 500; word-break: break-all; }
.mini-boton {
	color: var(--acento); text-decoration: none; font-size: 0.8rem; font-weight: 600;
	border: 1px solid var(--borde); padding: 0.3rem 0.7rem; border-radius: 8px;
}
.mini-boton:hover { background: #eef7fa; }
details.compartir { width: 100%; margin-top: 0.3rem; }
details.compartir summary { cursor: pointer; color: var(--acento); font-size: 0.85rem; font-weight: 600; }
.form-compartir { border-top: 1px dashed var(--borde); margin-top: 0.5rem; padding-top: 0.7rem; }
.form-compartir label { margin-top: 0.4rem; }
.form-compartir input[type="text"], .form-compartir input[type="email"] { margin-bottom: 0.4rem; }
.form-compartir button { width: auto; padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.chip {
	background: #eef7fa; color: #0b5a75; border-radius: 999px;
	padding: 0.2rem 0.7rem; font-size: 0.8rem;
}
.chip-subir { background: #fff7e6; color: #8a5a00; }
.subh { font-size: 0.95rem; margin: 0.9rem 0 0.4rem; color: var(--texto); }

/* ── Zona DROP HERE (arrastrar o elegir) ── */
.zona-drop {
	border: 2px dashed var(--boreale);
	border-radius: 12px;
	padding: 1.6rem 1rem;
	text-align: center;
	cursor: pointer;
	background: linear-gradient(135deg, rgba(124, 29, 155, 0.05), rgba(0, 107, 91, 0.06));
	transition: border-color 0.15s, background 0.15s;
	margin-bottom: 0.8rem;
}
.zona-drop.arrastrando { border-color: var(--acento); background: rgba(124, 29, 155, 0.1); }
.zona-titulo { font-weight: 700; font-size: 1rem; }
.zona-sub { color: var(--tenue); font-size: 0.8rem; margin: 0.25rem 0; }
.boton-elegir {
	display: inline-block; background: var(--boreale); color: #fff;
	border: 0; border-radius: 8px; padding: 0.5rem 1.3rem;
	font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-top: 0.4rem;
}
.boton-elegir:hover { background: var(--boreale-osc); }
.lista-drop { list-style: none; margin: 0 0 1rem; }
.lista-drop li {
	display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
	border-top: 1px solid var(--borde); padding: 0.4rem 0.2rem; font-size: 0.85rem;
}
.lista-drop .quitar {
	color: #b91c1c; background: none; border: 0; font-weight: 700;
	cursor: pointer; width: auto; padding: 0; font-size: 0.9rem;
}

/* ── Explorador tipo Drive ── */
.miga { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-bottom: 0.7rem; font-size: 0.9rem; }
.miga a { color: var(--acento); text-decoration: none; font-weight: 600; }
.miga a:hover { text-decoration: underline; }
.miga .sep { color: var(--tenue); }
.miga .actual { color: var(--tenue); font-weight: 500; }
.fila-carpeta { display: flex; align-items: center; border-top: 1px solid var(--borde); }
.fila-carpeta:first-child { border-top: 0; }
.fila-carpeta a {
	display: flex; align-items: center; gap: 0.65rem; flex: 1;
	padding: 0.6rem 0.25rem; text-decoration: none; color: var(--texto); font-weight: 500;
}
.fila-carpeta a:hover .carpeta-nombre { color: var(--acento); }
.fila-carpeta .carpeta-nombre { word-break: break-all; }
.fila-carpeta .carpeta-meta { margin-left: auto; color: var(--tenue); font-size: 0.8rem; white-space: nowrap; }

/* ── Subida con círculo de progreso animado ── */
.overlay-subida {
	position: fixed; inset: 0; z-index: 60;
	background: rgba(6, 59, 58, 0.72);
	backdrop-filter: blur(3px);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem;
}
.tarjeta-progreso {
	background: var(--tarjeta); border-radius: 16px; padding: 2rem 2.2rem;
	text-align: center; max-width: 420px; width: 100%;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
	animation: latido 1.8s ease-in-out infinite;
}
@keyframes latido {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.015); }
}
.circulo-progreso { width: 150px; height: 150px; margin: 0 auto 1rem; position: relative; }
.circulo-progreso svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.circulo-progreso circle { fill: none; stroke-width: 10; }
.anillo-fondo { stroke: var(--tinte-suave); }
.anillo-avance {
	stroke: url(#gradProgreso);
	stroke-linecap: round;
	transition: stroke-dashoffset 0.2s linear;
}
.anillo-giro {
	stroke: var(--ambre);
	stroke-dasharray: 14 40;
	stroke-linecap: round;
	opacity: 0.9;
	transform-box: fill-box;
	transform-origin: center;
	animation: girar 1.1s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.circulo-texto {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.circulo-texto .porciento { font-size: 1.9rem; font-weight: 800; color: var(--acento-osc); line-height: 1.1; }
.circulo-texto .velocidad { font-size: 0.8rem; color: var(--tenue); }
.progreso-archivos {
	font-size: 0.9rem; font-weight: 600; color: var(--texto);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.progreso-nota { font-size: 0.8rem; color: var(--tenue); margin-top: 0.3rem; }
.progreso-error { font-size: 0.9rem; color: #b91c1c; margin-top: 0.5rem; }
.boton-cerrar {
	width: auto; margin-top: 1rem; padding: 0.5rem 1.5rem;
	background: var(--boreale);
}
.boton-cerrar:hover { background: var(--boreale-osc); }
.boton-cancelar {
	width: auto; margin-top: 1rem; padding: 0.5rem 1.5rem;
	background: #fff; color: #b91c1c;
	border: 1px solid #f3b6b6;
}
.boton-cancelar:hover { background: #fdecec; }

/* ── Éxito de subida: ✓ verde + tono sutil ── */
.tarjeta-progreso.subida-exito { animation: none; border: 2px solid #16a34a; }
.circulo-texto .porciento.exito { color: #16a34a; }
.tarjeta-progreso.subida-exito .velocidad { color: #16a34a; font-weight: 600; }

/* ══ Layout Drive (panel admin + vista de archivos): toda la ventana ══ */
body.drive { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

.barra-drive {
	display: flex; align-items: center; gap: 0.7rem;
	background: #fff; border-bottom: 1px solid var(--borde);
	padding: 0.55rem 1rem; flex: 0 0 auto;
}
.barra-drive .logo-firma-barra { height: 28px; width: auto; }
.barra-drive .titulo-barra { font-weight: 700; white-space: nowrap; }
.barra-drive .quien { margin-left: auto; color: var(--tenue); font-size: 0.85rem; white-space: nowrap; }

/* Búsqueda global estilo Drive (cápsula centrada en la barra) */
.busqueda { flex: 1 1 auto; max-width: 620px; margin: 0 0.5rem; }
.busqueda input {
	width: 100%; margin: 0; padding: 0.5rem 1rem;
	border-radius: 24px; background: #f1f5f9; border: 1px solid transparent;
	font-size: 0.95rem;
}
.busqueda input:focus { background: #fff; outline: 2px solid var(--acento); border-color: var(--acento); }

/* Cuerpo: lateral fija 260px + área central que ocupa el resto */
.cuerpo-drive { flex: 1 1 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 0; }
.cuerpo-drive.sin-lateral { grid-template-columns: minmax(0, 1fr); }

.lateral {
	background: #fbfcfe; border-right: 1px solid var(--borde);
	padding: 0.7rem 0.5rem 0.7rem 0.7rem;
	overflow-y: auto; display: flex; flex-direction: column; gap: 0.9rem; min-height: 0;
}
.arbol { flex: 1 1 auto; overflow: auto; font-size: 0.88rem; }
.arbol-inicio { margin-bottom: 0.3rem; }
.arbol-inicio a { font-weight: 700; }
.arbol-lista { list-style: none; }
.arbol-lista .arbol-lista { margin-left: 1rem; }
.arbol a {
	display: block; padding: 0.3rem 0.45rem; border-radius: 8px;
	color: var(--texto); text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.arbol a:hover { background: #eef2f7; }
.arbol .arbol-actual > a { background: var(--tinte-suave); color: var(--acento-osc); font-weight: 600; }
.arbol-nodo summary {
	cursor: pointer; list-style: none;
	display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.45rem;
	border-radius: 8px; color: var(--texto);
}
.arbol-nodo summary::-webkit-details-marker { display: none; }
.arbol-nodo summary::before {
	content: '▸'; font-size: 0.7rem; color: var(--tenue);
	transition: transform 0.12s; flex: 0 0 auto;
}
.arbol-nodo[open] > summary::before { transform: rotate(90deg); }
.arbol-nodo summary:hover { background: #eef2f7; }
.arbol-nodo[open] > summary { font-weight: 600; }

/* Medidor de almacenamiento (informativo) */
.medidor {
	background: #fff; border: 1px solid var(--borde); border-radius: 12px;
	padding: 0.8rem; flex: 0 0 auto;
}
.medidor-titulo {
	font-size: 0.72rem; font-weight: 700; color: var(--tenue);
	text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.45rem;
}
.medidor-barra { height: 8px; background: #e9edf3; border-radius: 999px; overflow: hidden; }
.medidor-lleno {
	height: 100%; border-radius: 999px; min-width: 2px;
	background: linear-gradient(90deg, var(--acento), var(--boreale));
	transition: width 0.4s;
}
.medidor-texto { font-size: 0.82rem; color: var(--tenue); margin-top: 0.45rem; }
.medidor-texto strong { color: var(--texto); }

.principal { overflow-y: auto; padding: 1rem 1.25rem 2.5rem; min-width: 0; }

/* Panel de subida: DROP HERE a la izquierda, destino/datos a la derecha (misma altura) */
.panel-subir {
	background: #fff; border: 1px solid var(--borde); border-radius: 12px;
	padding: 1rem; margin-bottom: 1rem;
}
.subir-drive { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0.9rem 1.2rem; align-items: stretch; }
.zona-drop-compacta {
	margin: 0; padding: 1.1rem 0.9rem;
	display: flex; flex-direction: column; justify-content: center;
}
.zona-drop-compacta .zona-titulo { font-size: 0.95rem; }
.zona-drop-compacta .boton-elegir { margin-top: 0.3rem; padding: 0.4rem 1.1rem; }
.subir-drive .lista-drop { grid-column: 1 / -1; margin: 0; }
.col-destino { display: flex; flex-direction: column; justify-content: center; gap: 0.55rem; }
.fila-radios { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.fila-radios .radio { white-space: nowrap; }
.datos-destino { display: flex; flex-direction: column; gap: 0.55rem; }
.fila-datos { display: flex; gap: 0.5rem; }
.fila-datos input { flex: 1; min-width: 0; }
.col-destino label { font-size: 0.85rem; }
.col-destino input[type="text"], .col-destino input[type="email"] {
	padding: 0.55rem 0.7rem; margin-bottom: 0; font-size: 0.9rem;
}
.col-destino .radio { margin-bottom: 0; }
.col-destino button[type="submit"] { width: auto; padding: 0.55rem 1.5rem; align-self: flex-start; }
/* El atributo hidden siempre gana (aunque un selector le ponga display) */
[hidden] { display: none !important; }

/* Tabla tipo Drive */
.tabla-drive {
	background: #fff; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden;
}
.tabla-cab {
	display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px 130px 190px; gap: 0.5rem;
	padding: 0.6rem 0.9rem; background: #f8fafc; border-bottom: 1px solid var(--borde);
	font-size: 0.72rem; font-weight: 700; color: var(--tenue);
	text-transform: uppercase; letter-spacing: 0.05em;
}
.tabla-cab .cab-acciones { text-align: right; }
.fila-drive {
	display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px 130px 190px; gap: 0.5rem;
	align-items: center; padding: 0.55rem 0.9rem; border-top: 1px solid var(--borde);
	font-size: 0.9rem;
}
.fila-drive:first-of-type { border-top: 0; }
.fila-drive:hover { background: #fafbfd; }
.fila-drive.fila-borrada { background: #fdf6f6; }
.fila-drive.fila-borrada:hover { background: #fbeaea; }
.celda-nombre { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.icono-tipo { font-size: 1.35rem; flex: 0 0 auto; line-height: 1; }
.nombre-meta { min-width: 0; }
.nombre-archivo { font-weight: 500; word-break: break-all; }
.nombre-archivo.enlace { color: var(--texto); text-decoration: none; }
.nombre-archivo.enlace:hover { color: var(--acento); text-decoration: underline; }
.etiqueta-borrado {
	background: #fdecec; color: #b91c1c; border: 1px solid #f3b6b6; border-radius: 6px;
	font-size: 0.68rem; font-weight: 700; padding: 0.1rem 0.4rem; margin-left: 0.4rem;
	white-space: nowrap; vertical-align: middle;
}
.miga-resultado {
	display: block; color: var(--tenue); font-size: 0.74rem; margin-top: 0.15rem;
	word-break: break-all; text-decoration: none;
}
.miga-resultado:hover { color: var(--acento); text-decoration: underline; }
.celda-tamano, .celda-subido, .celda-descarga { color: var(--tenue); font-size: 0.82rem; white-space: nowrap; }
.celda-acciones { display: flex; gap: 0.35rem; justify-content: flex-end; }
.boton-icono {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border: 1px solid var(--borde); background: #fff;
	border-radius: 8px; cursor: pointer; font-size: 1rem;
	text-decoration: none; color: var(--tenue); padding: 0;
}
.boton-icono:hover { background: #eef2f7; color: var(--texto); }
.boton-icono.basura { color: #b91c1c; border-color: #f3b6b6; }
.boton-icono.basura:hover { background: #fdecec; }
.boton-icono.restaurar { color: var(--boreale); border-color: #bfe0d8; }
.boton-icono.restaurar:hover { background: #e9f7f1; }
.t-bote { filter: grayscale(1) sepia(1) saturate(6) hue-rotate(-40deg) brightness(0.85); }

.fila-carpeta-drive { display: flex; align-items: center; border-top: 1px solid var(--borde); }
.fila-carpeta-drive:first-child { border-top: 0; }
.fila-carpeta-drive a {
	display: flex; align-items: center; gap: 0.65rem; flex: 1; min-width: 0;
	padding: 0.6rem 0.9rem; text-decoration: none; color: var(--texto); font-weight: 500;
}
.fila-carpeta-drive a:hover { background: #fafbfd; }
.fila-carpeta-drive a:hover .carpeta-nombre { color: var(--acento); }
.fila-carpeta-drive .icono-tipo { font-size: 1.2rem; }
.fila-carpeta-drive .carpeta-nombre { word-break: break-all; }
.fila-carpeta-drive .carpeta-meta { margin-left: auto; color: var(--tenue); font-size: 0.8rem; white-space: nowrap; }
.fila-carpeta-drive .flecha { color: var(--tenue); }
.vacio-tabla { color: var(--tenue); font-size: 0.9rem; padding: 1rem 0.9rem; }

/* Secciones de la vista de destinatario */
.seccion { margin-bottom: 1.5rem; }
.titulo-seccion { font-size: 1rem; font-weight: 700; margin: 0.3rem 0 0.6rem; }
.subida-drive { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.7rem 1rem; align-items: center; }
.subida-drive .zona-drop-compacta { grid-row: span 2; }
.subida-drive .lista-drop { margin: 0; }
.subida-drive button[type="submit"] { width: auto; padding: 0.55rem 1.5rem; justify-self: end; }

/* ── Modales ── */
.modal-fondo {
	position: fixed; inset: 0; z-index: 80;
	background: rgba(15, 23, 42, 0.5);
	display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-fondo[hidden] { display: none; }
.modal {
	background: #fff; border-radius: 14px; padding: 1.5rem;
	width: 100%; max-width: 440px; position: relative;
	max-height: 90vh; overflow: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.modal-archivo { color: var(--tenue); font-size: 0.85rem; margin-bottom: 0.9rem; word-break: break-all; }
.modal-cerrar {
	position: absolute; top: 0.7rem; right: 0.8rem;
	background: none; border: 0; cursor: pointer;
	font-size: 1.1rem; color: var(--tenue); width: auto; padding: 0.2rem 0.4rem;
}
.modal-cerrar:hover { color: var(--texto); }
.modal .radio {
	border: 1px solid var(--borde); border-radius: 10px;
	padding: 0.6rem 0.7rem; margin-bottom: 0.5rem;
}
.modal .radio span { display: block; font-size: 0.87rem; }
.modal .radio small { display: block; font-weight: 400; color: var(--tenue); margin-top: 0.15rem; }
.modal .radio-peligro { border-color: #f3b6b6; background: #fdf6f6; }
.modal .radio-peligro small.texto-peligro { color: #b91c1c; font-weight: 600; }
.modal-nota-papelera {
	background: #fff7e6; border: 1px solid #fde8b8; color: #8a5a00;
	border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.82rem; margin-bottom: 0.7rem;
}
.modal-nota {
	background: #eef7fa; border: 1px solid #cfe7ee; color: #0b5a75;
	border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.82rem; margin-bottom: 0.7rem;
}
.modal-nota strong { word-break: break-all; }
.form-modal label { margin-top: 0.4rem; }
.form-modal input[type="text"], .form-modal input[type="email"] { margin-bottom: 0.6rem; }
.form-modal button[type="submit"] { margin-top: 0.5rem; }
.boton-peligro { background: #b91c1c; }
.boton-peligro:hover { background: #991b1b; }

/* Botón ☰ del lateral (solo móvil) */
.boton-lateral {
	display: none; background: none; border: 1px solid var(--borde); border-radius: 8px;
	width: auto; padding: 0.3rem 0.6rem; font-size: 1rem; cursor: pointer;
}

/* ── Móvil: lateral off-canvas y columnas de fecha ocultas ── */
@media (max-width: 900px) {
	.cuerpo-drive { grid-template-columns: minmax(0, 1fr); }
	.lateral {
		position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 70;
		transform: translateX(-105%); transition: transform 0.2s;
		box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15); background: #fff;
	}
	.lateral.abierta { transform: none; }
	.boton-lateral { display: inline-block; }
	.tabla-cab, .fila-drive { grid-template-columns: minmax(0, 1fr) auto auto; }
	.cab-subido, .celda-subido, .cab-descarga, .celda-descarga { display: none; }
	.subir-drive { grid-template-columns: minmax(0, 1fr); }
	.subida-drive { grid-template-columns: minmax(0, 1fr); }
	.subida-drive .zona-drop-compacta { grid-row: auto; }
}
