/* ============================================================
   Dr. Daniel Amaya — Alergólogo en Medellín
   Design System v2 • Stitch + Liquid Glass + Anime.js
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Stitch Design Tokens ----------------------------------- */
:root {
  /* Primary Palette — Medical Teal (softer) */
  --stitch-primary: #0891b2;
  --stitch-primary-dark: #0e7490;
  --stitch-primary-deeper: #155e75;
  --stitch-primary-light: #ecfeff;
  --stitch-primary-accent: #06b6d4;
  --stitch-primary-glow: rgba(8, 145, 178, 0.15);

  /* Secondary */
  --stitch-secondary: #1e3a5f;
  --stitch-secondary-dark: #0f2942;

  /* Neutrals */
  --stitch-neutral-900: #111827;
  --stitch-neutral-700: #374151;
  --stitch-neutral-600: #4b5563;
  --stitch-neutral-400: #9ca3af;
  --stitch-neutral-200: #e5e7eb;
  --stitch-neutral-100: #f3f4f6;
  --stitch-neutral-50: #f9fafb;
  --stitch-white: #ffffff;

  /* Typography — Stitch INTER */
  --stitch-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --stitch-fs-xs: 0.75rem;
  --stitch-fs-sm: 0.875rem;
  --stitch-fs-base: 1rem;
  --stitch-fs-lg: 1.125rem;
  --stitch-fs-xl: 1.25rem;
  --stitch-fs-2xl: 1.5rem;
  --stitch-fs-3xl: 1.875rem;
  --stitch-fs-4xl: 2.25rem;
  --stitch-fs-5xl: 3rem;

  /* Spacing */
  --stitch-space-xs: 0.25rem;
  --stitch-space-sm: 0.5rem;
  --stitch-space-md: 1rem;
  --stitch-space-lg: 1.5rem;
  --stitch-space-xl: 2rem;
  --stitch-space-2xl: 3rem;
  --stitch-space-3xl: 4rem;
  --stitch-space-4xl: 6rem;

  /* Roundness — Stitch ROUND_TWELVE */
  --stitch-radius: 12px;
  --stitch-radius-lg: 16px;
  --stitch-radius-xl: 24px;
  --stitch-radius-full: 9999px;

  /* Shadows */
  --stitch-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --stitch-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --stitch-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --stitch-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Liquid Glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.4s var(--ease-out-expo);
  --transition-fast: all 0.2s ease;
}

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

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

body {
  font-family: var(--stitch-font);
  font-weight: 400;
  line-height: 1.7;
  color: var(--stitch-neutral-700);
  background: var(--stitch-white);
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--stitch-neutral-900);
}

/* --- Utilities ---------------------------------------------- */
.stitch-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--stitch-space-lg);
}

.stitch-section {
  padding: var(--stitch-space-4xl) 0;
  position: relative;
}

.stitch-section--alt {
  background: var(--stitch-neutral-50);
}

.stitch-section--primary-light {
  background: var(--stitch-primary-light);
}

.stitch-section__label {
  display: inline-block;
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--stitch-space-sm);
}

.stitch-section__title {
  font-size: var(--stitch-fs-4xl);
  color: var(--stitch-neutral-900);
  margin-bottom: var(--stitch-space-md);
}

.stitch-section__subtitle {
  font-size: var(--stitch-fs-lg);
  color: var(--stitch-neutral-600);
  max-width: 680px;
}

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

.stitch-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons ------------------------------------------------ */
.stitch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--stitch-space-sm);
  padding: 0.85rem 2rem;
  font-family: var(--stitch-font);
  font-size: var(--stitch-fs-base);
  font-weight: 600;
  border: none;
  border-radius: var(--stitch-radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.stitch-btn--primary {
  background: linear-gradient(135deg, var(--stitch-primary) 0%, var(--stitch-primary-dark) 100%);
  color: var(--stitch-white);
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.3);
}

.stitch-btn--primary:hover {
  box-shadow: 0 6px 22px rgba(8, 145, 178, 0.45);
  transform: translateY(-2px);
}

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

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

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

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

/* Liquid Glass Button */
.stitch-btn--glass {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--stitch-neutral-900);
  box-shadow: var(--glass-shadow);
}

.stitch-btn--glass:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAV — Liquid Glass
   ============================================================ */
.stitch-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--stitch-space-md) 0;
  background: transparent;
  transition: var(--transition);
}

.stitch-header--scrolled {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 1px 0 var(--glass-border), var(--stitch-shadow-sm);
  padding: var(--stitch-space-sm) 0;
}

.stitch-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stitch-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--stitch-space-md);
}

.stitch-nav__logo img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stitch-nav__logo-text {
  font-size: var(--stitch-fs-base);
  font-weight: 700;
  color: var(--stitch-secondary);
  line-height: 1.25;
}

.stitch-nav__logo-text span {
  display: block;
  font-weight: 400;
  font-size: var(--stitch-fs-xs);
  color: var(--stitch-primary);
  letter-spacing: 0.02em;
}

.stitch-nav__links {
  display: flex;
  align-items: center;
  gap: var(--stitch-space-xl);
}

.stitch-nav__link {
  font-size: var(--stitch-fs-sm);
  font-weight: 500;
  color: var(--stitch-neutral-700);
  position: relative;
  padding: 4px 0;
}

.stitch-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--stitch-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.stitch-nav__link:hover::after,
.stitch-nav__link--active::after {
  width: 100%;
}

.stitch-nav__link:hover,
.stitch-nav__link--active {
  color: var(--stitch-primary);
}

.stitch-nav__cta {
  margin-left: var(--stitch-space-md);
}

.stitch-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.stitch-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stitch-neutral-900);
  transition: var(--transition);
  border-radius: 2px;
}

/* ============================================================
   HERO — Soft Gradient + Landscape Photo
   ============================================================ */
