/* 
  Clínica AVVA - Premium Design System (Silent Luxury Edition)
  Style Sheet
*/

:root {
  /* Colors - Silent Luxury Palette */
  --primary-color: #9C8260; /* More refined, muted gold */
  --primary-light: #C4B298;
  --primary-dark: #7A6142;
  --secondary-color: #1F1F1F; /* Deep charcoal, almost black */
  --text-color: #333333; /* Soft black for text */
  --text-muted: #666666; /* Elegant grey */
  --text-light: #F9F9F9;
  
  /* Backgrounds */
  --bg-color: #FCFCFC; /* Ultra soft off-white */
  --bg-light: #F5F5F5; /* Very subtle grey */
  --bg-dark: #121212; /* Deep luxury dark */
  --bg-soft: #F0F0F0;
  
  /* Borders */
  --border-color: rgba(0,0,0,0.06); /* Extremely subtle borders */
  
  /* Typography */
  --font-heading: 'Tenor Sans', sans-serif;
  --font-body: 'Manrope', sans-serif;
  
  /* Spacing */
  --container-width: 1300px; /* Wider, more breathable */
  --container-gutter: clamp(16px, 4vw, 48px);
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: clamp(2.5rem, 5vw, 4rem);
  --space-3xl: clamp(3.5rem, 7vw, 5rem);
  --section-space: clamp(72px, 9vw, 132px);
  --section-space-compact: clamp(56px, 7vw, 96px);
  --hero-space-top: calc(var(--header-height) + clamp(68px, 9vw, 124px));
  --hero-space-bottom: clamp(72px, 9vw, 112px);
  --hero-stack-space: clamp(1rem, 2.2vw, 1.6rem);
  --hero-cta-space: clamp(1.25rem, 3vw, 2.5rem);
  --header-height: 90px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 40px; /* Sophisticated curvature */
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1); /* Luxury feel easing */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, a, li, h1, h2, h3, h4, h5 {
  overflow-wrap: break-word;
}

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

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

