@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --azul-900: #0b2e59;
  --azul-800: #0e3a6f;
  --azul-100: #e7f0ff;
  --blanco: #ffffff;
  --gris-50: #f6f8fb;
  --gris-100: #eef2f7;
  --gris-600: #556375;
  --negro: #0b1220;
  --amarillo: #ffcc00;
  --amarillo-osc: #d7aa00;
  --borde: rgba(11, 46, 89, 0.14);
  --sombra: 0 12px 30px rgba(11, 18, 32, 0.12);
  --radio: 14px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--negro);
  background: linear-gradient(180deg, var(--azul-100) 0%, var(--gris-50) 55%, var(--gris-50) 100%);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  background: var(--header-bg, var(--azul-900));
  color: var(--blanco);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--amarillo), var(--acento-claro, #ffe36a));
  box-shadow: 0 8px 18px var(--acento-soft-28, rgba(255, 204, 0, 0.28));
  display: grid;
  place-items: center;
  color: var(--azul-900);
  font-weight: 800;
}

.nav {
  background: var(--nav-bg, rgba(14, 58, 111, 0.95));
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--blanco);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: var(--blanco);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
}

.hero {
  padding: 2.2rem 0 1.2rem;
}

.hero-card {
  background: linear-gradient(140deg, rgba(255,255,255,0.92), rgba(255,255,255,0.8));
  border: 1px solid var(--borde);
  border-radius: calc(var(--radio) + 4px);
  box-shadow: var(--sombra);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 30% 30%, var(--acento-soft-65, rgba(255, 204, 0, 0.65)), rgba(255, 204, 0, 0));
  transform: rotate(10deg);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  color: var(--azul-900);
  letter-spacing: -0.4px;
}

.hero-slogan {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  color: var(--gris-600);
}

.highlight {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--acento-soft-90, rgba(255, 204, 0, 0.9));
  color: var(--azul-900);
  font-weight: 800;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 46, 89, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 4;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.07);
}

.card h3 {
  margin: 0 0 0.35rem;
  color: var(--azul-900);
  letter-spacing: -0.2px;
}

.card p {
  margin: 0 0 0.8rem;
  color: var(--gris-600);
  line-height: 1.45;
}

.admin-section-desc{
  margin: -0.35rem 0 0.9rem;
  color: rgba(11, 46, 89, 0.70);
  line-height: 1.5;
}
.admin-dashboard-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 960px){
  .admin-dashboard-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .admin-dashboard-grid{ grid-template-columns: 1fr; }
}
.admin-card{
  background: var(--blanco);
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.08);
  display:flex;
  flex-direction: column;
  min-height: 210px;
}
.admin-card h3{
  margin: 0 0 0.35rem;
  color: var(--azul-900);
  letter-spacing: -0.2px;
}
.admin-card p{
  margin: 0;
  color: var(--gris-600);
  line-height: 1.45;
}
.admin-card .btn,
.admin-card .btn-secondary,
.admin-card .btn-outline,
.admin-card .btn-dark,
.admin-card .btn-danger{
  margin-top: auto;
  align-self: flex-start;
}
.admin-account-grid{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 960px){
  .admin-account-grid{ grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(11, 46, 89, 0.14);
  background: var(--amarillo);
  color: var(--azul-900);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--acento-hover, #ffd84a);
  border-color: var(--acento-soft-28, rgba(255, 204, 0, 0.28));
  box-shadow: 0 10px 18px rgba(11, 18, 32, 0.10);
}
.btn:active { transform: translateY(1px); }

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -0.15em;
  flex: 0 0 auto;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 34px; height: 34px; }

.btn-secondary {
  background: rgba(11, 46, 89, 0.08);
  color: var(--azul-900);
}
.btn-secondary:hover { background: rgba(11, 46, 89, 0.12); }

.btn-dark {
  background: linear-gradient(135deg, var(--header-grad-2, #234b8b), var(--header-bg, #0b2e59));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-dark:hover { background: linear-gradient(135deg, var(--header-grad-1, #2b5aa6), var(--header-bg, #0b2e59)); }

.btn-outline {
  background: #ffffff;
  color: var(--azul-900);
  border-color: rgba(11, 46, 89, 0.20);
}
.btn-outline:hover { background: rgba(11, 46, 89, 0.06); }

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(127, 29, 29, 0.95);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.28);
}

.section {
  padding: 1.2rem 0;
}

.section-title {
  margin: 0 0 0.8rem;
  color: var(--azul-900);
  letter-spacing: -0.25px;
}

.notice {
  background: linear-gradient(135deg, rgba(11, 46, 89, 0.08), var(--acento-soft-14, rgba(255, 204, 0, 0.14)));
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1rem;
  color: var(--azul-900);
  font-weight: 600;
  line-height: 1.5;
}

.form-wrap {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: calc(var(--radio) + 2px);
  box-shadow: var(--sombra);
  padding: 1.1rem;
}

.settings-stack{
  display:flex;
  flex-direction: column;
  gap: 1rem;
}
.settings-card{
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 16px;
  box-shadow: var(--sombra);
  padding: 1.1rem;
}
.settings-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.settings-title{
  margin: 0;
  color: var(--azul-900);
  letter-spacing: -0.25px;
  font-size: 1.15rem;
}
.settings-subtitle{
  margin: 0.25rem 0 0;
  color: rgba(11, 46, 89, 0.72);
  line-height: 1.45;
  max-width: 70ch;
}
.settings-pill{
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(11, 46, 89, 0.06);
  border: 1px solid rgba(11, 46, 89, 0.14);
  color: var(--azul-900);
  font-weight: 900;
  white-space: nowrap;
}
.settings-visual-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 960px){
  .settings-visual-grid{ grid-template-columns: 1fr; }
  .settings-pill{ align-self:flex-start; }
}