.stitch-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Soft gradient instead of aggressive dark */
  background: linear-gradient(160deg, #f0fdfa 0%, #e0f7fa 25%, #ecfeff 50%, #f0f9ff 75%, #f8fafc 100%);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: var(--stitch-space-3xl);
}

/* Subtle animated blobs */
.stitch-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.stitch-hero__blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  top: -10%;
  right: 10%;
}

.stitch-hero__blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.2) 0%, transparent 70%);
  bottom: 5%;
  left: -5%;
}

.stitch-hero__blob--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 30%;
}

.stitch-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stitch-space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.stitch-hero__content {
  position: relative;
}

.stitch-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--stitch-space-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius-full);
  padding: 0.45rem 1.1rem;
  font-size: var(--stitch-fs-sm);
  font-weight: 500;
  color: var(--stitch-primary-dark);
  margin-bottom: var(--stitch-space-xl);
  box-shadow: var(--glass-shadow);
}

.stitch-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
}

.stitch-hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--stitch-neutral-900);
  line-height: 1.08;
  margin-bottom: var(--stitch-space-lg);
}

.stitch-hero__title em {
  font-style: normal;
  color: var(--stitch-primary);
}

.stitch-hero__text {
  font-size: var(--stitch-fs-lg);
  color: var(--stitch-neutral-600);
  margin-bottom: var(--stitch-space-2xl);
  max-width: 520px;
  line-height: 1.8;
}

.stitch-hero__actions {
  display: flex;
  gap: var(--stitch-space-md);
  flex-wrap: wrap;
}

/* Stats with glass cards */
.stitch-hero__stats {
  display: flex;
  gap: var(--stitch-space-lg);
  margin-top: var(--stitch-space-3xl);
}

.stitch-hero__stat {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius);
  padding: var(--stitch-space-md) var(--stitch-space-lg);
  box-shadow: var(--glass-shadow);
  text-align: center;
  min-width: 120px;
  transition: var(--transition);
}

.stitch-hero__stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stitch-hero__stat-value {
  font-size: var(--stitch-fs-2xl);
  font-weight: 800;
  color: var(--stitch-primary-dark);
}

.stitch-hero__stat-label {
  font-size: var(--stitch-fs-xs);
  color: var(--stitch-neutral-600);
  margin-top: 2px;
}

/* Hero Image — landscape photo with glass frame */
.stitch-hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.stitch-hero__img-frame {
  position: relative;
  border-radius: var(--stitch-radius-xl);
  overflow: hidden;
  max-width: 520px;
  width: 100%;
  /* Liquid glass border */
  background: var(--glass-bg);
  padding: 6px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px rgba(8, 145, 178, 0.15), 0 8px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stitch-hero__img-frame img {
  width: 100%;
  display: block;
  border-radius: calc(var(--stitch-radius-xl) - 4px);
  object-fit: cover;
  aspect-ratio: 16/10;
}

/* Floating glass badge on image */
.stitch-hero__img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 10;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius);
  padding: var(--stitch-space-md) var(--stitch-space-lg);
  display: flex;
  align-items: center;
  gap: var(--stitch-space-md);
  box-shadow: var(--glass-shadow);
}

.stitch-hero__img-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--stitch-primary), var(--stitch-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.stitch-hero__img-badge-text {
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-neutral-900);
  line-height: 1.3;
}

.stitch-hero__img-badge-text span {
  display: block;
  font-weight: 400;
  font-size: var(--stitch-fs-xs);
  color: var(--stitch-neutral-600);
}

/* Animated SVG decorations */
.stitch-hero__svg-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
}

.stitch-hero__svg-deco--1 {
  top: 15%;
  right: 5%;
  width: 120px;
}

.stitch-hero__svg-deco--2 {
  bottom: 10%;
  left: 3%;
  width: 90px;
}

.stitch-hero__svg-deco--3 {
  top: 60%;
  right: 45%;
  width: 60px;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.stitch-certs {
  padding: var(--stitch-space-2xl) 0;
  background: var(--stitch-white);
  border-bottom: 1px solid var(--stitch-neutral-200);
}

.stitch-certs__label {
  text-align: center;
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--stitch-space-lg);
}

.stitch-certs__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--stitch-space-3xl);
  flex-wrap: wrap;
}

.stitch-certs__item {
  opacity: 0.5;
  transition: var(--transition);
  filter: grayscale(100%);
}

.stitch-certs__item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.stitch-certs__item img {
  height: 102px;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   ABOUT
   ============================================================ */
.stitch-about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--stitch-space-3xl);
  align-items: center;
}

.stitch-about__img-wrapper {
  position: relative;
  border-radius: var(--stitch-radius-xl);
  overflow: hidden;
  box-shadow: var(--stitch-shadow-xl);
}

.stitch-about__img-wrapper img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: var(--stitch-radius-xl);
}

.stitch-about__text {
  color: var(--stitch-neutral-600);
  margin-bottom: var(--stitch-space-md);
  line-height: 1.8;
}

.stitch-about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stitch-space-md);
  margin: var(--stitch-space-xl) 0;
}

.stitch-about__highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--stitch-space-sm);
}

.stitch-about__highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--stitch-radius);
  /* Liquid glass */
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--glass-shadow);
}

.stitch-about__highlight-text {
  font-size: var(--stitch-fs-sm);
  font-weight: 500;
  color: var(--stitch-neutral-700);
  line-height: 1.4;
}

/* ============================================================
   CONDITIONS — Liquid Glass Cards
   ============================================================ */
.stitch-conditions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stitch-space-xl);
  margin-top: var(--stitch-space-2xl);
}

.stitch-condition-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--stitch-radius-lg);
  /* Liquid Glass */
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.stitch-condition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(8, 145, 178, 0.12);
  border-color: var(--stitch-primary-accent);
}

.stitch-condition-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.stitch-condition-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.stitch-condition-card:hover .stitch-condition-card__img {
  transform: scale(1.05);
}

.stitch-condition-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--stitch-primary);
  font-size: var(--stitch-fs-base);
}

