/* ===================================================
   CLÍNICA PEROTTI — Landing Page Styles
   Premium Dental Experience
   =================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette — refined dental teal/gold */
  --clr-primary: #0A7E8C;
  --clr-primary-light: #0FA4B5;
  --clr-primary-dark: #065A64;
  --clr-primary-subtle: #E8F7F9;

  /* Accent — navy blue */
  --clr-accent: #001C3D;
  --clr-accent-light: #002D63;
  --clr-accent-dark: #000F1F;

  /* Neutrals — Apple-inspired neutral scale */
  --clr-white: #FFFFFF;
  --clr-off-white: #F5F5F7;
  --clr-gray-50: #F2F2F2;
  --clr-gray-100: #E8E8ED;
  --clr-gray-200: #D1D1D6;
  --clr-gray-300: #AEAEB2;
  --clr-gray-400: #8E8E93;
  --clr-gray-500: #636366;
  --clr-gray-600: #3A3A3C;
  --clr-gray-700: #1D1D1F;
  --clr-gray-800: #000000;

  /* Semantic */
  --clr-success: #22C55E;
  --clr-warning: #F59E0B;
  --clr-danger: #EF4444;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  --grad-accent: linear-gradient(135deg, var(--clr-accent-dark) 0%, var(--clr-accent-light) 100%);
  --grad-hero: linear-gradient(135deg, #0F171E 0%, #1A3040 40%, #0A4A54 100%);
  --grad-dark: linear-gradient(180deg, var(--clr-gray-800) 0%, var(--clr-gray-700) 100%);

  /* Typography */
  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;
  --fs-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-section: clamp(4rem, 8vw, 8rem);

  /* Borders & Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows — Apple-style: neutral, subtle */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl: 0 24px 56px rgba(0,0,0,0.12), 0 8px 18px rgba(0,0,0,0.06);
  --shadow-gold: 0 8px 32px rgba(0, 28, 61, 0.28);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-gray-600);
  background-color: var(--clr-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-md);
}

.section-label::before {
  display: none;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 4vw, var(--fs-4xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--clr-gray-700);
  margin-bottom: var(--sp-md);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-gray-400);
  max-width: 600px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.text-center .section-label {
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--grad-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-md);
}

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

.btn--accent {
  background: var(--grad-accent);
  color: var(--clr-white);
  box-shadow: var(--shadow-gold);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 28, 61, 0.35);
}

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

.btn--outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--clr-white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background: #20BD5C;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--fs-sm);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-md);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===================================================
   HEADER
   =================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-base);
  isolation: isolate;
}

/* Glass layer 1 — backdrop blur + SVG distortion */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  filter: url(#glass-distortion);
  isolation: isolate;
  pointer-events: none;
}

/* Glass layer 2 — translucent tint + edge highlights */
.header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 2px 0 0 rgba(255, 255, 255, 0.55),
    inset -2px 0 0 rgba(255, 255, 255, 0.55);
  pointer-events: none;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.08);
}

.header--scrolled::after {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 2px 0 0 rgba(255, 255, 255, 0.7),
    inset -2px 0 0 rgba(255, 255, 255, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-gray-700);
  z-index: 1001;
  transition: color var(--transition-base);
}

.header--scrolled .header__logo {
  color: var(--clr-gray-700);
}

.header__logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
}

.header__menu {
  display: flex;
  gap: var(--sp-xl);
}

.header__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-gray-500);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--sp-xs) 0;
}

.header--scrolled .header__link {
  color: var(--clr-gray-500);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.header__link:hover {
  color: var(--clr-primary);
}

.header--scrolled .header__link:hover {
  color: var(--clr-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.header__cta {
  display: none;
}

/* Header WhatsApp button — same look as hero CTA, scaled down for the nav bar */
.header__cta.hero__cta {
  gap: var(--sp-sm);
  padding: 0.35rem 0.4rem 0.35rem 1.1rem;
  font-size: var(--fs-sm);
  box-shadow: 0 8px 20px rgba(0, 28, 61, 0.28);
}

.header__cta.hero__cta .hero__cta-icon {
  width: 30px;
  height: 30px;
}

/* Mobile menu button */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
  cursor: pointer;
  background: none;
  border: none;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-gray-700);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header--scrolled .header__hamburger span {
  background: var(--clr-gray-700);
}

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* ===================================================
   HERO (print redesign — floating white card)
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: calc(var(--header-height) + var(--sp-lg)) var(--sp-lg) var(--sp-3xl);
  /* card overlaps the next section */
  margin-bottom: -40px;
  z-index: 3;
  overflow: hidden;
}

/* Dotted noise texture background */
.hero__dots {
  position: absolute;
  inset: 0;
  background-color: #FFFFFF;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 28, 61, 0.18) 1px, transparent 0);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 40%, #000 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  /* blue gradient (palette) fading to transparent/white toward the text on the left */
  background:
    radial-gradient(circle at 85% 12%, rgba(80, 120, 190, 0.4) 0%, rgba(0, 28, 61, 0) 55%),
    linear-gradient(115deg, rgba(0, 28, 61, 0) 22%, rgba(20, 52, 110, 0.6) 58%, rgba(0, 28, 61, 0.92) 100%),
    linear-gradient(135deg, #FFFFFF 0%, #EEF3F9 45%, #C4D2E6 100%);
  border-radius: 36px;
  box-shadow: 0 40px 90px rgba(0, 28, 61, 0.16), 0 12px 30px rgba(0, 28, 61, 0.08);
  overflow: hidden;
  animation: heroCardIn 1s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

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

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

/* ---- Left content ---- */
.hero__content {
  position: relative;
  z-index: 4;
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
  animation: heroFadeIn 0.6s ease-out both;
}

.hero__brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.hero__brand-text strong {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--clr-accent);
  line-height: 1.1;
}

.hero__brand-text small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--clr-gray-400);
  text-transform: uppercase;
  margin-top: 2px;
}