.portal-preview{
  --pv-header: #0b2e59;
  --pv-nav: #0e3a6f;
  --pv-footer: #0b2e59;
  --pv-accent: #ffcc00;
  --pv-accent-text: #0b2e59;
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.08);
}
.portal-preview-header{
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)), var(--pv-header);
  color: #ffffff;
  padding: 0.75rem;
  display:flex;
  align-items:center;
  gap: 0.6rem;
}
.portal-preview-brand{
  width: 36px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.portal-preview-title{
  font-weight: 900;
  letter-spacing: -0.2px;
}
.portal-preview-nav{
  background: var(--pv-nav);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  display:flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.portal-preview-link{
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0.85;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.portal-preview-link.is-active{
  opacity: 1;
  background: rgba(255, 255, 255, 0.14);
}
.portal-preview-body{
  padding: 0.85rem;
  background: linear-gradient(180deg, rgba(11, 46, 89, 0.04), rgba(255, 255, 255, 0));
  display:grid;
  gap: 0.75rem;
}
.portal-preview-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(11, 46, 89, 0.18);
  background: var(--pv-accent);
  color: var(--pv-accent-text);
  font-weight: 900;
}
.portal-preview-card{
  border-radius: 14px;
  border: 1px solid rgba(11, 46, 89, 0.14);
  background: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 10px 20px rgba(11, 18, 32, 0.06);
}
.portal-preview-card-title{
  font-weight: 900;
  color: var(--azul-900);
  margin: 0 0 0.25rem;
}
.portal-preview-card-text{
  color: rgba(11, 46, 89, 0.72);
  font-size: 0.92rem;
  line-height: 1.35;
}
.portal-preview-footer{
  background: var(--pv-footer);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.kb-toolbar{
  display:flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.kb-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
@media (max-width: 960px){
  .kb-grid{ grid-template-columns: 1fr; }
}
.kb-panel{
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.85);
}
.kb-panel-head{ margin-bottom: 0.75rem; }
.kb-title{
  margin: 0;
  font-size: 1rem;
  color: var(--azul-900);
  letter-spacing: -0.2px;
}
.kb-list{
  display:flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kb-empty{
  color: rgba(11, 46, 89, 0.72);
  font-weight: 700;
  background: rgba(11, 46, 89, 0.05);
  border: 1px dashed rgba(11, 46, 89, 0.18);
  border-radius: 14px;
  padding: 0.75rem;
}
.kb-item{
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 16px;
  padding: 0.85rem;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(11, 18, 32, 0.06);
}
.kb-item-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.kb-item-title{
  font-weight: 900;
  color: var(--azul-900);
}
.kb-item-sub{
  margin-top: 0.25rem;
  color: rgba(11, 46, 89, 0.72);
  font-size: 0.9rem;
  line-height: 1.35;
}
.kb-item-actions{
  display:flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.kb-status{
  margin: 0.2rem 0 0.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 46, 89, 0.14);
  background: rgba(11, 46, 89, 0.06);
  color: rgba(11, 46, 89, 0.86);
  font-weight: 700;
}
.kb-status:empty{ display:none; }
.kb-status.is-ok{
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.22);
  color: rgba(20, 83, 45, 0.95);
}
.kb-status.is-error{
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(127, 29, 29, 0.95);
}
.kb-syn-row{
  display:grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 0.7rem;
  align-items: end;
}
.kb-syn-actions{ padding-bottom: 0.15rem; }
@media (max-width: 720px){
  .kb-syn-row{ grid-template-columns: 1fr; }
  .kb-syn-actions{ padding-bottom: 0; }
}
.kb-advanced{
  margin-top: 1rem;
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 16px;
  padding: 0.65rem 0.85rem;
  background: rgba(11, 46, 89, 0.04);
}
.kb-advanced > summary{
  cursor: pointer;
  font-weight: 900;
  color: var(--azul-900);
}
.kb-advanced-body{ margin-top: 0.8rem; }
.kb-advanced-label{
  display:block;
  margin-bottom: 0.45rem;
  font-weight: 900;
}

.date-pairs{
  display:flex;
  flex-direction: column;
  gap: 0.9rem;
}
.date-row{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.date-row .field{
  grid-column: auto;
}
.date-empty{
  min-height: 1px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 46, 89, 0.14);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  user-select: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.color-option input {
  margin: 0;
}

.color-option:hover {
  border-color: rgba(11, 46, 89, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.08);
  transform: translateY(-1px);
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--dot);
  border: 1px solid rgba(11, 18, 32, 0.18);
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.10);
}

.color-label {
  display: grid;
  gap: 0.05rem;
  line-height: 1.15;
}

.color-name {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--azul-900);
}

.color-code {
  font-weight: 800;
  font-size: 0.82rem;
  color: rgba(11, 46, 89, 0.70);
}

.color-option input:checked + .color-dot {
  box-shadow: 0 0 0 3px rgba(11, 46, 89, 0.18), 0 2px 8px rgba(11, 18, 32, 0.10);
}

.color-option input:checked ~ .color-code {
  color: var(--azul-900);
}

.auth-shell {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card input[type="text"],
.auth-card input[type="password"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(11, 46, 89, 0.22);
  padding: 0.78rem 0.9rem;
  background: #f6f7fb;
  outline: none;
  font: inherit;
  line-height: 1.2;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus {
  background: #ffffff;
  border-color: rgba(36, 58, 138, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 58, 138, 0.14);
}

.auth-card {
  background: var(--blanco);
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
  padding: 1.25rem;
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.auth-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #243a8a 0%, #1b2f6a 70%, #152552 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-title {
  margin: 0;
  color: var(--azul-900);
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.3px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.auth-subtitle {
  margin: 0.2rem 0 0;
  color: rgba(11, 46, 89, 0.72);
  font-size: 0.92rem;
  line-height: 1.35;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field.full { grid-column: 1 / -1; }
.field.third { grid-column: span 4; }
@media (max-width: 720px){
  .field{ grid-column: 1 / -1; }
}

label {
  font-weight: 700;
  color: var(--azul-900);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(11, 46, 89, 0.22);
  padding: 0.7rem 0.8rem;
  background: var(--gris-50);
  outline: none;
  font: inherit;
}

textarea { min-height: 120px; resize: vertical; }

.uploader-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 0.5rem;
  color: rgba(11, 46, 89, 0.78);
  font-size: 0.92rem;
}

.uploader-head-left{
  font-weight: 700;
}

.uploader-head-right{
  color: rgba(11, 46, 89, 0.55);
}

.dropzone{
  position: relative;
  border: 2px dashed rgba(11, 46, 89, 0.24);
  border-radius: var(--radio);
  padding: 1.1rem;
  background: var(--blanco);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
  min-height: 120px;
}
.dropzone:hover{
  background: rgba(11, 46, 89, 0.02);
  border-color: rgba(11, 46, 89, 0.30);
}
.dropzone:focus-visible{
  outline: 3px solid var(--acento-soft-28, rgba(255, 204, 0, 0.28));
  outline-offset: 2px;
}

.dropzone.is-compact{
  padding: 0.85rem;
  min-height: 92px;
}
.dropzone.is-compact svg{
  width: 42px;
  height: 42px;
}
.dropzone.is-compact .dropzone-title{
  margin-top: 0.25rem;
}
.dropzone.is-compact .dropzone-meta{
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.dropzone.is-selected{
  border-color: rgba(11, 46, 89, 0.32);
}
.dropzone.is-ok{
  border-color: rgba(22, 163, 74, 0.55);
  background: rgba(22, 163, 74, 0.06);
}
.dropzone.is-error{
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(220, 38, 38, 0.06);
}

.dropzone:active{ transform: translateY(1px); }

.dropzone.is-dragover{
  border-color: var(--acento-soft-90, rgba(255, 204, 0, 0.9));
  background: var(--acento-soft-12, rgba(255, 204, 0, 0.12));
}

.dropzone-title{
  margin-top: 0.35rem;
  font-weight: 650;
  color: rgba(11, 46, 89, 0.72);
}

.dropzone-help{
  margin-top: 0.35rem;
  color: rgba(11, 46, 89, 0.72);
  font-weight: 650;
}

.dropzone-meta{
  margin-top: 0.35rem;
  color: rgba(11, 46, 89, 0.72);
  font-size: 0.92rem;
}

.dropzone-hint{
  margin-top: 0.25rem;
  color: rgba(11, 46, 89, 0.55);
  font-size: 0.9rem;
}

.dropzone-inner{
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.25rem;
}

.dropzone-icon{
  color: rgba(11, 46, 89, 0.42);
}

.dropzone input[type="file"]{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feuls-toggle{
  display:flex;
  align-items:flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 46, 89, 0.18);
  background: rgba(255, 204, 0, 0.10);
  cursor: pointer;
}
.feuls-toggle:hover{
  background: rgba(255, 204, 0, 0.14);
  border-color: rgba(11, 46, 89, 0.24);
}
.feuls-toggle:focus-within{
  outline: 3px solid var(--acento-soft-28, rgba(255, 204, 0, 0.28));
  outline-offset: 2px;
}
.feuls-toggle input[type="checkbox"]{
  margin-top: 0.15rem;
}
.feuls-toggle strong{
  display:block;
  color: rgba(11, 46, 89, 0.86);
}

.upload-shell{
  max-width: none;
  width: 100%;
  padding: 1.35rem;
}
.upload-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.upload-section-title{
  font-weight: 850;
  color: var(--azul-900);
  letter-spacing: -0.2px;
}
.upload-section-help{
  margin-top: 0.25rem;
}
.upload-section-max{
  color: rgba(11, 46, 89, 0.55);
  font-size: 0.92rem;
  white-space: nowrap;
}
.upload-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px){
  .upload-grid{ grid-template-columns: 1fr; }
  .upload-section-max{ white-space: normal; }
}
.upload-actions{
  display:flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.help {
  color: var(--gris-600);
  font-size: 0.92rem;
  line-height: 1.4;
}

.rut-status {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgba(11, 46, 89, 0.72);
}
.rut-status.loading { color: rgba(11, 46, 89, 0.72); }
.rut-status.success { color: rgba(22, 163, 74, 0.9); }
.rut-status.error { color: rgba(220, 38, 38, 0.9); }
.rut-status.warn { color: rgba(245, 158, 11, 0.95); }
.rut-status.info { color: rgba(11, 46, 89, 0.78); }

input.rut-ok{
  border-color: rgba(22, 163, 74, 0.9);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pick-list {
  border: 1px solid rgba(11, 46, 89, 0.18);
  border-radius: var(--radio);
  padding: 0.75rem;
  background: var(--gris-50);
}

.pick-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.6rem;
  border-radius: 12px;
  background: var(--blanco);
  border: 1px solid rgba(11, 46, 89, 0.12);
}

.pick-item + .pick-item { margin-top: 0.6rem; }

.pick-item-title {
  font-weight: 800;
  color: var(--azul-900);
  line-height: 1.25;
}

.pick-item-sub {
  color: var(--gris-600);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}

.pick-actions {
  display: flex;
  gap: 0.35rem;
}

.icon-btn {
  border-radius: 10px;
  border: 1px solid rgba(11, 46, 89, 0.18);
  background: rgba(11, 46, 89, 0.06);
  color: var(--azul-900);
  font-weight: 900;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.icon-btn:hover { background: rgba(11, 46, 89, 0.1); }

.alert {
  border-radius: var(--radio);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(11, 46, 89, 0.18);
  margin: 0 0 1rem;
  font-weight: 650;
}

.alert.success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.22);
}
.alert.error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.22);
}
.alert.info {
  background: var(--azul-800-soft-08, rgba(14, 58, 111, 0.08));
  border-color: var(--azul-800-soft-22, rgba(14, 58, 111, 0.22));
}

.footer {
  margin-top: 1.6rem;
  padding: 1.4rem 0 2.8rem;
  color: rgba(255,255,255,0.86);
  background: var(--footer-bg, var(--azul-900));
  border-top: 2px solid var(--amarillo);
}

.footer small {
  display: block;
  line-height: 1.6;
}

.footer-grid{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 2.2rem;
}

.footer-note{
  max-width: 560px;
  color: rgba(255,255,255,0.78);
}

@media (max-width: 720px) {
  .footer-grid{ flex-direction: column; gap: 1rem; }
  .footer-note{ max-width: none; }
}

.faq-item {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.06);
}
.faq-item + .faq-item { margin-top: 0.75rem; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}
.faq-q h3 {
  margin: 0;
  color: var(--azul-900);
  font-size: 1rem;
}
.faq-a {
  margin-top: 0.7rem;
  color: var(--gris-600);
  line-height: 1.55;
  display: none;
}
.faq-item[aria-expanded="true"] .faq-a { display: block; }

.chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(360px, calc(100% - 36px));
  z-index: 9999;
  font-size: 0.95rem;
}

