/* ========================================
   DRA EMÍLIA FINOTTI — DESIGN SYSTEM
   "Pastel Garden" — Odontopediatria
   ======================================== */

:root {
  /* Cores principais — baseadas na logo Finotti (roxo + verde menta) */
  --primary: #7B5EA7;
  --primary-dark: #3D2D5C;
  --primary-hover: #6A4F94;
  --primary-light: #F3EFF8;
  --accent: #8BC5A1;
  --accent-dark: #5FA37A;
  --accent-light: #EDF7F1;
  --warm: #E8C97A;
  --warm-dark: #C9A84E;
  --warm-light: #FDF8ED;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFAFE;
  --gray-50: #F8F7FA;
  --gray-100: #F0EDF5;
  --gray-200: #E0DAEB;
  --gray-300: #C5BCD6;
  --gray-400: #9A90B0;
  --gray-500: #6E6385;
  --gray-600: #4E4466;
  --gray-700: #3A3050;
  --gray-800: #2A2040;
  --gray-900: #1A1530;

  /* Tipografia */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(61,45,92,0.06);
  --shadow-md: 0 4px 20px rgba(61,45,92,0.08);
  --shadow-lg: 0 8px 40px rgba(61,45,92,0.10);
  --shadow-xl: 0 16px 60px rgba(61,45,92,0.12);
  --shadow-accent: 0 4px 20px rgba(139,197,161,0.20);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-light { background: var(--primary-light); }
.section-accent { background: var(--accent-light); }
.section-warm { background: var(--warm-light); }
.section-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1E3328 100%);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; }

.highlight {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
  background-size: 100% 0.35em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  padding: 0 0.1em;
}
.highlight-warm {
  background: linear-gradient(120deg, var(--warm) 0%, var(--warm) 100%);
  background-size: 100% 0.35em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  padding: 0 0.1em;
}
.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-badge-accent {
  color: var(--accent-dark);
  background: var(--accent-light);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(123,158,135,0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123,158,135,0.4);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,160,191,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #20BD5A;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  background: #FFFFFF;
  transition: var(--transition);
}
/* Dark navbar starts transparent — used on hero-bg pages */
.navbar.navbar-dark {
  padding: 1rem 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
/* Navbar dark mode — only on pages with hero background image */
.navbar.navbar-dark:not(.scrolled) .navbar-links a { color: rgba(255,255,255,0.85); }
.navbar.navbar-dark:not(.scrolled) .navbar-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.navbar.navbar-dark:not(.scrolled) .navbar-logo { color: var(--white); }
.navbar.navbar-dark:not(.scrolled) .hamburger span { background: var(--white); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  text-decoration: none;
}
.navbar-logo img { height: 40px; width: auto; }
.navbar-logo span { color: var(--primary); }
.navbar-logo .logo-accent { color: var(--accent); font-weight: 400; font-size: 0.75rem; display: block; line-height: 1.1; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.navbar-links a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-links a:hover { color: var(--primary); background: var(--primary-light); }
.navbar-phone {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--white) 0%, var(--primary-light) 40%, var(--accent-light) 80%, var(--warm-light) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,197,161,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123,94,167,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
/* Hero with background image */
.hero.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.hero-bg::before,
.hero.hero-bg::after { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,45,92,0.82) 0%, rgba(30,51,40,0.75) 50%, rgba(61,45,92,0.65) 100%);
  z-index: 1;
}
.hero.hero-bg .hero-content { max-width: 640px; }
.hero.hero-bg h1 { color: var(--white); }
.hero.hero-bg .hero-highlight { color: var(--warm); }
.hero.hero-bg .hero-subtitle { color: rgba(255,255,255,0.85); }
.hero.hero-bg .hero-badge {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}
.hero.hero-bg .hero-badge svg { color: var(--warm); }
.hero.hero-bg .hero-trust-item { color: rgba(255,255,255,0.8); }
.hero.hero-bg .hero-trust-item strong { color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero.hero-bg .container {
  grid-template-columns: 1fr;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(123,94,167,0.12);
}
/* Trust badges hero */
.hero-trust {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--gray-500);
}
.hero-trust-item svg { flex-shrink: 0; }
.hero-trust-item strong {
  color: var(--primary-dark);
  font-weight: 700;
}
.hero-badge svg { color: var(--warm-dark); }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .hero-highlight {
  color: var(--primary);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.8;
}
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  max-width: 460px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--accent-light) 50%, var(--warm-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-placeholder::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%3Ccircle cx='30' cy='30' r='2' fill='%237B5EA7' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-image-placeholder svg { opacity: 0.25; }
.hero-image-placeholder span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.hero-image img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid var(--gray-100);
}
.hero-float-card svg { flex-shrink: 0; }
.hero-float-card.card-1 { bottom: 15%; left: -10%; }
.hero-float-card.card-2 { top: 10%; right: -5%; }

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(61,45,92,0.12);
  border-color: var(--gray-200);
}
.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}
.card:hover .card-icon-accent {
  background: var(--accent-dark);
  color: var(--white);
}
.card:hover .card-icon-warm {
  background: var(--warm-dark);
  color: var(--white);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  background: var(--primary-light);
  color: var(--primary);
  transition: var(--transition);
}
.card-icon-accent { background: var(--accent-light); color: var(--accent-dark); }
.card-icon-warm { background: var(--warm-light); color: var(--warm-dark); }
/* Stagger animation for cards */
.cards-grid .card:nth-child(1) { transition-delay: 0s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.2s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.3s; }
.card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
}
.card-link:hover { gap: 0.5rem; }

