/* ==========================================================================
   LOOKY - MODAL DE REGISTRO DE PERFIL (Formato 2+1 Minimalista + Mini-Mapa)
   ========================================================================== */

#modal-registro-selector {
  position: fixed;
  inset: 0;
  z-index: 10005;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.24s ease;
}

@media (min-width: 640px) {
  #modal-registro-selector {
    align-items: center;
    padding: 16px;
  }
}

#modal-registro-selector .reg-sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 92dvh;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 28px 28px 0 0;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -10px 35px rgba(15, 23, 42, 0.16);
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(20px) scale(0.985);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: none;
}

#modal-registro-selector .reg-sheet::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  #modal-registro-selector .reg-sheet {
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22);
    padding: 16px 20px 20px;
  }
}

#modal-registro-selector.opacity-100 .reg-sheet {
  transform: translateY(0) scale(1);
}

body.dark-mode #modal-registro-selector {
  background: rgba(2, 6, 23, 0.72);
}

body.dark-mode #modal-registro-selector .reg-sheet {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
}

/* Barra superior (handle + cerrar sin tapar el mini-mapa) */
.reg-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin-bottom: 8px;
}

.reg-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
}

body.dark-mode .reg-handle {
  background: #334155;
}

@media (min-width: 640px) {
  .reg-handle {
    opacity: 0.55;
  }
}

.reg-close-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.reg-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.reg-close-btn:active {
  transform: translateY(-50%) scale(0.92);
}

body.dark-mode .reg-close-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

body.dark-mode .reg-close-btn:hover {
  background: #334155;
  color: #ffffff;
}

/* Mini-mapa superior limpio con 3 pines */
.reg-minimap {
  width: 100%;
  height: 86px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #eef2f6;
  margin-bottom: 12px;
}

.reg-minimap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.reg-map-block { fill: #eef2f6; }
.reg-map-park { fill: #dcfce7; }
.reg-map-road { stroke: #ffffff; stroke-linecap: round; }
.reg-map-avenue-casing { stroke: #fde68a; stroke-linecap: round; }
.reg-map-avenue { stroke: #fef3c7; stroke-linecap: round; }

body.dark-mode .reg-minimap {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0b1220;
}

body.dark-mode .reg-map-block { fill: #0b1220; }
body.dark-mode .reg-map-park { fill: rgba(6, 78, 59, 0.38); }
body.dark-mode .reg-map-road { stroke: #1e293b; }
body.dark-mode .reg-map-avenue-casing { stroke: #334155; }
body.dark-mode .reg-map-avenue { stroke: #273449; }

/* Cabecera de texto */
.reg-header {
  text-align: center;
  margin-bottom: 14px;
}

.reg-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f172a;
}

.reg-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.38;
  color: #64748b;
}

body.dark-mode .reg-title {
  color: #f8fafc;
}

body.dark-mode .reg-subtitle {
  color: #94a3b8;
}

/* Etiquetas divisorias */
.reg-section-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #64748b;
}

body.dark-mode .reg-section-label {
  color: #94a3b8;
}

/* Grilla 2 columnas (Perfiles permanentes) */
.reg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.reg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 13px 10px 11px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.reg-card:active {
  transform: scale(0.98);
}

.reg-card--blue:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.08);
}

.reg-card--green:hover {
  border-color: #6ee7b7;
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.08);
}

body.dark-mode .reg-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Íconos minimalistas finos */
.reg-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.reg-icon-box--blue {
  color: #1d4ed8;
}

.reg-icon-box--green {
  color: #047857;
}

.reg-icon-box--orange {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
  margin-bottom: 0;
}

body.dark-mode .reg-icon-box {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .reg-icon-box--blue {
  color: #60a5fa;
}

body.dark-mode .reg-icon-box--green {
  color: #34d399;
}

body.dark-mode .reg-icon-box--orange {
  background: rgba(154, 52, 18, 0.22);
  border-color: rgba(251, 146, 60, 0.3);
  color: #fb923c;
}

/* Píldoras discretas de color de pin */
.reg-pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 7px;
}

.reg-pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.reg-pin-pill--blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}
.reg-pin-pill--blue .reg-pin-dot { background: #2563eb; }

.reg-pin-pill--green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}
.reg-pin-pill--green .reg-pin-dot { background: #059669; }

.reg-pin-pill--orange {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  margin-bottom: 3px;
}
.reg-pin-pill--orange .reg-pin-dot { background: #ea580c; }

body.dark-mode .reg-pin-pill--blue {
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .reg-pin-pill--green {
  background: rgba(5, 150, 105, 0.18);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .reg-pin-pill--orange {
  background: rgba(234, 88, 12, 0.18);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.3);
}

/* Textos de las tarjetas */
.reg-card-title {
  margin: 0 0 5px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.24;
  color: #0f172a;
}

.reg-card-desc {
  margin: 0 0 11px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.38;
  color: #475569;
}

body.dark-mode .reg-card-title {
  color: #f8fafc;
}

body.dark-mode .reg-card-desc {
  color: #cbd5e1;
}

/* Botones de acción */
.reg-cta-btn {
  margin-top: auto;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: filter 0.16s ease;
}

.reg-cta-btn--blue {
  background: #1e3a8a;
}

.reg-cta-btn--green {
  background: #065f46;
}

.reg-card:hover .reg-cta-btn {
  filter: brightness(1.1);
}

/* Tarjeta inferior ancho completo (Evento Comunitario) */
.reg-card-wide {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  text-align: left;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.reg-card-wide:hover {
  border-color: #fdba74;
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.08);
}

.reg-card-wide:active {
  transform: scale(0.985);
}

body.dark-mode .reg-card-wide {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.reg-wide-body {
  min-width: 0;
  flex: 1;
}

.reg-wide-body .reg-card-title {
  margin: 0 0 2px;
}

.reg-wide-body .reg-card-desc {
  margin: 0;
}

.reg-wide-cta {
  flex-shrink: 0;
  padding: 8px 11px;
  border-radius: 12px;
  background: #c2410c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.reg-card-wide:hover .reg-wide-cta {
  background: #9a3412;
}

/* Pie discreto */
.reg-footer-btn {
  display: block;
  margin: 10px auto 0;
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color 0.16s ease;
}

.reg-footer-btn:hover {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.dark-mode .reg-footer-btn {
  color: #94a3b8;
}

body.dark-mode .reg-footer-btn:hover {
  color: #f8fafc;
}
