/* ============================================
   PSICÓLOGA — ESTILOS
   Aquí controlas todos los colores y diseño
   ============================================ */

/* ── COLORES — cambia aquí para cambiar toda la página ── */
:root {
  --cream:    #f5f0e8;   /* fondo general */
  --warm:     #ede3d2;   /* bordes suaves */
  --gold:     #b5924c;   /* color dorado principal */
  --gold-lt:  #d4aa6a;   /* dorado claro */
  --brown-dk: #2c1f10;   /* café oscuro */
  --brown-md: #4a3321;   /* café medio */
  --brown-lt: #7a5c3e;   /* café claro */
  --brown-xs: #a07850;   /* café muy claro */
  --white:    #fdf9f3;   /* blanco cálido */
  --shadow:   rgba(44,31,16,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--brown-dk);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HERO ── */
header {
  background: var(--brown-dk);
  position: relative;
  overflow: hidden;
  padding: 0;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(181,146,76,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(181,146,76,0.10) 0%, transparent 50%);
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 70px 40px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-avatar {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--brown-md), var(--brown-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 0 40px rgba(181,146,76,0.25);
}
.hero-text { flex: 1; }
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 12px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero-title em { color: var(--gold-lt); font-style: italic; }
.hero-sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(253,249,243,0.65);
  max-width: 500px;
  line-height: 1.75;
}
.hero-badges { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.badge {
  padding: 6px 16px;
  border: 1px solid rgba(181,146,76,0.45);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold-lt);
  background: rgba(181,146,76,0.08);
}
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* ── NAV ── */
nav {
  background: var(--brown-md);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px var(--shadow);
}
nav ul { display: flex; list-style: none; max-width: 1100px; margin: auto; padding: 0 40px; }
nav a {
  display: block;
  padding: 18px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253,249,243,0.7);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 22px; right: 22px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
nav a:hover { color: var(--gold-lt); }
nav a:hover::after { transform: scaleX(1); }

/* ── LAYOUT PRINCIPAL ── */
.page-wrap {
  max-width: 1100px;
  margin: auto;
  padding: 60px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}

/* ── TÍTULOS DE SECCIÓN ── */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--brown-dk);
  margin-bottom: 6px;
  line-height: 1.2;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--brown-lt);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── FORMULARIO ── */
#agendar { scroll-margin-top: 70px; }
.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 44px;
  box-shadow: 0 8px 50px var(--shadow);
  border: 1px solid rgba(181,146,76,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-lt);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--warm);
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  color: var(--brown-dk);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181,146,76,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--brown-dk), var(--brown-md));
  color: var(--gold-lt);
  border: none;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 6px;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.info-card {
  background: var(--white);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 4px 30px var(--shadow);
  border: 1px solid rgba(181,146,76,0.12);
}
.info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 18px;
  color: var(--brown-dk);
}
.schedule-grid { display: flex; flex-direction: column; gap: 10px; }
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 0.84rem;
}
.schedule-item span:first-child { color: var(--brown-lt); font-weight: 500; }
.schedule-item span:last-child  { color: var(--brown-dk); }

/* barra de capacidad */
.cap-bar-wrap { margin-top: 10px; }
.cap-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--brown-lt); margin-bottom: 8px; }
.cap-bar { height: 6px; background: var(--warm); border-radius: 100px; overflow: hidden; }
.cap-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--brown-lt));
  border-radius: 100px;
  transition: width 0.6s ease;
}

/* botones de contacto */
.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow); }
.contact-btn .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.btn-whatsapp { background: #e9f5ea; color: #1a5c2a; }
.btn-whatsapp .icon { background: #25D366; }
.btn-email { background: var(--cream); color: var(--brown-dk); }
.btn-email .icon { background: var(--gold); }

/* ── TABLA DE PACIENTES ── */
#pacientes { scroll-margin-top: 70px; }
.patients-section { grid-column: 1 / -1; margin-top: 20px; }
.patients-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.search-input {
  padding: 10px 18px;
  border: 1.5px solid var(--warm);
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: var(--brown-dk);
  background: var(--white);
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--gold); }
.patients-table-wrap {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 30px var(--shadow);
  border: 1px solid rgba(181,146,76,0.12);
}
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--brown-dk); }
thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-weight: 400;
}
tbody tr { border-bottom: 1px solid var(--warm); transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
tbody td { padding: 14px 20px; font-size: 0.88rem; color: var(--brown-dk); }
.status-badge { display: inline-block; padding: 3px 12px; border-radius: 100px; font-size: 0.72rem; letter-spacing: 0.08em; }
.status-confirmed { background: #e9f5ea; color: #1a5c2a; }
.status-pending   { background: #fef9ec; color: #7a5c10; }
.btn-del { background: none; border: none; color: #b05050; cursor: pointer; font-size: 1rem; opacity: 0.6; transition: opacity 0.2s; }
.btn-del:hover { opacity: 1; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--brown-lt); }
.empty-state p { font-size: 0.9rem; margin-top: 8px; }

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--brown-dk);
  color: var(--gold-lt);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.35s ease;
  z-index: 9999;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 500;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 30px rgba(37,211,102,0.55); }

/* ── FOOTER ── */
footer {
  background: var(--brown-dk);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.78rem;
  color: rgba(253,249,243,0.4);
  letter-spacing: 0.08em;
}
footer strong { color: var(--gold-lt); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(44,31,16,0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: 18px;
  padding: 48px 44px;
  max-width: 480px; width: 90%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--brown-dk); margin-bottom: 10px; }
.modal-text { font-size: 0.9rem; color: var(--brown-lt); line-height: 1.7; margin-bottom: 28px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-modal {
  padding: 12px 24px; border-radius: 8px;
  font-family: 'Jost', sans-serif; font-size: 0.82rem; letter-spacing: 0.12em;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: opacity 0.2s;
}
.btn-modal:hover { opacity: 0.82; }
.btn-modal-dark { background: var(--brown-dk); color: var(--gold-lt); border: none; }
.btn-modal-outline { background: transparent; color: var(--brown-dk); border: 1.5px solid var(--brown-lt); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 30px; padding: 50px 24px 44px; }
  .hero-badges { justify-content: center; }
  .page-wrap { grid-template-columns: 1fr; padding: 40px 20px 80px; }
  .form-row { grid-template-columns: 1fr; }
  .patients-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-card { padding: 28px 22px; }
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.login-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 2px solid var(--warm);
}

.login-card .form-group {
  margin-top: 20px;
}

#adminPassword {
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}