/* ================================================================
   Hipnosis Clínica Reparadora — Main Stylesheet
   ================================================================ */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --primary:       #1a0533;
  --primary-mid:   #3d1a6e;
  --primary-light: #6a3fa6;
  --gold:          #d4af37;
  --gold-light:    #f0d060;
  --teal:          #00bcd4;
  --teal-dark:     #0097a7;
  --white:         #ffffff;
  --gray-50:       #f8f9fa;
  --gray-100:      #f0f0f5;
  --gray-200:      #e0e0e8;
  --gray-600:      #6c757d;
  --gray-800:      #343a40;
  --text:          #1a1a2e;
  --shadow-sm:     0 2px 10px rgba(61,26,110,.12);
  --shadow-md:     0 8px 30px rgba(61,26,110,.18);
  --shadow-lg:     0 20px 60px rgba(61,26,110,.25);
  --radius:        12px;
  --radius-lg:     20px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
}

img { max-width: 100%; height: auto; }

a { text-decoration: none; transition: color var(--transition); }

/* ── Top Bar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(212,175,55,.2);
}
.topbar span { margin-right: 1rem; }

/* ── Navbar ──────────────────────────────────────────────────── */
#mainNav {
  background: rgba(26,5,51,.95);
  backdrop-filter: blur(12px);
  padding: .75rem 0;
  border-bottom: 1px solid rgba(212,175,55,.15);
  transition: all var(--transition);
  z-index: 1040;
}
#mainNav.scrolled {
  padding: .5rem 0;
  box-shadow: var(--shadow-md);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.brand-sub {
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .05em;
  text-transform: uppercase;
}

#mainNav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .9rem !important;
  border-radius: 6px;
  transition: all var(--transition);
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--gold) !important;
  background: rgba(212,175,55,.08);
}

.dropdown-menu {
  background: var(--primary);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--radius);
  padding: .5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeDown .2s ease;
}
@keyframes fadeDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:none; } }

.dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  border-radius: 6px;
  padding: .5rem .9rem;
  transition: all var(--transition);
}
.dropdown-item:hover {
  background: rgba(212,175,55,.12);
  color: var(--gold);
}

.btn-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary) !important;
  font-weight: 700;
  font-size: .85rem;
  padding: .55rem 1.3rem;
  border-radius: 25px;
  border: none;
  box-shadow: 0 4px 15px rgba(212,175,55,.4);
  transition: all var(--transition);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,.5);
  color: var(--primary) !important;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0218 0%, #1a0533 40%, #2d0a4e 70%, #3d1a6e 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(212,175,55,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(0,188,212,.06) 0%, transparent 70%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(212,175,55,.15);
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.3);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 25px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--gold); }

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.hero-stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(212,175,55,.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ── Section Styles ──────────────────────────────────────────── */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-title .accent { color: var(--primary-light); }
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* ── Topic Cards ─────────────────────────────────────────────── */
.topic-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.topic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  text-decoration: none;
}
.topic-card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.topic-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topic-card-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: .4rem;
}
.topic-card-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: .75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.topic-card-desc {
  font-size: .875rem;
  color: var(--gray-600);
  flex: 1;
  line-height: 1.6;
}
.topic-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 1rem;
}
.topic-card:hover .topic-card-link { color: var(--gold); }

/* Category badge on card hover */
.topic-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ── Process / How It Works ──────────────────────────────────── */
.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  height: 100%;
}
.process-step:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.process-step:hover * { color: var(--white) !important; }
.process-step:hover .process-num { background: rgba(255,255,255,.1); color: var(--gold) !important; border-color: var(--gold); }

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(61,26,110,.1);
  border: 2px solid var(--primary-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-mid);
  margin: 0 auto 1.2rem;
  font-family: 'Playfair Display', serif;
  transition: all var(--transition);
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: 100%;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4rem;
  color: rgba(61,26,110,.06);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.testimonial-stars { color: #ffc107; margin-bottom: 1rem; font-size: .9rem; }
.testimonial-text {
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--primary); font-size: .95rem; }
.testimonial-topic { font-size: .8rem; color: var(--primary-light); }

/* ── Topic Page (topic.php) ──────────────────────────────────── */
.topic-hero {
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}
.topic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,5,51,.3) 0%, rgba(26,5,51,.85) 100%);
}
.topic-hero-content { position: relative; z-index: 2; }
.topic-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(212,175,55,.2);
  border: 1px solid rgba(212,175,55,.4);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.topic-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: .75rem;
}
.topic-hero p.lead {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 680px;
}

/* Content sections */
.content-section { padding: 4rem 0; }
.content-section:nth-child(even) { background: var(--gray-50); }

.content-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.content-section h2 {
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: .75rem;
}
.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}
.content-section p { color: #444; line-height: 1.8; margin-bottom: 1rem; }
.content-section ul, .content-section ol { padding-left: 1.2rem; }
.content-section li { color: #444; margin-bottom: .6rem; line-height: 1.7; }
.content-section strong { color: var(--primary); }

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.faq-item h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: .75rem;
}
.faq-item p { margin: 0; }

/* Alert box */
.alert-box {
  background: #fff3e0;
  border: 1px solid #ff9800;
  border-left: 4px solid #ff9800;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.alert-box h4 { color: #e65100; margin-bottom: .5rem; font-size: 1rem; }
.alert-box p { margin: 0; color: #5d4037; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.stat-label { font-size: .75rem; color: rgba(255,255,255,.7); }

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  position: sticky;
  top: 90px;
}
.sidebar-cta h4 { color: var(--gold); margin-bottom: 1rem; }
.sidebar-cta .btn-gold { width: 100%; margin-bottom: .75rem; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: .75rem 2rem;
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(61,26,110,.3);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(61,26,110,.4);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--primary);
  border: none;
  border-radius: 25px;
  padding: .75rem 2rem;
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(212,175,55,.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,175,55,.5);
  color: var(--primary);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 25px;
  padding: .65rem 1.8rem;
  font-weight: 600;
  font-size: .875rem;
  transition: all var(--transition);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200);
  padding: .75rem 1rem;
  font-size: .9rem;
  transition: all var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(61,26,110,.12);
}
.form-label { font-weight: 600; font-size: .875rem; color: var(--primary); margin-bottom: .4rem; }