ul {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.italic-serif {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1.5rem;
}

.text-gold { color: var(--primary-color); }
.text-muted { color: var(--text-muted); }
.bold { font-weight: 600; }
.block { display: block; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.text-center { text-align: center; }
.text-constrained-sm { max-width: 600px; margin-left: auto; margin-right: auto; }
.text-constrained-md { max-width: 680px; margin-left: auto; margin-right: auto; }
.text-constrained-lg { max-width: 800px; margin-left: auto; margin-right: auto; }

/* 
  ------------------------------------
  ANIMATIONS & UTILITIES
  ------------------------------------
*/

/* 
  ------------------------------------
  IMAGE SIZE PLACEHOLDER OVERLAYS
  ------------------------------------
*/

[data-img-size] {
  position: relative;
  background-color: #EFEFEF; /* Elegant neutral grey */
  border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
  display: block;
  overflow: hidden;
}

/* Hide actual images if present inside placeholder containers - DISABLED */
[data-img-size] img {
  opacity: 1;
  visibility: visible;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-img-size] video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Label styling */
[data-img-size]::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #555;
  padding: 6px 12px;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  z-index: 20;
  border-radius: 2px;
  pointer-events: none;
  border: 1px solid rgba(0,0,0,0.05);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Ensure wrappers are positioned correctly */
.hero-image-wrapper,
.mosaic-item,
.team-img,
.tech-img-wrapper,
.inst-visual,
.hero-internal,
.treatment-img,
.spa-visual,
.app-mockup,
.tech-unit-img {
  position: relative;
}

/* Container & Grid */
.container {
  width: min(calc(100% - (var(--container-gutter) * 2)), var(--container-width));
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-padding {
  padding: var(--section-space) 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-light); }
.bg-soft { background-color: var(--bg-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 2px; /* Sharper, more editorial */
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.btn-primary:active {
  background-color: #6d563a;
  border-color: #6d563a;
}

.btn-primary:disabled {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  /* margin-left: 1rem; Removed to fix centering issues. Use gap or margin utility instead. */
}

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

.btn-gold {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.btn-gold:hover {
  background-color: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.btn-text {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.btn-text:hover {
  border-color: var(--primary-color);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  /* margin-top: 1rem; Removed to allow better contextual spacing */
  font-size: 0.9rem;
  color: var(--secondary-color);
  transition: gap 0.3s ease;
}

.link-arrow:hover {
  gap: 15px;
  color: var(--primary-color);
}

.link-arrow i {
  width: 16px;
  height: 16px;
}

/* Contextual spacing for link-arrow */
.team-info .link-arrow {
  margin-top: 2rem; /* Increased to 2rem for better spacing */
}

.treatment-info .link-arrow {
  margin-top: 2rem; /* Increased to 2rem for better spacing */
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
  z-index: 1000;
  background-color: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: all 0.4s ease;
}

.header.scrolled {
  background-color: rgba(252, 252, 252, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
  height: 80px; /* Slightly smaller on scroll */
}

.header-container {
  width: calc(100% - 48px);
  max-width: none;
  margin-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height 0.4s ease;
}

.header.scrolled .header-container {
  height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--secondary-color);
}

.logo-sub {
  font-size: 0.55rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-top: 2px;
}

.logo-img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}

/* Footer brand: show only logo in the paragraph footprint */
.footer-brand .logo {
  display: block;
  width: min(100%, 300px);
}

.footer-brand .logo .logo-img {
  width: 100%;
  height: auto;
}

.footer-brand > p.text-muted {
  display: block;
  margin-top: 0.9rem;
}

.desktop-nav {
  display: none;
}

.desktop-nav a {
  margin: 0 14px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--secondary-color);
  position: relative;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  opacity: 1;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.desktop-nav a.nav-sub-link {
  margin-left: -10px;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  text-transform: none;
  color: var(--primary-dark);
  opacity: 0.8;
}

.desktop-nav a.nav-sub-link::before {
  content: '\2022 ';
}

.desktop-nav a.nav-sub-link::after {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding-inline: 26px;
  font-size: 0.8rem;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: min(400px, 92vw);
  height: 100dvh;
  min-height: 100vh;
  background-color: #fff;
  z-index: 1001;
  padding: clamp(1.5rem, 6vw, 3rem);
  box-shadow: -10px 0 40px rgba(0,0,0,0.05);
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  right: 0;
}

.close-menu-btn {
  background: none;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu-cta {
  margin-top: auto;
  padding-top: 2.25rem;
}

.mobile-menu-cta .btn {
  width: 100%;
}

.mobile-menu a {
  font-size: clamp(1.2rem, 4.2vw, 1.5rem);
  font-family: var(--font-heading);
  color: var(--secondary-color);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
}

.mobile-menu a.nav-sub-link {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  color: var(--primary-dark);
  border-bottom: none;
  margin-top: -0.85rem;
  padding: 0 0 0.6rem 1.2rem;
}

/* Hero Section */
.hero {
  padding-top: var(--hero-space-top);
  padding-bottom: var(--hero-space-bottom);
  min-height: clamp(700px, 100vh, 900px);
  display: flex;
  align-items: center;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
  display: grid;
  gap: var(--hero-stack-space);
}

.hero-title {
  font-size: clamp(2.35rem, 6.2vw, 5rem);
  margin-bottom: 0;
  color: var(--secondary-color);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 2.1vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 0;
  max-width: 500px;
  font-weight: 300;
  margin-left: auto;
  margin-right: auto;
}

.hero-features {
  display: flex;
  gap: var(--space-md);
  margin-bottom: 0;
  justify-content: center; /* Center features */
  flex-wrap: wrap;
  row-gap: var(--space-xs);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
}

.feature-item i {
  width: 16px;
  height: 16px;
}

.hero-image-wrapper {
  position: relative;
  height: clamp(340px, 60vw, 600px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.03);
}

/* Why AVVA */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.why-center {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.why-center h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.why-card {
  background: #fff;
  padding: clamp(1.75rem, 4.5vw, 3rem) clamp(1.25rem, 3.5vw, 2rem);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
  border-color: transparent;
}

.why-card i {
  color: var(--primary-color);
  width: 32px;
  height: 32px;
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Specialties Mosaic */
.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  auto-rows: clamp(220px, 45vw, 300px);
}

.mosaic-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.mosaic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.mosaic-item h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}

.mosaic-item .link-arrow {
  color: rgba(255,255,255,0.9);
  margin-top: 5px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mosaic-item:hover img {
  transform: scale(1.05);
}

.mosaic-item:hover .mosaic-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}

.mosaic-item:hover h3 {
  transform: translateY(0);
}

.mosaic-item:hover .link-arrow {
  opacity: 1;
  transform: translateY(0);
}

.specialties-grid {
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.2vw, 22px);
  auto-rows: clamp(220px, 34vw, 300px);
  grid-auto-flow: row;
  align-items: stretch;
}

.specialties-grid .specialty-card {
  border-radius: var(--radius-md);
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.specialties-grid .specialty-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialties-grid .mosaic-overlay {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  opacity: 0.95;
}

.specialties-grid .mosaic-overlay h3 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin-bottom: 0.2rem;
}

.specialties-grid .link-arrow {
  opacity: 1;
  transform: translateY(0);
  font-size: 0.78rem;
}

/* Professionals */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.team-card {
  background: transparent;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.team-img {
  height: clamp(260px, 60vw, 400px);
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
  filter: grayscale(20%);
}

.team-card:hover .team-img img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.team-info {
  padding: 0 0.5rem;
}

.team-grid-centered {
  justify-content: center;
  justify-items: center;
}

.team-grid-centered .team-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

@media (min-width: 768px) {
  .team-grid-centered {
    grid-template-columns: repeat(2, minmax(280px, 380px));
  }
}

@media (min-width: 1200px) {
  .team-grid-centered {
    grid-template-columns: repeat(3, minmax(280px, 380px));
  }
}

.team-grid-centered .team-img {
  margin-left: auto;
  margin-right: auto;
}

.team-grid-centered .team-info {
  text-align: center;
}

.team-grid-centered .team-info .btn {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.team-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.team-info .specialty {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.team-info .crm {
  display: none; /* Deprecated in favor of .professional-credential */
}

.professional-credential {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
  opacity: 0.9;
}

/* Internal Hero Credential */
.hero-internal .professional-credential {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: var(--text-color);
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 1px;
  max-width: 800px;
}

/* Institutional / Bio Credential */
.inst-content .professional-credential {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 5px;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* SPA */
.spa-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.spa h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.spa-list {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

.spa-item {
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 2rem;
  transition: border-color 0.3s ease;
}

.spa-item:hover {
  border-color: var(--primary-color);
}

.spa-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.spa-item p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

.spa-visual {
  position: relative;
  height: 600px;
}

.main-spa-img {
  width: 80%;
  height: 90%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.secondary-spa-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 50%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 8px solid var(--bg-dark);
}

/* Technologies */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.tech-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  border-color: transparent;
  box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

/* Tricologia: enforce equal-size technology cards */
.tricologia-tech-grid {
  align-items: stretch;
  grid-auto-flow: row;
}

.tricologia-tech-grid .tech-card {
  display: grid;
  grid-template-rows: 220px 1fr;
  width: 100%;
  height: 540px;
  min-height: 540px;
  max-height: 540px;
  padding: 2rem;
}

.tricologia-tech-grid .tech-img-wrapper {
  height: 220px;
  margin-bottom: 1.3rem;
}

.tricologia-tech-grid .tech-content {
  min-height: 0;
  overflow: hidden;
}

.tech-img-wrapper {
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.tech-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tech-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.tech-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.link-line {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
  position: relative;
  width: fit-content;
}

.link-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.link-line:hover::after {
  transform: scaleX(0.6);
}

/* Institutional */
.inst-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.inst-visual {
  order: 2;
  border-radius: var(--radius-xl) var(--radius-sm) var(--radius-xl) var(--radius-sm);
  overflow: hidden;
  height: 500px;
  background-color: var(--bg-color);
}

.inst-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}

.mission-origin-img {
  object-position: center 24%;
}

.inst-visual video,
.origin-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inst-content {
  order: 1;
}

.inst-layout-single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.inst-layout-single .inst-content {
  order: 1;
  width: min(100%, 900px);
  margin: 0 auto;
}

.inst-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
}

.inst-content .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Hero CTA Spacing Override */
.hero-content > * {
  margin: 0;
}

.hero-content .overline {
  margin-bottom: 0;
}

.hero-content .btn {
  margin-top: var(--hero-cta-space);
}

.inst-content .btn {
  margin-top: var(--space-xl);
}

.journey-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 100%);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  padding: clamp(1.9rem, 4.5vw, 3.2rem);
  box-shadow: 0 24px 60px rgba(0,0,0,0.05);
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.journey-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
}

.journey-panel .overline {
  display: inline-block;
  margin-bottom: 1rem;
}

.journey-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.journey-panel h2 {
  margin-bottom: 1rem;
  max-width: none;
}

.journey-panel .lead {
  margin-bottom: 1.75rem;
  max-width: none;
}

.journey-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: calc(var(--radius-md) + 2px);
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 26px rgba(0,0,0,0.03);
}

.journey-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(198, 169, 119, 0.14);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.journey-step h3 {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.journey-step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.journey-section {
  position: relative;
  overflow: hidden;
}

.journey-section .container {
  position: relative;
}

.journey-layout {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  max-width: 1120px;
  margin-inline: auto;
}

.journey-layout::before {
  content: '';
  position: absolute;
  inset: 4% 6%;
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    radial-gradient(circle at top left, rgba(198, 169, 119, 0.12), transparent 38%),
    radial-gradient(circle at bottom right, rgba(198, 169, 119, 0.08), transparent 34%),
    rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.03);
  z-index: 0;
}

.journey-layout > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .journey-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-step-wide {
    grid-column: 1 / -1;
  }
}

/* App Section */
.app-section {
  padding: var(--section-space-compact) 0;
  background-color: var(--bg-light);
}

.app-container {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4.5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
}

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

.app-platforms {
  display: flex;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.app-platform-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  font-weight: 600;
  background-color: var(--bg-soft);
  padding: 6px 14px;
  border-radius: 20px;
}

.app-content h2 {
  font-size: clamp(2rem, 4.6vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.app-content p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.app-buttons {
  display: flex;
  gap: 1.5rem; /* Increased from 1rem */
  flex-wrap: wrap;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
  padding: 14px 32px; /* Matched to main button padding */
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-store:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(166, 138, 100, 0.2);
}

.btn-store i {
  font-size: 1.2rem;
}

/* Hide mockup on mobile */
.app-mockup-wrapper {
  position: relative;
  height: 500px;
  display: none;
  justify-content: center;
  align-items: center;
}

.app-phone-placeholder {
  width: 280px;
  height: 550px;
  background-color: var(--secondary-color);
  border-radius: 40px;
  border: 8px solid #2a2a2a;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  z-index: 2;
  transform: rotate(-5deg);
}

.app-screen-content {
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-header-mock {
  height: 80px;
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo-mock {
  font-family: var(--font-heading);
  letter-spacing: 2px;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.app-body-mock {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mock-card {
  height: 80px;
  background-color: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 15px;
}

.mock-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
}

.mock-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-line {
  height: 6px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 3px;
}

.mock-line.short {
  width: 60%;
}

.app-feature-card {
  position: absolute;
  background: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.app-feature-card i {
  color: var(--primary-color);
}

.feat-1 {
  top: 100px;
  right: 0;
  animation-delay: 0s;
}

.feat-2 {
  bottom: 100px;
  left: 0;
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Footer */
.footer {
  background-color: #fff;
  border-top: 1px solid var(--border-color);
  padding: var(--section-space-compact) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-links, .footer-contact, .footer-hours {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* Increased from 15px for better readability */
}

.footer h4 {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
}

.footer a, .footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
}

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

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: clamp(18px, 4vw, 40px);
  right: clamp(18px, 4vw, 40px);
  width: clamp(52px, 7vw, 60px);
  height: clamp(52px, 7vw, 60px);
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.95);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.active-reveal {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* 
  ------------------------------------
  BEFORE & AFTER EDITORIAL COMPONENT
  ------------------------------------
*/

.before-after-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.case-study {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.4s ease;
}

.case-study:hover {
  transform: translateY(-5px);
}

.comparison-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.comparison-image {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--bg-soft);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.comparison-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
}

/* CSS Crop Classes for Before/After Montages */
.comparison-image img.crop-antes,
.comparison-image img.crop-depois,
.comparison-image img.crop-v-antes,
.comparison-image img.crop-v-depois {
  position: absolute;
  left: 0;
  top: 0;
}

/* Horizontal Montage: esquerda = antes, direita = depois */
.comparison-image img.crop-antes {
  width: 200%;
  object-position: left center;
}

.comparison-image img.crop-depois {
  width: 200%;
  object-position: right center;
}

/* Vertical Montage: cima = antes, baixo = depois */
.comparison-image img.crop-v-antes {
  height: 200%;
  object-position: center top;
}

.comparison-image img.crop-v-depois {
  height: 200%;
  object-position: center bottom;
}

/* Specific placeholder style for before/after to look premium */
.comparison-image [data-img-size] {
  height: 100%;
  background-color: #F5F5F5;
  border: none;
}

.comparison-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.03);
  z-index: 10;
  pointer-events: none;
}

.case-info {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.case-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.case-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .comparison-frame {
    gap: 0.8rem;
  }

  .tricologia-tech-grid .tech-card {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    grid-template-rows: 210px 1fr;
    padding: 1.6rem;
  }

  .tricologia-tech-grid .tech-img-wrapper {
    height: 210px;
  }

}

/* Internal Page Hero */
.hero-internal {
  padding-top: var(--hero-space-top);
  padding-bottom: var(--hero-space-bottom);
  min-height: clamp(560px, 72vh, 760px);
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
  justify-content: center; /* Center horizontally */
}

.hero-internal-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center; /* Center text */
  margin: 0 auto; /* Center block */
  display: grid;
  gap: var(--hero-stack-space);
}

.hero-internal h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 0;
  color: var(--secondary-color);
}

.hero-internal p {
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  color: var(--secondary-color);
  max-width: 600px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.hero-internal-content > * {
  margin: 0;
}

.hero-internal-content .overline {
  margin-bottom: 0;
}

.hero-internal-content .btn {
  margin-top: var(--hero-cta-space);
}

.hero-internal-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  mask-image: linear-gradient(to left, rgba(0,0,0,1), transparent);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), transparent);
}

.hero-internal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5 !important;
}

.hero-internal-professional .hero-internal-img img {
  object-position: center 20%;
}

/* Page Intro */
.page-intro {
  max-width: 900px;
  margin: 0 auto var(--space-3xl) auto;
  text-align: center;
}

.page-intro p {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
}

/* Treatment Grid (SPA & Tricologia) */
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.treatment-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.4s ease;
}

.treatment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}

.treatment-img {
  height: 280px;
  overflow: hidden;
}

.treatment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.treatment-card:hover .treatment-img img {
  transform: scale(1.05);
}

.treatment-info {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.treatment-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.treatment-info p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.spa-video-frame img {
  filter: brightness(0.82);
}

.spa-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spa-video-card:hover .spa-video-frame img {
  transform: scale(1.04);
}

.spa-video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--secondary-color);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spa-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(18,18,18,0.06), rgba(18,18,18,0.34));
}

.spa-video-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 1rem;
}