.chatbot-button {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(11, 46, 89, 0.18);
  background: linear-gradient(140deg, var(--amarillo), var(--acento-claro, #ffe36a));
  color: var(--azul-900);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(11, 18, 32, 0.18);
  position: absolute;
  right: 0;
  bottom: 0;
}

.chatbot-panel {
  display: none;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: calc(var(--radio) + 2px);
  box-shadow: var(--sombra);
  overflow: hidden;
  margin-bottom: 70px;
}

.chatbot[aria-expanded="true"] .chatbot-panel { display: block; }

.chatbot-header {
  background: var(--header-bg, var(--azul-900));
  color: var(--blanco);
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.chatbot-header strong { letter-spacing: -0.2px; }

.chatbot-header-actions{
  display:flex;
  align-items:center;
  gap: 0.35rem;
}

.chatbot-body {
  padding: 0.9rem;
  max-height: 320px;
  overflow: auto;
  background: linear-gradient(180deg, var(--gris-50), var(--blanco));
}

.chat-msg {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.chat-who{
  font-size: 0.75rem;
  color: rgba(11, 46, 89, 0.65);
  font-weight: 750;
}
.chat-who.user{
  justify-self: end;
}

.chat-bubble {
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 46, 89, 0.14);
  line-height: 1.35;
  white-space: pre-wrap;
}

.chat-bubble.bot {
  background: rgba(11, 46, 89, 0.06);
  color: var(--azul-900);
}

.chat-bubble.user {
  background: var(--acento-soft-24, rgba(255, 204, 0, 0.24));
  color: var(--azul-900);
  justify-self: end;
}

.chat-bubble.chat-chips{
  padding: 0.55rem 0.6rem;
  width: fit-content;
}
.chat-quick{
  display:flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.chat-chip{
  border-radius: 999px;
  border: 1px solid rgba(11, 46, 89, 0.16);
  background: rgba(11, 46, 89, 0.06);
  color: var(--azul-900);
  font-weight: 800;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
.chat-chip:hover{
  background: rgba(11, 46, 89, 0.10);
  border-color: rgba(11, 46, 89, 0.24);
}
.chat-chip:active{ transform: translateY(1px); }

.chat-bubble.typing{
  width: fit-content;
  padding: 0.55rem 0.75rem;
}
.typing-dots{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 14px;
}
.typing-dots span{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 46, 89, 0.55);
  animation: typingBounce 1.05s infinite ease-in-out;
}
.typing-dots span:nth-child(2){ animation-delay: 0.15s; }
.typing-dots span:nth-child(3){ animation-delay: 0.3s; }
@keyframes typingBounce{
  0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-4px); opacity: 0.95; }
}

.chatbot-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem;
  border-top: 1px solid var(--borde);
  background: var(--blanco);
}

.chatbot-form input {
  flex: 1;
  background: var(--gris-50);
}

.tagline {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

.page-home {
  background: #f6f7fb;
}

/* Pie de página siempre al fondo de la ventana aunque el contenido sea corto */
body.page-home {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-home > main {
  flex: 1 0 auto;
}

.page-home .container {
  width: min(1160px, calc(100% - 2rem));
}

.portal-top {
  background: radial-gradient(1200px 520px at 55% 0%, var(--header-grad-1, #2b53a6) 0%, var(--header-grad-2, #173a86) 34%, var(--header-bg, #0b2e59) 68%, var(--header-grad-4, #071a33) 100%);
  color: var(--blanco);
  border-bottom: 3px solid var(--amarillo);
}

.portal-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.uls-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.uls-mark {
  height: 70px;
  display: flex;
  align-items: center;
}

.uls-mark img {
  height: 68px;
  width: auto;
  display: block;
}

.brand.brand-logo {
  gap: 0.9rem;
}

.brand.brand-logo img {
  height: 56px;
  width: auto;
  display: block;
}

.brand-meta {
  display: grid;
  gap: 0.15rem;
}

.portal-title {
  text-align: center;
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.6px;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0.05rem;
  line-height: 1.05;
}

.portal-title-tai { font-size: 0.98rem; letter-spacing: 0.06em; }
.portal-title-inv { font-size: 1.35rem; color: var(--acento-texto, var(--amarillo)); letter-spacing: -0.2px; }
.portal-title-year { font-size: 0.98rem; letter-spacing: 0.06em; }

.portal-top-cta {
  justify-self: end;
}

.portal-nav {
  background: var(--nav-bg, rgba(14, 58, 111, 0.95));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-top: 0;
}

.portal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0;
  position: relative;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.portal-nav-links a {
  color: rgba(255,255,255,0.90);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 0.55rem 0.3rem;
  border-bottom: 3px solid transparent;
  border-radius: 12px;
}

.portal-nav-links a[aria-current="page"] {
  border-bottom-color: var(--amarillo);
  color: var(--blanco);
  background: rgba(255,255,255,0.10);
}

.portal-nav-links a:hover {
  color: var(--blanco);
  background: rgba(255,255,255,0.12);
}

.portal-nav-links .admin-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.portal-nav-links .admin-menu-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-weight: 800;
  font-size: 0.93rem;
  cursor: pointer;
}

.portal-nav-links .admin-menu-btn:hover {
  background: rgba(255,255,255,0.12);
}

.portal-nav-links .admin-menu-btn[aria-expanded="true"] {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.26);
}

.portal-nav-links .admin-menu-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 340px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(11, 18, 32, 0.16);
  padding: 0.4rem;
  z-index: 50;
}

.portal-nav-links .admin-menu-pop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: rgba(11, 46, 89, 0.92);
  font-weight: 750;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
}

.portal-nav-links .admin-menu-pop a:hover {
  background: rgba(11, 46, 89, 0.08);
  color: rgba(11, 46, 89, 1);
}

.portal-nav-links .admin-menu-pop a[aria-current="page"] {
  background: rgba(11, 46, 89, 0.12);
}

.portal-nav-links a.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
  background: rgba(255,255,255,0.06);
  border-bottom-color: transparent;
}