.stitch-condition-card:hover .stitch-condition-card__overlay {
  opacity: 1;
}

.stitch-condition-card__body {
  padding: var(--stitch-space-lg);
}

.stitch-condition-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--stitch-radius);
  background: var(--stitch-primary-light);
  border: 1px solid rgba(8, 145, 178, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--stitch-space-md);
  font-size: 24px;
}

.stitch-condition-card__title {
  font-size: var(--stitch-fs-lg);
  font-weight: 700;
  color: var(--stitch-neutral-900);
  margin-bottom: var(--stitch-space-sm);
}

.stitch-condition-card__desc {
  font-size: var(--stitch-fs-sm);
  color: var(--stitch-neutral-600);
  line-height: 1.6;
}

/* ============================================================
   PROCEDURES
   ============================================================ */
.stitch-procedures__grid {
  display: flex;
  justify-content: center;
  gap: var(--stitch-space-2xl);
  flex-wrap: wrap;
  margin-top: var(--stitch-space-2xl);
}

.stitch-procedure-item {
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  min-width: 120px;
}

.stitch-procedure-item:hover {
  transform: translateY(-4px);
}

.stitch-procedure-item__icon {
  width: 170px;
  height: 170px;
  border-radius: 0;
  margin: 0 auto var(--stitch-space-md);
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: var(--transition);
  overflow: visible;
}

.stitch-procedure-item:hover .stitch-procedure-item__icon {
  transform: scale(1.08);
}

.stitch-procedure-item__icon img {
  width: 122px;
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18)) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: var(--transition);
}

.stitch-procedure-item:hover .stitch-procedure-item__icon img {
  filter: drop-shadow(0 10px 20px rgba(8,145,178,0.25)) drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.stitch-procedure-item__label {
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-neutral-700);
}

/* ============================================================
   INFO / EDUCATIONAL
   ============================================================ */
.stitch-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stitch-space-3xl);
  align-items: center;
}

.stitch-info__visual img {
  width: 100%;
  border-radius: var(--stitch-radius-xl);
  box-shadow: var(--stitch-shadow-lg);
}

.stitch-info__text {
  color: var(--stitch-neutral-600);
  margin-bottom: var(--stitch-space-md);
  line-height: 1.8;
}

/* ============================================================
   TESTIMONIALS — Glass Carousel
   ============================================================ */
.stitch-testimonials {
  overflow: hidden;
}

.stitch-testimonials__track {
  display: flex;
  gap: var(--stitch-space-xl);
  transition: transform 0.6s var(--ease-out-expo);
}

.stitch-testimonial-card {
  flex: 0 0 calc(33.333% - var(--stitch-space-xl));
  min-width: 300px;
  /* Liquid Glass */
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius-lg);
  padding: var(--stitch-space-xl);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.stitch-testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.stitch-testimonial-card__stars {
  color: #fbbf24;
  font-size: var(--stitch-fs-lg);
  margin-bottom: var(--stitch-space-md);
  letter-spacing: 2px;
}

.stitch-testimonial-card__quote {
  font-size: var(--stitch-fs-base);
  color: var(--stitch-neutral-700);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--stitch-space-lg);
  padding-left: var(--stitch-space-lg);
  border-left: 3px solid var(--stitch-primary-light);
}

.stitch-testimonial-card__author {
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-neutral-900);
}

.stitch-testimonial-card__source {
  font-size: var(--stitch-fs-xs);
  color: var(--stitch-neutral-400);
}

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

.stitch-testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--stitch-neutral-700);
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}

.stitch-testimonials__btn:hover {
  border-color: var(--stitch-primary);
  color: var(--stitch-primary);
}

.stitch-testimonials__dots {
  display: flex;
  gap: 8px;
}

.stitch-testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stitch-neutral-200);
  cursor: pointer;
  transition: var(--transition);
}

.stitch-testimonials__dot--active {
  background: var(--stitch-primary);
  width: 28px;
  border-radius: var(--stitch-radius-full);
}

/* ============================================================
   FAQ
   ============================================================ */
.stitch-faq__list {
  max-width: 800px;
  margin: var(--stitch-space-2xl) auto 0;
}

.stitch-faq-item {
  /* Liquid Glass */
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius);
  margin-bottom: var(--stitch-space-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--glass-shadow);
}

.stitch-faq-item:hover {
  border-color: var(--stitch-primary-accent);
}

.stitch-faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--stitch-space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--stitch-font);
  font-size: var(--stitch-fs-base);
  font-weight: 600;
  color: var(--stitch-neutral-900);
  text-align: left;
  gap: var(--stitch-space-md);
}

.stitch-faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--stitch-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stitch-primary);
  font-size: 12px;
  transition: var(--transition);
}

.stitch-faq-item--open .stitch-faq-item__icon {
  transform: rotate(180deg);
  background: var(--stitch-primary);
  color: white;
}

.stitch-faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo), padding 0.3s ease;
}

.stitch-faq-item--open .stitch-faq-item__answer {
  max-height: 300px;
  padding: 0 var(--stitch-space-lg) var(--stitch-space-lg);
}

.stitch-faq-item__answer p {
  font-size: var(--stitch-fs-sm);
  color: var(--stitch-neutral-600);
  line-height: 1.7;
}

/* ============================================================
   CTA
   ============================================================ */
