:root {
  --azul: #043768;
  --azul-oscuro: #032a52;
  --azul-link: #0b57a3;
  --fondo: #f4f6f9;
  --blanco: #ffffff;
  --texto: #0b1b2b;
  --texto-muted: #5a6578;
  --linea: #e6ebf3;
  --radio: 12px;
  --sombra: 0 10px 30px rgba(2, 19, 46, 0.12);
}

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

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--fondo);
  color: var(--texto);
}

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

.topbar {
  background: var(--blanco);
  border-bottom: 1px solid var(--linea);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--azul);
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--linea);
  background: var(--blanco);
  cursor: pointer;
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #2b3c55;
  border-radius: 999px;
}

.nav-toggle-bars::before {
  top: 0;
  box-shadow: 0 5px 0 #2b3c55, 0 10px 0 #2b3c55;
}

.nav-toggle-bars::after {
  display: none;
}

.nav-panel {
  display: flex;
  align-items: center;
}

.nav-panel.is-open {
  display: flex;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #2b3c55;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(4, 55, 104, 0.06);
  border: 1px solid rgba(4, 55, 104, 0.12);
}

.nav-link:hover {
  background: rgba(4, 55, 104, 0.1);
}

.nav-link-primary {
  background: var(--azul);
  color: #fff;
  padding: 8px 14px;
}

.nav-link-primary:hover {
  background: var(--azul-oscuro);
}

.persona-hero {
  background: linear-gradient(180deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.persona-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.55;
}

.persona-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px 32px;
  text-align: center;
  position: relative;
}

.persona-hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 10px;
}

.persona-hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.persona-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}

.persona-intro {
  margin-bottom: 18px;
}

.persona-breadcrumb {
  font-size: 13px;
  color: var(--texto-muted);
  margin-bottom: 10px;
}

.persona-breadcrumb span {
  margin: 0 6px;
}

.persona-header {
  margin-bottom: 18px;
}

.persona-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 8px;
}

.persona-header p {
  font-size: 14px;
  color: var(--texto-muted);
}

.mapa-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.mapa-card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.mapa-card-header {
  padding: 14px 16px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--linea);
}

.mapa-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--azul);
}

.mapa-canvas {
  height: 460px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.sidebar-card-header {
  padding: 12px 14px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--linea);
  font-size: 12px;
  font-weight: 800;
  color: var(--azul);
}

.sidebar-card-body {
  padding: 12px 14px;
}

.ubicacion-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ubicacion-item {
  width: 100%;
  border: 1px solid var(--linea);
  background: var(--blanco);
  border-radius: 10px;
  padding: 12px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.ubicacion-item:hover {
  border-color: rgba(11, 87, 163, 0.35);
}

.ubicacion-item.seleccionada {
  border-color: rgba(11, 87, 163, 0.55);
  background: rgba(11, 87, 163, 0.06);
}

.ubicacion-nombre {
  font-size: 13px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 4px;
}

.ubicacion-detalle {
  font-size: 12px;
  color: var(--texto-muted);
  line-height: 1.4;
}

.cupo-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(46, 125, 82, 0.12);
  color: rgb(46, 125, 82);
  white-space: nowrap;
}

.cupo-badge.bajo {
  background: rgba(199, 119, 0, 0.14);
  color: rgb(199, 119, 0);
}

.seleccion-actual {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 14px 14px;
}

.seleccion-actual-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 10px;
}

.seleccion-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
}

.seleccion-row span:first-child {
  color: var(--texto-muted);
  min-width: 76px;
}

.agenda-card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.agenda-card-header {
  padding: 12px 14px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--linea);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agenda-card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--azul);
}

.agenda-card-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-muted);
}

.agenda-card-body {
  padding: 12px 14px;
}

.agenda-ayuda {
  font-size: 12px;
  color: var(--texto-muted);
  line-height: 1.45;
}

.agenda-paso {
  font-size: 12px;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 10px;
}

.agenda-paso-sep {
  margin-top: 12px;
}

.agenda-subtitulo {
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--azul);
}

.calendario {
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.calendario-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-bottom: 1px solid var(--linea);
  background: #f7f9fc;
}