.portal-nav-links a.is-disabled:hover {
  background: rgba(255,255,255,0.06);
}

.page-home .nav-toggle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}

.portal-hero {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 255, 0.98) 55%, rgba(232, 238, 255, 0.98) 100%);
  border: 1px solid rgba(11, 46, 89, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.portal-hero-grid {
  position: relative;
  z-index: 1;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: center;
  min-height: 250px;
}

.portal-hero-title {
  margin: 0;
  color: var(--azul-900);
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.2px;
}

.portal-hero-desc {
  margin: 0.7rem 0 1rem;
  color: rgba(11, 46, 89, 0.76);
  line-height: 1.5;
  font-size: 0.96rem;
}

.portal-btn-dark {
  background: linear-gradient(135deg, #1b3e78, #0b2e59);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.portal-btn-dark:hover { background: linear-gradient(135deg, var(--header-grad-2, #234b8b), var(--header-bg, #0b2e59)); }

.portal-hero-center {
  display: grid;
  place-items: center;
}

.portal-hero-big {
  text-align: center;
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 0.9;
  position: relative;
}

.portal-hero-big .tai { font-size: 3.9rem; color: var(--azul-900); }
.portal-hero-big .inv {
  font-size: 3.35rem;
  color: var(--acento-texto, var(--amarillo));
  letter-spacing: -0.8px;
  margin-top: -1.05rem;
  margin-bottom: -0.75rem;
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: inline-block;
  transform: rotate(-12deg);
  transform-origin: center;
  text-shadow:
    0 2px 0 rgba(11, 46, 89, 0.12),
    0 10px 24px rgba(11, 18, 32, 0.14);
}
.portal-hero-big .inv::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transform: translate(5px, 4px);
  color: rgba(11, 46, 89, 0.62);
  z-index: -1;
  text-shadow: none;
}
.portal-hero-big .inv::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  transform: translate(-1px, -1px);
  color: rgba(255, 255, 255, 0.55);
  z-index: -2;
  text-shadow: none;
}
.portal-hero-big .year { font-size: 3.9rem; color: var(--azul-900); }

.portal-hero-right {
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
}

.portal-hero-photo {
  background-image:
    url("../img/vista%20inicio.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  filter: saturate(0.95) contrast(1.02);
  position: relative;
}

.portal-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.portal-section-title {
  margin: 0 0 0.8rem;
  color: var(--azul-900);
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.3px;
  font-size: 1.02rem;
}

.portal-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.portal-action-card {
  background: var(--blanco);
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 14px;
  padding: 0.95rem;
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.08);
  display: grid;
  gap: 0.55rem;
  min-height: 210px;
}

.portal-action-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 74px;
}

