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

body {
  background-color: #fafafa;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ── NAV ── */
header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.header-logo a {
  display: inline-block;
}

.header-logo img {
  height: 90px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
              linear-gradient(135deg, #f58529, #dd2a7b, #8134af) border-box;
}

.header-username {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a3a3a;
}

.header-logout, .header-login {
  font-size: 0.78rem;
  font-weight: 600;
  color: #8134af;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #e0d0f0;
  border-radius: 20px;
  transition: background 0.2s;
}

.header-logout:hover, .header-login:hover {
  background: #f3e8ff;
}

/* ── MAIN ── */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
  gap: 32px;
}

/* ── CARD ── */
.card {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  border: 1px solid #ebebeb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
}

.card-photo {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  background: linear-gradient(135deg, #1a1a2e, #2d1b4e);
}

.card-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.45), rgba(45,27,78,0.35));
  z-index: 1;
  pointer-events: none;
}

.card-reactions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  z-index: 6;
}

.reaction-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px;
  width: 50px;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: transform 0.15s, background 0.2s;
}

.reaction-btn:hover {
  transform: scale(1.12);
  background: rgba(255,255,255,0.35);
}

.reaction-btn.hearted { background: rgba(221,42,123,0.5); }
.reaction-btn.liked   { background: rgba(129,52,175,0.5); }

.reaction-btn span.count {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}