.stitch-cta {
  padding: var(--stitch-space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Color overlay on top of parallax */
.stitch-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.85) 0%, rgba(21, 94, 117, 0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

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

.stitch-cta__title {
  font-size: var(--stitch-fs-4xl);
  color: var(--stitch-white);
  margin-bottom: var(--stitch-space-md);
  position: relative;
}

.stitch-cta__text {
  font-size: var(--stitch-fs-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--stitch-space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.stitch-cta__actions {
  display: flex;
  gap: var(--stitch-space-md);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.stitch-footer {
  background: var(--stitch-secondary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--stitch-space-3xl) 0 var(--stitch-space-lg);
}

.stitch-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--stitch-space-3xl);
  padding-bottom: var(--stitch-space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stitch-footer__brand img {
  height: 48px;
  margin-bottom: var(--stitch-space-md);
}

.stitch-footer__brand p {
  font-size: var(--stitch-fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 300px;
}

.stitch-footer__title {
  font-size: var(--stitch-fs-base);
  font-weight: 700;
  color: white;
  margin-bottom: var(--stitch-space-lg);
}

.stitch-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--stitch-space-sm);
  margin-bottom: var(--stitch-space-md);
  font-size: var(--stitch-fs-sm);
}

.stitch-footer__contact-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 2px;
  color: var(--stitch-primary-accent);
}

.stitch-footer__schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--stitch-fs-sm);
  padding: var(--stitch-space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stitch-footer__socials {
  display: flex;
  gap: var(--stitch-space-md);
  margin-top: var(--stitch-space-lg);
}

.stitch-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.stitch-footer__social-link:hover {
  background: var(--stitch-primary);
  color: white;
  transform: translateY(-2px);
}

.stitch-footer__map {
  border-radius: var(--stitch-radius);
  overflow: hidden;
  height: 200px;
  margin-top: var(--stitch-space-md);
}

.stitch-footer__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) contrast(1.1);
  transition: var(--transition);
}

.stitch-footer__map:hover iframe {
  filter: grayscale(0) contrast(1);
}

.stitch-footer__bottom {
  text-align: center;
  padding-top: var(--stitch-space-xl);
  font-size: var(--stitch-fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   WHATSAPP FLOATING
   ============================================================ */
.stitch-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.stitch-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.stitch-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.stitch-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.stitch-reveal--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.stitch-reveal--delay-1 {
  transition-delay: 0.1s !important;
}

.stitch-reveal--delay-2 {
  transition-delay: 0.2s !important;
}

.stitch-reveal--delay-3 {
  transition-delay: 0.3s !important;
}

/* ============================================================
   ANIMATED SVG DECORATIONS (scroll-driven)
   ============================================================ */
.svg-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.svg-deco svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px) {
  .stitch-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stitch-hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .stitch-hero__actions {
    justify-content: center;
  }

  .stitch-hero__stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .stitch-hero__visual {
    order: -1;
  }

  .stitch-hero__img-frame {
    max-width: 440px;
    margin: 0 auto;
  }

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

  .stitch-about__highlights {
    justify-content: center;
  }

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

  .stitch-info__grid {
    grid-template-columns: 1fr;
  }

  .stitch-footer__grid {
    grid-template-columns: 1fr;
  }

  .stitch-section__title {
    font-size: var(--stitch-fs-3xl);
  }
}

@media(max-width:768px) {
  .stitch-nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 80px var(--stitch-space-xl) var(--stitch-space-xl);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    align-items: flex-start;
    z-index: 1000;
  }

  .stitch-nav__links--open {
    right: 0;
  }

  .stitch-nav__toggle {
    display: flex;
  }

  .stitch-hero__title {
    font-size: var(--stitch-fs-4xl);
  }

  .stitch-conditions__grid {
    grid-template-columns: 1fr;
  }

  .stitch-procedures__grid {
    gap: var(--stitch-space-lg);
  }

  .stitch-procedure-item__icon {
    width: 64px;
    height: 64px;
  }

  .stitch-testimonial-card {
    flex: 0 0 calc(100% - var(--stitch-space-xl));
    min-width: unset;
  }

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

  .stitch-section__title {
    font-size: var(--stitch-fs-2xl);
  }
}

@media(max-width:480px) {
  .stitch-hero__title {
    font-size: var(--stitch-fs-3xl);
  }

  .stitch-about__highlights {
    grid-template-columns: 1fr;
  }

  .stitch-certs__grid {
    gap: var(--stitch-space-xl);
  }

  .stitch-certs__item img {
    height: 68px;
  }

  .stitch-hero__stats {
    gap: var(--stitch-space-sm);
  }

  .stitch-hero__stat {
    min-width: 90px;
    padding: var(--stitch-space-sm) var(--stitch-space-md);
  }
}

/* ============================================================
   PAGE HERO — internal pages banner
   ============================================================ */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f7fa 40%, #ecfeff 100%);
  overflow: hidden;
}

.page-hero__bg-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(8, 145, 178, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(14, 116, 144, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--stitch-fs-sm);
  color: var(--stitch-neutral-500);
  margin-bottom: var(--stitch-space-lg);
}

.page-hero__breadcrumb a {
  color: var(--stitch-primary);
}

.page-hero__breadcrumb span {
  color: var(--stitch-neutral-400);
}

.page-hero__label {
  margin-bottom: var(--stitch-space-md) !important;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--stitch-neutral-900);
  line-height: 1.1;
  margin-bottom: var(--stitch-space-md);
}

.page-hero__subtitle {
  font-size: var(--stitch-fs-xl);
  color: var(--stitch-neutral-600);
  line-height: 1.6;
  max-width: 600px;
}

/* ============================================================
   PROCEDURE DETAIL — shared layout for procedure pages
   ============================================================ */
.proc-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stitch-space-3xl);
  align-items: start;
  margin-top: var(--stitch-space-2xl);
}

.proc-detail__img {
  border-radius: var(--stitch-radius-xl);
  overflow: hidden;
  box-shadow: var(--stitch-shadow-xl);
}

.proc-detail__img img {
  width: 100%;
  object-fit: cover;
}

.proc-detail__text {
  color: var(--stitch-neutral-600);
  line-height: 1.8;
  margin-bottom: var(--stitch-space-md);
}

.proc-detail__list {
  list-style: none;
  padding: 0;
  margin: var(--stitch-space-lg) 0;
}

.proc-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--stitch-space-sm);
  padding: var(--stitch-space-sm) 0;
  font-size: var(--stitch-fs-base);
  color: var(--stitch-neutral-700);
  border-bottom: 1px solid var(--stitch-neutral-100);
}