.cal-nav {
  width: 36px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--linea);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:hover {
  border-color: rgba(11, 87, 163, 0.35);
}

.cal-nav[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.cal-mes {
  font-size: 13px;
  font-weight: 800;
  color: var(--azul);
  text-align: center;
}

.cal-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 10px 10px 0;
}

.cal-dia-semana {
  font-size: 11px;
  font-weight: 800;
  color: var(--texto-muted);
  text-align: center;
  padding-bottom: 6px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 10px 10px;
}

.cal-celda {
  height: 34px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--texto);
}

.cal-celda-vacia {
  background: transparent;
  border-color: transparent;
}

.cal-dia {
  cursor: pointer;
  background: #fff;
  border-color: var(--linea);
  position: relative;
}

.cal-num {
  line-height: 1;
}

.cal-cupos {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(46, 125, 82, 0.12);
  color: rgb(46, 125, 82);
  border: 1px solid rgba(46, 125, 82, 0.18);
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal-dia:hover {
  border-color: rgba(11, 87, 163, 0.35);
}

.cal-dia[aria-disabled="true"] {
  opacity: 0.38;
  pointer-events: none;
}

.cal-dia.seleccionado {
  border-color: rgba(11, 87, 163, 0.6);
  background: rgba(11, 87, 163, 0.08);
}

.cal-dia.hoy {
  border-color: rgba(46, 125, 82, 0.55);
}

.agenda-resumen {
  margin-top: 12px;
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.agenda-resumen-linea {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(230, 235, 243, 0.85);
}

.agenda-resumen-linea:last-child {
  border-bottom: none;
}

.agenda-resumen-label {
  color: var(--texto-muted);
  font-weight: 700;
}

.agenda-resumen-valor {
  color: var(--texto);
  font-weight: 800;
  text-align: right;
}

.agenda-cupos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.agenda-cupo {
  width: 100%;
  border: 1px solid var(--linea);
  background: var(--blanco);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.agenda-cupo:hover {
  border-color: rgba(11, 87, 163, 0.35);
}

.agenda-cupo.seleccionado {
  border-color: rgba(11, 87, 163, 0.55);
  background: rgba(11, 87, 163, 0.06);
}

.agenda-cupo[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.agenda-cupo-hora {
  font-size: 13px;
  font-weight: 800;
  color: var(--texto);
}

.agenda-cupo-cupos {
  font-size: 12px;
  font-weight: 800;
  color: rgba(46, 125, 82, 0.95);
}

.agenda-cupo-cupos.bajo {
  color: rgb(199, 119, 0);
}

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

.persona-acciones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

.success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 19, 46, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.success-modal {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(2, 19, 46, 0.12);
  box-shadow: 0 18px 60px rgba(2, 19, 46, 0.26);
  padding: 22px 20px 18px;
  position: relative;
  text-align: center;
}

.success-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(2, 19, 46, 0.14);
  background: #fff;
  color: rgba(2, 19, 46, 0.75);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.success-modal-close:hover {
  background: rgba(4, 55, 104, 0.06);
  color: rgba(2, 19, 46, 0.9);
}

.success-modal-icon {
  width: 54px;
  height: 54px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(46, 125, 82, 0.12);
  color: rgba(46, 125, 82, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
}

.success-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--azul);
  margin-bottom: 8px;
}

.success-modal-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-muted);
  margin-bottom: 16px;
}

.success-modal-folio {
  color: var(--texto);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.success-modal-btn {
  width: 100%;
  justify-content: center;
}

.redirect-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 19, 46, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
}

.redirect-loader-card {
  width: min(360px, 100%);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(2, 19, 46, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(2, 19, 46, 0.2);
  padding: 18px 18px 16px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.redirect-loader-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(2, 19, 46, 0.7);
  text-align: center;
}

.newtons-cradle {
  --uib-size: 50px;
  --uib-speed: 1.2s;
  --uib-color: var(--azul);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--uib-size);
  height: var(--uib-size);
}

.newtons-cradle__dot {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 25%;
  transform-origin: center top;
}

.newtons-cradle__dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 25%;
  border-radius: 50%;
  background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child {
  animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle__dot:last-child {
  animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  25% {
    transform: rotate(70deg);
    animation-timing-function: ease-in;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
}

@keyframes swing2 {
  0% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }

  50% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }

  75% {
    transform: rotate(-70deg);
    animation-timing-function: ease-in;
  }
}

.btn-primario {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primario[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-primario:hover {
  background: var(--azul-oscuro);
}

.btn-secundario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--linea);
  background: #fff;
  color: var(--texto);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.btn-secundario:hover {
  border-color: rgba(11, 87, 163, 0.45);
  color: var(--azul);
}

.persona-alert {
  border-radius: 12px;
  border: 1px solid rgba(122, 16, 16, 0.18);
  background: rgba(122, 16, 16, 0.06);
  padding: 14px 16px;
  margin: 14px 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  row-gap: 6px;
  align-items: start;
  box-shadow: 0 10px 24px rgba(2, 19, 46, 0.08);
}

.persona-alert::before {
  content: "!";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(122, 16, 16, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

.persona-alert-title {
  font-size: 14px;
  font-weight: 800;
  color: #7a1010;
  grid-column: 2;
}

.persona-alert-text {
  font-size: 13px;
  font-weight: 600;
  color: #7a1010;
  line-height: 1.35;
  grid-column: 2;
}

.marker {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(4, 55, 104, 0.95);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(2, 19, 46, 0.22);
}

.marker-activo {
  background: rgba(46, 125, 82, 0.95);
}

.marker-text {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form-card {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  margin-bottom: 16px;
}

.form-card-header {
  padding: 14px 16px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--linea);
}

.form-card-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--azul);
}

.form-body {
  padding: 16px;
}

.tipo-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tipo-opcion {
  border: 1px solid var(--linea);
  background: var(--blanco);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.tipo-opcion:hover {
  border-color: rgba(11, 87, 163, 0.35);
}

.tipo-opcion.activa {
  border-color: rgba(11, 87, 163, 0.6);
  background: rgba(11, 87, 163, 0.06);
}

.tipo-opcion-titulo {
  font-size: 14px;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 4px;
}

.tipo-opcion-desc {
  font-size: 12px;
  color: var(--texto-muted);
  line-height: 1.4;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-row.full {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.form-grupo label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  border: 1px solid var(--linea);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--texto);
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: rgba(11, 87, 163, 0.6);
}

.upload-zona {
  width: 100%;
  border: 2px dashed rgba(11, 87, 163, 0.28);
  background: #f8fbff;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
}

.upload-zona:hover {
  border-color: rgba(11, 87, 163, 0.45);
}

.upload-titulo {
  font-size: 14px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 6px;
}

.upload-hint {
  font-size: 12px;
  color: var(--texto-muted);
  line-height: 1.4;
}

.footer {
  margin-top: 22px;
  background: #043a67;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 42%),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  opacity: 0.35;
  pointer-events: none;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  align-items: start;
  justify-items: start;
  position: relative;
}

.footer-col {
  text-align: left;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand .footer-title {
  margin-bottom: 0;
}

.footer-brand-logo {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
}

.footer-text {
  font-size: 12px;
  line-height: 1.55;
  margin-bottom: 6px;
}

.footer-link {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 7px;
}

.footer-link:hover {
  color: #fff;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-badge-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-badge-value {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.footer-divider {
  max-width: 1120px;
  margin: 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

@media (max-width: 980px) {
  .mapa-layout {
    grid-template-columns: 1fr;
  }

  .tipo-selector,
  .form-row {
    grid-template-columns: 1fr;
  }

  .persona-acciones {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .persona-hero-title {
    font-size: 34px;
  }

  .persona-hero-subtitle {
    font-size: 14px;
  }

  .cal-grid {
    gap: 5px;
  }

  .cal-semana {
    gap: 5px;
  }

  .cal-celda {
    height: 44px;
  }

  .cal-dia {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 6px;
  }

  .cal-cupos {
    position: static;
    margin-top: 4px;
    height: 16px;
    min-width: 16px;
    padding: 0 5px;
    font-size: 9px;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    min-width: 220px;
    max-width: calc(100vw - 40px);
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(2, 19, 46, 0.18);
    padding: 10px;
    z-index: 20;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }
}