/* ── Stars Rating ────────────────────────────────────────────── */
.star-rating { display: flex; flex-direction: row-reverse; gap: .25rem; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  transition: color var(--transition);
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #ffc107; }

/* ── Citas Form ──────────────────────────────────────────────── */
.citas-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}
.citas-hero h1 { color: var(--gold); }

.cita-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: -3rem auto 0;
  position: relative;
}

/* ── Newsletter ──────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
}

/* ── Footer ──────────────────────────────────────────────────── */
.main-footer {
  background: var(--primary);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(212,175,55,.2);
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}
.footer-desc { color: rgba(255,255,255,.55); font-size: .875rem; line-height: 1.7; }
.footer-heading {
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  margin-bottom: .6rem;
  display: flex;
  gap: .75rem;
}
.footer-contact i { color: var(--gold); margin-top: .1rem; flex-shrink: 0; }
.footer-divider { border-color: rgba(255,255,255,.1); }
.footer-copy { color: rgba(255,255,255,.4); font-size: .8rem; }
.footer-legal { color: rgba(255,255,255,.4); font-size: .8rem; transition: color var(--transition); }
.footer-legal:hover { color: var(--gold); }

.social-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); color: var(--primary); border-color: var(--gold); transform: translateY(-2px); }

/* ── Back to Top ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; transform: none; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Chatbot ─────────────────────────────────────────────────── */
#chatbot-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 2000; }

.chatbot-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(61,26,110,.5);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}
.chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 12px 35px rgba(61,26,110,.6); }

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f44336;
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.chatbot-window {
  width: 360px;
  max-height: 600px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 70px;
  right: 0;
  overflow: hidden;
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

.chatbot-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212,175,55,.2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chatbot-name { color: var(--white); font-weight: 700; font-size: .95rem; }
.chatbot-status { font-size: .75rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: .3rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #4caf50; flex-shrink: 0; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.chatbot-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.1rem; cursor: pointer; padding: .2rem .4rem; border-radius: 4px; transition: all var(--transition); }
.chatbot-close:hover { background: rgba(255,255,255,.1); color: var(--white); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: #f7f5fc;
  max-height: 380px;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  animation: msgIn .25s ease;
}
@keyframes msgIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.chat-bubble {
  padding: .65rem 1rem;
  border-radius: 16px;
  font-size: .875rem;
  line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-time { font-size: .7rem; color: var(--gray-600); margin-top: .2rem; padding: 0 .25rem; }
.chat-msg.user .chat-time { text-align: right; }

.chat-typing { display: flex; gap: .3rem; align-items: center; padding: .65rem 1rem; background: var(--white); border-radius: 16px; border-bottom-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.chat-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-light); animation: typing .8s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,80%,100%{transform:translateY(0);} 40%{transform:translateY(-6px);} }

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .5rem 1rem;
  background: #f7f5fc;
  border-top: 1px solid var(--gray-100);
}
.quick-reply-btn {
  background: var(--white);
  border: 1.5px solid var(--primary-light);
  color: var(--primary-mid);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.quick-reply-btn:hover { background: var(--primary-mid); color: var(--white); border-color: var(--primary-mid); }

.chatbot-input {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}
.chatbot-input input {
  flex: 1;
  border: 1.5px solid var(--gray-200);
  border-radius: 25px;
  padding: .5rem 1rem;
  font-size: .875rem;
  outline: none;
  transition: border-color var(--transition);
}
.chatbot-input input:focus { border-color: var(--primary-mid); }
#chatSend {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
#chatSend:hover { transform: scale(1.1); }

.chatbot-footer-note {
  text-align: center;
  font-size: .7rem;
  color: var(--gray-600);
  padding: .4rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

/* ── Admin Dashboard ─────────────────────────────────────────── */
.admin-nav { background: var(--primary); min-height: 100vh; }
.admin-main { padding: 2rem; background: var(--gray-50); min-height: 100vh; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.admin-stat-card { text-align: center; }
.admin-stat-num { font-size: 2.5rem; font-weight: 800; color: var(--primary-mid); font-family: 'Playfair Display', serif; }
.admin-stat-label { font-size: .8rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .08em; }

.status-badge { padding: .25rem .75rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.status-pendiente { background: #fff3e0; color: #e65100; }
.status-confirmada { background: #e8f5e9; color: #2e7d32; }
.status-cancelada { background: #ffebee; color: #c62828; }
.status-aprobado { background: #e8f5e9; color: #2e7d32; }
.status-no-aprobado { background: #fce4ec; color: #880e4f; }

/* ── Utilities ───────────────────────────────────────────────── */
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); }
.text-gold { color: var(--gold); }
.text-primary-custom { color: var(--primary); }
.rounded-custom { border-radius: var(--radius-lg); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 8rem 0 4rem; text-align: center; }
  .hero p.lead { margin: 0 auto 2rem; }
  .hero-stats { justify-content: center; }
  .chatbot-window { width: calc(100vw - 2rem); right: -0.5rem; }
  .cita-form-wrapper { padding: 1.5rem; }
  .topbar .d-none { display: none !important; }
}
@media (max-width: 576px) {
  .chatbot-window { bottom: 75px; }
  .back-to-top { bottom: 5rem; right: 1rem; }
}