.portal-action-title {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.portal-action-period {
  font-size: 0.78rem;
  line-height: 1.2;
  color: rgba(11, 46, 89, 0.58);
  font-weight: 700;
  min-height: calc(1.2em * 2);
}

.portal-action-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, #243a8a 0%, #1b2f6a 70%, #152552 100%);
  color: var(--acento-texto, var(--amarillo));
  display: grid;
  place-items: center;
}

.portal-action-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.portal-action-card h3 {
  margin: 0;
  color: var(--azul-900);
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.2px;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
}

.portal-action-card p {
  margin: 0;
  color: rgba(11, 46, 89, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

.portal-action-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--amarillo);
  color: var(--azul-900);
  font-weight: 900;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(11, 46, 89, 0.14);
  transition: transform 0.08s ease, background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.portal-action-btn span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(11, 46, 89, 0.14);
}

.portal-action-btn:hover {
  background: var(--acento-hover, #ffd84a);
  border-color: var(--acento-soft-28, rgba(255, 204, 0, 0.28));
  box-shadow: 0 10px 18px rgba(11, 18, 32, 0.10);
}

.portal-action-btn.portal-action-btn-disabled {
  background: rgba(11, 46, 89, 0.06);
  color: rgba(11, 46, 89, 0.55);
  border-color: rgba(11, 46, 89, 0.12);
  cursor: not-allowed;
}

.portal-action-btn.portal-action-btn-disabled span {
  background: rgba(11, 46, 89, 0.08);
}

.portal-action-card.portal-action-card-disabled {
  background: #f3f4f6;
  box-shadow: none;
  border-color: rgba(11, 46, 89, 0.18);
}

.portal-action-card.portal-action-card-disabled .portal-action-icon {
  filter: grayscale(1);
  opacity: 0.7;
}

.portal-action-card.portal-action-card-disabled h3,
.portal-action-card.portal-action-card-disabled p,
.portal-action-card.portal-action-card-disabled .portal-action-period {
  color: rgba(11, 46, 89, 0.55);
}

.portal-strip {
  background: linear-gradient(135deg, #243a8a 0%, #2b2f6b 55%, #1c2b55 100%);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.portal-strip-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: var(--acento-soft-16, rgba(255, 204, 0, 0.16));
  border: 1px solid var(--acento-soft-28, rgba(255, 204, 0, 0.28));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--amarillo);
  flex: 0 0 auto;
}

.portal-strip-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.portal-strip-title {
  font-weight: 900;
  letter-spacing: -0.2px;
}

.portal-strip-text {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.92;
}

.portal-dashboard {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
  align-items: start;
}

.portal-panel {
  background: var(--blanco);
  border: 1px solid rgba(11, 46, 89, 0.14);
  border-radius: 14px;
  padding: 0.95rem;
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.08);
}

.portal-panel-header {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.portal-panel-title {
  margin: 0;
  color: var(--azul-900);
  font-weight: 900;
  letter-spacing: -0.25px;
  font-size: 1.05rem;
}

.portal-panel-sub {
  color: rgba(11, 46, 89, 0.72);
  font-weight: 650;
  font-size: 0.92rem;
}

.portal-mini-list {
  display: grid;
  gap: 0.55rem;
}

.portal-mini-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.8rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 46, 89, 0.12);
  background: var(--azul-800-soft-04, rgba(14, 58, 111, 0.04));
}