.hero__flags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--sp-sm);
}

.hero__flag {
  display: inline-flex;
  width: 46px;
  height: 31px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 28, 61, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero__flag svg,
.hero__flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-lg);
  white-space: nowrap;
  animation: heroFadeIn 0.8s ease-out 0.1s both;
}

.hero__title em {
  font-style: italic;
  color: var(--clr-accent);
}

.hero__description {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--clr-gray-500);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  max-width: 440px;
  animation: heroFadeIn 0.7s ease-out 0.15s both;
}

.hero__description strong {
  color: var(--clr-accent);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  margin-bottom: var(--sp-xl);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 0.7rem 0.7rem 0.7rem 1.75rem;
  background: linear-gradient(135deg, #3E6DB5 0%, #1B3866 60%, #001C3D 100%);
  color: #FFFFFF;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 28px rgba(0, 28, 61, 0.32);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0, 28, 61, 0.4);
}

.hero__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #25D366;
  flex-shrink: 0;
}

/* ---- Social proof row ---- */
.hero__social {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
}

.hero__avatars {
  display: flex;
}

.hero__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 28, 61, 0.18);
  object-fit: cover;
}

.hero__avatar:first-child { margin-left: 0; }

.hero__social-text {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 1.3;
}

.hero__social-text span {
  font-weight: 400;
  color: #FFFFFF;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.hero__rating-g {
  display: inline-flex;
}

.hero__rating-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero__rating-text strong {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-accent);
}

.hero__rating-stars {
  font-size: 0.7rem;
  color: #FBBC05;
  letter-spacing: 1px;
}

/* ---- Right media (doctor + teeth) — transparent so the card gradient shows ---- */
.hero__media {
  position: relative;
  min-height: 560px;
  background: transparent;
  transform: translateX(-12%);
}

.hero__clinic,
.hero__clinic-tint {
  display: none;
}

/* 2D floating teeth */
.hero__tooth {
  position: absolute;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: toothFloat 6s ease-in-out infinite;
}

.hero__tooth--back { z-index: 2; opacity: 0.4; filter: blur(1px) drop-shadow(0 6px 12px rgba(0,0,0,0.25)); }
.hero__tooth--b1 { top: 8%; left: 50%; font-size: 3rem; animation-delay: 0s; }
.hero__tooth--b2 { bottom: 4%; left: 14%; font-size: 3rem; animation-delay: 1.5s; }
.hero__tooth--b3 { bottom: 20%; right: 22%; font-size: 2.6rem; animation-delay: 2.4s; }

.hero__tooth--front { z-index: 5; }
.hero__tooth--f1 { display: none; }
.hero__tooth--f2 { display: none; }
.hero__tooth--f3 { bottom: 30%; left: 14%; animation-delay: 3s; }

/* Liquid-glass chip wrapping the front teeth */
.hero__tooth-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  font-size: 2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 24px rgba(0, 28, 61, 0.25),
    inset 2px 2px 2px rgba(255, 255, 255, 0.55),
    inset -2px -2px 3px rgba(255, 255, 255, 0.35);
}

.hero__tooth--f2 .hero__tooth-glass { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 18px; }
.hero__tooth--f3 .hero__tooth-glass { width: 60px; height: 60px; font-size: 1.7rem; border-radius: 20px; }

@keyframes toothFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

/* Doctor — anchored to the bottom, in front of back teeth, behind front teeth */
.hero__doctor {
  position: absolute;
  z-index: 3;
  bottom: -22%;
  left: -6%;
  transform: translateX(-50%);
  height: 120%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 40px rgba(0, 28, 61, 0.28));
  animation: heroFadeIn 1s ease-out 0.2s both;
}

.hero__badge-card {
  position: absolute;
  z-index: 6;
  bottom: 14%;
  left: -28px;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-sm) var(--sp-xl) var(--sp-sm) var(--sp-sm);
  background: rgba(20, 35, 60, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 28, 61, 0.3);
  animation: floatBadge 3.5s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Second badge — location, to the right of the doctor's shoulder */
.hero__badge-card--location {
  bottom: auto;
  top: 50%;
  left: auto;
  right: 4%;
  transform-origin: right center;
  animation: floatBadgeScaled 3.5s ease-in-out infinite;
  animation-delay: 1.6s;
}

@keyframes floatBadgeScaled {
  0%, 100% { transform: scale(0.8) translateY(0); }
  50% { transform: scale(0.8) translateY(-9px); }
}

/* Stat badges around the doctor (scaled down like the location one) */
.hero__badge-card--stat {
  bottom: auto;
  top: auto;
  left: auto;
  right: auto;
  transform-origin: center;
  animation: floatBadgeScaled 3.8s ease-in-out infinite;
}

.hero__badge-card--s1 { top: 30%; left: -6%; animation-delay: 0.3s; }
.hero__badge-card--s2 { top: 34%; right: 8%; animation-delay: 1.1s; }
.hero__badge-card--s3 { bottom: 6%; right: 2%; animation-delay: 2.2s; }

.hero__badge-avatar--icon {
  color: #FFFFFF;
}

.hero__badge-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.hero__badge-info strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.25;
}

.hero__badge-info small {
  display: block;
  font-size: var(--fs-sm);
  color: #FFFFFF;
}

/* ---- Scroll cue ---- */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--clr-gray-200);
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: heroScrollBounce 2s ease-in-out infinite;
  z-index: 5;
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Bottom fade so the hero blends into the next section ---- */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #FFFFFF 75%);
  pointer-events: none;
  z-index: 1;
}

/* Clean full-width break between the hero and section 2 with depth shadow */
.hero {
  margin-bottom: 0;
}

.hero + .pain-points {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 22px 36px -22px rgba(0, 28, 61, 0.4);
}

/* Soft cast shadow from the hero onto the next section */
.hero + .pain-points::before {
  content: '';
  position: absolute;
  top: -34px;
  left: 0;
  right: 0;
  height: 50px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(0, 28, 61, 0.14) 0%, rgba(0, 28, 61, 0) 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 4;
}