.spa-video-meta {
  max-width: 22ch;
  color: rgba(255,255,255,0.94);
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 500;
}

.benefits-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.benefit-visual-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0,0,0,0.03);
}

.benefit-visual-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.benefit-gallery-trigger {
  cursor: zoom-in;
}

.benefit-gallery-trigger:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.benefit-visual-caption {
  padding: 1.2rem 1.2rem 1.35rem;
}

.benefit-visual-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.benefit-visual-caption p {
  margin: 0;
}

.benefit-before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.benefit-before-after-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 18px 34px rgba(25, 25, 25, 0.05);
}

.benefit-before-after-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
}

.benefit-before-after-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
}

.benefit-before-after-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.benefit-before-after-image span {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  min-height: 1.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--secondary-color);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  pointer-events: none;
}

.results-before-after-section {
  background: var(--bg-light);
  padding-top: clamp(44px, 6vw, 72px);
  padding-bottom: clamp(86px, 10vw, 126px);
}

.results-before-after-section .section-header {
  margin-bottom: clamp(3rem, 5vw, 4.35rem);
}

.results-before-after-section .section-header h2 {
  font-size: clamp(2.35rem, 4.3vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 0.55rem;
}

.results-before-after-section .section-header p,
.benefits-treatment-section .section-header p {
  font-size: 1rem;
  line-height: 1.7;
}

.results-before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.result-comparison-card {
  background: #fff;
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 18px 38px rgba(31, 31, 31, 0.045);
}

.result-comparison-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin: 0;
}