.proc-detail__list li::before {
  content: '✓';
  color: var(--stitch-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.proc-detail__aside {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius-lg);
  padding: var(--stitch-space-xl);
  box-shadow: var(--glass-shadow);
}

.proc-detail__aside h3 {
  font-size: var(--stitch-fs-xl);
  margin-bottom: var(--stitch-space-lg);
}

.proc-detail__step {
  display: flex;
  gap: var(--stitch-space-md);
  margin-bottom: var(--stitch-space-lg);
}

.proc-detail__step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--stitch-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--stitch-fs-sm);
}

.proc-detail__step-text {
  font-size: var(--stitch-fs-sm);
  color: var(--stitch-neutral-600);
  line-height: 1.6;
}

.proc-detail__step-text strong {
  display: block;
  color: var(--stitch-neutral-900);
  margin-bottom: 2px;
}

/* Related procedures nav */
.proc-nav {
  display: flex;
  gap: var(--stitch-space-md);
  flex-wrap: wrap;
  margin-top: var(--stitch-space-xl);
}

.proc-nav__item {
  display: flex;
  align-items: center;
  gap: var(--stitch-space-sm);
  padding: var(--stitch-space-md) var(--stitch-space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius-full);
  font-size: var(--stitch-fs-base);
  font-weight: 600;
  color: var(--stitch-neutral-700);
  transition: var(--transition);
}

.proc-nav__item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
  transition: var(--transition);
}

.proc-nav__item:hover {
  border-color: var(--stitch-primary);
  color: var(--stitch-primary);
  box-shadow: 0 4px 16px rgba(8,145,178,0.12);
}

.proc-nav__item:hover img {
  transform: scale(1.1);
}

.proc-nav__item--active {
  background: var(--stitch-primary);
  color: white;
  border-color: var(--stitch-primary);
}

.proc-nav__item--active:hover {
  color: white;
}

/* ============================================================
   BLOG — cards grid
   ============================================================ */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--stitch-space-xl);
  margin-top: var(--stitch-space-2xl);
}

.blog-card {
  border-radius: var(--stitch-radius-lg);
  overflow: hidden;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(8, 145, 178, 0.1);
}

.blog-card__img {
  overflow: hidden;
  height: 200px;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.blog-card__body {
  padding: var(--stitch-space-lg);
}

.blog-card__tag {
  display: inline-block;
  font-size: var(--stitch-fs-xs);
  font-weight: 600;
  color: var(--stitch-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--stitch-space-sm);
}

.blog-card__title {
  font-size: var(--stitch-fs-lg);
  font-weight: 700;
  margin-bottom: var(--stitch-space-sm);
  color: var(--stitch-neutral-900);
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: var(--stitch-fs-sm);
  color: var(--stitch-neutral-600);
  line-height: 1.6;
  margin-bottom: var(--stitch-space-md);
}

.blog-card__meta {
  font-size: var(--stitch-fs-xs);
  color: var(--stitch-neutral-400);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-primary);
  margin-top: var(--stitch-space-sm);
}

/* ============================================================
   CONTACT — form + info
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--stitch-space-3xl);
  margin-top: var(--stitch-space-2xl);
}

.contact__form {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius-xl);
  padding: var(--stitch-space-2xl);
  box-shadow: var(--glass-shadow);
}

.contact__form h2 {
  font-size: var(--stitch-fs-2xl);
  margin-bottom: var(--stitch-space-xl);
}

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

.form-group label {
  display: block;
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-neutral-700);
  margin-bottom: var(--stitch-space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--stitch-font);
  font-size: var(--stitch-fs-base);
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--stitch-neutral-200);
  border-radius: var(--stitch-radius);
  outline: none;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--stitch-primary);
  box-shadow: 0 0 0 3px var(--stitch-primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stitch-space-md);
}

.contact__info h3 {
  font-size: var(--stitch-fs-xl);
  margin-bottom: var(--stitch-space-lg);
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--stitch-space-md);
  padding: var(--stitch-space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius);
  margin-bottom: var(--stitch-space-md);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.contact__info-item:hover {
  border-color: var(--stitch-primary);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--stitch-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact__info-text {
  font-size: var(--stitch-fs-sm);
  color: var(--stitch-neutral-700);
  line-height: 1.6;
}

.contact__info-text strong {
  display: block;
  color: var(--stitch-neutral-900);
  margin-bottom: 2px;
}

/* ============================================================
   CONVENIOS — grid of logos
   ============================================================ */
.convenios__intro {
  max-width: 720px;
  font-size: var(--stitch-fs-lg);
  color: var(--stitch-neutral-600);
  line-height: 1.8;
  margin: var(--stitch-space-xl) 0;
}

.convenios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--stitch-space-xl);
  margin-top: var(--stitch-space-2xl);
}

.convenio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stitch-space-md);
  padding: var(--stitch-space-xl);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--stitch-radius-lg);
  box-shadow: var(--glass-shadow);
  text-align: center;
  transition: var(--transition);
}

.convenio-card:hover {
  transform: translateY(-4px);
  border-color: var(--stitch-primary);
  box-shadow: 0 12px 36px rgba(8, 145, 178, 0.1);
}

.convenio-card__img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(0.5);
  transition: var(--transition);
}

.convenio-card:hover .convenio-card__img {
  filter: grayscale(0);
}

.convenio-card__name {
  font-size: var(--stitch-fs-sm);
  font-weight: 600;
  color: var(--stitch-neutral-700);
}

