/* =========================================================
   ORIS Odontología Especializada — Complete Stylesheet
   Mobile-first, no external dependencies
   ========================================================= */

/* --- CSS Variables --- */
:root {
  --primary: #1c7fa0;
  --primary-dark: #166285;
  --dark: #0d2233;
  --light: #e8f4f8;
  --silver: #8a9aaa;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #0d2233 0%, #1c7fa0 100%);
  --gradient-light: linear-gradient(135deg, #e8f4f8 0%, #c5e2ee 100%);
  --shadow: 0 4px 24px rgba(28,127,160,0.12);
  --shadow-lg: 0 8px 48px rgba(13,34,51,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', Arial, sans-serif;
}

/* --- Modern CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-silver { color: var(--silver); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-pad {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 6rem 0;
  }
}

.section-title {
  font-family: var(--font-title);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--silver);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(28,127,160,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,127,160,0.45);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13,34,51,0.25);
}

.btn-dark:hover {
  background: #162d42;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.05rem;
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(13,34,51,0.1);
  padding: 0.6rem 0;
}

.navbar.scrolled .nav-link {
  color: var(--dark);
}

.navbar.scrolled .nav-logo-text {
  color: var(--dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img,
.nav-logo svg {
  width: 40px;
  height: 40px;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.nav-logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.8;
  display: block;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28,127,160,0.4);
}

.nav-cta::after { display: none; }

@media (min-width: 992px) {
  .nav-menu { display: flex; }
  .hamburger { display: none; }
}

/* --- HAMBURGER --- */
.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: var(--transition);
  z-index: 1100;
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.navbar.scrolled .hamburger span {
  background: var(--dark);
}

.navbar.menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.navbar.menu-open ~ .nav-mobile,
.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: 1.5rem;
  color: var(--white);
  font-family: var(--font-title);
}

.nav-mobile .nav-cta {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

/* --- HERO --- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(28,127,160,0.3) 0%, transparent 60%),
    linear-gradient(135deg, #0d2233 0%, #1a3d55 50%, #0d2233 100%);
}

/* Dot pattern overlay */
.hero-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28,127,160,0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,34,51,0.85) 0%,
    rgba(13,34,51,0.5) 60%,
    rgba(13,34,51,0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
  padding-top: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(28,127,160,0.25);
  border: 1px solid rgba(28,127,160,0.4);
  color: #7dd3f0;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

#hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.1;
}

#hero h1 span {
  color: #7dd3f0;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-microcopy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.hero-microcopy::before {
  content: '🔒';
}

/* Trust badges row */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  font-weight: 500;
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollDown 1.5s ease infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* --- AUTORIDAD SECTION --- */
#autoridad {
  background: var(--light);
}

.autoridad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .autoridad-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.cred-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cred-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cred-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cred-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.cred-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.cred-text {
  font-size: 0.9rem;
  color: var(--silver);
  margin: 0;
}

.doctora-photo {
  background: linear-gradient(135deg, #c5e2ee 0%, #1c7fa0 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  max-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.doctora-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.doctora-photo-icon {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.doctora-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(13,34,51,0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--white);
  z-index: 2;
}

.doctora-badge-name {
  font-family: var(--font-title);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.doctora-badge-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

/* --- ESPECIALIDADES --- */
#especialidades {
  background: var(--white);
}

.especialidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .especialidades-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .especialidades-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .especialidad-card.featured {
    grid-column: span 1;
  }
}

.especialidad-card {
  background: var(--white);
  border: 1px solid rgba(28,127,160,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.especialidad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.especialidad-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28,127,160,0.2);
}

.especialidad-card:hover::before {
  transform: scaleX(1);
}

.especialidad-card.featured {
  border-color: rgba(28,127,160,0.25);
  box-shadow: var(--shadow);
}