.result-comparison-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
}

.result-comparison-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.result-comparison-image span {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  min-height: 1.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--secondary-color);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  pointer-events: none;
}

.benefits-treatment-section {
  background: #fff;
  padding-top: clamp(92px, 10vw, 132px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.benefits-treatment-section .section-header {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.benefits-treatment-section .section-header h2 {
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.benefit-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(3.5rem, 6vw, 5rem);
}

.benefit-summary-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 14px 32px rgba(31, 31, 31, 0.035);
}

.benefit-summary-card h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}

.benefit-summary-card p {
  margin: 0;
  line-height: 1.7;
}

.benefit-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(12, 12, 12, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.benefit-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.benefit-lightbox-dialog {
  width: min(94vw, 1180px);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.28s ease;
}

.benefit-lightbox.is-open .benefit-lightbox-dialog {
  transform: translateY(0) scale(1);
}

.benefit-lightbox-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.benefit-lightbox-title {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.benefit-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-lightbox-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.benefit-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.benefit-lightbox-viewport {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0b0b0b;
}

.benefit-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  transform-origin: center center;
  transition: transform 0.2s ease;
  user-select: none;
}

.benefit-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.benefit-lightbox-prev { left: 10px; }
.benefit-lightbox-next { right: 10px; }

.benefit-lightbox-error {
  color: #f0f0f0;
  text-align: center;
  padding: 18px;
  display: none;
}

.benefit-lightbox-error.is-visible {
  display: block;
}

.benefit-lightbox-bottombar {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 12px 14px;
  color: #ddd;
  background: rgba(255, 255, 255, 0.03);
}

.benefit-lightbox-counter {
  font-size: 0.8rem;
}

.benefit-lightbox-dots {
  display: inline-flex;
  gap: 8px;
}

.benefit-lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.benefit-lightbox-dot.is-active {
  background: #fff;
}

/* Contact Page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.contact-info-block {
  padding: clamp(1.5rem, 4.5vw, 3rem);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
}

.info-item {
  margin-bottom: var(--space-xl);
}

.info-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(166, 138, 100, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.map-placeholder {
  width: 100%;
  height: 500px;
  background-color: #f0f0f0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Map Frame */
.map-section {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgba(0,0,0,0.05);
}

.map-frame {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: all 0.5s ease;
  filter: none;
  display: block;
}

.map-frame:hover {
  filter: none;
  box-shadow: none;
}

/* Premium Tech Layout */
.tech-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 7vw, 8rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

.tech-unit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.tech-unit-content {
  order: 2;
}

.tech-unit-img {
  order: 1;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.tech-unit-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #f4f2ed;
}

/* Keep these technology assets fully visible (no crop) across all sections */
img[src*="tecnologia-ultraformer-mpt.jpg"],
img[src*="tecnologia-depilacao-laser.jpg"],
img[src*="tecnologia-laser-solon"],
img[src*="tecnologia-bioimpedancia.jpg"],
img[src*="tecnologia-hakon.png"],
img[src*="tecnologia-elleva-max.png"],
img[src*="tecnologia-laser-solon-nova.png"],
img[src*="Equipamento_DermaVision"],
img[src*="Diamond Tech"],
img[src*="Intense"] {
  object-fit: contain !important;
  object-position: center !important;
  background-color: #f4f2ed;
}

.tech-unit h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.tech-unit p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: 1.05rem;
}

.list-premium {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
}

.list-premium li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.list-premium li::before {
  content: '';
  min-width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translateY(-2px);
}

.list-check {
  list-style: none;
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--secondary-color);
  font-size: 0.98rem;
}