.portal-mini-row strong {
  color: var(--azul-900);
  font-weight: 900;
  letter-spacing: -0.15px;
}

.portal-mini-row span {
  color: rgba(11, 46, 89, 0.76);
  font-weight: 650;
  line-height: 1.35;
}

.portal-kpis {
  display: grid;
  gap: 0.7rem;
}

.portal-kpi {
  border: 1px solid rgba(11, 46, 89, 0.12);
  border-radius: 12px;
  background: var(--azul-800-soft-04, rgba(14, 58, 111, 0.04));
  padding: 0.75rem 0.85rem;
}

.portal-kpi-label {
  color: rgba(11, 46, 89, 0.7);
  font-weight: 750;
  font-size: 0.9rem;
}

.portal-kpi-value {
  color: var(--azul-900);
  font-weight: 950;
  font-size: 1.55rem;
  margin-top: 0.25rem;
  letter-spacing: -0.4px;
}

.portal-kpi-link {
  margin-top: 0.45rem;
  display: inline-flex;
  font-weight: 900;
  color: var(--azul-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .card { grid-column: span 6; }
  .split { grid-template-columns: 1fr; }
  .portal-actions { grid-template-columns: repeat(2, 1fr); }
  .portal-hero-grid { grid-template-columns: 1fr; }
  .portal-hero-right { height: 180px; }
  .portal-strip { grid-template-columns: 1fr; }
  .portal-top-inner { grid-template-columns: 1fr; text-align: center; }
  .portal-top-cta { justify-self: center; }
  .portal-dashboard { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    position: static;
    transform: none;
    align-self: flex-start;
  }
  .page-home .nav-toggle {
    display: inline-flex;
    position: static;
    transform: none;
    align-self: flex-start;
  }
  .nav-links { display: none; width: 100%; padding-top: 0.6rem; }
  .nav[aria-expanded="true"] .nav-links { display: flex; flex-direction: column; align-items: stretch; }
  .nav-links a { width: 100%; }
  .card { grid-column: 1 / -1; }
  .field { grid-column: 1 / -1; }
  .field.third { grid-column: 1 / -1; }
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.45rem;
  }
  .portal-nav-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.45rem;
  }
  .portal-nav-links { display: none; width: 100%; padding-top: 0.1rem; gap: 0.2rem; }
  .portal-nav[aria-expanded="true"] .portal-nav-links { display: flex; flex-direction: column; align-items: stretch; }
  .portal-nav-links a { width: 100%; border-bottom: 0; border-left: 4px solid transparent; padding: 0.65rem 0.75rem; border-radius: 12px; }
  .portal-nav-links a[aria-current="page"] { border-left-color: var(--amarillo); background: rgba(255,255,255,0.12); }
  .portal-nav-links .admin-menu { width: 100%; justify-content: stretch; }
  .portal-nav-links .admin-menu-btn { width: 100%; text-align: left; }
  .portal-nav-links .admin-menu-pop { position: static; transform: none; left: auto; top: auto; min-width: 0; max-width: none; box-shadow: none; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
  .portal-nav-links .admin-menu-pop a { color: rgba(255,255,255,0.92); }
  .portal-nav-links .admin-menu-pop a:hover { background: rgba(255,255,255,0.10); }
  .portal-nav-links .admin-menu-pop a[aria-current="page"] { background: rgba(255,255,255,0.14); }
  .portal-actions { grid-template-columns: 1fr; }
  .brand.brand-logo img { height: 44px; }
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid rgba(11, 46, 89, 0.12);
  border-radius: 14px;
  background: #ffffff;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.admin-table.is-compact {
  min-width: 0;
  table-layout: fixed;
}

.admin-table.is-compact th,
.admin-table.is-compact td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table .cell-actions {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.pagination-meta {
  color: rgba(11, 46, 89, 0.72);
  font-weight: 800;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 46, 89, 0.18);
  background: rgba(11, 46, 89, 0.06);
  color: var(--azul-900);
  font-weight: 900;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pager-btn:hover {
  background: rgba(11, 46, 89, 0.10);
  box-shadow: 0 10px 18px rgba(11, 18, 32, 0.08);
}
.pager-btn:active { transform: translateY(1px); }
.pager-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.pager-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: -1px;
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.modal-dialog {
  border: 0;
  padding: 0;
  width: min(1180px, calc(100% - 2rem));
  border-radius: 18px;
  background: transparent;
  box-shadow: var(--sombra);
}

.modal-dialog.has-preview {
  width: min(1480px, calc(100% - 1.5rem));
}

.modal-dialog::backdrop {
  background: rgba(11, 18, 32, 0.45);
}

.dialog-lock {
  overflow: hidden;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  z-index: 9998;
}

dialog.modal-dialog.is-open[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 9999;
}

.modal-dialog[open] {
  max-height: 92vh;
}

.modal-card {
  border-radius: 18px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(135deg, rgba(11, 46, 89, 0.06), rgba(255, 204, 0, 0.16));
}

.modal-title {
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--azul-900);
  font-weight: 900;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
}

.modal-body {
  padding: 1rem;
  max-height: calc(92vh - 120px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  color: rgba(11, 46, 89, 0.86);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 46, 89, 0.14);
  font-weight: 900;
  font-size: 0.8rem;
  background: rgba(11, 46, 89, 0.06);
  color: rgba(11, 46, 89, 0.92);
}

.modal-badge.is-pendiente {
  background: rgba(255, 204, 0, 0.22);
  border-color: rgba(255, 204, 0, 0.35);
}

.modal-badge.is-aceptada {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.24);
}

