/* ── Botones genéricos ── */
.bottom-btn {
  position: absolute;
  bottom: 48px;
  width: calc(100% - 64px);
  padding: 18px;
  background: var(--white);
  border: none;
  color: var(--black);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}
.bottom-btn:hover { background: var(--accent); }
.bottom-btn.inline { position: relative; bottom: auto; margin-top: 24px; }

.back-btn {
  position: absolute;
  top: 56px; left: 32px;
  background: none; border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 20;
  transition: color 0.3s;
}
.back-btn:hover { color: var(--warm); }

/* ── Selector de género ── */
.gender-options { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.gender-btn {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: 1px solid var(--dim);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.gender-btn:hover, .gender-btn.selected { border-color: var(--accent); color: var(--white); }
.gender-btn.selected::after {
  content: '·'; position: absolute; right: 20px; top: 50%;
  color: var(--accent); font-size: 24px; line-height: 0;
}

/* ── Foto ── */
.photo-area {
  width: 180px; height: 180px;
  border: 1px solid var(--dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin-bottom: 12px;
  transition: border-color 0.3s;
  overflow: hidden;
}
.photo-area:hover { border-color: var(--accent); }
.photo-area .plus { font-size: 32px; color: var(--dim); font-weight: 200; transition: color 0.3s; }
.photo-area:hover .plus { color: var(--accent); }
.photo-note { font-size: 11px; letter-spacing: 0.1em; color: var(--text-dim); text-align: center; line-height: 1.6; }

/* ── Mapa ── */
.map-preview {
  width: 100%; height: 180px;
  background: #151210;
  border: 1px solid var(--dim);
  position: relative; overflow: hidden;
  margin-bottom: 16px; cursor: pointer;
}
.map-preview svg { width: 100%; height: 100%; opacity: 0.3; }
.map-pin {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
}
.map-pin::after {
  content: ''; position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%); width: 1px; height: 8px; background: var(--accent);
}
.map-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); text-align: center; margin-bottom: 32px; }

.time-row { display: flex; align-items: center; gap: 16px; width: 100%; }
.time-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.time-input {
  flex: 1; background: none; border: none; border-bottom: 1px solid var(--dim);
  color: var(--white); font-family: inherit; font-size: 22px; padding: 8px 0;
  text-align: right; outline: none; transition: border-color 0.3s;
}
.time-input:focus { border-color: var(--accent); }

/* ── Búsqueda ── */
.search-anim { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pulse-ring {
  width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--dim);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.pulse-ring::before, .pulse-ring::after {
  content: ''; position: absolute; border-radius: 50%;
  border: 1px solid var(--accent); animation: pulse 2.4s infinite;
}
.pulse-ring::before { inset: -16px; opacity: 0.4; }
.pulse-ring::after { inset: -32px; opacity: 0.2; animation-delay: 0.6s; }
.pulse-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.search-text { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(1.5); opacity: 0; } }