.list-check li i {
  color: var(--primary-color);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.quote-grid,
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.quote-card,
.protocol-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 4vw, 2.4rem);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.quote-card p,
.protocol-card p {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.quote-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* Before-After Cards for Emagrecimento */
.before-after-card {
  padding: 1.5rem;
}

.before-after-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.before-after-img-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base image style for individual before/after images */
.before-after-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
  transition: transform 0.4s ease;
  background-color: var(--bg-soft);
}

/* Hover effect for before/after images */
.before-after-img-wrapper:hover img {
  transform: scale(1.02);
}

/* Clean label badges - high z-index to stay above everything */
.before-after-img-wrapper::before {
  content: attr(data-label);
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--secondary-color);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Adjust badge position for DEPOIS cards */
.before-after-img-wrapper[data-label="DEPOIS"]::before {
  left: auto;
  right: 10px;
}

/* Remove any interfering pseudo-elements */
.before-after-img-wrapper::after {
  display: none !important;
}

@media (max-width: 575px) {
  .before-after-images {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
}

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

  .quote-grid .quote-card {
    grid-column: span 1;
  }

  .quote-grid .quote-card:nth-child(4),
  .quote-grid .quote-card:nth-child(5),
  .quote-grid .quote-card:nth-child(6) {
    grid-column: auto;
  }
}