/* ===================================================
   SOCIAL PROOF
   =================================================== */
.social-proof {
  padding: var(--sp-3xl) 0;
  background: linear-gradient(160deg, #E4F4F7 0%, #EAF2F8 100%);
  border-bottom: 1px solid rgba(10, 126, 140, 0.08);
}

.social-proof__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-xl);
}

.social-proof__item {
  text-align: center;
  padding: var(--sp-xl);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-100);
  transition: all var(--transition-base);
}

.social-proof__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-subtle);
}

.social-proof__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-md);
  background: var(--clr-primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  color: var(--clr-primary);
}

.social-proof__number {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--clr-gray-700);
  line-height: 1;
}

.social-proof__label {
  font-size: var(--fs-sm);
  color: var(--clr-gray-400);
  margin-top: var(--sp-xs);
}

/* ===================================================
   PAIN POINTS — Container Scroll
   =================================================== */
.pain-points {
  padding: var(--sp-section) 0 10rem;
  background: linear-gradient(160deg, #F4F7FC 0%, #E6EEF8 100%);
  overflow: hidden;
}

.pain-scroll__header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pain-scroll__scene {
  perspective: 1000px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.pain-scroll__card {
  background: #222222;
  border: 3px solid #6C6C6C;
  border-radius: 30px;
  padding: 16px;
  transform-origin: center top;
  transform: rotateX(28deg) scale(1.1);
  will-change: transform;
  box-shadow:
    0 0 #0000004d,
    0 9px 20px #0000004a,
    0 37px 37px #00000042,
    0 84px 50px #00000026,
    0 149px 60px #0000000a,
    0 233px 65px #00000003;
}

.pain-scroll__card-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #F3F4F6;
  border-radius: 20px;
  padding: 10px;
  height: 540px;
  overflow: hidden;
}

/* ==================== PAIN PANELS (static, no flip) ==================== */
.pain-panel.flip-card {
  cursor: default;
  background: transparent;
  border-radius: 12px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.flip-card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.flip-card__front {
  background-color: var(--clr-accent-dark);
}

.flip-card__front .pain-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card__front .pain-panel__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 28, 61, 0.15) 0%, rgba(0, 28, 61, 0.35) 45%, rgba(0, 19, 43, 0.92) 100%);
  z-index: 1;
}

.flip-card__front .pain-panel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-xl) var(--sp-lg);
  z-index: 2;
}

.pain-panel__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}

.pain-panel__text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.flip-card__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-sm);
  width: max-content;
}

.flip-card__label--problem {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.flip-card__hint,
.flip-card__back {
  display: none;
}

/* ===================================================
   CROWNS (MAIN SECTION)
   =================================================== */
.crowns {
  position: relative;
  padding: var(--sp-section) 0;
  background: #0A1B33;
  overflow: hidden;
}

/* Lightweight gradient + grid background */
.crowns__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 560px at 50% 200px, rgba(56, 189, 248, 0.45), transparent),
    linear-gradient(to right, rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 18px 18px, 18px 18px;
}

.crowns .container {
  position: relative;
  z-index: 2;
}

/* Light text for readability over the dark silk */
.crowns .section-label { color: #9DB6D8; }
.crowns .section-title { color: #FFFFFF; }
.crowns__steps-title { color: #FFFFFF; }

.crowns__intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-3xl);
  align-items: stretch;
  margin-bottom: var(--sp-4xl);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-2xl);
  padding: var(--sp-2xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.4s ease;
}

.crowns__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

.crowns__intro:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.25),
    0 0 40px rgba(120, 160, 230, 0.2);
}

/* Recolor card text back to dark (card is light over the dark bg) */
.crowns__intro .section-label { color: var(--clr-primary); }
.crowns__intro .section-title { color: var(--clr-gray-700); }
.crowns__intro .crowns__description { color: var(--clr-gray-500); }

.crowns__description {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-top: var(--sp-lg);
}

/* Steps */
.crowns__steps-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 3.4vw, var(--fs-4xl));
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

/* ---- Timeline (Como funciona o tratamento) ---- */
.timeline {
  --timeline-line-color: rgba(255, 255, 255, 0.18);
  container: timeline-container / inline-size;
  margin-bottom: var(--sp-4xl);
  position: relative;
}

/* Center progress line (desktop) */
.timeline__line {
  display: none;
}

@container timeline-container (min-width: 80ch) {
  .timeline__line {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: var(--timeline-line-color);
    border-radius: 2px;
    overflow: hidden;
    z-index: 0;
  }

  .timeline__line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #FFFFFF;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transition: height 0.15s linear;
  }
}

.timeline-group {
  display: grid;
  gap: 1rem;
  grid-template-areas:
    "point date"
    "point event";
  margin-inline: 1rem;
}

@container timeline-container (min-width: 80ch) {
  .timeline-group {
    grid-template-areas: "date point event";
    grid-template-columns: 1fr auto 1fr;
    place-content: center;
  }

  .timeline-group:nth-of-type(even) {
    grid-template-areas: "event point date";
  }

  .timeline-group:nth-of-type(even) .timeline-date {
    --translation: -100px;
    justify-content: flex-start;
  }

  .timeline-group:nth-of-type(even) .timeline-event {
    --translation: -100px;
    margin-inline-start: auto;
  }
}

.timeline-event {
  --border-radius: var(--radius-xl);
  --easing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --range-start: contain 30%;
  --range-end: contain 50%;
  --translation: 100px;

  position: relative;
  grid-area: event;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 18px 22px rgba(0, 28, 61, 0.07), 0 50px 60px rgba(0, 28, 61, 0.1);
}

/* Image fills the whole card */
.timeline-event figure {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.timeline-event figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Frosted glass text panel covering the bottom of the image (full width) */
.timeline-event__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  isolation: isolate;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: var(--sp-sm) var(--sp-lg);
}

