* { box-sizing: border-box; }
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #243044; background: #eef0f3; }
body { margin: 0; }
main { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.panel { width: 100%; max-width: 540px; padding: clamp(24px, 5vw, 48px); border: 1px solid #d5dbe3; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px #2430440c; }
h1 { font-size: clamp(1.5rem, 4vw, 1.85rem); line-height: 1.25; margin: 20px 0 12px; overflow-wrap: anywhere; }
p { line-height: 1.6; }
.marca { font-size: 1.5rem; font-weight: 750; color: #2468bb; margin: 0; }
.marca span { font-size: 1rem; color: #647184; font-weight: 500; }
form { display: grid; gap: 12px; margin-top: 24px; }
label { font-weight: 600; }
input, button { font: inherit; min-height: 48px; width: 100%; min-width: 0; border-radius: 8px; padding: 12px; }
input { border: 1px solid #a7b2c1; background: #fbfcfd; color: #243044; }
button { margin-top: 12px; border: 1px solid #18589e; color: #fff; background: #2468bb; font-weight: 600; cursor: pointer; }
button:hover { background: #1c579e; }
.inicio { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 16px; color: #2468bb; border: 1px solid #a7b2c1; border-radius: 8px; text-decoration: none; font-weight: 600; }
.inicio:hover { background: #eef2f7; }
:focus-visible { outline: 3px solid #6a9fe4; outline-offset: 3px; }
.aviso, .error { padding: 12px; border-radius: 8px; background: #eef2f7; }
.error { color: #912b2b; background: #fff0f0; }
@media (max-width: 480px) { main { padding: 16px; } .panel { padding: 24px; } }
.perfil { max-width: 880px; margin: 16px 0; }
h2 { font-size: 1.2rem; margin: 0 0 16px; }
.navegacion { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.navegacion form { display: block; margin: 0 0 0 auto; }
.navegacion button { margin: 0; }
.navegacion [aria-current="page"] { background: #eaf1fb; border-color: #6a9fe4; }
.secundario { background: #f7f9fc; color: #31577e; border-color: #bac5d3; }
.secundario:hover { background: #e9eff7; }
.bloque { margin-top: 28px; padding-top: 28px; border-top: 1px solid #dce2e9; }
.bloque form { margin-top: 16px; }
.ayuda { font-size: .9rem; color: #5b687b; margin: 0; overflow-wrap: anywhere; }
.opcional { font-size: .85rem; color: #647184; font-weight: 400; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.campo { display: grid; align-content: start; gap: 8px; min-width: 0; }
.avatar-fila { display: flex; gap: 24px; align-items: flex-start; }
.avatar-fila form { flex: 1; min-width: 0; margin-top: 0; }
.avatar { border-radius: 24px; object-fit: cover; flex-shrink: 0; border: 1px solid #dce2e9; }
.form-quitar { max-width: 220px; }
input[type=file] { font-size: .9rem; padding: 8px; }
input::file-selector-button { min-height: 32px; border: 0; border-radius: 4px; padding: 6px; color: #31577e; background: #e9eff7; margin-right: 8px; }
@media (max-width: 600px) { .campos { grid-template-columns: 1fr; } .avatar-fila { flex-direction: column; } .avatar-fila form { width: 100%; } .navegacion form { margin-left: 0; } .navegacion { gap: 8px; } }
.empresas { max-width: 1320px; margin: 16px 0; }
select { font: inherit; min-height: 48px; width: 100%; min-width: 0; border: 1px solid #a7b2c1; border-radius: 8px; padding: 10px; background: #fbfcfd; color: #243044; }
.cabecera-empresas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.filtros-empresas { grid-template-columns: minmax(200px,2fr) minmax(130px,1fr) minmax(150px,1fr) auto auto; align-items: end; gap: 12px; }
.filtros-empresas button { margin: 0; }
.recuento { margin: 20px 0 12px; }
.tabla-scroll { overflow-x: auto; border: 1px solid #dce2e9; border-radius: 10px; }
.tabla-scroll table { width: 100%; border-collapse: collapse; text-align: left; min-width: 1000px; font-size: .92rem; }
th { background: #f2f5f9; font-weight: 600; }
th,td { padding: 12px; border-bottom: 1px solid #e4e8ee; vertical-align: middle; }
td { max-width: 280px; overflow-wrap: anywhere; }
.dato-secundario { display: block; margin-top: 4px; color: #647184; font-size: .85rem; }
.acciones-empresa { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.acciones-empresa form,.acciones-empresa button { margin: 0; }
.acciones-empresa .inicio { padding: 8px; }
.paginacion { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.subtitulo { margin-top: 28px; }
@media (max-width: 900px) { .filtros-empresas { grid-template-columns: repeat(2,minmax(0,1fr)); } .filtros-empresas .campo:first-child { grid-column: 1/-1; } }
@media (max-width: 480px) { .filtros-empresas { grid-template-columns: 1fr; } }
main { grid-template-columns: minmax(0, 1fr); }
.panel { min-width: 0; }