.protocol-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background-color: rgba(198, 169, 119, 0.14);
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.protocol-card h3 {
  margin-bottom: 0.85rem;
}

.tech-headline {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.tech-unit-content .link-arrow {
  margin-top: 2rem;
}

/* Responsive Queries */
@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr 1.2fr;
  }
  
  .desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-btn { display: none; }
  .mobile-menu { display: none; }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-center {
    grid-column: 1 / -1;
  }
  
  .mosaic-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
  }
  
  .item-large { grid-column: span 2; grid-row: span 2; }
  .item-tall { grid-row: span 2; }
  .item-wide { grid-column: span 2; }

  .specialties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    auto-rows: 280px;
  }

  .benefits-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid.team-grid-centered {
    grid-template-columns: repeat(2, minmax(280px, 380px));
    justify-content: center;
  }
  
  .spa-layout {
    grid-template-columns: 1fr 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tricologia-tech-grid .tech-card {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }
  
  .inst-layout {
    grid-template-columns: 1fr 1fr;
  }

  .inst-layout.inst-layout-single {
    grid-template-columns: 1fr;
  }

  .inst-layout.inst-layout-single .inst-content {
    order: 1;
    width: min(100%, 900px);
    margin: 0 auto;
  }
  
  .inst-visual { order: 1; }
  .inst-content { order: 2; }
  
  .app-mockup-wrapper {
    display: flex;
  }
  
  .app-container {
    grid-template-columns: 1fr 1fr;
    padding: clamp(3rem, 5.5vw, 5rem);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Internal Pages Responsive */
  .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
  }
  
  .hero-internal-img {
    width: 50%;
  }
}

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

  .specialties-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    auto-rows: 260px;
  }

  .benefits-visual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-before-after-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .results-before-after-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .team-grid.team-grid-centered {
    grid-template-columns: repeat(3, minmax(280px, 380px));
    justify-content: center;
  }
  
  .treatment-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tricologia-tech-grid .tech-card {
    height: 540px;
    min-height: 540px;
    max-height: 540px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  
  /* Tech Unit Desktop Alternating */
  .tech-unit {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
  
  .tech-unit:nth-child(even) .tech-unit-content {
    order: 1;
  }
  
  .tech-unit:nth-child(even) .tech-unit-img {
    order: 2;
  }
}

@media (min-width: 1024px) {
  /* Kept for existing rules */
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --section-space: clamp(64px, 7vw, 96px);
    --section-space-compact: clamp(48px, 5.5vw, 80px);
    --hero-space-bottom: clamp(64px, 8vw, 88px);
  }

  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    auto-rows: 280px;
  }

  .item-large { grid-column: span 2; grid-row: span 2; }
  .item-tall { grid-row: span 2; }
  .item-wide { grid-column: span 2; }
}