.convenios__note {
  margin-top: var(--stitch-space-2xl);
  padding: var(--stitch-space-lg) var(--stitch-space-xl);
  background: var(--stitch-primary-light);
  border-left: 4px solid var(--stitch-primary);
  border-radius: var(--stitch-radius);
  color: var(--stitch-primary-darker, #0e7490);
  font-size: var(--stitch-fs-base);
}

/* ============================================================
   PRIVACY POLICY — typography
   ============================================================ */
.privacy__content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy__content h2 {
  font-size: var(--stitch-fs-2xl);
  margin: var(--stitch-space-2xl) 0 var(--stitch-space-md);
  color: var(--stitch-primary-dark);
}

.privacy__content h3 {
  font-size: var(--stitch-fs-xl);
  margin: var(--stitch-space-xl) 0 var(--stitch-space-sm);
}

.privacy__content p {
  color: var(--stitch-neutral-600);
  line-height: 1.9;
  margin-bottom: var(--stitch-space-md);
}

.privacy__content ul {
  padding-left: var(--stitch-space-xl);
  margin-bottom: var(--stitch-space-md);
}

.privacy__content ul li {
  color: var(--stitch-neutral-600);
  line-height: 1.8;
  margin-bottom: var(--stitch-space-sm);
}

/* ============================================================
   RESPONSIVE — internal pages
   ============================================================ */
@media(max-width:1024px) {
  .proc-detail__grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media(max-width:768px) {
  .page-hero {
    padding: 110px 0 60px;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .proc-nav {
    flex-direction: column;
  }
}

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

  .page-hero__title {
    font-size: var(--stitch-fs-2xl);
  }
}

/* ============================================================
   VIDEO GALLERY (Cinematic Viewer)
   ============================================================ */
.stitch-video-playlist {
  margin-bottom: var(--stitch-space-3xl);
}

.stitch-video-playlist__title {
  font-size: var(--stitch-fs-xl);
  color: var(--stitch-primary-dark);
  margin-bottom: var(--stitch-space-lg);
  padding-bottom: var(--stitch-space-sm);
  border-bottom: 2px solid var(--stitch-primary-light);
}

.stitch-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--stitch-space-xl);
}

.stitch-video-card {
  position: relative;
  border-radius: var(--stitch-radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.stitch-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(8, 145, 178, 0.2);
}

.stitch-video-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.stitch-video-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: var(--transition);
}

.stitch-video-card:hover .stitch-video-card__thumb img {
  opacity: 1;
  transform: scale(1.05);
}

.stitch-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(8, 145, 178, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: var(--transition);
  color: white;
  padding-left: 4px;
  /* visually center play icon */
}

.stitch-video-card:hover .stitch-video-card__play {
  background: var(--stitch-primary);
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.stitch-video-card__play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.stitch-video-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: var(--stitch-fs-xs);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.stitch-video-card__info {
  padding: var(--stitch-space-lg);
}

.stitch-video-card__title {
  font-size: var(--stitch-fs-base);
  font-weight: 600;
  color: var(--stitch-neutral-900);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cinematic Video Modal */
.stitch-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.stitch-video-modal--active {
  opacity: 1;
  pointer-events: auto;
}

.stitch-video-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stitch-video-modal__content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stitch-video-modal--active .stitch-video-modal__content {
  transform: scale(1);
}

.stitch-video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: var(--transition);
}

.stitch-video-modal__close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.stitch-video-modal__iframe-container {
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--stitch-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.stitch-video-modal__iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.stitch-video-modal__cta {
  margin-top: var(--stitch-space-xl);
  text-align: center;
  animation: modal-cta-pulse 3s infinite;
}

@keyframes modal-cta-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

@media(max-width:768px) {
  .stitch-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* ============================================================
   POST ENGINE — Reading Progress + Quiz + Related + Share
   ============================================================ */

/* Reading progress bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--stitch-primary), var(--stitch-primary-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(8, 145, 178, 0.5);
}

/* ---- Quiz / Test de Síntomas ----------------------------- */
.post-quiz {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  padding: 40px;
  margin: 60px 0;
  border: 1px solid rgba(8, 145, 178, 0.15);
  position: relative;
  overflow: hidden;
}

.post-quiz::before {
  content: '🩺';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 80px;
  opacity: 0.07;
}

.post-quiz__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stitch-primary);
  margin-bottom: 8px;
}

.post-quiz__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stitch-primary-deeper);
  margin-bottom: 6px;
}

.post-quiz__subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* Progress dots */
.quiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  align-items: center;
}

.quiz-progress__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
}

.quiz-progress__dot--active {
  background: var(--stitch-primary);
  transform: scale(1.3);
}

.quiz-progress__dot--done {
  background: #10b981;
}

.quiz-progress__text {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-left: 8px;
}

/* Question */
.quiz-question {
  display: none;
  animation: quizFadeIn 0.4s ease;
}

.quiz-question--active {
  display: block;
}

@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-question__text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  color: #334155;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--stitch-primary);
  background: #f0f9ff;
  transform: translateX(4px);
}

.quiz-option--selected {
  border-color: var(--stitch-primary);
  background: #e0f2fe;
  color: var(--stitch-primary-deeper);
  font-weight: 600;
}

.quiz-option__icon {
  font-size: 1.3rem;
  min-width: 28px;
  text-align: center;
}

/* Result */
.quiz-result {
  display: none;
  text-align: center;
  animation: quizFadeIn 0.5s ease;
}

.quiz-result--visible {
  display: block;
}

.quiz-result__badge {
  display: inline-block;
  font-size: 3rem;
  margin-bottom: 12px;
  animation: resultBounce 0.6s ease;
}

@keyframes resultBounce {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.quiz-result__level {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.quiz-result__level--low {
  color: #10b981;
}

.quiz-result__level--medium {
  color: #f59e0b;
}

.quiz-result__level--high {
  color: #ef4444;
}

.quiz-result__message {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-result__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-result__retry {
  background: none;
  border: 2px solid #94a3b8;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.quiz-result__retry:hover {
  border-color: var(--stitch-primary);
  color: var(--stitch-primary);
}

/* ---- Related Articles ------------------------------------ */
.post-related {
  margin: 60px 0;
}

.post-related__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-related__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.post-related-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  text-decoration: none;
  background: white;
  transition: all 0.25s ease;
  display: block;
}

.post-related-card:hover {
  border-color: var(--stitch-primary);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.12);
  transform: translateY(-3px);
}

.post-related-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-primary);
  margin-bottom: 8px;
}