.card-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.card-photo-overlay h2 {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-ia {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.card-photo-overlay .meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.card-photo-overlay .profession {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ── CARD BODY ── */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.greeting {
  font-size: 0.9rem;
  color: #3a3a3a;
  font-style: italic;
  line-height: 1.5;
  border-left: 3px solid #dd2a7b;
  padding-left: 10px;
}

.toggle-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8134af;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
  padding: 6px 0;
  border-bottom: 1px solid #ebebeb;
}

.toggle-detail .arrow {
  transition: transform 0.3s;
  font-size: 0.7rem;
}

.toggle-detail.open .arrow { transform: rotate(180deg); }

.card-detail {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.card-detail.open { display: flex; }

.skill {
  font-size: 0.82rem;
  background: linear-gradient(135deg, #fdf0f8, #f3e8ff);
  border-left: 3px solid #dd2a7b;
  padding: 10px 12px;
  color: #5a1a4a;
  border-radius: 0 8px 8px 0;
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interests span {
  background: #f3f3f3;
  border: 1px solid #ebebeb;
  color: #555;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.rating {
  display: flex;
  gap: 3px;
  align-items: center;
}

.star       { color: #dd2a7b; font-size: 1rem; }
.star.empty { color: #ddd; }

.review {
  font-size: 0.8rem;
  color: #8e8e8e;
  font-style: italic;
  margin-left: 6px;
}

.loves-hates {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  background: #fafafa;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ebebeb;
}

.loves { color: #dd2a7b; }
.hates { color: #f58529; }

.quote {
  font-size: 0.78rem;
  color: #aaa;
  font-style: italic;
  text-align: right;
  padding-top: 8px;
  border-top: 1px solid #ebebeb;
}

/* ── CARD FOOTER ── */
.card-footer {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 16px 0 20px;
}

.btn-skip, .btn-invite {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-skip {
  background: #f3f3f3;
  color: #999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-invite {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  box-shadow: 0 4px 16px rgba(221,42,123,0.35);
}

.btn-skip:hover {
  transform: scale(1.1);
  background: #e8e8e8;
}

.btn-invite:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(221,42,123,0.5);
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

.modal img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  margin: 0 auto;
  border: 3px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #f58529, #dd2a7b, #8134af) border-box;
}

.modal h3 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.modal-btn--primary {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}

.modal-btn--secondary {
  background: #f3f3f3;
  color: #8134af;
  border: 1px solid #e0d0f0;
}

.modal-btn:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

/* ── ESTADOS ── */
#loading {
  color: #dd2a7b;
  font-size: 1rem;
  margin-top: 60px;
}

#error {
  color: #f58529;
  font-size: 1rem;
  margin-top: 60px;
}

/* ── AUTH ── */
.auth-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 16px;
}

.auth-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.auth-logo {
  height: 60px;
  width: auto;
  margin-bottom: 8px;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.5;
}

.btn-google {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3a3a3a;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-top: 8px;
}

.btn-google:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  transform: translateY(-1px);
}

/* ── ONBOARDING ── */
.ob-main {
  display: flex;
  justify-content: center;
  padding: 40px 16px 60px;
}

.ob-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Stepper */
.ob-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}

.ob-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #aaa;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.ob-step.active {
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  color: #fff;
}

.ob-step.done {
  background: #dd2a7b;
  color: #fff;
}

.ob-step.done::before {
  content: '✓';
}

.ob-step.done { font-size: 0; }
.ob-step.done::before { font-size: 0.9rem; }

.ob-line {
  width: 48px;
  height: 3px;
  background: #f0f0f0;
  transition: background 0.3s;
}

.ob-line.done {
  background: linear-gradient(90deg, #f58529, #dd2a7b);
}

/* Panels */
.ob-panel { display: none; width: 100%; text-align: center; flex-direction: column; align-items: center; gap: 14px; }
.ob-panel.active { display: flex; }

.ob-step-label {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ob-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ob-subtitle {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

.ob-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
              linear-gradient(135deg, #f58529, #dd2a7b, #8134af) border-box;
}

.ob-avatar-hint {
  font-size: 0.75rem;
  color: #8134af;
  font-weight: 500;
}

/* Fields */
.ob-field {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a3a3a;
}

.ob-field label span { color: #dd2a7b; }

.ob-field input, .ob-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}

.ob-field input:focus, .ob-field select:focus {
  border-color: #dd2a7b;
}

/* Options (paso 2) */
.ob-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}

.ob-option input { display: none; }

.ob-option.selected {
  border-color: #dd2a7b;
  background: #fdf0f8;
}

.ob-option-icon { font-size: 1.3rem; }

.ob-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ob-option-text strong { font-size: 0.88rem; color: #2a2a2a; }
.ob-option-text small  { font-size: 0.75rem; color: #999; }

/* Interests (paso 3) */
.ob-interests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.ob-interest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  color: #555;
  transition: border-color 0.2s, background 0.2s;
}

.ob-interest input { display: none; }

.ob-interest.selected {
  border-color: #dd2a7b;
  background: #fdf0f8;
  color: #dd2a7b;
}

.ob-interest-icon { font-size: 1.5rem; }

.ob-hint {
  font-size: 0.75rem;
  color: #8134af;
  font-weight: 500;
}

/* Nav buttons */
.ob-nav {
  display: flex;
  gap: 10px;
  width: 100%;
}

.ob-btn-next {
  flex: 1;
  padding: 13px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ob-btn-next:hover { opacity: 0.88; }

.ob-btn-back {
  padding: 13px 20px;
  background: #f3f3f3;
  color: #666;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ob-btn-back:hover { background: #e8e8e8; }

/* ── HOME LAYOUT CON SIDEBAR ── */
.home-layout {
  display: flex;
  min-height: calc(100vh - 90px);
}

.home-nav {
  width: 240px;
  min-width: 240px;
  background: #fff;
  border-right: 1px solid #ebebeb;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 90px;
  height: calc(100vh - 90px);
}

.home-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
  cursor: pointer;
}

.home-nav-item:hover { background: #fafafa; }

.home-nav-item--active {
  background: #fff0f6;
  color: #dd2a7b;
}

.home-nav-item--active svg { stroke: #dd2a7b; }

.home-nav-item--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.home-nav-item--logout { color: #999; font-size: 0.85rem; }

.home-nav-item--danger {
  color: #e74c3c;
  font-size: 0.85rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.home-nav-item--danger:hover { background: #fff0f0; }
.home-nav-item--danger svg { stroke: #e74c3c; }

.modal-delete-icon { font-size: 2.5rem; text-align: center; margin-bottom: 8px; }

.modal-btn--delete {
  width: 100%;
  padding: 12px 24px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.modal-btn--delete:hover { opacity: 0.88; }

.home-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 0.08em;
  padding: 8px 16px 2px;
  margin: 0;
}

.home-nav-inspiration {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 8px;
}

.home-nav-inspiration p {
  font-size: 0.82rem;
  color: #bbb;
  line-height: 1.5;
  margin: 0;
}

.home-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

.home-nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.home-nav-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-nav-user-sub { font-size: 0.72rem; color: #aaa; }

#main { flex: 1; overflow-y: auto; }

/* ── CHAT ── */
.chat-layout {
  display: flex;
  height: calc(100vh - 90px);
  overflow: hidden;
}

.chat-sidebar {
  width: 300px;
  min-width: 300px;
  border-right: 1px solid #ebebeb;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.chat-sidebar-header {
  padding: 20px 16px 8px;
}

.chat-sidebar-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
}

.chat-search {
  padding: 8px 16px;
}

.chat-search input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #ebebeb;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #f9f9f9;
  outline: none;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.chat-empty {
  text-align: center;
  color: #aaa;
  font-size: 0.82rem;
  padding: 32px 16px;
  line-height: 1.6;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  transition: background 0.15s;
}

.chat-item:hover          { background: #fafafa; }
.chat-item--active        { background: #fff0f6; }
.chat-item--active:hover  { background: #ffe4f0; }

.chat-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.chat-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
}

.chat-item-last {
  font-size: 0.78rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-delete {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: #aaa;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.chat-item:hover .chat-item-delete { opacity: 1; }
.chat-item-delete:hover { background: #fee2e2; color: #e53e3e; }

.chat-unavailable-toast {
  margin: 8px 16px;
  padding: 10px 14px;
  background: #fff0f6;
  border: 1px solid #fbb6ce;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #b83280;
  text-align: center;
}

.chat-discover-btn {
  display: block;
  margin: 12px 16px;
  padding: 11px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.chat-discover-btn:hover { opacity: 0.88; }

/* Centro vacío */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fafafa;
}

.chat-empty-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.chat-empty-state img {
  height: 60px;
  opacity: 0.4;
}

.chat-empty-state p {
  color: #aaa;
  font-size: 0.9rem;
}

.chat-start-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Conversación activa */
.chat-main--active {
  justify-content: flex-start;
}

/* Botón volver — oculto en desktop */
.chat-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #666;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.chat-back-btn:hover {
  background: #f3f3f3;
  color: #dd2a7b;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #ebebeb;
  background: #fff;
  width: 100%;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header strong {
  display: block;
  font-size: 0.92rem;
  color: #1a1a2e;
}

.chat-online {
  font-size: 0.72rem;
  color: #4caf50;
  font-weight: 500;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.msg--me { justify-content: flex-end; }

.msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.msg-bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.msg--other .msg-bubble {
  background: #fff;
  border: 1px solid #ebebeb;
  color: #1a1a2e;
  border-bottom-left-radius: 4px;
}

.msg--me .msg-bubble {
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 44px;
  padding: 12px 16px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1;   }
}

.chat-input-area input:disabled {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

#send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-char-count {
  font-size: 0.72rem;
  color: #ccc;
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
  transition: color 0.2s;
}

.chat-char-count--warn   { color: #f0a500; }
.chat-char-count--danger { color: #e74c3c; font-weight: 700; }

.chat-toast {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  padding: 6px 16px;
  background: #fff8f0;
  border-top: 1px solid #f0e0cc;
}

.chat-toast--visible { display: block; }

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #ebebeb;
  background: #fff;
  width: 100%;
}

.chat-input-area input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid #ebebeb;
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  background: #fafafa;
}

.chat-input-area input:focus {
  border-color: #dd2a7b;
  background: #fff;
}

#send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

#send-btn:hover { opacity: 0.88; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 20px 16px;
  color: #aaa;
  font-size: 0.75rem;
  border-top: 1px solid #ebebeb;
  background: #fff;
  margin-top: auto;
}

footer strong {
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════ */

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── Helpers ── */
.lp-gradient {
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #dd2a7b;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── CTA Button ── */
.lp-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(221,42,123,0.35);
  transition: opacity 0.2s, transform 0.2s;
}
.lp-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ── Hero ── */
.lp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 72px 80px;
  min-height: calc(100vh - 90px);
  background: #fff;
  overflow: hidden;
}

.lp-hero-text {
  flex: 1;
  max-width: 520px;
}

.lp-hero-h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.18;
  color: #1a1a2e;
  margin-bottom: 20px;
}

.lp-hero-p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 32px;
}

.lp-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.lp-cta-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #999;
  margin: 0;
}

.lp-hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Glow rosa — esquina inferior izquierda */
.lp-hero-visual::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -20px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #ff4da6, transparent 70%);
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

/* Glow violeta — derecha */
.lp-hero-visual::after {
  content: '';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #6a5cff, transparent 70%);
  filter: blur(100px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

/* ── App mockup (hero) ── */
.lp-mock {
  display: flex;
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.15);
  overflow: hidden;
  width: 520px;
  height: 340px;
  background: #fff;
  border: 1px solid #e0e0e0;
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.lp-mock:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.lp-mock-side {
  width: 180px;
  min-width: 180px;
  background: #fff;
  border-right: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lp-mock-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 1px solid #f5f5f5;
}

.lp-mock-chat {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-bottom: 1px solid #f9f9f9;
}
.lp-mock-chat--on { background: #fff0f6; }

.lp-mock-chat img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lp-mock-chat div { flex: 1; overflow: hidden; }

.lp-mock-chat b {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-mock-chat b em {
  font-style: normal;
  font-weight: 400;
  color: #8134af;
  font-size: 0.58rem;
}

.lp-mock-chat span {
  display: block;
  font-size: 0.58rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-mock-chat small {
  font-size: 0.54rem;
  color: #ccc;
  flex-shrink: 0;
}

.lp-mock-conv {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  overflow: hidden;
}

.lp-mock-conv-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.lp-mock-conv-hd img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.lp-mock-conv-hd b {
  display: block;
  font-size: 0.75rem;
  color: #1a1a2e;
}

.lp-mock-online { font-size: 0.58rem; color: #4caf50; }

.lp-mock-msgs {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.lp-mock-msg {
  max-width: 76%;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.63rem;
  line-height: 1.4;
}

.lp-mock-msg--o {
  background: #fff;
  border: 1px solid #ebebeb;
  color: #1a1a2e;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}

.lp-mock-msg--m {
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  color: #fff;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}

.lp-mock-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #fff;
  border-top: 1px solid #ebebeb;
}

.lp-mock-input span {
  flex: 1;
  font-size: 0.58rem;
  color: #ccc;
  background: #f5f5f5;
  padding: 5px 9px;
  border-radius: 20px;
}

.lp-mock-input button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
}

/* ── Section container ── */
.lp-section {
  padding: 80px 80px;
  text-align: center;
  background: #fff;
}
.lp-section--gray { background: #f9f3ff; }

.lp-section-h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 48px;
  line-height: 1.25;
}

/* ── Features ── */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
/*
.lp-feature {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
*/
.lp-feature-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.lp-feature-ico--orange { background: #fff3e0; }
.lp-feature-ico--purple { background: #f3e8ff; }
.lp-feature-ico--pink   { background: #fdf0f8; }

.lp-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.lp-feature p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* ── Screens ── */
.lp-screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.lp-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lp-screen-card {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border: 1px solid #e8e8e8;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.lp-screen > p {
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
}

/* Screen: chat list */
.lp-sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f0f0;
}

.lp-sc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #f9f9f9;
}

.lp-sc-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lp-sc-item div { overflow: hidden; }

.lp-sc-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #1a1a2e;
}

.lp-sc-msg {
  display: block;
  font-size: 0.6rem;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Screen: profile card */
.lp-screen-profile .lp-sc-photo {
  position: relative;
  height: 130px;
  overflow: hidden;
}

.lp-screen-profile .lp-sc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.lp-sc-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.lp-sc-photo-overlay strong {
  display: block;
  font-size: 0.78rem;
  color: #fff;
  font-weight: 700;
}

.lp-sc-photo-overlay span {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.75);
}

.lp-sc-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-sc-greeting {
  font-size: 0.65rem;
  color: #555;
  font-style: italic;
  border-left: 2px solid #dd2a7b;
  padding-left: 7px;
  margin: 0;
}

.lp-sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lp-sc-tags span {
  font-size: 0.58rem;
  background: #f3f3f3;
  border: 1px solid #ebebeb;
  color: #666;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Screen: conversación */
.lp-screen-conv .lp-sc-conv-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.lp-screen-conv .lp-sc-conv-header img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.lp-sc-online {
  display: block;
  font-size: 0.56rem;
  color: #4caf50;
}

.lp-sc-msgs {
  flex: 1;
  padding: 8px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 100px;
}

.lp-sc-msg {
  padding: 5px 9px;
  border-radius: 12px;
  font-size: 0.6rem;
  line-height: 1.35;
  max-width: 78%;
}

.lp-sc-msg--o {
  background: #fff;
  border: 1px solid #ebebeb;
  color: #1a1a2e;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.lp-sc-msg--m {
  background: linear-gradient(135deg, #f58529, #dd2a7b);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.lp-sc-input {
  padding: 6px 9px;
  border-top: 1px solid #ebebeb;
}

.lp-sc-input span {
  font-size: 0.58rem;
  color: #ccc;
  background: #f5f5f5;
  display: block;
  padding: 4px 9px;
  border-radius: 20px;
}

/* ── Humano o IA ── */
.lp-human-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.lp-human-text { flex: 1; max-width: 420px; }

.lp-human-text .lp-section-h2 {
  text-align: left;
  margin-bottom: 0;
}

.lp-human-text p:last-child {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
  margin-top: 16px;
}

.lp-human-imgs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.lp-human-imgs img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.3s;
}

.lp-human-imgs img:hover { transform: scale(1.08); }

.lp-qmark {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(221,42,123,0.4);
}

/* ── Perfiles destacados ── */
.lp-profiles {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.lp-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.lp-profile-photo {
  width: 120px;
  height: 152px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.lp-profile:hover .lp-profile-photo {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.lp-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.lp-profile-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
}

.lp-profile-job {
  font-size: 0.72rem;
  color: #aaa;
}

/* ── CTA Final ── */
.lp-cta {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 40%),
    linear-gradient(135deg, #ff6a6a 0%, #ff4da6 25%, #c85bff 55%, #7a6bff 80%, #5f6cff 100%);
  padding: 52px 80px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.lp-cta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
  padding-bottom: 52px;
}

/* Puntos decorativos izquierda */
.lp-cta::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  pointer-events: none;
}

/* Corazón decorativo derecha */
.lp-cta::after {
  content: '';
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='1.5'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.lp-cta-text { display: flex; flex-direction: column; gap: 6px; }

.lp-cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  margin: 0;
  line-height: 1.2;
}

.lp-cta-grad {
  color: rgba(255,255,255,0.95);
  -webkit-text-fill-color: rgba(255,255,255,0.95);
}

.lp-cta-highlight {
  background: linear-gradient(90deg, #ff9a3c, #ffd84d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-cta > p,
.lp-cta-text > p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.lp-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lp-btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background: #fff;
  color: #ff4da6;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.lp-btn-cta-white:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}

.lp-cta-hint--light { color: rgba(255,255,255,0.6) !important; }

.lp-cta footer {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  margin-top: 0;
}

.lp-cta footer strong {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: rgba(255,255,255,0.9);
  color: rgba(255,255,255,0.9);
}

/* ── Responsive: Header ── */
@media (max-width: 640px) {
  .header-logo img { height: 72px; }
}

@media (max-width: 420px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    gap: 6px;
  }
  .header-logo img { height: 60px; }
  .header-actions { padding-bottom: 10px; }
}

/* ── Bottom nav (home mobile) ── */
.home-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #fff;
  border-top: 1px solid #ebebeb;
  z-index: 100;
  justify-content: space-around;
  align-items: center;
}

.home-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #999;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 24px;
  border-radius: 12px;
  transition: color 0.2s;
}

.home-bottom-item svg { transition: stroke 0.2s; }
.home-bottom-item--active { color: #dd2a7b; }
.home-bottom-item--active svg { stroke: #dd2a7b; }

/* ── Responsive: Home ── */
@media (max-width: 640px) {
  .home-nav { display: none; }
  #main { padding-bottom: 70px; }
  .home-bottom-nav { display: flex; }
}

/* ── Responsive: Chat ── */
@media (max-width: 640px) {
  .chat-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
  }
  .chat-main {
    display: none;
  }
  .chat-main--active {
    display: flex;
    width: 100%;
  }
  .chat-layout:has(.chat-main--active) .chat-sidebar {
    display: none;
  }
  .chat-back-btn {
    display: flex;
  }
}

/* ── Responsive: Landing ── */
@media (max-width: 1024px) {
  .lp-hero { padding: 56px 40px; gap: 32px; }
  .lp-mock { width: 420px; height: 280px; }
  .lp-section { padding: 60px 40px; }
}

@media (max-width: 768px) {
  .lp-hero {
    flex-direction: column;
    padding: 48px 24px 56px;
    min-height: auto;
    text-align: center;
  }
  .lp-hero-text { max-width: 100%; }
  .lp-hero-cta { align-items: center; }
  .lp-hero-visual { display: none; }
  .lp-hero-h1 { font-size: 2.1rem; }

  .lp-section { padding: 56px 24px; }
  .lp-section-h2 { font-size: 1.65rem; margin-bottom: 32px; }

  .lp-features,
  .lp-screens { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

  .lp-human-row {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .lp-human-text .lp-section-h2 { text-align: center; }

  .lp-profiles { gap: 16px; }
  .lp-profile-photo { width: 100px; height: 128px; }

  .lp-cta {
    padding: 56px 32px 0;
    text-align: center;
  }
  .lp-cta-row {
    flex-direction: column;
    padding-bottom: 40px;
  }
  .lp-cta::before, .lp-cta::after { display: none; }
  .lp-cta h2 { font-size: 1.8rem; }
}

/* ══════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════ */

/* Transición suave al cambiar tema */
body, header, footer,
.lp-hero, .lp-section,
.lp-mock, .lp-mock-side, .lp-mock-conv, .lp-mock-conv-hd, .lp-mock-input,
.lp-screen-card, .lp-sc-msgs, .lp-sc-input {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Botón toggle ── */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ebebeb;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: #dd2a7b;
  color: #dd2a7b;
}
[data-theme="dark"] .theme-toggle {
  border-color: #2a2a42;
  color: #9090a8;
}
[data-theme="dark"] .theme-toggle:hover {
  border-color: #dd2a7b;
  color: #dd2a7b;
}

/* ── Base ── */
[data-theme="dark"] body {
  background-color: #0f0f1b;
  color: #e8e8f0;
}

/* ── Header ── */
[data-theme="dark"] header {
  background: #13131f;
  border-bottom-color: #2a2a42;
}
[data-theme="dark"] .header-avatar {
  background: linear-gradient(#13131f, #13131f) padding-box,
              linear-gradient(135deg, #f58529, #dd2a7b, #8134af) border-box;
}
[data-theme="dark"] .header-logo img {
  filter: invert(1) hue-rotate(180deg);
}
[data-theme="dark"] .header-username { color: #e8e8f0; }
[data-theme="dark"] .header-login,
[data-theme="dark"] .header-logout { color: #9090a8; }

/* ── Footer (fuera del lp-cta) ── */
[data-theme="dark"] footer {
  background: #13131f;
  border-top-color: #2a2a42;
  color: #60608a;
}
[data-theme="dark"] .lp-cta footer {
  background: transparent;
}

/* ── Hero ── */
[data-theme="dark"] .lp-hero { background: #0f0f1b; }
[data-theme="dark"] .lp-hero-h1 { color: #e8e8f0; }
[data-theme="dark"] .lp-hero-p { color: #9090a8; }
[data-theme="dark"] .lp-cta-hint { color: #60608a; }

/* ── Mockup del hero ── */
[data-theme="dark"] .lp-mock { background: #16162a; border-color: #2a2a42; }
[data-theme="dark"] .lp-mock-side { background: #16162a; border-right-color: #2a2a42; }
[data-theme="dark"] .lp-mock-side-top { color: #e8e8f0; border-bottom-color: #1e1e32; }
[data-theme="dark"] .lp-mock-chat { border-bottom-color: #1e1e32; }
[data-theme="dark"] .lp-mock-chat--on { background: #2a1030; }
[data-theme="dark"] .lp-mock-chat b { color: #e8e8f0; }
[data-theme="dark"] .lp-mock-conv { background: #13131f; }
[data-theme="dark"] .lp-mock-conv-hd { background: #16162a; border-bottom-color: #2a2a42; }
[data-theme="dark"] .lp-mock-conv-hd b { color: #e8e8f0; }
[data-theme="dark"] .lp-mock-msg--o { background: #1e1e32; border-color: #2a2a42; color: #e8e8f0; }
[data-theme="dark"] .lp-mock-input { background: #16162a; border-top-color: #2a2a42; }
[data-theme="dark"] .lp-mock-input span { background: #1e1e32; color: #60608a; }

/* ── Secciones ── */
[data-theme="dark"] .lp-section { background: #0f0f1b; }
[data-theme="dark"] .lp-section--gray { background: #13131f; }
[data-theme="dark"] .lp-section-h2 { color: #e8e8f0; }
[data-theme="dark"] .lp-feature h3 { color: #e8e8f0; }
[data-theme="dark"] .lp-feature p { color: #9090a8; }
[data-theme="dark"] .lp-feature-ico--orange { background: #2a1a08; }
[data-theme="dark"] .lp-feature-ico--purple { background: #1a0a28; }
[data-theme="dark"] .lp-feature-ico--pink   { background: #280a18; }

/* ── Screens ── */
[data-theme="dark"] .lp-screen-card { background: #16162a; border-color: #2a2a42; }
[data-theme="dark"] .lp-screen > p { color: #9090a8; }
[data-theme="dark"] .lp-sc-header { color: #e8e8f0; border-bottom-color: #2a2a42; }
[data-theme="dark"] .lp-sc-item { border-bottom-color: #1e1e32; }
[data-theme="dark"] .lp-sc-name { color: #e8e8f0; }
[data-theme="dark"] .lp-sc-greeting { color: #9090a8; }
[data-theme="dark"] .lp-sc-tags span { background: #1e1e32; border-color: #2a2a42; color: #9090a8; }
[data-theme="dark"] .lp-sc-msgs { background: #13131f; }
[data-theme="dark"] .lp-sc-msg--o { background: #1e1e32; border-color: #2a2a42; color: #e8e8f0; }
[data-theme="dark"] .lp-screen-conv .lp-sc-conv-header { border-bottom-color: #2a2a42; }
[data-theme="dark"] .lp-sc-input { border-top-color: #2a2a42; }
[data-theme="dark"] .lp-sc-input span { background: #1e1e32; }

/* ── Humano o IA ── */
[data-theme="dark"] .lp-human-text p:last-child { color: #9090a8; }
[data-theme="dark"] .lp-human-imgs img { border-color: #2a2a42; }

/* ── Perfiles ── */
[data-theme="dark"] .lp-profile-name { color: #e8e8f0; }
[data-theme="dark"] .lp-profile-job { color: #60608a; }

/* ══════════════════════════════════════════
   DARK MODE — ONBOARDING
══════════════════════════════════════════ */

/* Transición suave */
.ob-card, .ob-option, .ob-interest,
.ob-field input, .ob-field select, .ob-btn-back {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .ob-card {
  background: #13131f;
  border-color: #2a2a42;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* Stepper */
[data-theme="dark"] .ob-step { background: #1e1e32; color: #60608a; }
[data-theme="dark"] .ob-line { background: #1e1e32; }

/* Textos */
[data-theme="dark"] .ob-step-label { color: #60608a; }
[data-theme="dark"] .ob-subtitle { color: #9090a8; }

/* Avatar */
[data-theme="dark"] .ob-avatar {
  background: linear-gradient(#13131f, #13131f) padding-box,
              linear-gradient(135deg, #f58529, #dd2a7b, #8134af) border-box;
}

/* Campos */
[data-theme="dark"] .ob-field label { color: #e8e8f0; }
[data-theme="dark"] .ob-field input,
[data-theme="dark"] .ob-field select {
  background: #1e1e32;
  border-color: #2a2a42;
  color: #e8e8f0;
}
[data-theme="dark"] .ob-field input::placeholder { color: #60608a; }
[data-theme="dark"] .ob-field select option { background: #1e1e32; }

/* Opciones paso 2 */
[data-theme="dark"] .ob-option {
  border-color: #2a2a42;
}
[data-theme="dark"] .ob-option.selected {
  background: #2a1030;
  border-color: #dd2a7b;
}
[data-theme="dark"] .ob-option-text strong { color: #e8e8f0; }
[data-theme="dark"] .ob-option-text small { color: #9090a8; }

/* Intereses paso 3 */
[data-theme="dark"] .ob-interest {
  border-color: #2a2a42;
  color: #9090a8;
}
[data-theme="dark"] .ob-interest.selected {
  background: #2a1030;
  border-color: #dd2a7b;
  color: #dd2a7b;
}

/* Botón volver */
[data-theme="dark"] .ob-btn-back {
  background: #1e1e32;
  color: #9090a8;
}
[data-theme="dark"] .ob-btn-back:hover { background: #2a2a42; }

/* ── Dark mode: bottom nav ── */
[data-theme="dark"] .home-bottom-nav {
  background: #13131f;
  border-top-color: #2a2a42;
}
[data-theme="dark"] .home-bottom-item { color: #60608a; }
[data-theme="dark"] .home-bottom-item--active { color: #dd2a7b; }
[data-theme="dark"] .home-bottom-item--active svg { stroke: #dd2a7b; }

/* ══════════════════════════════════════════
   DARK MODE — CHAT
══════════════════════════════════════════ */

/* Transición suave */
.chat-sidebar, .chat-main, .chat-header,
.chat-input-area, .chat-input-area input,
.msg--other .msg-bubble, .chat-toast {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Sidebar ── */
[data-theme="dark"] .chat-sidebar {
  background: #13131f;
  border-right-color: #2a2a42;
}
[data-theme="dark"] .chat-sidebar-header h2 { color: #e8e8f0; }
[data-theme="dark"] .chat-search input {
  background: #1e1e32;
  border-color: #2a2a42;
  color: #e8e8f0;
}
[data-theme="dark"] .chat-search input::placeholder { color: #60608a; }
[data-theme="dark"] .chat-empty { color: #60608a; }
[data-theme="dark"] .chat-item:hover { background: #1a1a2e; }
[data-theme="dark"] .chat-item--active { background: #2a1030; }
[data-theme="dark"] .chat-item--active:hover { background: #331240; }
[data-theme="dark"] .chat-item-name { color: #e8e8f0; }
[data-theme="dark"] .chat-item-last { color: #60608a; }
[data-theme="dark"] .chat-item-delete { color: #60608a; }
[data-theme="dark"] .chat-item-delete:hover { background: #3d1515; color: #fc8181; }
[data-theme="dark"] .chat-unavailable-toast { background: #2a1030; border-color: #6b2d5e; color: #f9a8d4; }

/* ── Main / estado vacío ── */
[data-theme="dark"] .chat-main { background: #0f0f1b; }
[data-theme="dark"] .chat-empty-state p { color: #60608a; }
[data-theme="dark"] .chat-empty-state img {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.3;
}

/* ── Header de conversación ── */
[data-theme="dark"] .chat-header {
  background: #13131f;
  border-bottom-color: #2a2a42;
}
[data-theme="dark"] .chat-header strong { color: #e8e8f0; }
[data-theme="dark"] .chat-back-btn { color: #9090a8; }
[data-theme="dark"] .chat-back-btn:hover { background: #1e1e32; color: #dd2a7b; }

/* ── Burbujas ── */
[data-theme="dark"] .msg--other .msg-bubble {
  background: #1e1e32;
  border-color: #2a2a42;
  color: #e8e8f0;
}
[data-theme="dark"] .typing-dots span { background: #3a3a5a; }

/* ── Input ── */
[data-theme="dark"] .chat-input-area {
  background: #13131f;
  border-top-color: #2a2a42;
}
[data-theme="dark"] .chat-input-area input {
  background: #1e1e32;
  border-color: #2a2a42;
  color: #e8e8f0;
}
[data-theme="dark"] .chat-input-area input::placeholder { color: #60608a; }
[data-theme="dark"] .chat-input-area input:focus {
  background: #1e1e32;
  border-color: #dd2a7b;
}
[data-theme="dark"] .chat-input-area input:disabled {
  background: #1a1a2e;
  color: #3a3a5a;
}
[data-theme="dark"] .chat-char-count { color: #3a3a5a; }

/* ── Toast ── */
[data-theme="dark"] .chat-toast {
  background: #1e1508;
  border-top-color: #3a2a18;
  color: #9090a8;
}

/* ══════════════════════════════════════════
   DARK MODE — HOME
══════════════════════════════════════════ */

/* Transición suave */
.home-nav, .card, .card-body, .skill,
.loves-hates, .btn-skip, .modal, .modal-btn--secondary {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ── Sidebar nav ── */
[data-theme="dark"] .home-nav {
  background: #13131f;
  border-right-color: #2a2a42;
}
[data-theme="dark"] .home-nav-label { color: #60608a; }
[data-theme="dark"] .home-nav-item { color: #9090a8; }
[data-theme="dark"] .home-nav-item:hover { background: #1a1a2e; }
[data-theme="dark"] .home-nav-item--active {
  background: #2a1030;
  color: #dd2a7b;
}
[data-theme="dark"] .home-nav-item--active svg { stroke: #dd2a7b; }
[data-theme="dark"] .home-nav-item--logout { color: #60608a; }
[data-theme="dark"] .home-nav-item--danger { color: #e74c3c; }
[data-theme="dark"] .home-nav-item--danger:hover { background: #2a1010; }
[data-theme="dark"] .home-nav-inspiration { color: #3a3a5a; }
[data-theme="dark"] .home-nav-user { border-top-color: #2a2a42; }
[data-theme="dark"] .home-nav-user-name { color: #e8e8f0; }
[data-theme="dark"] .home-nav-user-sub { color: #60608a; }

/* ── Card ── */
[data-theme="dark"] .card {
  background: #13131f;
  border-color: #2a2a42;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
[data-theme="dark"] .greeting {
  color: #9090a8;
  border-left-color: #dd2a7b;
}
[data-theme="dark"] .toggle-detail {
  color: #8134af;
  border-bottom-color: #2a2a42;
}
[data-theme="dark"] .skill {
  background: linear-gradient(135deg, #200a20, #160a24);
  color: #c090b0;
  border-left-color: #dd2a7b;
}
[data-theme="dark"] .interests span {
  background: #1e1e32;
  border-color: #2a2a42;
  color: #9090a8;
}
[data-theme="dark"] .star.empty { color: #2a2a42; }
[data-theme="dark"] .review { color: #60608a; }
[data-theme="dark"] .loves-hates {
  background: #0f0f1b;
  border-color: #2a2a42;
}
[data-theme="dark"] .quote {
  color: #60608a;
  border-top-color: #2a2a42;
}

/* ── Botones de card ── */
[data-theme="dark"] .btn-skip {
  background: #1e1e32;
  color: #60608a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
[data-theme="dark"] .btn-skip:hover { background: #2a2a42; }

/* ── Modal ── */
[data-theme="dark"] .modal {
  background: #13131f;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
[data-theme="dark"] .modal img {
  background: linear-gradient(#13131f, #13131f) padding-box,
              linear-gradient(135deg, #f58529, #dd2a7b, #8134af) border-box;
}
[data-theme="dark"] .modal p { color: #9090a8; }
[data-theme="dark"] .modal-btn--secondary {
  background: #1e1e32;
  color: #8134af;
  border-color: #2a2a42;
}