/* distortion layer */
.timeline-event__body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  filter: url(#glass-distortion);
  isolation: isolate;
  pointer-events: none;
}

.timeline-event__body > * {
  position: relative;
  z-index: 1;
}

.timeline-event h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-accent);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5);
}

.timeline-event p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-top: var(--sp-xs);
  text-shadow: 0 1px 4px rgba(0, 28, 61, 0.35);
}

@container timeline-container (min-width: 80ch) {
  .timeline-event {
    margin-block: 2rem;
    width: min(100% - 1rem, 42cqw);
  }
}

/* JS-driven directional reveal */
.timeline-event {
  opacity: 0;
  transform: translateX(var(--translation));
  transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
}

.timeline-group.is-revealed .timeline-event {
  opacity: 1;
  transform: translateX(0);
}

.timeline-point {
  display: grid;
  grid-area: point;
  place-content: center;
  position: relative;
  width: 100%;
}

.timeline-point span {
  --point-size: 56px;
  --point-color: var(--clr-accent);
  --easing: cubic-bezier(0.34, 1.56, 0.64, 1);
  --range-start: contain 30%;
  --range-end: contain 50%;

  aspect-ratio: 1;
  height: var(--point-size);
  background: var(--point-color);
  border: 4px solid var(--clr-white);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1;
  color: var(--clr-white);
  box-shadow: 0 4px 14px rgba(0, 28, 61, 0.25);
}

.timeline-point span {
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.5s var(--easing), opacity 0.5s ease;
}

.timeline-group.is-revealed .timeline-point span {
  transform: scale(1);
  opacity: 1;
}

.timeline-point::after {
  background: var(--timeline-line-color);
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  left: calc(50% - (4px / 2));
  margin-inline: auto;
  width: 4px;
  top: 0;
  z-index: -1;
}

/* on desktop the global filling line replaces the per-point line */
@container timeline-container (min-width: 80ch) {
  .timeline-point::after { display: none; }
}

.timeline-date {
  --range-start: contain 30%;
  --range-end: contain 50%;
  --translation: -100px;

  grid-area: date;
  display: flex;
  align-items: center;
}

.timeline-date p {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

@container timeline-container (min-width: 80ch) {
  .timeline-date {
    --translation: -100px;
    justify-content: flex-end;
  }
}

.timeline-date {
  opacity: 0;
  transition: opacity 0.6s ease 0.15s;
}

.timeline-group.is-revealed .timeline-date {
  opacity: 1;
}

/* Types */
/* ---- Pricing-style "Tipos de Coroas" cards (dark gradient) ---- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
  margin-bottom: var(--sp-4xl);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(20, 30, 50, 0.6) 0%, rgba(10, 18, 33, 0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--sp-2xl);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.pricing-card--featured {
  border-color: rgba(120, 160, 230, 0.6);
  box-shadow: 0 0 40px rgba(80, 130, 220, 0.25);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-accent);
  color: #FFFFFF;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sp-xs) var(--sp-lg);
  border-radius: var(--radius-full);
  white-space: nowrap;
  z-index: 2;
}

.pricing-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-sm);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-card__tier {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: #FFFFFF;
}

.pricing-card__tier-sub {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: -4px;
}

.pricing-card__price {
  font-size: 2.5rem;
  line-height: 1;
}

.pricing-card__price-img {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.pricing-card__bestfor {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.pricing-card__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-xl) 0;
  flex: 1;
}

.benefit {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
}

.benefit__mark {
  display: grid;
  place-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit--on .benefit__mark {
  background: var(--clr-accent-light);
  color: #FFFFFF;
}

.benefit--off {
  color: rgba(255, 255, 255, 0.4);
}

.benefit--off .benefit__mark {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
}

.pricing-card__footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: auto;
}

.pricing-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}

.pricing-card__meta svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.pricing-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--grad-accent);
  color: #FFFFFF;
  border: 1px solid transparent;
  transition: transform var(--transition-base), background var(--transition-base);
}

.pricing-card__cta:hover { transform: translateY(-2px); }

.pricing-card__cta--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.pricing-card__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Advantages */
.crowns__advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
  margin-top: var(--sp-3xl);
  margin-bottom: var(--sp-4xl);
}

.advantage-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-lg);
  padding: var(--sp-xl);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-100);
  transition: all var(--transition-base);
}

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

.advantage-card__icon {
  width: 48px;
  height: 48px;
  background: var(--clr-primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.advantage-card__title {
  font-weight: 600;
  color: var(--clr-gray-700);
  margin-bottom: var(--sp-xs);
}

.advantage-card__text {
  font-size: var(--fs-sm);
  color: var(--clr-gray-400);
}


/* ===================================================
   FAQ
   =================================================== */
.faq {
  position: relative;
  padding: var(--sp-section) 0;
  background: linear-gradient(160deg, #F4F7FC 0%, #E6EEF8 100%);
  overflow: hidden;
}

.faq__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 28, 61, 0.1) 0%, rgba(0, 28, 61, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.faq .container { position: relative; z-index: 1; }
.faq__header { margin-bottom: var(--sp-2xl); }

/* Tabs */
.faq__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
}

.faq__tab {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-gray-200);
  background: transparent;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-gray-500);
  cursor: pointer;
  transition: color 0.4s ease, border-color 0.4s ease;
  z-index: 0;
}

.faq__tab::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-accent);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.5, 0, 0.2, 1.4);
}

.faq__tab:hover { color: var(--clr-gray-700); }

.faq__tab.is-active {
  color: #FFFFFF;
  border-color: var(--clr-accent);
}

.faq__tab.is-active::before {
  transform: translateY(0);
}

/* Panels */
.faq__panels {
  max-width: 760px;
  margin: 0 auto;
}

.faq__panel { display: none; }