.esp-icon {
  width: 56px;
  height: 56px;
  background: var(--light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.esp-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.esp-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.esp-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.esp-text {
  font-size: 0.9rem;
  color: var(--silver);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.esp-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.esp-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- PROCESO --- */
#proceso {
  background: var(--dark);
  color: var(--white);
}

#proceso .section-title {
  color: var(--white);
}

#proceso .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.proceso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

@media (min-width: 768px) {
  .proceso-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proceso-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

/* Connector line */
.proceso-step:not(:last-child)::after {
  content: '';
  position: absolute;
  background: rgba(28,127,160,0.4);
}

@media (min-width: 768px) {
  .proceso-step:not(:last-child)::after {
    top: 3.5rem;
    left: calc(50% + 2rem);
    right: calc(-50% + 2rem);
    height: 2px;
    width: auto;
  }
}

@media (max-width: 767px) {
  .proceso-step:not(:last-child)::after {
    left: 50%;
    top: 5rem;
    bottom: 0;
    width: 2px;
    height: calc(100% - 5rem);
    transform: translateX(-50%);
  }
}

.paso-num {
  width: 64px;
  height: 64px;
  background: rgba(28,127,160,0.2);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.proceso-step:hover .paso-num {
  background: var(--primary);
  transform: scale(1.1);
}

.paso-title {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.paso-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* --- ANTES Y DESPUES --- */
#antes-despues {
  background: var(--light);
}

.casos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .casos-grid { grid-template-columns: repeat(3, 1fr); }
}

.caso-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: var(--transition);
}

.caso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.caso-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
}