/* ── Match ── */
.match-container { display: flex; flex-direction: column; align-items: center; width: 100%; }
.match-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 32px; }
.match-photo {
  width: 160px; height: 160px; border-radius: 2px; overflow: hidden;
  margin-bottom: 28px; background: var(--dim);
}
.match-photo-inner {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #2a2420 0%, #1a1410 100%);
  display: flex; align-items: center; justify-content: center;
}
.match-place { font-size: 13px; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 6px; }
.match-time { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 48px; }
.match-actions { display: flex; gap: 16px; width: 100%; }
.btn-decline {
  flex: 1; padding: 16px; background: none; border: 1px solid var(--dim);
  color: var(--text-dim); font-family: inherit; font-size: 14px;
  letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s;
}
.btn-decline:hover { border-color: #555; color: var(--white); }
.btn-connect {
  flex: 2; padding: 16px; background: var(--white); border: none;
  color: var(--black); font-family: inherit; font-size: 14px;
  letter-spacing: 0.1em; cursor: pointer; transition: all 0.3s;
}
.btn-connect:hover { background: var(--accent); }

/* ── Chat ── */
.chat-header {
  width: 100%; padding: 56px 32px 24px; border-bottom: 1px solid var(--dim);
  display: flex; align-items: center; gap: 16px;
}
.chat-avatar {
  width: 40px; height: 40px; background: var(--dim); border-radius: 2px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.chat-name { font-size: 16px; color: var(--white); letter-spacing: 0.05em; }
.chat-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; margin-top: 2px; }
.chat-messages {
  flex: 1; width: 100%; padding: 24px 32px;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
}
.msg { max-width: 75%; padding: 12px 16px; font-size: 15px; line-height: 1.5; letter-spacing: 0.02em; }
.msg.them { background: #1e1b18; color: var(--white); border-radius: 2px 14px 14px 2px; align-self: flex-start; }
.msg.me { background: var(--dim); color: var(--white); border-radius: 14px 2px 2px 14px; align-self: flex-end; }
.ad-banner {
  width: calc(100% - 64px); margin: 0 32px 12px; padding: 12px 16px;
  background: #12100e; border: 1px solid #2a2520;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.ad-dot { width: 6px; height: 6px; background: var(--dim); border-radius: 50%; flex-shrink: 0; }
.ad-text { font-size: 11px; color: var(--text-dim); letter-spacing: 0.05em; line-height: 1.4; }
.chat-input-row {
  width: 100%; padding: 16px 32px 40px; display: flex; gap: 12px;
  border-top: 1px solid var(--dim); flex-shrink: 0;
}
.chat-input {
  flex: 1; background: none; border: none; border-bottom: 1px solid var(--dim);
  color: var(--white); font-family: inherit; font-size: 15px; padding: 8px 0; outline: none;
}
.chat-input::placeholder { color: var(--dim); }
.send-btn {
  background: none; border: none; color: var(--accent); font-family: inherit;
  font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; padding: 8px 0; transition: color 0.3s;
}
.send-btn:hover { color: var(--white); }

/* ── Despedida ── */
.delete-btn {
  padding: 18px 48px; background: none; border: 1px solid var(--dim);
  color: var(--text-dim); font-family: inherit; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: all 0.3s;
}
.delete-btn:hover { border-color: #8b4040; color: #c07070; }

/* ── Pantallas principales (mapa/perfil) — tema claro tipo Tinder ── */
.app-screen {
  background: #ffffff !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  color: #1a1a1a;
}
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 12px; width: 100%;
}
.app-name { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; color: #1a1a1a; }

.search-bar {
  margin: 4px 20px 12px;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 16px;
  background: #f5f5f5; border: 1px solid #ececec;
  width: calc(100% - 40px);
}
.search-bar svg { width: 18px; height: 18px; opacity: 0.4; flex-shrink: 0; stroke: #1a1a1a; }
.search-bar input {
  border: none; background: none; outline: none;
  font-family: inherit; font-size: 14px; color: #1a1a1a; flex: 1;
}
.search-bar input::placeholder { color: #aaa; }

.leaflet-map {
  flex: 1; width: 100%; min-height: 200px;
  background: #f0f0f0;
}

.encounter-footer {
  width: 100%; padding: 14px 20px; background: #fff;
  border-top: 1px solid #eee;
}
.encounter-footer .time-row { display: flex; align-items: center; gap: 16px; width: 100%; }
.encounter-footer .time-label { font-size: 12px; color: #888; white-space: nowrap; }
.encounter-footer .time-input {
  flex: 1; background: none; border: none; border-bottom: 1px solid #ddd;
  color: #1a1a1a; font-family: inherit; font-size: 18px; padding: 6px 0;
  text-align: right; outline: none;
}

.bottom-nav {
  display: flex; padding: 12px 0 20px; background: #fff;
  border-top: 1px solid #eee; width: 100%; flex-shrink: 0;
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.nav-icon { width: 24px; height: 24px; }
.nav-label { font-size: 11px; font-weight: 600; }
.nav-item.active .nav-label { color: #FD5068; }
.nav-item.active svg { stroke: #FD5068; }
.nav-item:not(.active) .nav-label { color: #b0b0b0; }
.nav-item:not(.active) svg { stroke: #b0b0b0; }

.profile-view-body { flex: 1; width: 100%; padding: 24px 20px; }
.profile-photo-big {
  width: 140px; height: 140px; border-radius: 24px; overflow: hidden;
  background: #f0f0f0; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.profile-info-row {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid #eee; font-size: 14px; color: #888;
}
.profile-info-row b { color: #1a1a1a; }

/* ── Selector de foto (galería / cámara) ── */
.photo-choice-overlay {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end;
}
.photo-choice-sheet {
  width: 100%; background: #fff; border-radius: 20px 20px 0 0;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.photo-choice-btn {
  width: 100%; padding: 16px; border-radius: 14px; border: none;
  background: #f5f5f5; color: #1a1a1a; font-family: inherit;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.photo-choice-btn.cancel { background: none; color: #999; }

/* ── Pantalla de cuenta (crear perfil / Google / Facebook) ── */
.account-screen {
  background: #ffffff !important;
  justify-content: center !important;
  padding: 40px 32px !important;
  color: #1a1a1a;
}
.account-screen .logo-box.small {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, #FD5068, #FF8FA3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.account-screen .logo-box.small svg { width: 42px; height: 42px; }
.account-screen .c-shape { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.account-title { font-size: 24px; font-weight: 800; color: #1a1a1a; margin-bottom: 8px; }
.account-sub { font-size: 14px; color: #999; text-align: center; margin-bottom: 40px; max-width: 260px; }
.account-buttons { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.btn-account {
  width: 100%; padding: 15px; border-radius: 30px;
  border: 1px solid #e0e0e0; background: #fff; color: #1a1a1a;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s;
}
.btn-account:active { background: #f5f5f5; }
.account-icon-g {
  font-weight: 800; color: #4285F4;
  font-family: Arial, sans-serif;
}
.account-icon-f {
  width: 22px; height: 22px; border-radius: 50%;
  background: #1877F2; color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
}

/* Botón crear perfil alineado al mismo ancho que los sociales */
.btn-solid-full { max-width: 100% !important; width: 100%; }
.account-divider {
  text-align: center; color: #bbb; font-size: 13px; font-weight: 600;
  padding: 2px 0;
}
.map-heading {
  font-size: 22px; font-weight: 800; color: #1a1a1a;
  align-self: flex-start; padding: 0 20px 10px;
}

/* ── Chat (tema claro) ── */
.chat-header.light {
  width: 100%; padding: 8px 20px 16px; border-bottom: 1px solid #eee;
  display: flex; align-items: center; gap: 12px;
}
.chat-header.light .chat-name { color: #1a1a1a; font-weight: 700; font-size: 15px; }
.chat-header.light .chat-sub { color: #999; font-size: 12px; }
.chat-header.light .chat-avatar { background: #f0f0f0; border-radius: 50%; width: 40px; height: 40px; display:flex; align-items:center; justify-content:center; }
.chat-messages.light {
  flex: 1; width: 100%; padding: 16px 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; background: #fff;
}
.chat-messages.light .msg { max-width: 75%; padding: 11px 15px; font-size: 14px; line-height: 1.45; }
.chat-messages.light .msg.them { background: #f2f2f2; color: #1a1a1a; border-radius: 4px 16px 16px 4px; align-self: flex-start; }
.chat-messages.light .msg.me { background: #FD5068; color: #fff; border-radius: 16px 4px 4px 16px; align-self: flex-end; }
.chat-input-row.light {
  width: 100%; padding: 12px 20px; display: flex; gap: 10px;
  border-top: 1px solid #eee; background: #fff;
}
.chat-input-row.light .chat-input {
  flex: 1; background: #f5f5f5; border: none; border-radius: 22px;
  color: #1a1a1a; font-family: inherit; font-size: 14px; padding: 12px 16px; outline: none;
}
.chat-input-row.light .send-btn {
  background: none; border: none; color: #FD5068; font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.chat-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px; text-align: center;
}
.chat-empty-icon { font-size: 40px; margin-bottom: 16px; }
.chat-empty-title { font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.chat-empty-sub { font-size: 13px; color: #999; max-width: 240px; }