.faq__panel.is-active {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  animation: faqPanelIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

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

.faq-item {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item.active {
  border-color: var(--clr-accent);
  background: #FBFCFE;
  box-shadow: 0 8px 28px rgba(0, 28, 61, 0.08);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  width: 100%;
  padding: var(--sp-lg) var(--sp-xl);
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--clr-gray-500);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
}

.faq-item.active .faq-item__question {
  color: var(--clr-gray-700);
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 28, 61, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  font-size: var(--fs-md);
  color: var(--clr-accent);
}

.faq-item.active .faq-item__icon {
  background: var(--clr-accent);
  color: var(--clr-white);
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item__answer-inner {
  padding: 0 var(--sp-xl) var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--clr-gray-400);
  line-height: 1.8;
}

/* Foot CTA */
.faq__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
}

.faq__foot-text {
  font-size: var(--fs-sm);
  color: var(--clr-gray-500);
}

/* ===================================================
   ABOUT (DR. PEROTTI)
   =================================================== */
.about {
  padding: var(--sp-section) 0;
  background: var(--clr-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-3xl);
  align-items: center;
  background: linear-gradient(135deg, #0A1B33 0%, #001C3D 60%, #00132B 100%);
  border-radius: var(--radius-2xl);
  padding: var(--sp-3xl);
  box-shadow: var(--shadow-xl);
}

.about__content { color: rgba(255, 255, 255, 0.78); }

.about__image-wrapper {
  position: relative;
}

.about__image {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.about__image-wrapper::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 0%, rgba(120, 160, 230, 0.4), transparent 70%);
  border-radius: var(--radius-2xl);
  z-index: -1;
}

.about__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: var(--sp-xs);
}

.about__credentials {
  font-size: var(--fs-sm);
  color: #9DB6D8;
  font-weight: 600;
  margin-bottom: var(--sp-xl);
}

.about__bio {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: var(--sp-xl);
}

.about__bio strong { color: #FFFFFF; font-weight: 600; }

.about__specialties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.about__specialty {
  padding: var(--sp-sm) var(--sp-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
}

.about__cta {
  margin-top: var(--sp-xl);
  align-self: flex-start;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  padding-top: var(--sp-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.about__stat-number {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #FFFFFF;
}

.about__stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials {
  padding: var(--sp-section) 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FC 100%);
  color: var(--clr-gray-700);
}

.testimonials .section-label {
  color: var(--clr-primary);
}

.testimonials .section-title {
  color: var(--clr-gray-700);
}

.testimonials .section-subtitle {
  color: var(--clr-gray-400);
}

.testimonials__slider {
  margin-top: var(--sp-3xl);
  position: relative;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  min-width: calc(33.333% - 16px);
  margin: 0 8px;
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 28, 61, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Google "G" mark top-right */
.testimonial-card::after {
  content: '';
  position: absolute;
  top: var(--sp-lg);
  right: var(--sp-lg);
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M45.12 24.5c0-1.56-.14-3.06-.4-4.5H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.17z'/%3E%3Cpath fill='%2334A853' d='M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.07 15.4 46 24 46z'/%3E%3Cpath fill='%23FBBC05' d='M11.69 28.18c-.44-1.32-.69-2.73-.69-4.18s.25-2.86.69-4.18v-5.7H4.34C2.85 17.09 2 20.45 2 24s.85 6.91 2.34 9.88l7.35-5.7z'/%3E%3Cpath fill='%23EA4335' d='M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.4 2 7.96 6.93 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-md);
  color: #FBBC05;
  font-size: var(--fs-md);
  order: 2;
}

.testimonial-card__text {
  font-size: var(--fs-sm);
  color: var(--clr-gray-500);
  line-height: 1.8;
  font-style: normal;
  order: 3;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  padding-right: 30px;
  order: 1;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-white);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--clr-gray-700);
}

.testimonial-card__procedure {
  font-size: var(--fs-xs);
  color: var(--clr-gray-400);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
}

.testimonials__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-gray-50);
  border: 1px solid var(--clr-gray-200);
  color: var(--clr-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--fs-lg);
}

.testimonials__btn:hover {
  background: var(--clr-gray-100);
  transform: scale(1.05);
}

.testimonials__dots {
  display: flex;
  gap: var(--sp-sm);
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-gray-200);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.testimonials__dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--clr-accent);
}

/* ===================================================
   GALLERY (ANTES & DEPOIS)
   =================================================== */