.caso-before {
  background: linear-gradient(135deg, #c8c8c8 0%, #9aabb8 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
}

.caso-after {
  background: linear-gradient(135deg, #a8d8e8 0%, #1c7fa0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  position: relative;
}

.caso-label {
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.caso-info {
  padding: 1.25rem;
}

.caso-tratamiento {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.caso-tag {
  font-size: 0.8rem;
  color: var(--silver);
}

/* --- PRECIOS --- */
#precios {
  background: var(--white);
}

.precios-aviso {
  background: #fff3f3;
  border: 1px solid #ffcccc;
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  font-size: 0.85rem;
  color: #c0392b;
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.precios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 640px) {
  .precios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .precios-grid { grid-template-columns: repeat(3, 1fr); }
}

.precio-card {
  background: var(--white);
  border: 1px solid rgba(28,127,160,0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.precio-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.precio-card.featured-price {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: var(--gradient);
  color: var(--white);
}

.precio-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f39c12;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.precio-tratamiento {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.precio-card.featured-price .precio-tratamiento {
  color: rgba(255,255,255,0.85);
}

.precio-valor {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.precio-card.featured-price .precio-valor {
  color: var(--white);
  font-size: 2.5rem;
}

.precio-desde {
  font-size: 0.75rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.precio-card.featured-price .precio-desde {
  color: rgba(255,255,255,0.7);
}

/* --- TESTIMONIOS --- */
#testimonios {
  background: var(--light);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .testimonios-grid { grid-template-columns: repeat(4, 1fr); }
}

.testimonio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonio-stars {
  color: #f39c12;
  font-size: 0.9rem;
  margin-bottom: 0.875rem;
  letter-spacing: 2px;
}

.testimonio-text {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.testimonio-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.testimonio-tratamiento {
  font-size: 0.78rem;
  color: var(--primary);
}

/* --- CONTACTO --- */
#contacto {
  background: var(--white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contacto-grid { grid-template-columns: 1fr 1fr; }
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacto-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contacto-icon {
  width: 44px;
  height: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.contacto-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver);
  margin-bottom: 0.2rem;
}

.contacto-value {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.contacto-value a {
  color: var(--primary);
  transition: var(--transition);
}

.contacto-value a:hover { opacity: 0.8; }

.mapa-placeholder {
  background: var(--light);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--silver);
  border: 2px dashed rgba(28,127,160,0.2);
  text-align: center;
  padding: 2rem;
}

.mapa-icon {
  font-size: 3rem;
}

.mapa-text {
  font-size: 0.9rem;
  color: var(--silver);
}

/* --- CTA FINAL --- */
#cta-final {
  background: var(--gradient);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

#cta-final .container {
  position: relative;
  z-index: 1;
}

#cta-final h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

#cta-final p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-microcopy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
}

/* --- FOOTER --- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-text {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.1em;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.payment-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--primary); }

/* --- POPUP MODAL --- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,34,51,0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.popup-overlay.popup-visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--silver);
  transition: var(--transition);
  line-height: 1;
}

.popup-close:hover {
  background: #ffecec;
  color: #c0392b;
}

.popup-logo {
  margin: 0 auto 1rem;
  width: 50px;
  height: 50px;
}

.popup-headline {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.popup-text {
  font-size: 0.9rem;
  color: var(--silver);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.popup-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popup-fine {
  font-size: 0.75rem;
  color: var(--silver);
  margin-top: 0.5rem;
}

/* --- CHATBOT WIDGET --- */
.chatbot-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(28,127,160,0.45);
  transition: var(--transition);
  border: none;
  color: var(--white);
  flex-shrink: 0;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(28,127,160,0.55);
}

.chatbot-notification {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #e74c3c;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.chatbot-window {
  display: none;
  flex-direction: column;
  width: 340px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  max-height: calc(100vh - 8rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

.chatbot-window.open {
  display: flex;
}

.chatbot-header {
  background: var(--gradient);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-header-info {
  flex: 1;
}

.chatbot-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}

.chatbot-status {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-status::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
}

.chatbot-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-close-btn:hover { background: rgba(255,255,255,0.25); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--light);
  color: var(--dark);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-self: flex-start;
  width: 100%;
}

.chat-option {
  background: var(--white);
  border: 1.5px solid rgba(28,127,160,0.3);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: var(--font-body);
}

.chat-option:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.chatbot-input-area {
  border-top: 1px solid var(--light);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  border: 1.5px solid rgba(28,127,160,0.2);
  border-radius: 50px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.chatbot-input:focus {
  border-color: var(--primary);
}

.chatbot-send {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.chatbot-send:hover {
  background: var(--primary-dark);
}

/* --- WHATSAPP FLOAT BUTTON --- */
.whatsapp-float {
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  flex-shrink: 0;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

/* --- STICKY MOBILE BAR --- */
.sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8900;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(13,34,51,0.12);
  padding: 0.6rem 1rem;
  gap: 0.75rem;
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  text-align: center;
}

.sticky-call {
  background: var(--light);
  color: var(--dark);
}

.sticky-call:hover { background: #d0e8f2; }

.sticky-reserve {
  background: var(--primary);
  color: var(--white);
}

.sticky-reserve:hover { background: var(--primary-dark); }

@media (max-width: 991px) {
  .sticky-mobile { display: flex; }
  body { padding-bottom: 70px; }
}

/* --- PAGE LAYOUTS: LANDING PAGES --- */
.page-hero {
  background: var(--gradient);
  padding: 7rem 0 4rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 25px 25px;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- FAQ ACCORDION --- */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(28,127,160,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(28,127,160,0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
  border: none;
}

.faq-question:hover { background: var(--light); }

.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--primary);
  font-weight: 700;
}

.faq-item.open .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.7;
  background: var(--white);
}

.faq-item.open .faq-answer { display: block; }

/* --- BENEFICIOS / FEATURES --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(28,127,160,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.85rem;
  color: var(--silver);
  margin: 0;
}

/* --- PROCESO IMPLANTE (5 pasos) --- */
.proceso-implante {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.paso-implante {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(28,127,160,0.1);
  border-radius: var(--radius);
  transition: var(--transition);
}

.paso-implante:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.paso-implante-num {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.paso-implante-content h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.paso-implante-content p {
  font-size: 0.875rem;
  color: var(--silver);
  margin: 0;
}

/* --- AGENDA PAGE --- */
.agenda-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  padding: 2rem;
}

.agenda-login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.agenda-login-box h2 {
  margin-bottom: 0.5rem;
}

.agenda-login-box p {
  color: var(--silver);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(28,127,160,0.2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}

.form-input:focus { border-color: var(--primary); }

.form-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
}

/* Agenda main */
.agenda-app {
  display: none;
  min-height: 100vh;
  background: var(--light);
}

.agenda-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.agenda-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--dark);
}

.agenda-nav-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.agenda-content {
  padding: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.agenda-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.view-toggle {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.view-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.view-btn.active {
  background: var(--primary);
  color: var(--white);
}

.citas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cita-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cita-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

.cita-hora {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
}

.cita-info { flex: 1; }

.cita-nombre {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.cita-tel {
  font-size: 0.8rem;
  color: var(--silver);
}

.cita-tratamiento {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.estado-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.estado-confirmada { background: #d4edda; color: #155724; }
.estado-pendiente { background: #fff3cd; color: #856404; }
.estado-completada { background: #e2e3e5; color: #383d41; }
.estado-no-asistio { background: #f8d7da; color: #721c24; }

.cita-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- ADMIN PANEL --- */
.admin-layout {
  display: none;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--dark);
  min-height: 100vh;
  padding: 1.5rem 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 200;
  transition: var(--transition);
}

@media (max-width: 767px) {
  .admin-sidebar {
    width: 60px;
  }

  .admin-sidebar .sidebar-link-text { display: none; }
  .admin-sidebar .admin-brand-text { display: none; }
  .admin-content { margin-left: 60px; }
}

.admin-brand {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-brand-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.admin-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1.25rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(28,127,160,0.2);
  color: var(--white);
  border-left: 3px solid var(--primary);
  padding-left: calc(1.25rem - 3px);
}

.admin-nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.admin-content {
  margin-left: 240px;
  background: var(--light);
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-section {
  display: none;
  padding: 1.5rem;
}

.admin-section.active { display: block; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .metrics-grid { grid-template-columns: repeat(6, 1fr); }
}

.metric-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Chart CSS */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 150px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 10px;
  transition: opacity var(--transition);
}

.bar:hover { opacity: 0.8; }

.bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--silver);
  white-space: nowrap;
}

/* CRM Table */
.crm-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: center;
}

.crm-controls select,
.crm-controls input {
  padding: 0.5rem 0.875rem;
  border: 1.5px solid rgba(28,127,160,0.2);
  border-radius: var(--radius);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.crm-controls select:focus,
.crm-controls input:focus { border-color: var(--primary); }

.table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.crm-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--light);
  border-bottom: 1px solid rgba(28,127,160,0.1);
  white-space: nowrap;
}

.crm-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(28,127,160,0.06);
  color: var(--dark);
  vertical-align: middle;
}

.crm-table tr:hover td { background: var(--light); }

.crm-table tr:last-child td { border-bottom: none; }

/* FODA matrix */
.foda-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.foda-quadrant {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.foda-quadrant h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.foda-content {
  min-height: 120px;
  font-size: 0.875rem;
  color: var(--dark);
  line-height: 1.7;
  outline: none;
  white-space: pre-wrap;
}

.foda-content:focus {
  background: var(--light);
  border-radius: var(--radius);
  padding: 0.5rem;
}

/* --- THANK YOU PAGE --- */
.thankyou-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.thankyou-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.check-animation {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #d4edda;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: checkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes checkPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.check-mark {
  font-size: 2.5rem;
  animation: checkFade 0.3s 0.4s ease both;
}

@keyframes checkFade {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.thankyou-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}

.thankyou-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.thankyou-step-num {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.thankyou-step-text {
  font-size: 0.9rem;
  color: var(--dark);
  margin: 0;
  padding-top: 0.2rem;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* --- ANIMATE ON SCROLL --- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }

/* --- UTILITY CLASSES --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }

/* Responsive hide/show */
.hide-mobile { display: none; }
@media (min-width: 768px) {
  .hide-mobile { display: block; }
  .hide-desktop { display: none; }
}

/* --- PRINT STYLES --- */
@media print {
  .navbar, .sticky-mobile, .chatbot-wrap, .whatsapp-float,
  .popup-overlay, footer { display: none !important; }
  body { padding: 0; background: var(--white); }
  .admin-sidebar { display: none; }
  .admin-content { margin: 0; }
}
