/* ════════════════════════════════════
   Feli's Dent – Hoja de Estilos Global
   ════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --mint:     #2DD4BF;
  --mint-d:   #14B8A6;
  --mint-l:   #CCFBF1;
  --navy:     #0F2744;
  --navy-l:   #1A3A5C;
  --navy-2:   #243B55;
  --cream:    #F9F5F0;
  --white:    #FFFFFF;
  --gray:     #6B7280;
  --gray-l:   #9CA3AF;
  --light:    #E0F9F6;
  --red:      #EF4444;
  --gold:     #F59E0B;
  --success:  #10B981;
  --purple:   #8B5CF6;
  --shadow:   0 4px 20px rgba(15,39,68,.10);
  --shadow-lg:0 12px 40px rgba(15,39,68,.16);
  --rad:      14px;
  --rad-lg:   20px;
  --font-h:  'Playfair Display', serif;
  --font-b:  'DM Sans', sans-serif;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--navy);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint-d); }

/* ══ NAVIGATION ══ */
nav {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-h);
  font-size: 1.45rem;
  color: var(--white);
  cursor: pointer;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--mint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.nav-links { display: flex; gap: .3rem; align-items: center; }
.nav-links button {
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-family: var(--font-b);
  font-size: .9rem;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.nav-links button:hover,
.nav-links button.active { background: rgba(255,255,255,.1); color: var(--white); }
.nav-links button.accent {
  background: var(--mint);
  color: var(--navy);
  font-weight: 600;
}
.nav-links button.accent:hover { background: var(--mint-d); }

/* ══ VIEWS ══ */
.view { display: none; animation: fadeIn .35s ease; }
.view.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* ══ HERO ══ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-l) 55%, #1e4976 100%);
  padding: 5.5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%232DD4BF' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-block;
  background: rgba(45,212,191,.15);
  border: 1px solid rgba(45,212,191,.4);
  color: var(--mint);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  position: relative;
  letter-spacing: .04em;
}
.hero h1 {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.2;
}
.hero h1 span { color: var(--mint); }
.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  position: relative;
}
.hero-btns {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  position: relative;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat h3 { font-family: var(--font-h); font-size: 1.8rem; color: var(--white); }
.hero-stat p  { font-size: .8rem; color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; }

/* ══ BUTTONS ══ */
.btn {
  padding: .75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary { background: var(--mint); color: var(--navy); }
.btn-primary:hover { background: var(--mint-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,212,191,.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ══ FEATURES ══ */
.features-section { padding: 4rem 2rem; max-width: 1140px; margin: 0 auto; }
.features-section h2 { font-family: var(--font-h); font-size: 2rem; text-align: center; margin-bottom: .5rem; }
.features-section .sub { text-align: center; color: var(--gray); margin-bottom: 2.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.feature-card {
  background: var(--white);
  border-radius: var(--rad);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mint-l);
}
.feature-card .icon { font-size: 2.2rem; margin-bottom: .8rem; }
.feature-card h3 { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p   { font-size: .87rem; color: var(--gray); line-height: 1.55; }

/* ══ TESTIMONIALS ══ */
.testimonials { background: var(--navy); padding: 4rem 2rem; }
.testimonials h2 { font-family: var(--font-h); color: var(--white); text-align: center; font-size: 1.9rem; margin-bottom: 2.5rem; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; max-width: 1000px; margin: 0 auto; }
.testi-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--rad);
  padding: 1.6rem;
}
.testi-stars { color: var(--gold); font-size: 1rem; margin-bottom: .6rem; }
.testi-card p { color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .7rem; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--navy);
}
.testi-name { font-size: .85rem; font-weight: 600; color: var(--white); }
.testi-role { font-size: .75rem; color: rgba(255,255,255,.45); }

/* ══ CONTACT STRIP ══ */
.contact-strip {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-d) 100%);
  padding: 2.5rem 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
}
.contact-item { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.contact-item .ci-icon { font-size: 1.4rem; }
.contact-item div h4 { font-weight: 700; font-size: .95rem; }
.contact-item div p  { font-size: .82rem; opacity: .75; }

/* ══ BOOKING ══ */
.booking-wrap { max-width: 800px; margin: 3rem auto; padding: 0 1.5rem 4rem; }
.section-title { font-family: var(--font-h); font-size: 2rem; color: var(--navy); margin-bottom: .4rem; }
.section-sub { color: var(--gray); margin-bottom: 2rem; font-size: .95rem; }
.card {
  background: var(--white);
  border-radius: var(--rad-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-lg);
}
.form-steps {
  display: flex; gap: 0;
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #E5E7EB;
}
.form-step-btn {
  flex: 1; padding: .65rem;
  background: none; border: none;
  font-family: var(--font-b);
  font-size: .82rem; font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  border-right: 1px solid #E5E7EB;
}
.form-step-btn:last-child { border-right: none; }
.form-step-btn.active { background: var(--navy); color: var(--white); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media(max-width:600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .83rem; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
input, select, textarea {
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  padding: .72rem 1rem;
  font-family: var(--font-b);
  font-size: .92rem;
  color: var(--navy);
  outline: none;
  transition: var(--transition);
  background: var(--white);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(45,212,191,.14);
}
textarea { resize: vertical; min-height: 90px; }
.submit-btn {
  width: 100%; margin-top: 1.2rem;
  padding: 1rem;
  background: var(--navy);
  color: var(--white);
  border: none; border-radius: 10px;
  font-family: var(--font-b);
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.submit-btn:hover { background: var(--navy-l); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,39,68,.3); }
.submit-btn:active { transform: translateY(0); }

.success-msg {
  display: none;
  background: linear-gradient(135deg,#ECFDF5,#D1FAE5);
  border: 2px solid var(--success);
  border-radius: var(--rad);
  padding: 2.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.success-msg.show { display: block; animation: slideUp .4s ease; }
.success-msg h3 { color: var(--success); font-family: var(--font-h); font-size: 1.5rem; margin: .6rem 0 .4rem; }
.success-msg p   { color: #065F46; font-size: .93rem; }
.success-code {
  display: inline-block;
  background: var(--success);
  color: var(--white);
  border-radius: 8px;
  padding: .4rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: .8rem 0;
}

/* ══ LOGIN ══ */
.login-wrap {
  min-height: calc(100vh - 66px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}
.login-box {
  background: var(--white);
  border-radius: var(--rad-lg);
  padding: 3rem 2.5rem;
  width: 100%; max-width: 430px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  text-align: center;
}
.login-logo { font-family: var(--font-h); font-size: 2.1rem; color: var(--navy); }
.login-logo span { color: var(--mint); }
.login-sub { color: var(--gray); font-size: .9rem; margin-bottom: 2rem; }
.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 1.1rem; }
.login-hint {
  margin-top: 1.2rem;
  font-size: .8rem; color: var(--gray);
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: .75rem 1rem;
}
.login-hint strong { color: var(--navy); }

/* ══ ADMIN LAYOUT ══ */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 66px); }
@media(max-width:900px) { .admin-layout { grid-template-columns: 1fr; } }

.sidebar {
  background: var(--navy);
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: .25rem;
  overflow-y: auto;
}
@media(max-width:900px) { .sidebar { display: none; } }

.sidebar-user {
  padding: .6rem .8rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: .6rem;
}
.sidebar-user .s-label { color: rgba(255,255,255,.45); font-size: .72rem; }
.sidebar-user .s-name  { color: var(--white); font-weight: 600; font-size: .92rem; margin-top: .2rem; }
.sidebar-user .s-role  { color: var(--mint); font-size: .78rem; }

.s-section {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  padding: .4rem .8rem;
  margin-top: .8rem;
}
.sidebar-btn {
  display: flex; align-items: center; gap: .7rem;
  background: none; border: none;
  color: rgba(255,255,255,.62);
  font-family: var(--font-b);
  font-size: .88rem;
  padding: .65rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%; text-align: left;
}
.sidebar-btn:hover { background: rgba(255,255,255,.09); color: var(--white); }
.sidebar-btn.active { background: rgba(45,212,191,.18); color: var(--mint); font-weight: 600; }
.sidebar-btn .icon { font-size: 1rem; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-btn .badge-notif {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-size: .68rem; font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 50px;
}

.admin-main { background: #F0F4F8; padding: 2rem; overflow-y: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeIn .3s ease; }

/* Mobile top nav */
.mobile-nav {
  display: none;
  padding: .7rem 1rem;
  background: var(--white);
  border-bottom: 2px solid #E5E7EB;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}
@media(max-width:900px) { .mobile-nav { display: flex; } }
.mobile-nav button {
  background: none; border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: .38rem .75rem;
  font-family: var(--font-b);
  font-size: .78rem; color: var(--navy);
  cursor: pointer; transition: var(--transition);
}
.mobile-nav button.active { background: var(--mint); border-color: var(--mint); font-weight: 600; }

/* Panel header */
.panel-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.8rem;
  flex-wrap: wrap; gap: 1rem;
}
.panel-header h2 { font-family: var(--font-h); font-size: 1.65rem; color: var(--navy); }
.panel-header p  { color: var(--gray); font-size: .87rem; margin-top: .2rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--white); border-radius: var(--rad);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.bg-mint   { background: #CCFBF1; color: var(--mint-d); }
.bg-gold   { background: #FEF3C7; color: #D97706; }
.bg-red    { background: #FEE2E2; color: var(--red); }
.bg-navy   { background: #EEF2FF; color: #4338CA; }
.bg-purple { background: #EDE9FE; color: var(--purple); }
.stat-info h3 { font-size: 1.65rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-info p  { font-size: .78rem; color: var(--gray); margin-top: .2rem; }

/* Progress bar mini */
.stat-progress { margin-top: .4rem; background: #F1F5F9; border-radius: 4px; height: 4px; }
.stat-progress-fill { height: 4px; border-radius: 4px; background: var(--mint); }

/* Tables */
.table-wrap {
  background: var(--white);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.table-header {
  padding: 1.2rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
  flex-wrap: wrap; gap: .8rem;
}
.table-header h3 { font-family: var(--font-h); font-size: 1.1rem; color: var(--navy); }
.table-controls { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }

.search-box {
  display: flex; align-items: center; gap: .5rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: .42rem .85rem;
}
.search-box:focus-within { border-color: var(--mint); }
.search-box input {
  border: none; background: none; outline: none;
  font-family: var(--font-b); font-size: .87rem; color: var(--navy); width: 180px;
  padding: 0;
}

.filter-select {
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: .42rem .85rem;
  font-family: var(--font-b);
  font-size: .82rem;
  color: var(--navy);
  background: #F8FAFC;
  outline: none; cursor: pointer;
}
.filter-select:focus { border-color: var(--mint); }

table { width: 100%; border-collapse: collapse; }
thead { background: #F8FAFC; }
th {
  text-align: left;
  padding: .85rem 1.2rem;
  font-size: .75rem; font-weight: 700;
  color: var(--gray);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #F1F5F9;
  white-space: nowrap;
}
td {
  padding: .88rem 1.2rem;
  font-size: .87rem; color: var(--navy);
  border-bottom: 1px solid #F8FAFC;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFC; }
.no-data td { text-align: center; color: var(--gray); padding: 2.5rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: .24rem .7rem;
  border-radius: 50px;
  font-size: .74rem; font-weight: 600;
  white-space: nowrap;
}
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-yellow { background: #FEF3C7; color: #92400E; }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-red    { background: #FEE2E2; color: #991B1B; }
.badge-gray   { background: #F3F4F6; color: #374151; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }

/* Action buttons */
.action-btns { display: flex; gap: .35rem; }
.action-btns button {
  background: none;
  border: 1.5px solid #E2E8F0;
  border-radius: 7px;
  padding: .32rem .6rem;
  font-size: .78rem;
  cursor: pointer; color: var(--gray);
  transition: var(--transition);
  font-family: var(--font-b);
}
.action-btns button:hover { border-color: var(--mint); color: var(--mint-d); background: #F0FDFA; }
.action-btns button.danger:hover { border-color: var(--red); color: var(--red); background: #FEF2F2; }

/* Add/action buttons */
.btn-add {
  background: var(--mint); color: var(--navy);
  border: none; border-radius: 9px;
  padding: .55rem 1.1rem;
  font-family: var(--font-b);
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-add:hover { background: var(--mint-d); transform: translateY(-1px); }
.btn-export {
  background: #F8FAFC; color: var(--navy);
  border: 1.5px solid #E2E8F0; border-radius: 9px;
  padding: .52rem 1rem;
  font-family: var(--font-b); font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.btn-export:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ══ MODALS ══ */
.modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(10,20,40,.6);
  z-index: 200;
  align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}
.modal-bg.open { display: flex; animation: fadeIn .2s ease; }
.modal {
  background: var(--white);
  border-radius: var(--rad-lg);
  padding: 2.2rem;
  width: 100%; max-width: 580px;
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.modal-title {
  font-family: var(--font-h); font-size: 1.4rem; color: var(--navy);
  margin-bottom: 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-close {
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer;
  color: var(--gray); padding: .2rem;
  transition: var(--transition);
}
.modal-close:hover { color: var(--red); }

/* ══ AGENDA / WEEK ══ */
.week-strip {
  display: flex; gap: .6rem;
  margin-bottom: 1.6rem;
  overflow-x: auto; padding-bottom: .4rem;
}
.day-cell {
  min-width: 72px;
  background: var(--white);
  border-radius: 13px;
  padding: .8rem .5rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.day-cell:hover { border-color: var(--mint); }
.day-cell.selected { background: var(--navy); }
.day-cell .day-name { font-size: .68rem; text-transform: uppercase; color: var(--gray-l); letter-spacing: .07em; }
.day-cell.selected .day-name { color: rgba(255,255,255,.5); }
.day-cell .day-num { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin: .1rem 0; }
.day-cell.selected .day-num { color: var(--white); }
.day-cell .day-count { background: var(--mint); color: var(--navy); border-radius: 50px; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; display: inline-block; }

/* Time slots */
.time-grid { display: grid; gap: .6rem; }
.time-slot {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 1rem; align-items: center;
}
.time-label { font-size: .78rem; font-weight: 600; color: var(--gray); text-align: right; }
.slot-bar {
  background: var(--white); border-radius: 10px;
  padding: .75rem 1.1rem; min-height: 52px;
  box-shadow: var(--shadow); border-left: 4px solid #E5E7EB;
  transition: var(--transition);
}
.slot-bar.occupied { border-left-color: var(--mint); background: #F0FDFA; }
.slot-bar.occupied:hover { box-shadow: var(--shadow-lg); transform: translateX(2px); }
.slot-bar.urgent { border-left-color: var(--red); background: #FFF5F5; }
.slot-patient { font-size: .88rem; font-weight: 600; color: var(--navy); }
.slot-service { font-size: .78rem; color: var(--gray); }

/* ══ HISTORIA CLÍNICA ══ */
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px,1fr)); gap: 1.2rem; }
.hc-card {
  background: var(--white); border-radius: var(--rad);
  padding: 1.5rem; box-shadow: var(--shadow);
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.hc-card:hover { border-color: var(--mint); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hc-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.hc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--navy-l));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.hc-name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.hc-meta { font-size: .78rem; color: var(--gray); }
.hc-excerpt { font-size: .83rem; color: var(--gray); line-height: 1.55; margin-bottom: .8rem; }
.hc-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.hc-tag {
  background: #F0FDFA; border: 1px solid #B2F5EA;
  color: var(--mint-d); font-size: .72rem;
  padding: .2rem .5rem; border-radius: 6px; font-weight: 500;
}

/* Odontogram */
.odonto-wrap { background: #F8FAFC; border-radius: 12px; padding: 1.2rem; }
.odonto-label { font-size: .72rem; font-weight: 600; color: var(--gray); letter-spacing: .05em; text-align: center; margin-bottom: .4rem; }
.odonto-row { display: grid; grid-template-columns: repeat(8,1fr); gap: 4px; margin-bottom: 4px; }
.tooth {
  aspect-ratio: 1; background: var(--white);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 600; color: var(--gray);
  cursor: pointer; transition: var(--transition);
  border: 2px solid #E5E7EB;
}
.tooth:hover  { background: var(--light); border-color: var(--mint); }
.tooth.treated   { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.tooth.attention { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
.tooth.pending   { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.tooth.crown     { background: #EDE9FE; color: #5B21B6; border-color: #C4B5FD; }

.odonto-legend { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: .6rem; }
.legend-item { display: flex; align-items: center; gap: .3rem; font-size: .7rem; color: var(--gray); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* ══ PAYMENTS ══ */
.payment-summary {
  background: linear-gradient(135deg, var(--navy), var(--navy-l));
  border-radius: var(--rad);
  padding: 1.8rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 1.2rem;
}
.pay-stat h3 { font-size: 1.6rem; font-weight: 700; }
.pay-stat h3 span { font-size: .9rem; font-weight: 400; opacity: .6; }
.pay-stat p  { font-size: .78rem; opacity: .6; margin-top: .2rem; }
.pay-stat .trend { font-size: .78rem; color: var(--mint); margin-top: .1rem; }

/* ══ REPORTS / CHARTS ══ */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.5rem; }
@media(max-width:700px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card { background: var(--white); border-radius: var(--rad); padding: 1.6rem; box-shadow: var(--shadow); }
.chart-card h3 { font-family: var(--font-h); font-size: 1rem; color: var(--navy); margin-bottom: 1.2rem; }

/* Bar chart pure CSS */
.bar-chart { display: flex; align-items: flex-end; gap: .5rem; height: 140px; }
.bar-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 1; }
.bar-fill { width: 100%; background: var(--mint); border-radius: 6px 6px 0 0; transition: height .8s ease; min-height: 4px; }
.bar-fill.alt { background: var(--navy); }
.bar-label { font-size: .68rem; color: var(--gray); white-space: nowrap; }
.bar-val { font-size: .7rem; font-weight: 700; color: var(--navy); }

/* Donut / Pie mini */
.pie-chart-wrap { display: flex; align-items: center; gap: 1.5rem; }
.pie-legend { display: flex; flex-direction: column; gap: .55rem; }
.pie-legend-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.pie-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* ══ NOTIFICATIONS ══ */
.notif-list { display: flex; flex-direction: column; gap: .7rem; }
.notif-item {
  background: var(--white); border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex; align-items: flex-start; gap: .9rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--mint);
  transition: var(--transition);
}
.notif-item.unread { background: #F0FDFA; }
.notif-item.warning { border-left-color: var(--gold); }
.notif-item.info    { border-left-color: var(--purple); }
.notif-icon { font-size: 1.4rem; flex-shrink: 0; }
.notif-text h4 { font-size: .9rem; font-weight: 600; color: var(--navy); }
.notif-text p  { font-size: .8rem; color: var(--gray); margin-top: .15rem; }
.notif-time    { font-size: .72rem; color: var(--gray-l); margin-left: auto; white-space: nowrap; flex-shrink: 0; }

/* ══ CONFIG ══ */
.config-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.4rem; }

/* ══ TOAST ══ */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 999; display: flex; flex-direction: column; gap: .6rem;
}
.toast {
  background: var(--navy); color: var(--white);
  padding: .85rem 1.3rem; border-radius: 12px;
  font-size: .88rem; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: .6rem;
  animation: slideUp .3s ease;
  min-width: 240px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--gold); color: var(--navy); }

/* ══ WHATSAPP BUTTON ══ */
.wa-btn {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  z-index: 90;
  background: #25D366; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  cursor: pointer; text-decoration: none;
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}
.wa-btn:hover { transform: scale(1.1); animation: none; }

/* ══ FOOTER ══ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 1.5rem;
  font-size: .82rem;
}
footer span { color: var(--mint); }

/* ══ PRINT ══ */
@media print {
  nav, .sidebar, .admin-main .panel-header .btn-add, .btn-export, .modal-bg { display: none !important; }
  .admin-main { padding: 0; background: white; }
  .table-wrap { box-shadow: none; border: 1px solid #ddd; }
}

/* ══ RESPONSIVE ══ */
@media(max-width:480px) {
  nav { padding: 0 1rem; }
  .hero { padding: 3.5rem 1.2rem 3rem; }
  .booking-wrap, .features-section { padding-left: 1rem; padding-right: 1rem; }
  .card { padding: 1.5rem; }
}