.gallery {
  position: relative;
  padding: var(--sp-section) 0;
  background: linear-gradient(180deg, #0A1B33 0%, #001C3D 55%, #00132B 100%);
  overflow: hidden;
}

.gallery__glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(70, 120, 210, 0.3) 0%, rgba(0, 28, 61, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

.gallery .container { position: relative; z-index: 1; }
.gallery .section-label { color: #9DB6D8; }
.gallery .section-title { color: #FFFFFF; }
.gallery .section-subtitle { color: rgba(255, 255, 255, 0.7); }

/* Results carousel */
.gallery__carousel {
  position: relative;
  margin-top: var(--sp-3xl);
  padding: 0 var(--sp-3xl);
}

.gallery__viewport {
  overflow: hidden;
}

.gallery__track {
  display: flex;
  gap: var(--sp-xl);
  width: max-content;
  will-change: transform;
  user-select: none;
}

.gallery__track img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background var(--transition-base);
}

.gallery__nav:hover { background: rgba(255, 255, 255, 0.25); }
.gallery__nav--prev { left: 0; }
.gallery__nav--next { right: 0; }

.gallery__cta {
  margin-top: var(--sp-3xl);
}

.gallery-card {
  flex: 0 0 340px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  text-align: center;
}

.gallery-card__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-card__caption {
  font-family: var(--ff-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact {
  padding: var(--sp-section) 0;
  background: var(--clr-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4xl);
  margin-top: var(--sp-3xl);
}

.contact__form {
  background: var(--clr-off-white);
  border: 1px solid var(--clr-gray-100);
  border-radius: var(--radius-2xl);
  padding: var(--sp-3xl);
}

.contact__form-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--clr-gray-700);
  margin-bottom: var(--sp-xl);
}

.form-group {
  margin-bottom: var(--sp-lg);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-gray-600);
  margin-bottom: var(--sp-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem var(--sp-lg);
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  color: var(--clr-gray-700);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(10, 126, 140, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.contact__info-item {
  display: flex;
  gap: var(--sp-lg);
  padding: var(--sp-lg);
  background: var(--clr-off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-gray-100);
  transition: all var(--transition-base);
}

.contact__info-item:hover {
  border-color: var(--clr-primary-subtle);
  box-shadow: var(--shadow-sm);
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.contact__info-label {
  font-size: var(--fs-xs);
  color: var(--clr-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact__info-value {
  font-weight: 600;
  color: var(--clr-gray-700);
  margin-top: var(--sp-xs);
}

.contact__map {
  margin-top: var(--sp-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-gray-100);
  height: 240px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: linear-gradient(to top, #0d2a6b 0%, #050d1f 40%, #0a0a0a 100%);
  color: rgba(255, 255, 255, 0.5);
  padding: var(--sp-3xl) 0 var(--sp-2xl);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-2xl);
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer__copyright {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.45);
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--sp-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2xl);
}

.footer__heading {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--sp-lg);
  letter-spacing: 0.02em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__link {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
  padding: var(--sp-xs) 0;
}

.footer__link:hover {
  color: var(--clr-white);
}

.footer__social-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  text-decoration: none;
}

.footer__logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__cta-wrap {
  display: flex;
  justify-content: center;
  padding-top: var(--sp-3xl);
  margin-top: var(--sp-3xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__cta-btn {
  min-width: 240px;
  justify-content: center;
}

/* ===================================================
   FLOATING WHATSAPP BUTTON
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  font-size: 28px;
  color: white;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ===================================================
   HERO ENTRY ANIMATIONS
   =================================================== */
.hero-wa-animate {
  animation: heroFadeIn 0.8s ease-out 0.1s both;
}

.hero-trust-animate {
  animation: heroFadeIn 0.8s ease-out 0.1s both;
}

/* ===================================================
   SCROLL REVEAL ANIMATIONS
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ===================================================
   iOS 26 LIQUID GLASS
   =================================================== */
.pain-card,
.service-card,
.advantage-card {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.03),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    inset 1.5px 0 0 rgba(255, 255, 255, 0.65),
    inset -1.5px 0 0 rgba(255, 255, 255, 0.65);
}

.pain-card:hover,
.service-card:hover,
.advantage-card:hover {
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    inset 1.5px 0 0 rgba(255, 255, 255, 0.7),
    inset -1.5px 0 0 rgba(255, 255, 255, 0.7);
}


/* Hero float cards — more intense glass */
.hero__float-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    inset 1.5px 0 0 rgba(255, 255, 255, 0.72),
    inset -1.5px 0 0 rgba(255, 255, 255, 0.72);
}

/* ===================================================
   LIQUID GLASS
   =================================================== */

/* Base: establish stacking context for all liquid glass targets */
.social-proof__item,
.about__specialty,
.btn--accent {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Cards: transparent background so the section gradient shows through the glass */
.social-proof__item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.18), 0 0 20px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.social-proof__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Specialty pills (on navy about card) */
.about__specialty {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

/* Layer 1 — backdrop blur + SVG distortion (social-proof, pills, button) */
.social-proof__item::before,
.about__specialty::before,
.btn--accent::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  isolation: isolate;
  pointer-events: none;
}

/* Layer 2 — white tint + inner edge highlights (social-proof, pills, button) */
.social-proof__item::after,
.about__specialty::after,
.btn--accent::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

/* Button: content label sits above glass layers */
.btn--accent .btn__label {
  position: relative;
  z-index: 3;
}

/* Button glass layers use positive z-index so gold gradient shows through from behind */
.btn--accent::before {
  z-index: 1;
}

.btn--accent::after {
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
}

/* ===================================================
   LOCATION SECTION
   =================================================== */
.location__wrapper {
  margin-top: var(--sp-3xl);
}

.location__map {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow-xl);
  border: 6px solid #001C3D;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-xl);
}

.location__open-btn {
  background: var(--grad-accent);
  color: var(--clr-white);
  box-shadow: var(--shadow-md);
  padding: var(--sp-md) var(--sp-2xl);
  font-size: var(--fs-base);
  font-weight: 600;
  gap: var(--sp-sm);
  transition: all var(--transition-base);
}

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

/* ===================================================
   TOUR PELO CONSULTÓRIO (coverflow carousel)
   =================================================== */
.tour {
  position: relative;
  padding: var(--sp-section) 0;
  background: linear-gradient(180deg, #0A1B33 0%, #001C3D 55%, #00132B 100%);
  overflow: hidden;
}

.tour .section-label { color: #9DB6D8; }
.tour .section-title { color: #FFFFFF; }
.tour .section-subtitle { color: rgba(255, 255, 255, 0.7); }

.tour__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(80, 130, 220, 0.35) 0%, rgba(0, 28, 61, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

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

.tour__carousel {
  position: relative;
  margin-top: var(--sp-3xl);
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour__stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.tour__slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 580px;
  margin: -290px 0 0 -210px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity;
}

.tour__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour__slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-md) var(--sp-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour__slide-quote {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.tour__slide-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}

.tour__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background var(--transition-base);
}

.tour__nav:hover { background: rgba(255, 255, 255, 0.25); }
.tour__nav--prev { left: 2%; }
.tour__nav--next { right: 2%; }

@media (max-width: 768px) {
  .tour__carousel { height: 480px; }
  .tour__slide { width: 300px; height: 440px; margin: -220px 0 0 -150px; }
  .tour__nav { width: 40px; height: 40px; }
}

/* ===================================================
   FOCUS RAIL (Tour pelo consultório — 3D coverflow)
   =================================================== */
.focusrail {
  position: relative;
  padding: var(--sp-section) 0 var(--sp-3xl);
  background: #0A0A0A;
  color: #FFFFFF;
  overflow: hidden;
}

.focusrail__lgbt-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--sp-md);
  opacity: 0.55;
}

.focusrail__lgbt-flag {
  width: 18px;
  height: auto;
  border-radius: 3px;
  flex-shrink: 0;
}

.focusrail__lgbt-text {
  color: #FFFFFF;
  font-size: 0.6rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.focusrail__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(180%);
  opacity: 0.4;
  transition: background-image 0.8s ease;
}

.focusrail__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0A0A0A 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.3) 100%);
}

.focusrail__head {
  position: relative;
  z-index: 2;
  margin-bottom: var(--sp-2xl);
}

.focusrail .section-label { color: #5C8AD1; }
.focusrail .section-title { color: #FFFFFF; }
.focusrail .section-subtitle { color: rgba(255, 255, 255, 0.55); }

.focusrail__stage {
  position: relative;
  z-index: 1;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  touch-action: pan-y;
}

.focusrail__track {
  position: relative;
  width: 400px;
  height: 100%;
  transform-style: preserve-3d;
}

.focusrail__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 520px;
  margin: -260px 0 0 -200px;
  border-radius: 18px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #171717;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
              opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity, filter;
}

.focusrail__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.focusrail__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent 40%);
  pointer-events: none;
}

.focusrail__controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-2xl);
}

