﻿:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --primary: #1e5ecb;
  --primary-dark: #163e8a;
  --accent: #2f8dfd;
  --text: #0f172a;
  --text-soft: #475569;
  --border: #e2e8f0;
  --success: #16a34a;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 12px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 70px;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1, .page-title { font-family: "IBM Plex Serif", Georgia, serif; letter-spacing: -0.02em; }
p { color: var(--text-soft); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-soft { background: var(--surface-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== NAVBAR (NOVA) ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-weight: 700;
  font-size: 1.25rem; transition: transform 0.3s;
}

.navbar-brand:hover { transform: scale(1.02); }

.brand-icon {
  font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: linear-gradient(135deg, #1e5ecb, #2f8dfd);
  border-radius: 10px; color: white;
}

.brand-text { color: #0f172a; }

.navbar-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; gap: 5px;
  flex-direction: column;
}

.toggle-line {
  width: 24px; height: 2.5px; background: #0f172a; border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggle.active .toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggle.active .toggle-line:nth-child(2) {
  opacity: 0; width: 0;
}

.navbar-toggle.active .toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-menu {
  display: flex; align-items: center; gap: 4px;
}

.nav-item {
  padding: 10px 16px; text-decoration: none; color: #475569;
  font-weight: 500; font-size: 0.95rem; border-radius: 8px;
  transition: all 0.3s;
  position: relative;
}

.nav-item:hover {
  color: #1e5ecb; background: rgba(31, 94, 203, 0.08);
}

.nav-item.active {
  color: #1e5ecb; background: rgba(31, 94, 203, 0.12);
  font-weight: 600;
}

.nav-item.active::after {
  content: "";
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%; height: 2px; background: #1e5ecb; border-radius: 2px;
}

.nav-admin {
  background: linear-gradient(135deg, #2f8dfd, #1e5ecb);
  color: white !important; font-weight: 600; margin-left: 8px;
  box-shadow: 0 4px 12px rgba(31, 94, 203, 0.2);
}

.nav-admin:hover {
  background: linear-gradient(135deg, #1e5ecb, #173a8a);
  box-shadow: 0 6px 16px rgba(31, 94, 203, 0.3);
  transform: translateY(-2px);
}

.nav-logout {
  color: #dc2626 !important;
}

.nav-logout:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b !important;
}

/* Mobile */
@media (max-width: 767px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: white; border-bottom: 1px solid #e2e8f0;
    max-height: calc(100vh - 70px); overflow-y: auto;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-menu.active {
    opacity: 1; visibility: visible;
    transform: translateY(0);
  }

  .nav-item {
    width: 100%; padding: 12px 20px; border-radius: 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-item.active::after {
    left: 0; width: 3px; bottom: auto; top: 50%; transform: translateY(-50%);
  }

  .nav-admin {
    margin: 12px 12px; border-radius: 8px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .navbar-inner {
    padding: 0 32px;
  }

  body {
    padding-top: 70px;
  }
}

.admin-navbar {
  background: linear-gradient(135deg, rgba(31, 94, 203, 0.05), rgba(47, 141, 253, 0.05));
}

.admin-navbar .navbar-brand {
  color: #1e5ecb;
}

/* ===== BUTTONS ===== */
.btn {
  border: none; border-radius: var(--radius-sm); padding: 12px 20px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  box-shadow: 0 4px 14px rgba(30,94,203,0.25);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(30,94,203,0.35); }

.btn-outline {
  color: var(--primary-dark); border: 1.5px solid var(--border); background: var(--surface);
}
.btn-outline:hover, .btn-outline.active { border-color: #93b5e6; background: #eef4ff; }

.btn-whatsapp { color: #0f5536; border: 1.5px solid #a7d8be; background: #ecfdf5; }
.btn-whatsapp:hover { background: #d1fae5; }

.btn-sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 10px; }
.full { width: 100%; }

.eyebrow {
  display: inline-block; text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--primary); font-weight: 800;
}

/* ===== HERO ===== */
.hero-grid { display: grid; gap: 24px; }
.hero-copy h1 { font-size: 1.8rem; margin-top: 8px; }
.hero-copy > p { margin-top: 12px; }

.search-bar {
  margin-top: 20px; background: #fff;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px;
  display: grid; gap: 6px;
}
.search-bar input { border: none; padding: 12px; font-size: 0.95rem; }

input, select, textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font: inherit; color: var(--text); background: #fff;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,141,253,0.12);
}

.hero-cta { margin-top: 20px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.hero-features { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-feat { font-size: 0.82rem; color: var(--success); font-weight: 600; }

.hero-panel {
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 24px; display: grid; gap: 14px;
}
.hero-panel h2 { font-size: 1.15rem; }

.trust-list { display: grid; gap: 10px; }
.trust-list strong { color: var(--primary-dark); }

.trust-badge {
  border-radius: var(--radius-sm); padding: 12px 14px;
  background: #ecfdf5; color: #065f46;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  position: relative; overflow: hidden;
}
.trust-badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.badge-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #a7f3d0; font-size: 0.8rem;
}

/* ===== SECTION HEADS ===== */
.section-head, .section-sub {
  display: flex; justify-content: space-between; align-items: end;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.4rem; }
.link-cta {
  color: var(--primary); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.3s;
}
.link-cta::after { content: "\2192"; transition: transform 0.3s; }
.link-cta:hover::after { transform: translateX(5px); }

/* ===== CARDS ===== */
.card-grid { display: grid; gap: 14px; }

.psy-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: grid; gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.psy-card:hover { box-shadow: var(--shadow-lg); }

.psy-head { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; }
.avatar {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s; 
}
.avatar:hover { transform: scale(1.06); }
.psy-card h3 { font-size: 0.95rem; }
.crp { font-size: 0.78rem; color: var(--text-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 0.72rem; padding: 4px 10px; border-radius: 999px;
  color: var(--primary-dark); background: #eef4ff; border: 1px solid #dbe7f8;
  transition: background 0.2s, transform 0.2s;
}
.tag:hover { background: #dbe7f8; transform: scale(1.04); }

.meta { display: grid; gap: 4px; font-size: 0.85rem; color: var(--text-soft); }
.rating { font-weight: 700; color: var(--primary-dark); transition: text-shadow 0.3s; }
.rating:hover { text-shadow: 0 0 8px rgba(255,193,7,0.5); }

/* ===== TRUST SECTION ===== */
.trust-grid { display: grid; gap: 20px; }
.trust-grid h2 { margin: 8px 0; font-size: 1.3rem; }
.trust-cards { display: grid; gap: 10px; }

.mini-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mini-card:hover { box-shadow: var(--shadow-lg); }
.mini-card h3 { font-size: 0.95rem; margin-bottom: 4px; }

/* ===== STEPS SECTION ===== */
.steps-row { display: grid; gap: 12px; counter-reset: step; }
.step-item {
  padding: 20px 20px 20px 56px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 20px;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  color: #fff; font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.step-item h3 { font-size: 0.95rem; margin-bottom: 4px; }
.step-item p { font-size: 0.85rem; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-soft); }
.footer-wrap {
  min-height: 60px; display: flex; justify-content: center;
  align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.82rem; text-align: center; padding: 16px 0;
}

/* ===== LISTING PAGE ===== */
.listing-layout { display: grid; gap: 16px; }

.filters-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: grid; gap: 14px;
  align-content: start;
}
.filter-group { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-group p { color: var(--text); font-size: 0.85rem; font-weight: 600; }
.filter-group label[for] { color: var(--text); font-size: 0.85rem; font-weight: 600; display: block; }
.filter-group label:not([for]) {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-soft); font-size: 0.88rem; cursor: pointer;
  padding: 5px 8px; border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.filter-group label:not([for]):hover { color: var(--primary-dark); background: rgba(47,141,253,0.06); }
.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border: 2px solid var(--border);
  border-radius: 5px; background: var(--surface); cursor: pointer;
  transition: all 0.2s ease; flex-shrink: 0; position: relative;
  margin: 0; padding: 0;
}
.filter-group input[type="radio"] { border-radius: 50%; }
.filter-group input[type="checkbox"]:checked,
.filter-group input[type="radio"]:checked { background: var(--primary); border-color: var(--primary); }
.filter-group input[type="checkbox"]:checked::after {
  content: "\2713"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: #fff; font-size: 0.65rem; font-weight: 800;
}
.filter-group input[type="radio"]:checked::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: #fff;
}
.filter-group input[type="checkbox"]:hover,
.filter-group input[type="radio"]:hover { border-color: var(--accent); }
.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; -webkit-appearance: none; appearance: none; cursor: pointer;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 6px 10px; border-radius: 999px;
  background: #eef4ff; border: 1px solid #dbe7f8;
  color: var(--primary-dark); font-size: 0.78rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s; cursor: pointer;
}
.chip-active { background: #ccdeff !important; border-color: #8db5ec !important; transform: scale(1.05); }

.stack-sections { margin-top: 20px; display: grid; gap: 12px; }
.list-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
}
.list-block h3 { font-size: 0.95rem; margin-bottom: 8px; }
.mini-list { display: grid; gap: 6px; }
.mini-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; display: flex; justify-content: space-between;
  gap: 10px; align-items: center; background: var(--surface);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s; cursor: pointer;
}
.mini-item:hover { transform: translateX(4px); box-shadow: var(--shadow); background: #f1f5f9; }

/* ===== PROFILE PAGE ===== */
.profile-layout { display: grid; gap: 16px; }

.profile-main, .profile-side, .about-hero, .credibility-box, .value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px;
}
.profile-main { display: grid; gap: 18px; }
.profile-header { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover;
  transition: transform 0.3s;
}
.profile-avatar:hover { transform: scale(1.06); }

.verify {
  display: inline-flex; gap: 5px; align-items: center;
  color: #065f46; background: #ecfdf5; border-radius: 999px;
  border: 1px solid #a7f3d0; padding: 4px 10px;
  font-size: 0.76rem; font-weight: 700;
  animation: verify-pulse 2.5s ease-in-out infinite;
}
@keyframes verify-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.2); }
  50% { box-shadow: 0 0 0 5px rgba(22,163,74,0.06); }
}

.info-grid { display: grid; gap: 8px; }
.info-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; background: var(--surface-soft);
  transition: transform 0.2s, background 0.2s;
}
.info-item:hover { transform: translateY(-1px); background: #eef4ff; }
.info-item strong { display: block; margin-bottom: 2px; font-size: 0.85rem; }

.review-list { display: grid; gap: 8px; }
.review-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; background: var(--surface-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.review-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.review-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }

/* ===== ABOUT PAGE ===== */
.about-hero { max-width: 720px; }
.about-hero .page-title { margin: 10px 0; font-size: 1.5rem; }
.values-grid { display: grid; gap: 12px; }
.value-card h2 { margin-bottom: 8px; font-size: 1.1rem; }
.value-card ul { list-style: disc; padding-left: 18px; color: var(--text-soft); display: grid; gap: 5px; }
.credibility-box h2 { margin-bottom: 6px; }

/* ===== ADMIN AREA ===== */
.admin-body { background: var(--surface-soft); }
.admin-layout { min-height: 100vh; display: grid; }

.admin-sidebar {
  border-bottom: 1px solid var(--border);
  background: var(--surface); padding: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.admin-caption {
  font-size: 0.75rem; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.admin-nav a {
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-soft); font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.admin-nav a:hover, .admin-nav .active { background: #e7f0ff; color: var(--primary-dark); }

.admin-main { padding: 20px 16px; display: grid; gap: 16px; align-content: start; }

.admin-topbar {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: center; flex-wrap: wrap; margin-bottom: 8px;
}
.admin-topbar h1 { font-size: 1.3rem; }

.admin-cards { display: grid; gap: 12px; margin-bottom: 8px; }

.stat-card, .admin-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover { box-shadow: var(--shadow-lg); }

.stat-card p { color: var(--text-soft); font-size: 0.85rem; }
.stat-card strong { display: block; margin-top: 8px; font-size: 1.7rem; color: var(--primary-dark); }
.stat-card span { display: block; margin-top: 4px; color: var(--text-soft); font-size: 0.78rem; }

.admin-panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.admin-form-grid { display: grid; gap: 12px; }
.admin-form-grid label { display: grid; gap: 4px; color: var(--text-soft); font-size: 0.85rem; }
.admin-form-grid .full { grid-column: 1 / -1; }

/* Admin pages */
.admin-page { display: none; }
.admin-page.active { display: block; }
@keyframes adminPageIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Calendar */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar div { text-align: center; color: var(--text-soft); font-size: 0.75rem; font-weight: 700; padding: 4px; }
.day {
  border-radius: 8px; text-align: center;
  border: 1px solid var(--border); color: var(--text);
  padding: 8px 0; background: var(--surface); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.day:hover { transform: scale(1.08); border-color: var(--accent); background: #eef4ff; }
.day.selected { border-color: var(--accent); background: #dbeafe; font-weight: 700; }
.day.busy { border-color: #fbbf24; background: #fffbeb; }
.day.today { border-color: var(--primary); background: #dbeafe; font-weight: 800; }

.agenda-month-nav {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--primary-dark); font-size: 0.9rem;
}
.agenda-layout { display: grid; gap: 12px; margin-top: 12px; }
.agenda-day-detail { min-height: 200px; }
.agenda-day-detail h2 { font-size: 1rem; margin-bottom: 12px; }
.agenda-slots { display: grid; gap: 6px; }
.agenda-slot {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.agenda-slot:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.slot-time { font-weight: 800; color: var(--primary); min-width: 48px; font-size: 0.9rem; }
.slot-info { flex: 1; }
.slot-info strong { display: block; font-size: 0.88rem; }
.slot-info span { color: var(--text-soft); font-size: 0.78rem; }
.slot-remove { color: #dc2626 !important; border-color: #fecaca !important; }
.slot-remove:hover { background: #fef2f2 !important; }

.table-list { display: grid; gap: 6px; }
.table-list li {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; flex-wrap: wrap;
}
.table-list span { color: var(--text); font-weight: 700; font-size: 0.88rem; }
.table-list small { color: var(--text-soft); font-size: 0.8rem; }

.text-muted { color: var(--text-soft); font-style: italic; }
.text-small { font-size: 0.8rem; color: var(--text-soft); }

/* ===== CONSULTAS ===== */
.consulta-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-active { background: #dbeafe !important; border-color: #93c5fd !important; color: var(--primary-dark) !important; }
.consulta-stats { margin-top: 4px; margin-bottom: 4px; }
.consulta-list { display: grid; gap: 6px; }
.consulta-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s; flex-wrap: wrap;
}
.consulta-row:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.consulta-row-left { display: flex; align-items: center; gap: 10px; }
.consulta-avatar-sm {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  color: #fff; font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: 0.88rem; flex-shrink: 0;
}
.consulta-row-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-badge {
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; border: 1px solid; white-space: nowrap;
}
.status-badge-sm { font-size: 0.72rem; font-weight: 700; }
.consulta-actions { display: flex; gap: 4px; }
.btn-danger-text { color: #dc2626 !important; border-color: #fecaca !important; }
.btn-danger-text:hover { background: #fef2f2 !important; }

/* ===== PACIENTES ===== */
.pac-search-wrap { max-width: 240px; }
.pac-search-wrap input { width: 100%; }
.pac-layout { display: grid; gap: 12px; margin-top: 12px; }

.pac-list-panel h2 {
  font-size: 1rem; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.badge-count {
  background: var(--primary); color: #fff;
  font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; font-weight: 800;
}
.pac-list { display: grid; gap: 4px; max-height: 480px; overflow-y: auto; }
.pac-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.pac-item:hover { background: #f1f5f9; transform: translateX(3px); }
.pac-item-active { background: #dbeafe !important; border-color: #93c5fd !important; }
.pac-item-avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #38bdf8, #2563eb);
  color: #fff; font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: 0.85rem; flex-shrink: 0;
}
.pac-item-info { flex: 1; min-width: 0; }
.pac-item-info strong { display: block; font-size: 0.88rem; }
.pac-item-info span { font-size: 0.74rem; color: var(--text-soft); }
.pac-status {
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.pac-status-ativo { background: #ecfdf5; color: #065f46; }
.pac-status-novo { background: #dbeafe; color: var(--primary); }
.pac-status-inativo { background: #f1f5f9; color: #94a3b8; }

.pac-detail-area { display: grid; gap: 12px; align-content: start; }
.pac-empty-state { text-align: center; padding: 32px 16px; color: var(--text-soft); }
.pac-detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pac-detail-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(145deg, #38bdf8, #2563eb);
  color: #fff; font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.pac-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pac-detail-item {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 10px; background: var(--surface-soft);
}
.pac-detail-item strong { display: block; font-size: 0.78rem; color: var(--text-soft); margin-bottom: 1px; }
.pac-history { margin-top: 6px; }

/* ===== CHAT ===== */
.pac-chat-panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; overflow: hidden;
}
.chat-header {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-soft);
}
.badge-online {
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: #ecfdf5; color: #065f46;
  animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
  0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.2); }
  50% { box-shadow: 0 0 0 4px rgba(22,163,74,0.05); }
}
.chat-messages {
  flex: 1; min-height: 240px; max-height: 340px;
  overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
}
.chat-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 14px;
  font-size: 0.88rem; line-height: 1.5;
  animation: chatBubbleIn 0.3s ease both;
}
@keyframes chatBubbleIn {
  from { opacity:0; transform:translateY(6px) scale(0.96); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
.chat-bubble.me {
  align-self: flex-end;
  background: linear-gradient(145deg, var(--accent), var(--primary));
  color: #fff; border-bottom-right-radius: 4px;
}
.chat-bubble.them {
  align-self: flex-start;
  background: #eef4ff; color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-time { display: block; font-size: 0.66rem; margin-top: 3px; opacity: 0.6; }
.chat-bubble.me .chat-time { text-align: right; color: rgba(255,255,255,0.7); }
.chat-input-bar {
  display: flex; gap: 6px; padding: 10px 12px;
  border-top: 1px solid var(--border); background: var(--surface-soft);
}
.chat-input-bar input { flex: 1; border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.85rem; }

.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 12px 16px !important; }
.typing-indicator span {
  width: 7px; height: 7px; border-radius: 50%; background: #94a3b8;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(145deg, #1e5ecb, #2563eb);
  color: #fff; padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.88rem;
  box-shadow: 0 8px 28px rgba(30,94,203,0.3);
  opacity: 0; z-index: 9999;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; max-width: 90vw; text-align: center;
}
.toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-info { background: linear-gradient(145deg, #0284c7, #0ea5e9); }
.toast-success { background: linear-gradient(145deg, #059669, #10b981); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px); display: flex; align-items: center;
  justify-content: center; z-index: 100; opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.modal-visible { opacity: 1; }
.modal {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 24px; width: min(420px, 92vw);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-visible .modal { transform: scale(1) translateY(0); }
.modal h2 { margin-bottom: 10px; font-size: 1.1rem; }
.modal-body { margin-bottom: 16px; }
.modal-form { display: grid; gap: 8px; margin-top: 12px; }
.modal-form label { display: grid; gap: 4px; color: var(--text-soft); font-size: 0.85rem; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== RIPPLE ===== */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0); animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(2.5); opacity: 0; } }

/* ===== ANIMATIONS ===== */
.reveal { animation: rise 0.5s ease both; }
.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
@keyframes rise { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.reveal-scroll { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-scroll.revealed { opacity: 1; transform: translateY(0); }

.bg-orb { position: fixed; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(8px); transition: transform 0.4s ease; }
.orb-1 { width: 200px; height: 200px; background: rgba(59,130,246,0.08); top: -80px; right: -60px; }
.orb-2 { width: 160px; height: 160px; background: rgba(56,189,248,0.1); bottom: 10%; left: -60px; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 32px 16px;
  color: var(--text-soft); background: var(--surface-soft);
  border-radius: var(--radius); border: 1px dashed var(--border);
}
.panel-highlight { animation: panel-glow 1s ease; }
@keyframes panel-glow {
  0% { box-shadow: 0 0 0 0 rgba(30,94,203,0.25); }
  40% { box-shadow: 0 0 0 4px rgba(30,94,203,0.1); }
  100% { box-shadow: var(--shadow); }
}
.row-active { background: #eef4ff !important; border-color: #93c5fd !important; }

/* ===== MAPA ===== */
.leaflet-map { width: 100%; height: 260px; border-radius: var(--radius); border: 1px solid var(--border); z-index: 1; }
.nearme-section { display: grid; gap: 16px; margin-top: 14px; }
.nearme-map-wrap { display: grid; gap: 8px; }
.map-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-soft); }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.12); flex-shrink: 0; }
.legend-online { background: #2563eb; }
.legend-presencial { background: #16a34a; }
.legend-ambos { background: #8b5cf6; }

.nearme-results { display: grid; gap: 6px; align-content: start; max-height: 360px; overflow-y: auto; }
.nearme-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nearme-item:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.nearme-item-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.nearme-item-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.nearme-item-info strong { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearme-item-info span { font-size: 0.75rem; color: var(--text-soft); }
.nearme-type { font-size: 0.7rem !important; font-weight: 700; padding: 2px 7px; border-radius: 999px; width: fit-content; }
.nearme-type-online { background: #dbeafe; color: #1e40af; }
.nearme-type-presencial { background: #dcfce7; color: #166534; }
.nearme-type-ambos { background: #ede9fe; color: #5b21b6; }
.nearme-item-dist { text-align: right; flex-shrink: 0; }
.nearme-item-dist strong { display: block; font-size: 0.85rem; color: var(--primary); }
.nearme-item-dist span { font-size: 0.75rem; color: #f59e0b; }

.map-popup { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.82rem; line-height: 1.5; }
.map-popup strong { font-size: 0.88rem; color: var(--primary-dark); }
.map-popup-type { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; margin: 3px 0; }
.map-popup-online { background: #dbeafe; color: #1e40af; }
.map-popup-presencial { background: #dcfce7; color: #166534; }
.map-popup-ambos { background: #ede9fe; color: #5b21b6; }
.map-popup-link { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--primary); font-size: 0.8rem; }
.map-marker-custom { background: transparent !important; border: none !important; }

.btn-nearme { background: linear-gradient(145deg, #16a34a, #22c55e); color: #fff; border: none; font-weight: 700; }
.btn-nearme:hover { box-shadow: 0 4px 14px rgba(22,163,74,0.3); }
.nearme-filter-group { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; display: grid; gap: 6px; border-bottom: none; padding-bottom: 0; }
.card-distance { display: block; margin-top: 8px; font-size: 0.8rem; font-weight: 700; color: #16a34a; background: #f0fdf4; padding: 5px 10px; border-radius: 8px; border: 1px solid #bbf7d0; text-align: center; }
.listing-map-section { margin: 16px 0; }
.listing-map-section h3 { margin-bottom: 10px; font-size: 1rem; color: var(--primary-dark); }

/* ===== DESKTOP BREAKPOINTS (mobile-first) ===== */

@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .section { padding: 56px 0; }
  .search-bar { grid-template-columns: 1fr auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .agenda-layout { grid-template-columns: 1fr 1fr; }
  .leaflet-map { height: 320px; }
  .admin-sidebar { padding: 20px; }
  .admin-main { padding: 24px 20px; }
  .consulta-filters .btn { flex: 0; }
}

@media (min-width: 768px) {
  .nearme-section { grid-template-columns: 1.2fr 1fr; }
  .pac-layout { grid-template-columns: 300px 1fr; }
}

@media (min-width: 1024px) {
  .section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: stretch; }
  .hero-copy h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
  .section-head h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .listing-layout { grid-template-columns: 260px 1fr; gap: 24px; }
  .filters-panel { position: sticky; top: 80px; }
  .profile-layout { grid-template-columns: 1.2fr 0.8fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-row { grid-template-columns: repeat(4, 1fr); }
  .admin-layout { grid-template-columns: 240px 1fr; }
  .admin-sidebar {
    flex-direction: column; align-items: stretch;
    border-bottom: none; border-right: 1px solid var(--border);
    padding: 24px;
  }
  .admin-nav { flex-direction: column; }
  .admin-main { padding: 32px; gap: 24px; }
  .admin-topbar h1 { font-size: 1.5rem; }
  .admin-cards { grid-template-columns: repeat(3, 1fr); }
  .pac-layout { grid-template-columns: 320px 1fr; }
  .leaflet-map { height: 380px; }
}