.post-related-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-related-card__arrow {
  font-size: 0.85rem;
  color: var(--stitch-primary);
  font-weight: 600;
}

/* ---- Share Section --------------------------------------- */
.post-share {
  margin: 40px 0;
  padding: 28px 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.post-share__text {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.post-share__sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
}

.post-share__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.post-share-btn--whatsapp {
  background: #25d366;
  color: white;
}

.post-share-btn--whatsapp:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* ---- Final CTA ------------------------------------------ */
.post-final-cta {
  background: linear-gradient(135deg, #082040 0%, #0e7490 100%);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
  overflow: hidden;
}

.post-final-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.post-final-cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.post-final-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.post-final-cta__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  line-height: 1.2;
}

.post-final-cta__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.post-final-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .post-quiz {
    padding: 24px;
  }

  .post-final-cta {
    padding: 36px 24px;
  }

  .post-final-cta__title {
    font-size: 1.4rem;
  }

  .post-share {
    flex-direction: column;
  }

  .post-related__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG SINGLE — Article Layout
   ============================================================ */

/* Clear the fixed header */
.blog-single {
  padding-top: 90px;
  /* header height + breathing room */
}

/* Featured image hero */
.blog-single__hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  margin-bottom: 0;
}

.blog-single__hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Article container — centered, readable width */
.blog-single article {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Article post meta */
.blog-single__meta {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-single__meta .meta-tag {
  background: var(--stitch-primary-light);
  color: var(--stitch-primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Article H1 */
.blog-single article h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 24px;
}

/* Post content typography */
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
}

.post-content p {
  margin-bottom: 1.4em;
}

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--stitch-primary-light);
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.4em 1.4em;
  padding: 0;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content strong,
.post-content b {
  font-weight: 700;
  color: #1e293b;
}

.post-content em {
  font-style: italic;
  color: #4b5563;
}

.post-content blockquote {
  border-left: 4px solid var(--stitch-primary);
  margin: 1.5em 0;
  padding: 12px 20px;
  background: var(--stitch-primary-light);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--stitch-primary-deeper);
}

.post-content a {
  color: var(--stitch-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5em 0;
}

.post-content iframe {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
}

/* Hide duplicate featured image generated by Divi Builder */
.post-content .et_pb_section_0 {
  display: none !important;
}

/* Divider between content and Post Engine */
.post-engine-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 48px 0;
}

@media (max-width: 640px) {
  .blog-single {
    padding-top: 72px;
  }

  .blog-single__hero img {
    height: 240px;
  }

  .blog-single article {
    padding: 32px 16px 60px;
  }

  .blog-single article h1 {
    font-size: 1.5rem;
  }

  .post-content {
    font-size: 1rem;
  }
}

/* ============================================================
   SERVICES SUBMENU — Hover Dropdown
   ============================================================ */

.stitch-nav__item--has-submenu {
  position: relative;
  display: flex;
  align-items: center;
}

.stitch-nav__chevron {
  font-size: 0.7em;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.stitch-nav__item--has-submenu:hover .stitch-nav__chevron {
  transform: rotate(180deg);
}

.stitch-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  min-width: 260px;
  padding: 10px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.stitch-nav__item--has-submenu:hover .stitch-submenu,
.stitch-nav__item--has-submenu:focus-within .stitch-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.stitch-submenu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 0.9rem;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.stitch-submenu__link:hover {
  background: var(--stitch-primary-light);
  color: var(--stitch-primary);
}

/* ============================================================
   GOOGLE RATING BADGE
   ============================================================ */

.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  padding: 10px 20px;
  margin-top: 16px;
  text-decoration: none;
  font-size: 0.9rem;
  color: #1e293b;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.google-rating-badge:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.google-rating-badge__score {
  font-weight: 700;
  color: #f59e0b;
}

.google-rating-badge__label {
  color: #64748b;
}

.google-rating-badge__link {
  color: var(--stitch-primary);
  font-weight: 600;
  margin-left: 4px;
}

/* ============================================================
   MOBILE-FIRST — Responsive Improvements
   Thumb-accessible, app-native feel
   ============================================================ */