@media (max-width: 767px) {
  :root {
    --header-height: 76px;
    --section-space: clamp(52px, 10vw, 68px);
    --section-space-compact: clamp(40px, 8vw, 56px);
    --hero-space-bottom: clamp(52px, 10vw, 72px);
    --hero-stack-space: clamp(0.85rem, 2.8vw, 1.2rem);
    --hero-cta-space: clamp(1.5rem, 4vw, 2.5rem);
  }

  .header-container {
    height: var(--header-height);
  }

  .header.scrolled {
    height: 72px;
  }

  .header.scrolled .header-container {
    height: 72px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-actions .btn {
    padding: 10px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 44px);
    padding-bottom: clamp(56px, 9vw, 72px);
    min-height: auto;
  }

  .hero-container {
    gap: var(--space-xl);
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-features {
    gap: 18px;
    margin-top: var(--space-2xs);
  }

  .hero-image-wrapper {
    height: 280px;
    border-radius: var(--radius-md);
  }

  .team-grid {
    gap: 2.5rem;
  }

  .spa-layout {
    gap: 3rem;
  }

  .footer-grid {
    gap: 3rem;
  }

  .map-frame {
    height: 360px;
  }

  .comparison-frame {
    grid-template-columns: 1fr;
  }

  .before-after-images {
    gap: 0.6rem;
  }

  .before-after-img-wrapper {
    aspect-ratio: 1/1;
  }

  .section-header,
  .page-intro,
  .inst-content,
  .treatment-info,
  .tech-content,
  .highlight-content,
  .team-info,
  .why-card,
  .spa-content,
  .case-info,
  .quote-card,
  .protocol-card,
  .journey-header,
  .journey-step,
  .diff-card,
  .faq-item .accordion-content,
  .footer-brand,
  .footer-links,
  .footer-contact,
  .footer-hours,
  .footer-bottom,
  .inst-layout,
  .inst-layout-single {
    text-align: center;
  }

  .section-header h2,
  .inst-content h2,
  .highlight-content h3,
  .page-intro h2,
  .why-card h3,
  .treatment-info h3,
  .tech-content h3 {
    text-align: center;
  }

  .section-header p,
  .page-intro p,
  .inst-content p,
  .treatment-info p,
  .tech-content p,
  .highlight-content p,
  .team-info p,
  .why-card p,
  .spa-content p,
  .case-info p,
  .quote-card p,
  .protocol-card p,
  .journey-step p,
  .diff-card p {
    margin-left: auto;
    margin-right: auto;
  }

  .inst-content .btn,
  .treatment-info .link-arrow,
  .tech-content .link-line,
  .highlight-content .btn,
  .team-info .btn,
  .team-info .link-arrow,
  .spa-content .btn,
  .case-info .btn,
  .footer-contact a,
  .footer-hours a,
  .btn {
    margin-left: auto;
    margin-right: auto;
    display: inline-flex;
    justify-content: center;
  }

  .list-premium li,
  .list-check li,
  .procedure-list-premium li {
    justify-content: center;
    text-align: center;
  }

  .footer-links,
  .footer-contact,
  .footer-hours,
  .mobile-menu nav {
    align-items: center;
  }

  .feature-item,
  .app-platforms,
  .app-buttons,
  .hero-features {
    justify-content: center;
  }

  .inst-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .inst-visual {
    height: 300px;
    border-radius: var(--radius-md);
  }

  .inst-content {
    padding: 0;
  }

  .treatment-grid {
    gap: 1.5rem;
  }

  .treatment-card {
    margin-bottom: 0;
  }

  .tech-grid {
    gap: 1.5rem;
  }

  .tech-card {
    padding: 1.5rem;
  }

  .tech-img-wrapper {
    height: 180px;
  }

  .why-grid {
    gap: 1.5rem;
  }

  .why-card {
    padding: 1.5rem 1.25rem;
  }

  .mosaic-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    auto-rows: 200px;
  }

  .mosaic-item {
    border-radius: var(--radius-sm);
  }

  .mosaic-overlay {
    padding: 1rem;
  }

  .mosaic-overlay h3 {
    font-size: 1rem;
  }

  .mosaic-overlay p {
    display: none;
  }

  .item-large { grid-column: span 2; grid-row: span 2; }

  .quote-grid {
    gap: 1.5rem;
  }

  .quote-card {
    padding: 1.5rem;
  }

  .protocol-grid {
    gap: 1.5rem;
  }

  .protocol-card {
    padding: 1.5rem;
  }

  .benefits-visual-grid {
    gap: 1.5rem;
  }

  .benefit-visual-media {
    aspect-ratio: 1/1;
  }

  .benefit-visual-caption {
    padding: 1rem;
  }

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

  .team-card {
    max-width: 100%;
  }

  .team-img {
    height: 280px;
  }

  .differentials-grid {
    gap: 1.5rem;
  }

  .diff-card {
    padding: 1.5rem;
  }

  .procedures-grid {
    gap: 1.5rem;
  }

  .procedure-card {
    padding: 1.5rem;
  }

  .highlight-block {
    padding: 2rem 1.25rem;
    margin: 2rem 0;
  }

  .highlight-content h3 {
    text-align: center;
  }

  .journey-panel {
    padding: 2rem 1.5rem;
  }

  .journey-step {
    padding: 1.5rem;
  }

  .faq-grid {
    gap: 1rem;
  }

  .faq-item {
    margin-bottom: 0;
  }

  .accordion-header {
    padding: 1.25rem;
    gap: 1rem;
  }

  .accordion-header span:first-child {
    font-size: 0.95rem;
  }

  .accordion-content {
    padding: 0 1.25rem 0.5rem;
  }

  .accordion-content p {
    padding-bottom: 1.25rem;
  }

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

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

  .footer-brand .logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links,
  .footer-contact,
  .footer-hours {
    align-items: center;
    text-align: center;
  }

  .footer-hours a {
    justify-content: center;
  }

  .app-container {
    padding: 2rem 1.5rem;
  }

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

  .btn-store {
    width: 100%;
    justify-content: center;
  }

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

  .form-control {
    padding: 14px 16px;
  }

  .map-placeholder {
    height: 280px;
  }

  .tech-unit {
    gap: 2rem;
  }

  .tech-unit-content {
    text-align: center;
  }

  .tech-unit-img {
    height: 280px;
  }

  .benefit-lightbox-dialog {
    border-radius: 8px;
  }

  .benefit-lightbox-nav {
    display: none;
  }

  .quote-meta {
    text-align: center;
    display: block;
  }

  .specialty {
    text-align: center;
    display: block;
  }

  .team-info .btn {
    width: 100%;
    max-width: 280px;
  }

  .tech-unit-content .btn,
  .inst-content .btn {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 520px) {
  .header-actions .btn {
    display: none;
  }

  .mobile-menu nav {
    gap: 1.5rem;
  }

  .mobile-menu a {
    padding-bottom: 12px;
  }

  .hero-internal {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: clamp(48px, 8vw, 64px);
    min-height: auto;
  }

  .hero-internal-content {
    text-align: center;
    max-width: 100%;
    padding: 0 1rem;
  }

  .hero-internal h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-internal p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .app-container {
    gap: 2.5rem;
    padding: 1.5rem;
  }

  .app-platforms {
    flex-wrap: wrap;
  }

  .app-buttons {
    gap: 1rem;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
    auto-rows: 220px;
  }

  .item-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .tech-grid {
    gap: 1.25rem;
  }

  .tech-card {
    padding: 1.25rem;
  }

  .treatment-grid {
    gap: 1.25rem;
  }

  .why-grid {
    gap: 1.25rem;
  }

  .quote-grid {
    gap: 1.25rem;
  }

  .protocol-grid {
    gap: 1.25rem;
  }

  .benefits-visual-grid {
    gap: 1.25rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .highlight-block {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }

  .journey-panel {
    padding: 1.5rem 1rem;
  }

  .differentials-grid {
    gap: 1.25rem;
  }

  .procedures-grid {
    gap: 1.25rem;
  }

  .footer-grid {
    gap: 2.5rem;
    padding: 0 0.5rem;
  }

  .map-frame {
    height: 280px;
  }

  .tech-unit-content h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .before-after-editorial {
    gap: 2rem;
  }

  .before-after-images {
    gap: 0.5rem;
  }
}

@media (max-width: 420px) {
  .mobile-menu {
    max-width: 100%;
  }

  .hero-features {
    justify-content: center;
  }

  .feature-item {
    font-size: 0.8rem;
  }

  .map-frame {
    height: 320px;
  }
}

/* 
  ------------------------------------
  PROFESSIONAL PAGE STYLES (NEW)
  ------------------------------------
*/

/* Differentials Section */
.differentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.diff-card {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.diff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
  border-color: transparent;
}

.diff-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.diff-card:hover .diff-icon {
  background-color: var(--primary-color);
  color: #fff;
}

.diff-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
}

.diff-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0;
}