.focusrail__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.focusrail__btn:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.focusrail__btn:active { transform: scale(0.94); }

.focusrail__counter {
  min-width: 56px;
  text-align: center;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .focusrail__stage { height: 420px; }
  .focusrail__card { width: 270px; height: 380px; margin: -190px 0 0 -135px; }
  .focusrail__track { width: 270px; }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (min-width: 769px) {
  .header__cta {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .hero__card {
    grid-template-columns: 1fr;
  }

  .hero__title {
    white-space: normal;
  }

  /* text/content on top, doctor media below */
  .hero__content { order: 1; }
  .hero__media { order: 2; }

  .hero__media {
    min-height: 380px;
    transform: none;
  }

  .hero__doctor {
    height: 102%;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Tablet: badges de stat levemente menores mas legíveis */
  .hero__badge-card--stat,
  .hero__badge-card--location {
    transform: scale(0.82);
    transform-origin: center;
  }
  @keyframes floatBadgeScaled {
    0%, 100% { transform: scale(0.82) translateY(0); }
    50% { transform: scale(0.82) translateY(-7px); }
  }

  .social-proof__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .pain-scroll__card-inner {
    grid-template-columns: 1fr;
    height: auto;
    gap: 8px;
  }

  .pain-panel {
    height: 280px;
  }

  .crowns__intro {
    grid-template-columns: 1fr;
  }


  .pricing {
    grid-template-columns: 1fr;
  }

  .crowns__advantages {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Flatten 3D tilt on tablets — prevents horizontal overflow */
  .pain-scroll__card {
    transform: none;
    box-shadow: var(--shadow-lg);
  }

  .faq__tab {
    flex: 1 1 auto;
    text-align: center;
  }

  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--sp-xl);
  }

  .about__image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .about__specialties { justify-content: center; }
  .about__cta { display: inline-flex; }

  .about__specialties {
    justify-content: center;
  }

  .testimonial-card {
    min-width: calc(50% - 16px);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--clr-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--sp-xl)) var(--sp-xl) var(--sp-xl);
    transition: right var(--transition-base);
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
    z-index: 1000;
    gap: var(--sp-lg);
  }

  .header__nav.active {
    right: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .header__menu {
    flex-direction: column;
    gap: var(--sp-sm);
    width: 100%;
  }

  .header__link {
    color: var(--clr-gray-600);
    font-size: var(--fs-base);
    padding: var(--sp-sm) 0;
    display: block;
    width: 100%;
  }

  .header__link:hover {
    color: var(--clr-primary);
  }

  .header__actions {
    width: 100%;
    flex-direction: column;
  }

  .header__cta {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
    white-space: normal;
  }

  /* Hero card: overflow visible para os badges não serem cortados nas bordas */
  .hero__card {
    overflow: visible;
  }

  /* Hero media: altura generosa, overflow visível */
  .hero__media {
    min-height: 460px;
    overflow: visible;
  }

  /* Médico: left reduzido em 30% para deslocar o doutor para a esquerda */
  .hero__doctor {
    height: 108%;
    bottom: -2%;
    left: 15%;
    transform: translateX(-72%);
  }

  .hero__content {
    padding: var(--sp-2xl) var(--sp-lg);
    text-align: center;
    align-items: center;
  }

  .hero__brand { justify-content: center; }

  .hero__description {
    max-width: 100%;
  }

  .hero__social {
    gap: var(--sp-sm);
    justify-content: center;
  }

  .hero__cta { font-size: var(--fs-sm); }

  /* ─── Badges: todos reduzidos e reposicionados ao redor do doutor ─── */

  /* Base de todos os badges flutuantes no mobile */
  .hero__badge-card--stat,
  .hero__badge-card--location {
    display: flex;
    transform: scale(0.84);
    transform-origin: center;
  }

  @keyframes floatBadgeScaled {
    0%, 100% { transform: scale(0.84) translateY(0); }
    50% { transform: scale(0.84) translateY(-6px); }
  }

  /* s1 — "Mais de 5000 pacientes": lado esquerdo do doutor */
  .hero__badge-card--s1 {
    top: auto;
    bottom: 32%;
    left: 2%;
    right: auto;
    transform-origin: left center;
    animation-name: floatBadgeScaled;
  }

  /* s2 — "Mais de 15 anos": oculto para não poluir */
  .hero__badge-card--s2 {
    display: none;
  }

  /* s3 — "Mais de 1000 coroas": lado direito do doutor */
  .hero__badge-card--s3 {
    bottom: 20%;
    right: 2%;
    top: auto;
    left: auto;
    transform-origin: right center;
    animation-name: floatBadgeScaled;
  }

  /* Location — "João Pessoa - PB": topo-direito */
  .hero__badge-card--location {
    top: 6%;
    right: 2%;
    left: auto;
    bottom: auto;
    transform-origin: right top;
    animation-name: floatBadgeScaled;
  }

  /* Badge principal — Dr. Charles Perotti: centralizado na base */
  .hero__badge-card:not(.hero__badge-card--stat):not(.hero__badge-card--location) {
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 8px 18px 8px 8px;
    gap: 10px;
  }

  .hero__badge-avatar { width: 42px; height: 42px; }
  .hero__badge-info strong { font-size: var(--fs-sm); }
  .hero__badge-info small { font-size: var(--fs-xs); }

  @keyframes floatBadge {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-7px); }
  }

  /* Dentes flutuantes da frente: ocultos no mobile */
  .hero__tooth--front { display: none; }
  /* Dentes de trás: discretos */
  .hero__tooth--back { opacity: 0.2; font-size: 1.8rem; }

  .social-proof__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }

  /* Hero: dynamic viewport height for mobile browsers */
  .hero {
    min-height: 100svh;
  }

  /* Hero CTA: full-width for easy tapping (44px min target) */
  .hero__ctas {
    width: 100%;
  }
  .hero__cta {
    width: 100%;
    justify-content: center;
  }

  /* Timeline mobile: label full-width no topo, círculo + card abaixo */
  .timeline-group {
    grid-template-areas:
      "date date"
      "point event";
    grid-template-columns: auto 1fr;
    margin-bottom: 3rem;
    margin-inline: var(--sp-sm);
    row-gap: var(--sp-sm);
  }

  .timeline-event {
    aspect-ratio: 3/4;
  }

  .timeline-event__body {
    padding: var(--sp-sm) var(--sp-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .timeline-event__body h2,
  .timeline-event__body p {
    text-align: center;
  }

  /* Focusrail "Tour pelo consultório": padding para o texto não vazar */
  .focusrail__head {
    padding: 0 var(--sp-xl);
    box-sizing: border-box;
  }

  .focusrail .section-subtitle {
    padding: 0 var(--sp-sm);
  }


  /* Crowns: título das etapas com padding seguro */
  .crowns__steps-title {
    padding: 0 var(--sp-md);
    box-sizing: border-box;
  }

  /* Pain panels: taller for readability with single-column layout */
  .pain-panel {
    height: 360px;
  }

  /* Location map: shorter on mobile */
  .location__map {
    height: 280px;
  }
  .location__open-btn {
    width: 100%;
    justify-content: center;
  }

  /* FAQ tabs: horizontal scroll on small screens */
  .faq__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .faq__tabs::-webkit-scrollbar { display: none; }
  .faq__tab { flex-shrink: 0; }

  /* Gallery CTA: full width */
  .gallery__cta {
    width: 100%;
    justify-content: center;
  }

  /* Pricing: tighter padding */
  .pricing-card {
    padding: var(--sp-xl);
  }

  /* About stats: keep 3 columns */
  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .testimonial-card {
    min-width: calc(100% - 16px);
  }

  .gallery-card {
    flex: 0 0 78vw;
    width: 78vw;
  }

  .gallery__carousel {
    padding: 0 var(--sp-xl);
  }

  /* Tour (depoimentos): texto sem vazar */
  .tour .container {
    padding-inline: var(--sp-xl);
    overflow: hidden;
  }

  .tour .section-title,
  .tour .section-subtitle,
  .tour .section-label {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Seções gerais: títulos com padding seguro */
  .section-title {
    padding: 0 var(--sp-xs);
    box-sizing: border-box;
  }

  .about__stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__social-item {
    justify-content: center;
  }

  .footer__top {
    text-align: center;
    align-items: center;
  }

  .footer__cta-wrap {
    padding-top: var(--sp-2xl);
    margin-top: var(--sp-2xl);
  }

  .footer__logo {
    font-size: var(--fs-xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-md);
  }

  /* Hero: tighter padding and smaller border radius */
  .hero {
    padding-left: var(--sp-sm);
    padding-right: var(--sp-sm);
  }
  .hero__card {
    border-radius: 22px;
  }

  /* Hero media: compacto mas ainda com espaço suficiente */
  .hero__media {
    min-height: 400px;
  }

  .hero__doctor {
    height: 105%;
    bottom: 0%;
    left: 15%;
    transform: translateX(-72%);
  }

  /* Badges ainda mais compactos em telas 480px */
  .hero__badge-card--stat,
  .hero__badge-card--location {
    transform: scale(0.72);
  }

  @keyframes floatBadgeScaled {
    0%, 100% { transform: scale(0.72) translateY(0); }
    50% { transform: scale(0.72) translateY(-5px); }
  }

  /* Badge principal: mais compacto */
  .hero__badge-card:not(.hero__badge-card--stat):not(.hero__badge-card--location) {
    padding: 6px 14px 6px 6px;
    gap: 8px;
  }

  /* Timeline: ainda mais espaço em telas pequenas */
  .timeline-group {
    margin-bottom: 3rem;
    margin-inline: 0;
  }

  /* Focusrail head: padding máximo em telas pequenas */
  .focusrail__head {
    padding: 0 var(--sp-lg);
  }

  /* Pain panels: slightly shorter on very small screens */
  .pain-panel {
    height: 300px;
  }

  /* Pricing cards: further reduce padding */
  .pricing-card {
    padding: var(--sp-lg);
  }

  /* FAQ tabs: smaller text for narrow screens */
  .faq__tab {
    font-size: var(--fs-xs);
    padding: 0.45rem 0.85rem;
  }

  .social-proof__inner {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: var(--sp-xl);
  }

  /* Section titles: constrain on very small screens */
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
}