.modal-badge.is-rechazada {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.modal-grid .full {
  grid-column: 1 / -1;
}

.modal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.modal-dialog.has-preview .modal-split {
  grid-template-columns: 0.95fr 0.75fr 1.1fr;
}

.modal-pane {
  border: 1px solid rgba(11, 46, 89, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 26px rgba(11, 18, 32, 0.06);
  overflow: hidden;
}

.modal-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(11, 46, 89, 0.10);
  background: rgba(11, 46, 89, 0.03);
  color: rgba(11, 46, 89, 0.92);
  font-weight: 900;
}

.modal-pane-body {
  padding: 0.9rem;
  max-height: calc(92vh - 210px);
  overflow: auto;
}

.modal-pane-body iframe {
  width: 100%;
  height: 62vh;
  border: 0;
  background: rgba(11, 46, 89, 0.02);
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.modal-meta-row.full {
  grid-column: 1 / -1;
}

.modal-meta-row strong {
  display: block;
  color: rgba(11, 46, 89, 0.70);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.modal-meta-row div {
  margin-top: 0.2rem;
  font-weight: 650;
}

.modal-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ficha-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ficha-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.ficha-title {
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(11, 46, 89, 0.92);
  font-weight: 950;
  letter-spacing: -0.25px;
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ficha-subtitle {
  margin-top: 0.25rem;
  color: rgba(11, 46, 89, 0.70);
  font-weight: 650;
}

.ficha-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.ficha-kpi {
  border: 1px solid rgba(11, 46, 89, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.05);
  padding: 0.85rem 0.9rem;
}

.ficha-kpi strong {
  display: block;
  color: rgba(11, 46, 89, 0.65);
  font-weight: 950;
  font-size: 0.78rem;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.ficha-kpi div {
  margin-top: 0.25rem;
  color: rgba(11, 46, 89, 0.92);
  font-weight: 750;
  line-height: 1.25;
}

.ficha-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.ficha-split.has-pdf {
  grid-template-columns: 0.9fr 0.9fr 1.4fr;
}

.ficha-split .modal-pane-body {
  max-height: calc(92vh - 240px);
  overflow: auto;
}

.ficha-pdf .modal-pane-body {
  padding: 0;
  max-height: calc(92vh - 220px);
}

.ficha-pdf iframe {
  width: 100%;
  height: 84vh;
  border: 0;
  background: rgba(11, 46, 89, 0.02);
}

.ficha-page .panel {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(11, 46, 89, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(11, 18, 32, 0.08);
  overflow: hidden;
}

.ficha-page .panel + .panel {
  margin-top: 1rem;
}

.ficha-page .panel-head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(11, 46, 89, 0.10);
  background: linear-gradient(135deg, rgba(11, 46, 89, 0.05), rgba(255, 204, 0, 0.14));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ficha-page .panel-title {
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 950;
  color: rgba(11, 46, 89, 0.92);
  letter-spacing: -0.25px;
  font-size: 1.1rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ficha-page .panel-body {
  padding: 1rem;
}

.ficha-page .ficha-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.ficha-page .ficha-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--header-grad-2, #234b8b), var(--header-bg, #0b2e59));
  display: grid;
  place-items: center;
  color: var(--acento-texto, var(--amarillo));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.14);
}

.ficha-page .ficha-hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ficha-page .btn-back {
  padding: 0.62rem 0.9rem;
}

.ficha-page .ficha-hero-decor {
  position: absolute;
  right: -38px;
  top: -38px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--acento-soft-65, rgba(255, 204, 0, 0.65)), rgba(255, 204, 0, 0));
  transform: rotate(12deg);
  pointer-events: none;
  z-index: 0;
}

.ficha-page .ficha-modules .panel-body {
  padding: 0.75rem 1rem 1rem;
}

.ficha-page .ficha-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.6rem;
}

.ficha-page .ficha-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 46, 89, 0.12);
  background: rgba(11, 46, 89, 0.03);
  color: rgba(11, 46, 89, 0.86);
  font-weight: 850;
}

.ficha-page .ficha-tab:hover {
  background: rgba(11, 46, 89, 0.06);
}

.ficha-page .ficha-tab.is-active {
  background: rgba(255, 204, 0, 0.18);
  border-color: rgba(255, 204, 0, 0.35);
}

.ficha-page .ficha-tab span {
  white-space: nowrap;
}

.ficha-page .ficha-section {
  scroll-margin-top: 92px;
}

.ficha-page .ficha-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1rem;
  align-items: start;
}

.ficha-page .ficha-aside .panel + .panel {
  margin-top: 1rem;
}

.ficha-page .panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ficha-page .panel-actions-bottom {
  margin-bottom: 0.75rem;
}

.ficha-page .meta-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.ficha-page .meta-row {
  display: grid;
  gap: 0.25rem;
}

.ficha-page .meta-label {
  color: rgba(11, 46, 89, 0.70);
  font-weight: 950;
  font-size: 0.78rem;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.ficha-page .ficha-quick {
  margin-top: 1rem;
}

.ficha-page .quick-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.ficha-page .quick-card {
  border: 1px solid rgba(11, 46, 89, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.05);
  padding: 0.85rem 0.9rem;
}

.ficha-page .quick-card strong {
  display: block;
  color: rgba(11, 46, 89, 0.65);
  font-weight: 950;
  font-size: 0.78rem;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.ficha-page .quick-card div {
  margin-top: 0.25rem;
  color: rgba(11, 46, 89, 0.92);
  font-weight: 750;
  line-height: 1.25;
  word-break: break-word;
}

.ficha-page .prio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.ficha-page .prio-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.ficha-page .prio-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.22);
  border: 1px solid rgba(255, 204, 0, 0.35);
  color: rgba(11, 46, 89, 0.92);
  font-weight: 950;
  font-size: 0.8rem;
}

.ficha-page .ficha-detail-title {
  margin-top: 1rem;
}

.ficha-page .data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(11, 46, 89, 0.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.ficha-page .data-table tbody tr {
  transition: background 120ms ease;
}

.ficha-page .data-table tbody tr:nth-child(even) td {
  background: rgba(11, 46, 89, 0.015);
}

.ficha-page .data-table tbody tr:hover td {
  background: rgba(255, 204, 0, 0.10);
}

.ficha-page .data-table tr.is-current td {
  background: rgba(255, 204, 0, 0.16);
}

.ficha-page .data-table th,
.ficha-page .data-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(11, 46, 89, 0.08);
  text-align: left;
  vertical-align: top;
}