.card-featured {
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--white) 100%);
  border-color: var(--primary);
  border-width: 2px;
}

/* ---- ABOUT GRID ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--accent-light) 100%);
  aspect-ratio: auto;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-image:hover img {
  transform: scale(1.04);
}
.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}
.about-image-badge svg { color: var(--warm-dark); }
.about-content {}
.about-content h2 { margin-bottom: 1.2rem; }
.about-content p { margin-bottom: 1rem; }
.about-credentials { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2rem; }
.about-credential {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.about-credential svg { flex-shrink: 0; color: var(--primary); margin-top: 0.15rem; }

/* ---- NUMBERS STRIP ---- */
.numbers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.number-item-big {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--warm);
  line-height: 1.1;
}
.number-item-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ---- DOCTOR GRID ---- */
.doctor-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.doctor-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.doctor-image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(45,74,55,0.9), transparent);
  padding: 2rem 1.5rem 1.2rem;
  z-index: 2;
}
.doctor-image-badge strong {
  display: block;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.doctor-image-badge span {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}
.doctor-info {}
.doctor-info h3 { font-size: 1.5rem; margin-bottom: 0.3rem; }
.doctor-title {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.doctor-credentials-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.doctor-credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.doctor-credential-item svg { flex-shrink: 0; color: var(--primary); margin-top: 0.15rem; }

/* ---- SERVICE DETAIL ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-image, .service-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.service-image img, .service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-benefits { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.service-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.service-benefit svg { flex-shrink: 0; color: var(--primary); margin-top: 0.15rem; }

/* ---- TESTIMONIALS ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(61,45,92,0.12); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.testimonial-stars svg { width: 16px; height: 16px; color: var(--warm-dark); }
.testimonial-text { font-size: 0.92rem; color: var(--gray-600); margin-bottom: 1.2rem; line-height: 1.7; font-style: italic; }
.testimonial-author { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); }
.testimonial-role { font-size: 0.8rem; color: var(--gray-400); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--gray-200); }
.faq-item.active { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-question svg {
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--gray-400);
}
.faq-item.active .faq-question svg { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.5rem 1.2rem;
}
.faq-answer p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; }

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,160,191,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---- FOOTER ---- */
.footer {
  background: linear-gradient(160deg, var(--primary-dark) 0%, #1A1530 100%);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.5rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--warm));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { max-width: 280px; }
.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--accent); margin-top: 0.15rem; }
/* Footer social icons */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { color: var(--white); }

/* ---- PAGE HEADER (internal pages) ---- */
.page-header {
  padding: 8rem 0 3rem;
  background: linear-gradient(160deg, var(--white) 0%, var(--primary-light) 60%, var(--accent-light) 100%);
  text-align: center;
}
.page-header h1 { margin-bottom: 0.8rem; }
.page-header p { font-size: 1.05rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--primary); font-weight: 500; }

/* ---- WHATSAPP FAB ---- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  color: var(--white);
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: var(--white);
}

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-image {
  height: 200px;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-image svg { opacity: 0.2; }
.blog-card-body { padding: 1.5rem; }
.blog-card-date { font-size: 0.78rem; color: var(--gray-400); font-family: var(--font-heading); font-weight: 500; margin-bottom: 0.5rem; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.blog-card-body h3 a { color: var(--primary-dark); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }
.blog-card-footer { padding: 0 1.5rem 1.2rem; }

/* Blog Post */
.post-header { padding: 7rem 0 1.5rem; background: linear-gradient(160deg, var(--white) 0%, var(--primary-light) 60%, var(--accent-light) 100%); }
.post-header h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 0.3rem; }
.post-header p { font-size: 0.95rem; color: var(--gray-500); max-width: 650px; }
.post-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--gray-400); margin-top: 0.8rem; flex-wrap: wrap; }
.post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.post-content h2 { margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.post-content h3 { margin: 2rem 0 0.8rem; font-size: 1.3rem; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--gray-600);
}
.post-content strong { color: var(--primary-dark); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-info-item h4 { margin-bottom: 0.2rem; font-size: 1rem; }
.contact-info-item p { font-size: 0.9rem; color: var(--gray-500); }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ---- COMO FUNCIONA (Timeline) ---- */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.timeline-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
  z-index: 0;
}
.timeline-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.timeline-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.timeline-step:hover .timeline-badge {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}
.timeline-step h4 {
  margin-bottom: 0.4rem;
}
.timeline-step p {
  font-size: 0.88rem;
  color: var(--gray-500);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- CTA SECTION ENHANCED ---- */
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139,197,161,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-image { margin-top: 2rem; }
  .hero-float-card { display: none; }
  .btn-group { justify-content: center; }
  .about-grid, .service-detail, .contact-grid { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 280px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid::before { display: none; }
  .hero-trust { justify-content: center; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.35s ease;
    z-index: 1000;
    gap: 0;
  }
  .navbar-links.active { right: 0; }
  .navbar-links a { padding: 0.8rem 0; font-size: 1rem; border-bottom: 1px solid var(--gray-100); }
  .hamburger { display: flex; }
  .navbar-phone { display: none; }
  .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .numbers-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .timeline-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-trust { gap: 1rem; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-image { max-width: 300px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-image-placeholder { max-width: 320px; margin: 0 auto; }
  .service-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .card { padding: 1.5rem; }
  .number-item-big { font-size: 2rem; }
}