/* Mobile submenu: full width */
@media (max-width: 768px) {

  /* Logo grows on mobile for brand recognition */
  .stitch-nav__logo img {
    width: 64px !important;
    height: 64px !important;
  }

  /* Submenu becomes full-width sheet on mobile */
  .stitch-submenu {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
    min-width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px 0 40px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  }

  .stitch-nav__item--has-submenu:hover .stitch-submenu,
  .stitch-nav__item--has-submenu:focus-within .stitch-submenu {
    transform: translateY(0);
  }

  .stitch-submenu__link {
    padding: 16px 24px;
    font-size: 1rem;
  }

  /* Larger tap targets for nav links */
  .stitch-nav__link {
    padding: 12px 8px;
    font-size: 0.8rem;
  }

  /* Testimonial cards: full height tap zone */
  .stitch-testimonial-card {
    padding: 24px;
  }

  /* Blog grid: single column on mobile */
  .blog__grid {
    grid-template-columns: 1fr;
  }

  /* CTA buttons: full width on small screens */
  .stitch-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* WhatsApp FAB: larger for thumb */
  .stitch-whatsapp-fab {
    width: 60px !important;
    height: 60px !important;
    bottom: 20px;
    right: 16px;
  }

  .stitch-whatsapp-fab svg {
    width: 30px !important;
    height: 30px !important;
  }

  /* Section padding reduction */
  .stitch-section {
    padding: 60px 0;
  }

  /* Smaller hero on mobile */
  .stitch-hero {
    min-height: 560px;
    padding-top: 100px;
  }

  /* Google badge: stack vertically */
  .google-rating-badge {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

/* Very small screens (iPhone SE etc.) */
@media (max-width: 375px) {
  .stitch-section__title {
    font-size: 1.5rem;
  }

  .stitch-hero__title {
    font-size: 1.8rem;
  }

  .blog-single article {
    padding: 24px 14px 60px;
  }
}
/* ====== DIVI BUILDER RESETS FOR LEGACY MARKDOWN POSTS ====== */
/* The layout internally stripped out Divi but some JSON scraped posts still have it */
.blog-post__body .et_pb_section,
.blog-post__body .et_pb_row,
.blog-post__body .et_pb_column,
.blog-post__body .et_builder_inner_content,
.blog-post__body .et_pb_module,
.blog-post__body .et_pb_text_inner,
.blog-post__body .et-l--post {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.blog-post__body .et_pb_row {
    margin-bottom: 2rem !important;
}

.blog-post__body .et_pb_text {
    margin-bottom: 1.5rem !important;
}

/* Hide empty Divi spacers */
.blog-post__body .et_pb_empty_column,
.blog-post__body .et_pb_space {
    display: none !important;
}

/* ============================================================
   TESTIMONIALS — Doctor image overflow
   ============================================================ */
.testimonials-dr-wrap {
  display: flex;
  justify-content: center;
  margin-top: -180px; /* overflow above the testimonials section */
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.testimonials-dr-img {
  width: 260px;
  max-width: 70%;
  display: block;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  filter: drop-shadow(0 -8px 24px rgba(0,0,0,0.2));
}

@media (min-width: 768px) {
  .testimonials-dr-wrap {
    margin-top: -220px;
  }
  .testimonials-dr-img {
    width: 320px;
  }
}

/* Fix: ensure the testimonials section has overflow visible at top */
#testimonials {
  overflow: visible;
  padding-top: 0;
}

/* ============================================================
   USER REQUEST FIXES (Nav Hover, Blog Grid, Contact Hero)
   ============================================================ */

/* 1. Submenu Hover Gap Fix */
.stitch-nav__item--has-submenu {
  position: relative; 
}
.stitch-submenu::before {
  content: '';
  position: absolute;
  top: -20px; /* Bridge the gap between nav link and submenu */
  left: 0;
  right: 0;
  height: 20px;
}

/* 2. Blog Grid Max 3 Columns */
.blog-grid, .post-related__grid {
  display: grid;
  gap: var(--stitch-space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .blog-grid, .post-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .blog-grid, .post-related__grid {
    grid-template-columns: repeat(3, 1fr); /* Enforce max 3 items per row */
  }
}

/* 3. Contact Hero — Text LEFT, Image RIGHT floating over sections */
.contact-page-hero {
  position: relative;
  z-index: 2;
  overflow: visible !important;    /* allow image to overflow downward */
  padding-bottom: 0 !important;    /* image itself creates the bottom space */
}

.contact-hero__grid {
  display: grid;
  grid-template-columns: 1fr 130px; /* Text left, smaller vertical image right */
  gap: var(--stitch-space-lg);
  align-items: center;
}

/* Text column */
.contact-hero__content {
  text-align: left;
  padding: 0;
  order: 1;  /* Text always on left */
}
.contact-hero__content h1,
.contact-hero__content p {
  margin-left: 0;
  margin-right: 0;
}

/* Image column — floating integrator */
.contact-hero__img-float {
  position: relative;
  z-index: 3;
  order: 2; /* Image always on right */
  border-radius: var(--stitch-radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: -60px; /* smaller float on mobile */
}
.contact-hero__img-float img {
  width: 100%;
  height: 220px; /* Keeps a vertical proportion on mobile without dominating viewport */
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (min-width: 768px) {
  .contact-hero__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--stitch-space-3xl);
  }
  .contact-hero__content {
    order: 1; /* text on LEFT */
  }
  .contact-hero__img-float {
    order: 2; /* image on RIGHT */
    margin-bottom: -120px; /* deeper overlap on desktop */
  }
  .contact-hero__img-float img {
    height: 480px;
  }
}

@media (min-width: 1024px) {
  .contact-hero__grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .contact-hero__img-float {
    margin-bottom: -140px; /* even deeper on large screens */
    border-radius: var(--stitch-radius-xl, 20px);
  }
  .contact-hero__img-float img {
    height: 520px;
  }
}

/* ============================================================
   HERO SLIDESHOW — Breathing transition
   ============================================================ */
.stitch-hero__slideshow {
  position: relative;
  overflow: hidden;
}

.stitch-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 4s ease;
  z-index: 0;
}

.stitch-hero__slide--active {
  opacity: 1;
  transform: scale(1.0);
  z-index: 1;
}

/* Keep the frame at a fixed aspect ratio */
.stitch-hero__slideshow {
  aspect-ratio: 16 / 10;
}
.stitch-hero__slideshow img:first-child {
  position: relative; /* first image sets height fallback */
}

/* ============================================================
   Testimonials — Scroll-based (no transform, no blank)
   ============================================================ */
.stitch-testimonials {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.stitch-testimonials::-webkit-scrollbar {
  display: none; /* Chrome */
}

.stitch-testimonials__track {
  display: flex !important;
  gap: var(--stitch-space-xl) !important;
  transition: none !important; /* Remove transform transition */
  transform: none !important; /* Disable transform-based scrolling */
}

.stitch-testimonial-card {
  flex: 0 0 min(100%, 380px) !important;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .stitch-testimonial-card {
    flex: 0 0 min(calc(50% - var(--stitch-space-xl)), 420px) !important;
  }
}
@media (min-width: 1024px) {
  .stitch-testimonial-card {
    flex: 0 0 min(calc(33.333% - var(--stitch-space-xl)), 420px) !important;
  }
}

/* ============================================================
   VIDEO SECTION — prevent overflow into next section
   ============================================================ */
.stitch-video-gallery {
  overflow: visible;
}

.stitch-video-playlist:last-child {
  margin-bottom: var(--stitch-space-xl);
}

#videos {
  overflow: hidden;
  padding-bottom: var(--stitch-space-2xl);
}