.ficha-page .data-table th {
  background: rgba(11, 46, 89, 0.03);
  color: rgba(11, 46, 89, 0.82);
  font-weight: 950;
}

.ficha-page .data-table tr:last-child td {
  border-bottom: 0;
}

.ficha-page .cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.ficha-page .card-box {
  grid-column: span 6;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(11, 46, 89, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.07);
  overflow: hidden;
  transition: transform 120ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.ficha-page .card-box:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 46, 89, 0.18);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.10);
}

.ficha-page .card-box.wide {
  grid-column: span 12;
}

.ficha-page .card-box.third {
  grid-column: span 4;
}

.ficha-page .card-head {
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(11, 46, 89, 0.10);
  background: rgba(11, 46, 89, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ficha-page .card-title {
  margin: 0;
  font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 950;
  color: rgba(11, 46, 89, 0.92);
  letter-spacing: -0.22px;
  font-size: 1.02rem;
}

.ficha-page .card-body {
  padding: 1rem;
}

.ficha-page .info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.ficha-page .info-row {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.ficha-page .info-row strong {
  color: rgba(11, 46, 89, 0.70);
  font-weight: 950;
}

.ficha-page .info-row span {
  color: rgba(11, 46, 89, 0.92);
  font-weight: 650;
}

.ficha-page .pdf-frame {
  width: 100%;
  height: 82vh;
  border: 0;
  background: rgba(11, 46, 89, 0.02);
}

.ficha-page .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 46, 89, 0.14);
  font-weight: 900;
  font-size: 0.8rem;
  background: rgba(11, 46, 89, 0.06);
  color: rgba(11, 46, 89, 0.92);
}

.ficha-page .status-pill.is-pendiente {
  background: rgba(255, 204, 0, 0.22);
  border-color: rgba(255, 204, 0, 0.35);
}

.ficha-page .status-pill.is-aceptada {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.24);
}

.ficha-page .status-pill.is-rechazada {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
}

.ficha-page .status-pill.is-registrado {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.22);
}

.ficha-page .status-pill.is-neutral {
  background: rgba(11, 46, 89, 0.08);
  border-color: rgba(11, 46, 89, 0.16);
}

.ficha-page .status-pill.is-muted {
  background: rgba(85, 99, 117, 0.10);
  border-color: rgba(85, 99, 117, 0.18);
  color: rgba(85, 99, 117, 0.95);
}

.ficha-page .ficha-actions-bottom {
  margin-top: 1rem;
}

.ficha-page .text-pre {
  white-space: pre-wrap;
  line-height: 1.65;
  font-weight: 650;
  color: rgba(11, 46, 89, 0.88);
}

.ficha-page .card-divider {
  margin-top: 1rem;
  border-top: 1px solid rgba(11, 46, 89, 0.10);
  padding-top: 1rem;
}

.ficha-page .card-section-title {
  font-weight: 950;
  color: rgba(11, 46, 89, 0.90);
}

.ficha-page .file-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.ficha-page .file-list li {
  margin: 0.3rem 0;
}

.ficha-page .file-list a {
  color: rgba(11, 46, 89, 0.92);
  font-weight: 650;
}

.ficha-page .file-list a:hover {
  text-decoration: underline;
}

.ficha-page .file-download {
  margin-left: 0.45rem;
  color: rgba(11, 46, 89, 0.72);
  font-weight: 750;
}

.ficha-page .reject-form {
  margin-top: 0.6rem;
}

.ficha-page .reject-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-split {
    grid-template-columns: 1fr;
  }
  .ficha-split,
  .ficha-split.has-pdf {
    grid-template-columns: 1fr;
  }
  .ficha-kpis {
    grid-template-columns: 1fr;
  }
  .ficha-pdf iframe {
    height: 62vh;
  }
  .modal-pane-body iframe {
    height: 58vh;
  }

  .ficha-page .card-box,
  .ficha-page .card-box.third {
    grid-column: span 12;
  }

  .ficha-page .pdf-frame {
    height: 62vh;
  }

  .ficha-page .ficha-layout {
    grid-template-columns: 1fr;
  }

  .ficha-page .quick-cards {
    grid-template-columns: 1fr;
  }

  .ficha-page .ficha-hero {
    grid-template-columns: 1fr;
  }

  .ficha-page .ficha-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(11, 46, 89, 0.10);
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: rgba(11, 46, 89, 0.04);
  color: rgba(11, 46, 89, 0.86);
  font-weight: 850;
  text-align: left;
  z-index: 1;
}

.admin-table td {
  color: rgba(11, 46, 89, 0.86);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--azul-900);
}

.admin-table .admin-inline-reject {
  display: inline-block;
}

.admin-table .admin-inline-reject > summary {
  list-style: none;
}

.admin-table .admin-inline-reject > summary::-webkit-details-marker {
  display: none;
}

.admin-table .admin-inline-reject-form {
  margin-top: 0.55rem;
  min-width: 280px;
  max-width: 420px;
}

.admin-table .admin-inline-reject-form textarea {
  width: 100%;
}

.faq-order-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-order-moves {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.faq-move-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(11, 46, 89, 0.70);
  padding: 0.15rem 0.35rem;
  border-radius: 10px;
  line-height: 1;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.faq-move-btn:hover {
  background: rgba(11, 46, 89, 0.06);
  border-color: rgba(11, 46, 89, 0.14);
  color: var(--azul-900);
}

.faq-move-btn:disabled {
  cursor: not-allowed;
  opacity: 0.25;
  background: transparent;
  border-color: transparent;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}

@media (max-width: 960px) {
  .week-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .week-grid { grid-template-columns: repeat(2, 1fr); }
}

.week-day-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.06);
}

.week-day-head {
  background: var(--acento-soft-24, var(--azul-100));
  color: var(--azul-900);
  font-weight: 800;
  text-align: center;
  padding: 0.6rem 0.5rem;
  letter-spacing: 0.2px;
}

.week-day-body {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.week-slot-empty {
  color: var(--gris-600);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.4rem 0;
}

.week-slot {
  background: var(--gris-50);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.week-slot-time {
  font-weight: 800;
  color: var(--azul-900);
  font-size: 0.88rem;
}