/* Procedures / Expertise Section */
.procedures-wrapper {
  margin-top: var(--space-xl);
}

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.procedure-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.procedure-card:hover {
  border-color: var(--primary-light);
  background-color: var(--bg-light);
}

.procedure-icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.procedure-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.procedure-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Highlighted Block */
.highlight-block {
  background-color: var(--bg-soft); /* Using existing variable */
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.highlight-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.highlight-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
}

.highlight-block h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.highlight-block p {
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.home-intro-block {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,245,239,0.92) 100%);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}

.home-intro-block .overline {
  display: inline-block;
  margin-bottom: 1rem;
}

.home-intro-block h3 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.home-intro-block p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* List Style for Procedures (Alternative) */
.procedure-list-premium {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 3rem;
}

.procedure-list-premium li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: baseline;
}

.procedure-list-premium li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.procedure-list-premium li strong {
  color: var(--secondary-color);
  margin-right: 5px;
  font-weight: 600;
}

/* FAQ / Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--secondary-color);
  gap: 1.5rem;
}

.accordion-header span:first-child {
  flex: 1;
  text-align: left;
  line-height: 1.4;
}

.accordion-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 var(--space-lg);
}

.accordion-content p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .accordion-header {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .accordion-header span:first-child {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .accordion-content {
    padding: 0 1.25rem 0.5rem;
  }
  
  .accordion-content p {
    padding-bottom: 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-header span:first-child {
    font-size: 0.9rem;
  }
  
  .accordion-icon {
    font-size: 0.8rem;
  }
}

/* Laboratory Page Styles */
.exam-category-block {
  margin-bottom: var(--space-2xl);
}

.exam-category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.exam-category-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
  opacity: 0.5;
}

.exam-card-simple {
  background: #fff;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.exam-card-simple:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  background-color: #FAFAFA;
}

.exam-card-simple h4 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.exam-card-simple p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}
