/* ==========================================================================
   DRA. SOFÍA RINCÓN - CIRUJANA PLÁSTICA | HERO SECTION STYLES
   Side-by-side Editorial Layout with Tall Pure-Photo Vertical Carousel
   ========================================================================== */

/* --- TYPOGRAPHY: LOCAL SKOLA SANS & SECONDARY FONTS --- */
/* --- TYPOGRAPHY: LARKEN (TITLES) & INTER (BODY / OTHER TEXT) --- */
@font-face {
  font-family: 'Larken';
  src: url('./Fonts/web/Larken-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Larken';
  src: url('./Fonts/web/Larken-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Larken';
  src: url('./Fonts/web/Larken-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Larken';
  src: url('./Fonts/web/Larken-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Larken';
  src: url('./Fonts/web/Larken-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* INTER (BODY AND ALL OTHER TEXT) */
@font-face {
  font-family: 'Inter';
  src: url('./Fonts/web/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./Fonts/web/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./Fonts/web/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./Fonts/web/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- DESIGN TOKENS & VARIABLES --- */
:root {
  /* Brand Colors from Brand Manual & Dermato Aesthetics */
  --color-primary-navy: #003A5D;
  /* Pantone 302 C */
  --color-navy-deep: #02253D;
  --color-navy-dark: #01182A;
  --color-gold: #CEA052;
  /* Pantone 7407 C */
  --color-gold-light: #E0BA75;
  --color-gold-dark: #A36B28;
  --color-terracotta: #8C532B;
  --color-aqua: #7DDBD4;
  /* Pantone 7471 C */
  --color-aqua-light: #A5ECE7;
  --color-platinum: #D1D3D3;
  /* Pantone 427 C */
  --color-bg-light: #FAF7F2;
  /* Warm Dermato Porcelain Tone */
  --color-bg-white: #FFFFFF;
  --color-text-dark: #1E293B;
  --color-text-body: #475569;
  --color-text-muted: #64748B;
  --color-type-heading: #382419;
  --color-type-body: #5C4333;
  --color-type-soft: #745E4F;
  --color-type-ui: #4E3B2F;
  --color-type-accent: #8C532B;
  --color-border-light: rgba(0, 58, 93, 0.08);

  /* Gradients & Glass Tokens */
  --gradient-gold: linear-gradient(135deg, #CEA052 0%, #DFB76C 50%, #B88536 100%);
  --gradient-navy-hero: #FAF7F2;

  /* Glassmorphism Tokens */
  --glass-bg-card: rgba(255, 255, 255, 0.72);
  --glass-bg-subtle: rgba(255, 255, 255, 0.55);
  --glass-border: 1px solid rgba(255, 255, 255, 0.85);
  --glass-border-subtle: 1px solid rgba(0, 58, 93, 0.07);
  --glass-shadow: 0 16px 40px -10px rgba(0, 37, 61, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  --glass-blur: blur(20px) saturate(180%);

  /* Fonts: Larken Medium for Headings & Inter for Body/Others */
  --font-heading: 'Larken', 'Hedvig Letters Serif', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 37, 61, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 37, 61, 0.08);
  --shadow-photo: 0 20px 45px -10px rgba(0, 37, 61, 0.16);
  --shadow-photo-hover: 0 30px 60px -12px rgba(0, 37, 61, 0.26);

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- GLOBAL RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Glassmorphism Global Ambient Background Layer */
.glass-ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.52;
  animation: glassOrbFloat 18s ease-in-out infinite alternate;
}

.glass-orb-1 {
  width: 540px;
  height: 540px;
  top: -80px;
  left: 12%;
  background: radial-gradient(circle, rgba(206, 160, 82, 0.35) 0%, rgba(223, 183, 108, 0.15) 55%, transparent 75%);
  animation-duration: 20s;
}

.glass-orb-2 {
  width: 600px;
  height: 600px;
  top: 10%;
  right: -60px;
  background: radial-gradient(circle, rgba(125, 219, 212, 0.32) 0%, rgba(165, 236, 231, 0.12) 55%, transparent 75%);
  animation-duration: 25s;
  animation-delay: -4s;
}

.glass-orb-3 {
  width: 680px;
  height: 680px;
  bottom: -120px;
  left: 28%;
  background: radial-gradient(circle, rgba(243, 216, 200, 0.55) 0%, rgba(206, 160, 82, 0.18) 50%, transparent 75%);
  animation-duration: 22s;
  animation-delay: -9s;
}

.glass-orb-4 {
  width: 500px;
  height: 500px;
  top: 48%;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 58, 93, 0.15) 0%, rgba(125, 219, 212, 0.1) 50%, transparent 75%);
  animation-duration: 19s;
  animation-delay: -13s;
}

@keyframes glassOrbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(30px, -20px, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-25px, 25px, 0) scale(0.96);
  }
}

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

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

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

/* Fluid Container for Navigation & General Layout */
.container-fluid {
  width: 100%;
  max-width: 1360px;
  /* Reduced Header Width for Compact Luxury Feel */
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   DERMATO-STYLE 3-COLUMN HEADER (MATCHING SCREENSHOT)
   ========================================================================== */
.dermato-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1220px;
  margin: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-top: none;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 0 16px 36px -10px rgba(0, 37, 61, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: 0.75rem 2.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dermato-navbar.scrolled {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(0, 58, 93, 0.08);
  border-top: none;
  box-shadow: 0 16px 40px -10px rgba(0, 37, 61, 0.12), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  padding: 0.55rem 2.25rem;
}

.dermato-navbar.scrolled .brand-logo-img {
  height: 68px;
}

.dermato-navbar.scrolled .nav-link {
  color: #1E293B;
}

.dermato-navbar.scrolled .nav-link:hover {
  color: var(--color-primary-navy);
}

.dermato-navbar.scrolled .nav-link.active {
  color: var(--color-terracotta);
}

.dermato-navbar .container-fluid {
  max-width: 100%;
  padding: 0;
}

.navbar-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

/* Left Column: Nav Links */
.navbar-left-menu .nav-links-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary-navy);
}

.nav-link.active {
  color: var(--color-terracotta);
  /* Warm terracotta like Dermato */
  font-weight: 600;
}

.nav-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link-chevron {
  width: 0.72rem;
  height: 0.72rem;
  transform: translateY(0.02rem);
}

/* Center Column: Logo (MUCH LARGER) */
.navbar-center-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 78px;
  /* PROMINENT LUXURY LOGO */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Right Column: CTA Button / Mobile Hamburger */
.navbar-right-action {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: stretch;
  gap: 1.15rem;
}

.navbar-right-menu .nav-links-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.navbar-right-menu {
  justify-self: center;
}

.dermato-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(244, 237, 228, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #2D241E;
  padding: 0.65rem 1.45rem 0.65rem 1.1rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(140, 83, 43, 0.06), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: var(--transition-smooth);
}

.dermato-btn-cta:hover {
  background: rgba(235, 224, 211, 0.9);
  transform: translateY(-2px);
  color: #000000;
  box-shadow: 0 8px 22px rgba(0, 37, 61, 0.1), 0 1px 0 rgba(255, 255, 255, 1) inset;
}

.dermato-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dermato-btn-icon svg {
  width: 15px;
  height: 15px;
}

/* Hamburger Logo inside Solid Blue Circle */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-navy);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 58, 93, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
  background: var(--color-navy-deep);
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 58, 93, 0.4);
}

.mobile-menu-icon {
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  display: block;
}

/* Pre-top Badge (Glassmorphic Dermato Style) */
.pre-top-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(239, 232, 223, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 0.4rem 1.05rem;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 37, 61, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.pre-dot-wrapper {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.pre-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
}

.pre-dot-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
  opacity: 0.4;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  display: none;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.pre-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C4333;
}

@media (min-width: 1025px) {
  .glass-orb {
    animation: none;
  }
}

.doctor-profile-section,
.procedures-showcase-section,
.location-banner-section,
.testimonials-master-section,
.faq-master-section,
.dermato-footer-section,
main .hub-testimonials-section.reviews-before-map {
  content-visibility: auto;
  contain-intrinsic-size: 1px 920px;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 37, 61, 0.68);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease-out, visibility 0.18s ease-out;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 37, 61, 0.25);
  transform: translate3d(0, 8px, 0);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translate3d(0, 0, 0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  transition: 0.2s ease;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--color-primary-navy);
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-body);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
}

.form-group > .form-input,
.form-group > .form-select,
.form-group > .form-textarea {
  margin-top: auto;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 58, 93, 0.15);
  font-family: inherit;
  font-size: 0.95rem;
  background: #F8FAFC;
  transition: 0.2s ease;
  color: var(--color-text-dark);
  box-sizing: border-box;
}

.form-input,
.form-select {
  height: 48px;
  min-height: 48px;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23003A5D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-navy);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 58, 93, 0.08);
}

.form-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

.phone-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* Native <select> option lists render on the OS's own popup, which on some
   platforms (notably Windows) doesn't reliably show flag emoji even though
   the rest of the page does. This badge sits in normal page text so the
   flag is always visible, independent of the select's own rendering. */
.phone-lada-select-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Real flag artwork via the flag-icons library (jsdelivr CDN) — actual SVG
   images, not font glyphs, so rendering is identical on every OS/browser
   (hand-rolled emoji/inline-SVG both had platform-specific issues here). */
.phone-lada-flag {
  position: absolute;
  left: 0.55rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  font-size: 15px;
  border-radius: 2px;
  pointer-events: none;
}

.phone-lada-select {
  flex: 0 0 auto;
  width: 92px;
  padding: 0.75rem 1.3rem 0.75rem 1.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 58, 93, 0.15);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #F8FAFC;
  color: var(--color-text-dark);
  height: 48px;
  cursor: pointer;
  transition: 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
  text-align-last: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23003A5D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 13px;
}

.phone-lada-select:focus {
  outline: none;
  border-color: var(--color-primary-navy);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 58, 93, 0.08);
}

.phone-number-input {
  flex: 1;
  width: auto;
  min-width: 0;
}

/* The intro header (badge/title/subtitle/back-link) is a real non-scrolling flex
   section, and only .prequalification-scroll-body scrolls. This avoids `position:
   sticky` entirely — sticky-inside-a-transformed/scrolling-card kept producing
   browser-specific glitches (content painting above the header instead of behind
   it). Splitting header and body structurally is the robust fix. */
.prequalification-modal-card {
  max-width: 780px;
  max-height: calc(100dvh - 3rem);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  /* `transform` on this element (even the resting translate3d(0,0,0) from
     .modal-card's open animation) combined with overflow:hidden + flex here
     causes a rendering glitch where scrolled/background content paints through
     the card. Keep this element transform-free. */
  transform: none !important;
}

.prequalification-modal-card .modal-header {
  flex-shrink: 0;
  margin: 0;
  padding: 2.5rem 2.5rem 1.1rem;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0, 58, 93, 0.08);
}

.prequalification-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 1.5rem 2.5rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 93, 0.25) transparent;
}

/* Custom Sleek Scrollbar for Prequalification Scroll Body */
.prequalification-scroll-body::-webkit-scrollbar {
  width: 6px;
}

.prequalification-scroll-body::-webkit-scrollbar-track {
  background: transparent;
}

.prequalification-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(0, 58, 93, 0.25);
  border-radius: 10px;
}

.prequalification-scroll-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 58, 93, 0.45);
}

.prequal-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.prequalification-modal-card .modal-close-btn {
  position: static;
  flex-shrink: 0;
}

.prequal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted, #7A8B99);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.prequal-back-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.prequal-back-link:hover {
  color: var(--color-primary-navy);
}

.prequal-back-link:hover svg {
  transform: translateX(-3px);
}

.prequalification-form {
  gap: 1.5rem;
}

.prequalification-form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.prequalification-section-title {
  grid-column: 1 / -1;
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 0.5rem 0 0.5rem 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(0, 58, 93, 0.12);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary-navy);
}

.form-group-wide {
  grid-column: 1 / -1;
}

.modal-submit-btn {
  background: var(--color-primary-navy);
  color: #FFFFFF;
  padding: 1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-submit-btn:hover {
  background: var(--color-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 58, 93, 0.2);
}

.modal-submit-btn:disabled,
.modal-submit-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #94A3B8;
  box-shadow: none !important;
  transform: none !important;
}

/* Fixed footer action bar: nav buttons, consent & submit stay pinned at the
   bottom of the modal while only the form fields scroll above them — no more
   having to scroll all the way down to find them, especially on step 3. */
.prequal-footer-nav {
  flex-shrink: 0;
  padding: 1.25rem 2.5rem 2rem;
  border-top: 1px solid rgba(0, 58, 93, 0.08);
  background: #FFFFFF;
}

.prequal-consent-wrap {
  margin-top: 0.5rem;
  padding: 1.1rem;
  background: #F4F7FA;
  border: 1px solid rgba(0, 58, 93, 0.14);
  border-radius: 14px;
}

/* Submit now lives inside the same card as the consent checkbox, so the two
   read as one "final step" unit instead of a floating button underneath.
   "Atrás" gets moved in here (via JS) on the final step to pair with it,
   instead of sitting alone in the nav row once "Siguiente" disappears. */
.prequal-final-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.prequal-final-actions .modal-submit-btn {
  flex: 1;
  margin-top: 0;
  padding: 0.85rem 0.75rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.prequal-final-actions .prequal-nav-back {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.prequal-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.prequal-consent-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary-navy);
  cursor: pointer;
}

.prequal-consent-text {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--color-text-dark);
}

.prequal-consent-link {
  color: var(--color-primary-navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prequal-consent-link:hover {
  color: var(--color-navy-deep);
}

/* ==========================================================================
   PREQUALIFICATION FORM — MOBILE PAGINATION (3-STEP WIZARD)
   Desktop keeps the single-scroll layout; these rules only activate on mobile.
   ========================================================================== */
.prequal-step-indicator,
.prequal-step-label,
.prequal-step-nav {
  display: none;
}

@media (max-width: 860px) {
  .prequal-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
  }

  .prequal-step-track {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 58, 93, 0.12);
    overflow: hidden;
  }

  .prequal-step-fill {
    height: 100%;
    width: 33.333%;
    border-radius: 999px;
    background: var(--color-primary-navy);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .prequal-step-label {
    display: block;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-text-muted, #6b7280);
    margin: 0;
  }

  .prequalification-modal-card .prequalification-form-section,
  .prequalification-modal-card .prequal-consent-wrap,
  .prequalification-modal-card .modal-submit-btn {
    display: none;
  }

  .prequalification-modal-card.prequal-step-1 .prequalification-form-section:nth-of-type(1),
  .prequalification-modal-card.prequal-step-2 .prequalification-form-section:nth-of-type(2),
  .prequalification-modal-card.prequal-step-3 .prequalification-form-section:nth-of-type(3) {
    display: grid;
  }

  .prequalification-modal-card.prequal-step-3 .prequal-consent-wrap {
    display: block;
  }

  .prequalification-modal-card.prequal-step-3 .modal-submit-btn {
    display: flex;
  }

  .prequal-step-nav {
    display: flex;
    gap: 0.65rem;
  }

  .prequal-nav-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
  }

  .prequal-nav-next {
    background: var(--color-primary-navy);
    color: #ffffff;
  }

  .prequal-nav-next:hover {
    background: var(--color-navy-deep);
  }

  .prequal-nav-back {
    background: #F1F5F9;
    color: var(--color-text-dark);
    border: 1px solid rgba(0, 58, 93, 0.14);
    flex: 0 0 auto;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .prequal-nav-back:hover {
    background: #E2E8F0;
  }

  .prequalification-modal-card.prequal-step-1 .prequal-nav-back {
    display: none;
  }

  .prequalification-modal-card.prequal-step-3 .prequal-nav-next {
    display: none;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER (GLASSMORPHISM)
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1rem max(0.9rem, env(safe-area-inset-bottom));
  height: 100dvh;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.mobile-drawer:not(.active) {
  display: none;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 58, 93, 0.08);
}

.mobile-drawer-logo {
  height: 64px;
  width: auto;
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 58, 93, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-navy);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 0 0 auto;
  overflow: visible;
  padding-bottom: 0.45rem;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 4.8vw, 1.45rem);
  line-height: 1.12;
  font-weight: 500;
  color: var(--color-primary-navy);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-link:hover {
  color: var(--color-gold-dark);
  transform: translateX(6px);
}

.mobile-drawer-link.active {
  color: var(--color-gold-dark);
}

.mobile-drawer-footer {
  margin-top: 0;
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(0, 58, 93, 0.08);
  background: transparent;
}

#mobile-drawer-cta-btn {
  width: 100%;
  justify-content: center;
}

@media (max-height: 760px) {
  .mobile-drawer {
    padding: 0.95rem 0.9rem max(0.8rem, env(safe-area-inset-bottom));
  }

  .mobile-drawer-header {
    margin-bottom: 0.95rem;
    padding-bottom: 0.7rem;
  }

  .mobile-drawer-logo {
    height: 52px;
  }

  .mobile-drawer-nav {
    gap: 0.58rem;
  }

  .mobile-drawer-link {
    font-size: clamp(1.06rem, 5.2vw, 1.24rem);
  }

  .mobile-drawer-footer {
    padding-top: 0.55rem;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 1025px) {
  .dermato-navbar {
    width: 100%;
    max-width: 1520px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .dermato-footer-container {
    width: 100%;
    max-width: 1520px;
  }

  .navbar-left-menu {
    padding-left: 2.15rem;
    margin-left: 1.4rem;
  }

  .navbar-right-action {
    padding-right: 2.15rem;
    margin-right: 1.4rem;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .dermato-navbar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar-grid {
    gap: 0.85rem;
  }

  .navbar-left-menu {
    padding-left: 0;
    margin-left: 0;
  }

  .navbar-right-action {
    padding-right: 0;
    margin-right: 0;
    gap: 0.65rem;
  }

  .navbar-left-menu .nav-links-list {
    gap: 0.8rem;
    justify-content: center;
  }

  .navbar-right-menu .nav-links-list {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  }

  .brand-logo-img,
  .dermato-navbar.scrolled .brand-logo-img {
    height: 68px;
  }

  .dermato-btn-cta {
    gap: 0.35rem;
    padding: 0.58rem 0.9rem 0.58rem 0.72rem;
    font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  }
}

@media (max-width: 1024px) {
  .dermato-navbar {
    width: 95%;
    max-width: 100%;
    padding: 0.55rem 1.25rem;
    border-radius: 0 0 24px 24px;
  }

  .dermato-navbar.scrolled {
    padding: 0.55rem 1.25rem;
  }

  .navbar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }

  .navbar-left-menu {
    display: none;
  }

  .navbar-center-brand {
    order: 1;
    flex: 0 0 auto;
  }

  .brand-logo-img {
    height: 68px;
  }

  .dermato-navbar.scrolled .brand-logo-img {
    height: 68px;
  }

  .navbar-right-action {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .navbar-right-menu {
    display: none;
  }

  /* Hide header CTA on mobile only (desktop keeps it) */
  .navbar-right-action .dermato-btn-cta {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
    width: 48px;
    height: 48px;
  }

}

@media (max-width: 768px) {
  .container-fluid {
    padding: 0 1rem;
  }

  .dermato-navbar {
    width: 96%;
    padding: 0.55rem 1.25rem;
    border-radius: 0 0 24px 24px;
  }

  .dermato-navbar.scrolled {
    padding: 0.55rem 1.25rem;
  }

  .brand-logo-img {
    height: 68px;
  }

  .dermato-navbar.scrolled .brand-logo-img {
    height: 68px;
  }

  .mobile-menu-btn {
    width: 48px;
    height: 48px;
  }

  .pre-top-badge {
    padding: 0.28rem 0.8rem;
  }

  .pre-badge-text {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    margin: 1rem;
  }

  .modal-title {
    font-size: 1.45rem;
  }

  .prequalification-modal-card {
    max-height: calc(100dvh - 1rem);
    margin: 0;
    padding: 0;
  }

  .prequalification-modal-card .modal-header {
    padding: 1.75rem 1.25rem 1rem;
  }

  .prequalification-scroll-body {
    padding: 1rem 1.25rem 1.75rem;
  }

  .prequal-footer-nav {
    padding: 0.85rem 1.25rem 1.5rem;
  }

  .prequalification-form-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-group-wide,
  .prequalification-section-title {
    grid-column: 1;
  }

}

@media (max-width: 480px) {
  .dermato-navbar {
    width: 98%;
    padding: 0.55rem 1rem;
    border-radius: 0 0 24px 24px;
  }

  .dermato-navbar.scrolled {
    padding: 0.55rem 1rem;
  }

  .brand-logo-img {
    height: 68px;
  }

  .dermato-navbar.scrolled .brand-logo-img {
    height: 68px;
  }

  .mobile-menu-btn {
    width: 48px;
    height: 48px;
  }

}

/* ==========================================================================
   DOCTOR PROFILE SECTION (ABOUT / SOBRE MÍ - EDITORIAL DERMATO LUXURY)
   ========================================================================== */
.doctor-profile-section {
  width: 100%;
  padding: clamp(3.5rem, 7vh, 6rem) 0;
  position: relative;
  z-index: 2;
  background: transparent;
}

.doctor-profile-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(320px, 490px) 1fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

/* Doctor Portrait Card */
.doc-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: #EAE3DC;
  box-shadow: 0 24px 50px -12px rgba(60, 40, 25, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  aspect-ratio: 1 / 1.1;
}

.doc-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-photo-wrapper:hover .doc-photo-img {
  transform: scale(1.035);
}

/* Frosted Luxury Pill Overlay */
.doc-photo-badge {
  position: absolute;
  bottom: 1.35rem;
  left: 1.35rem;
  right: 1.35rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, rgba(165, 122, 85, 0.78) 0%, rgba(138, 95, 60, 0.86) 100%);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.doc-badge-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.doc-badge-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: #FFFFFF;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  flex-shrink: 0;
}

/* Doctor Profile Information Column */
.doc-profile-info {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.doc-name {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #382419;
  margin: 0;
}

.doc-specialty {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  font-weight: 500;
  color: #8C532B;
  margin: -0.45rem 0 0.15rem 0;
  letter-spacing: -0.01em;
}

.doc-bio-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.doc-bio-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.62;
  color: #4A5568;
  margin: 0;
}

/* Highlights List with Circular Outline Icons */
.doc-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 0.85rem;
}

.doc-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.doc-highlight-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(140, 83, 43, 0.32);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #8C532B;
  box-shadow: 0 4px 12px rgba(140, 83, 43, 0.07);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.doc-highlight-item:hover .doc-highlight-icon-wrap {
  transform: scale(1.08);
  border-color: #8C532B;
  background: rgba(255, 255, 255, 0.95);
}

.doc-highlight-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.doc-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.doc-highlight-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.doc-highlight-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: #536170;
  line-height: 1.45;
}

.doc-credentials-footer {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #8C7A6B;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.doc-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.doc-link:hover {
  color: var(--color-primary-navy);
}

/* Responsive adjustments for Doctor Profile Section */
@media (max-width: 1024px) {
  .doctor-profile-container {
    grid-template-columns: minmax(290px, 420px) 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .doctor-profile-section {
    padding: 3rem 0;
  }

  .doctor-profile-container {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .doc-photo-wrapper {
    max-width: 440px;
  }

  .doc-name {
    font-size: clamp(2.1rem, 7vw, 2.75rem);
  }
}

@media (max-width: 480px) {
  .doc-photo-wrapper {
    border-radius: 24px;
  }

  .doc-photo-badge {
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
  }

  .doc-badge-title {
    font-size: 0.95rem;
  }

  .doc-highlight-item {
    gap: 0.85rem;
  }

  .doc-highlight-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .doc-highlight-icon-wrap svg {
    width: 17px;
    height: 17px;
  }

}

/* ==========================================================================
   PROCEDURES SHOWCASE SECTION (CÓMO CUIDAMOS DE TI - CON FILTROS)
   ========================================================================== */
.procedures-showcase-section {
  width: 100%;
  padding: clamp(4rem, 7vh, 6.3rem) 0;
  position: relative;
  z-index: 2;
  background: transparent;
}

.procedures-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 3rem);
}

.procedures-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto clamp(3rem, 6vh, 4.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.procedures-title {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #382419;
  margin: 0;
}

@media (max-width: 768px) {
  .procedures-title-break,
  .procedures-desc-break {
    display: none;
  }
}

.procedures-desc {
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.62;
  color: #556476;
  margin: 0;
}

/* Filter Tabs (Wider Unified Glassy Capsule Container) */
.procedures-filter-wrapper {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(239, 232, 223, 0.75);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  padding: 0.45rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 37, 61, 0.06), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  margin-top: 1.15rem;
}

.proc-filter-pill {
  padding: 0.72rem 1.65rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.proc-filter-label {
  position: relative;
  z-index: 3;
}

/* Luminous SVG perimeter border line showing time progress */
.proc-filter-border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 100px;
  overflow: visible;
  z-index: 2;
}

.proc-filter-border-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proc-filter-border-line {
  fill: none;
  stroke: rgba(241, 232, 221, 0.72);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.22));
}

.proc-filter-pill:hover {
  color: var(--color-primary-navy, #003A5D);
  background: rgba(255, 255, 255, 0.65);
}

.proc-filter-pill.active {
  background: var(--color-primary-navy, #003A5D);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 58, 93, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.proc-filter-pill.active .proc-filter-border-track {
  stroke: rgba(255, 255, 255, 0.14);
  opacity: 0.75;
}

.proc-filter-pill.active .proc-filter-border-line {
  opacity: 0.72;
}

/* Grid Layout: Left Column - Center Oval - Right Column */
.procedures-showcase-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px) 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.proc-side-col {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 7vh, 6rem);
}

.proc-card-item {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-card-left {
  text-align: right;
  justify-content: flex-end;
}

.proc-card-right {
  text-align: left;
  justify-content: flex-start;
}

.proc-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.proc-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #382419;
  margin: 0;
}

.proc-card-desc {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.62;
  color: #556476;
  margin: 0;
}

.proc-card-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(140, 83, 43, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8C532B;
  box-shadow: 0 10px 25px rgba(60, 40, 25, 0.07);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background-color 0.35s ease;
}

.proc-card-item:hover .proc-card-icon-box {
  transform: scale(1.08);
  border-color: #8C532B;
  background: rgba(255, 255, 255, 0.98);
}

.proc-card-icon {
  width: 26px;
  height: 26px;
  display: block;
}

/* Center Oval Image */
.proc-center-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
}

.proc-oval-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.38;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 60px -12px rgba(60, 40, 25, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  background: #EAE3DC;
}

.proc-oval-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-oval-frame:hover .proc-oval-img {
  transform: scale(1.04);
}

@media (min-width: 1025px) {
  .procedures-showcase-section {
    padding: clamp(3.6rem, 6.4vh, 5.8rem) 0;
  }

  .procedures-header {
    margin-bottom: clamp(2.35rem, 4.8vh, 3.9rem);
    gap: 0.95rem;
  }

  .procedures-filter-wrapper {
    margin-top: 0.9rem;
    padding: 0.4rem 0.5rem;
  }

  .proc-filter-pill {
    padding: 0.64rem 1.42rem;
  }

  .procedures-showcase-grid {
    grid-template-columns: 1fr minmax(292px, 378px) 1fr;
    gap: clamp(2rem, 4.2vw, 4.7rem);
  }

  .proc-side-col {
    gap: clamp(2.85rem, 5.9vh, 5.2rem);
  }

  .proc-card-item {
    gap: 1.2rem;
  }

  .proc-card-icon-box {
    width: 54px;
    height: 54px;
  }

  .proc-card-icon {
    width: 23px;
    height: 23px;
  }

  .proc-oval-frame {
    max-width: 378px;
    aspect-ratio: 1 / 1.35;
  }
}

/* Responsive adjustments for procedures */
@media (max-width: 1080px) {
  .procedures-showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .proc-center-showcase {
    order: -1;
  }

  .proc-oval-frame {
    max-width: 320px;
  }

  .proc-card-left {
    text-align: left;
    justify-content: flex-start;
    flex-direction: row-reverse;
  }

  .proc-card-right {
    text-align: left;
  }

  .proc-side-col {
    gap: 2rem;
  }
}

@media (max-width: 540px) {
  .procedures-filter-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    border-radius: 20px;
    padding: 0.5rem;
    width: 100%;
  }

  .proc-filter-pill {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 0.65rem 0.4rem;
    font-size: 0.92rem;
  }

  .proc-oval-frame {
    max-width: 260px;
  }
}

/* ==========================================================================
   LOCATION BANNER SECTION (UBICACIÓN & CONTACTO)
   Wide editorial banner card with background image and 4 stat highlights
   ========================================================================== */
.location-banner-section {
  width: 100%;
  padding: clamp(5.5rem, 10vh, 8.5rem) 0 clamp(5rem, 9vh, 8rem);
  position: relative;
  z-index: 2;
  background: transparent;
}

.location-banner-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 2.5rem);
}

.location-card {
  position: relative;
  width: 100%;
  min-height: clamp(640px, 78vh, 860px);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 32px 70px -12px rgba(60, 40, 25, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  background: #1B130E;
}

.location-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-card:hover .location-card-bg {
  transform: scale(1.03);
}

.location-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 28, 52, 0.38) 0%,
    rgba(9, 28, 52, 0.24) 35%,
    rgba(8, 24, 46, 0.84) 70%,
    rgba(5, 15, 32, 0.95) 100%
  );
  z-index: 1;
}

/* Card Header (Top Row) */
.location-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.location-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FFFFFF !important;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.location-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.location-map-btn:hover {
  background: #FFFFFF;
  color: #382419;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* Card Bottom Stats Grid */
.location-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 5rem;
}

.location-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  width: 100%;
}

.location-stat-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #FFFFFF;
}

.location-stat-big {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.location-stat-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.location-stat-sub a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.location-stat-sub a:hover {
  color: var(--color-aqua-light, #A5ECE7);
}

.location-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.location-address-row strong {
  color: #FFFFFF;
  font-weight: 600;
}

@media (max-width: 960px) {
  .location-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .location-card {
    border-radius: 26px;
    padding: 2rem 1.4rem;
    min-height: 580px;
  }

  .location-card-footer {
    margin-top: 4rem;
    gap: 1.35rem;
  }

  .location-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .location-stat-big {
    font-size: 2.1rem;
  }

  .location-address-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   TESTIMONIALS & REVIEWS MASTER SECTION (HISTORIAS, VIDEOS & GOOGLE REVIEWS)
   ========================================================================== */
.testimonials-master-section {
  width: 100%;
  padding: clamp(1rem, 3vh, 3.5rem) 0 clamp(5.5rem, 10vh, 8.5rem);
  background: transparent;
  position: relative;
  z-index: 2;
  border-top: none;
}

.testimonials-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 6vh, 5.5rem);
}

/* Section Main Header */
.testimonials-header-block {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.testimonials-header-block .pre-top-badge {
  align-self: center !important;
  margin: 0 auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testimonials-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #1B130E;
  margin: 0;
}

.testimonials-main-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.6;
  color: #5C4333;
  margin: 0;
  max-width: 720px;
}

/* Aggregate Rating Badges Row */
.trust-summary-pill-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.trust-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.35rem;
  background: #FFFFFF;
  border: 1px solid rgba(193, 154, 107, 0.35);
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(60, 40, 25, 0.06);
}

.trust-pill-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.trust-pill-score {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1B130E;
}

.trust-pill-stars {
  display: inline-block;
  flex: none;
  width: 83px;
  height: 15px;
  color: #E5A93C;
  background-color: currentColor;
  -webkit-mask: url('/Assets/rating-stars.svg') center / 100% 100% no-repeat;
  mask: url('/Assets/rating-stars.svg') center / 100% 100% no-repeat;
}

.trust-pill-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #6E5343;
}

/* --------------------------------------------------------------------------
   PART 1: VIDEO REELS / STORIES (VERTICAL 9:16)
   -------------------------------------------------------------------------- */
.video-stories-subsection {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.subsection-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.subsection-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.subsection-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C19A6B;
}

.subsection-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 400;
  color: #1B130E;
  margin: 0;
  line-height: 1.2;
}

.subsection-hint {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: #7A6252;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Video Reels Carousel & Controls */
.video-carousel-header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.video-carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 58, 93, 0.15);
  color: #003A5D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 58, 93, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-carousel-nav-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.video-carousel-nav-btn:hover:not(:disabled) {
  background: #003A5D;
  border-color: #003A5D;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 58, 93, 0.22);
}

.video-carousel-nav-btn.prev:hover:not(:disabled) svg {
  transform: translateX(-2px);
}

.video-carousel-nav-btn.next:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.video-carousel-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.video-carousel-pagination {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #7A6252;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 58, 93, 0.05);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.video-reels-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.35rem 0 0.75rem;
}

.video-reels-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.video-reel-card {
  flex: 0 0 calc((100% - (2 * 1.5rem)) / 3);
  width: calc((100% - (2 * 1.5rem)) / 3);
  position: relative;
  aspect-ratio: 9 / 15.5;
  border-radius: 24px;
  overflow: hidden;
  background: #111822;
  border: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  text-decoration: none;
  box-sizing: border-box;
}

.video-reel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.video-reel-bg {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  opacity: 0.95;
}

.video-reel-card:hover .video-reel-bg {
  transform: scale(1.08);
  opacity: 1;
}

.video-reel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 30%,
    rgba(2, 37, 61, 0.65) 65%,
    rgba(2, 37, 61, 0.96) 100%
  );
  z-index: 1;
}

/* Card Bottom Info */
.video-reel-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #FFFFFF;
}

.video-reel-proc-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #CEA052;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.video-reel-patient-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.video-reel-quote {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Play Button */
.video-reel-action {
  margin-top: 0.5rem;
  width: 100%;
}

.video-play-btn-bottom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1.15rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.video-play-btn-bottom .video-play-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #CEA052;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-play-btn-bottom .video-play-icon svg {
  width: 12px;
  height: 12px;
  fill: #003A5D;
  margin-left: 2px;
}

.video-reel-card:hover .video-play-btn-bottom {
  background: #CEA052;
  border-color: #CEA052;
  color: #003A5D;
  box-shadow: 0 8px 24px rgba(206, 160, 82, 0.45);
}

.video-reel-card:hover .video-play-btn-bottom .video-play-icon {
  background: #003A5D;
}

.video-reel-card:hover .video-play-btn-bottom .video-play-icon svg {
  fill: #FFFFFF;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   PART 2: GOOGLE REVIEWS WALL (RESEÑAS VERIFICADAS)
   -------------------------------------------------------------------------- */
.google-reviews-subsection {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(60, 40, 25, 0.08);
}

/* Reviews Grid */
.reviews-masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.2vw, 1.85rem);
  align-items: stretch;
}

.review-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(193, 154, 107, 0.22);
  padding: clamp(1.4rem, 2.5vw, 1.85rem);
  box-shadow: 0 8px 24px rgba(60, 40, 25, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(60, 40, 25, 0.1);
  border-color: #C19A6B;
}

.review-card.hidden-review {
  display: none;
}

.review-card.animate-in {
  animation: reviewFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C19A6B 0%, #8C5C36 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(140, 92, 54, 0.25);
}

.review-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-author-name {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: #1B130E;
}

.review-author-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #8C7565;
}

.review-google-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: #4285F4;
  background: #EFF5FF;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  border: 1px solid #D6E4FF;
  flex-shrink: 0;
}

.review-google-icon {
  width: 13px;
  height: 13px;
}

/* Rating & Procedure Tag */
.review-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.review-stars {
  display: inline-block;
  flex: none;
  width: 88px;
  height: 16px;
  color: #E5A93C;
  background-color: currentColor;
  -webkit-mask: url('/Assets/rating-stars.svg') center / 100% 100% no-repeat;
  mask: url('/Assets/rating-stars.svg') center / 100% 100% no-repeat;
}

.review-proc-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: #F5EFEB;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: #6E4933;
}

.review-body-text {
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.62;
  color: #4A3B32;
  margin: 0;
  flex-grow: 1;
}

/* Reviews Expand Row (Matching FAQ Clean Minimal Style) */
.reviews-expand-row {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0 0.35rem;
  width: 100%;
}

/* Floating collapse control: while the full reviews wall is expanded, this stays
   fixed to the viewport (left side, so it never collides with the contact
   speed-dial on the right) so it can be closed from anywhere in the long list. */
.reviews-floating-collapse-btn {
  display: none;
  position: fixed;
  left: 1.5rem;
  bottom: 24px;
  z-index: 9000;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--color-primary-navy);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 37, 61, 0.3);
  transition: var(--transition-smooth);
}

.reviews-floating-collapse-btn.is-visible {
  display: inline-flex;
}

.reviews-floating-collapse-btn:hover {
  background: var(--color-navy-deep);
  transform: translateY(-2px);
}

.reviews-floating-collapse-btn svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .reviews-floating-collapse-btn {
    left: 1rem;
    bottom: 16px;
    padding: 0.8rem;
    border-radius: 50%;
  }

  .reviews-floating-collapse-btn span {
    display: none;
  }
}

.reviews-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  color: #003A5D;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: none;
}

.reviews-expand-btn:hover {
  background: transparent;
  border-color: transparent;
  color: #CEA052;
  transform: translateY(1px);
  box-shadow: none;
}

.reviews-expand-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reviews-expand-btn.expanded svg {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   PART 3: CLOSING SIMPLE CTA BLOCK (MINIMAL & CLEAN)
   -------------------------------------------------------------------------- */
.testimonials-cta-block {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  margin: clamp(3.5rem, 6vw, 5.5rem) auto 0;
  padding: 0 1.25rem;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.testimonials-cta-watermark {
  position: absolute;
  right: -6.5rem;
  top: 40%;
  width: clamp(170px, 18vw, 260px);
  aspect-ratio: 36 / 70;
  transform: translateY(-50%);
  background-color: #d5a054;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  -webkit-mask-image: url('logo-vector-icon.svg');
  mask-image: url('logo-vector-icon.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.testimonials-cta-block > *:not(.testimonials-cta-watermark) {
  position: relative;
  z-index: 1;
}

.testimonials-cta-block .pre-top-badge {
  align-self: center !important;
  margin: 0 auto 0.25rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testimonials-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: #1B130E;
  margin: 0;
}

.testimonials-cta-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  color: #5A473D;
  margin: 0;
  max-width: 620px;
}

.testimonials-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 2.6rem;
  background: #003A5D;
  border: 1px solid #003A5D;
  border-radius: 100px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 58, 93, 0.22);
  margin-top: 0.5rem;
}

.testimonials-cta-btn:hover {
  background: #CEA052;
  border-color: #CEA052;
  color: #01182A;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(206, 160, 82, 0.35);
}

@media (max-width: 768px) {
  .testimonials-cta-block {
    margin-top: 3rem;
  }

  .testimonials-cta-watermark {
    width: 170px;
    right: -5rem;
    opacity: 0.12;
  }

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

/* --------------------------------------------------------------------------
   ALL REVIEWS MODAL (MOBILE POPUP)
   No `position: sticky` and no `transform` on the scrolling/overflow-hidden
   card here — both have caused rendering glitches elsewhere in this project
   (transform + overflow:hidden on a scroll container, sticky inside a
   transformed ancestor). This uses the same flex header/body split that
   proved reliable for the prequalification modal instead.
   -------------------------------------------------------------------------- */
.reviews-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.reviews-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.reviews-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  /* `svh` (smallest viewport height) instead of `dvh`: on mobile browsers the
     address bar/toolbar can show or hide after the modal's height is first
     computed, and `dvh` doesn't always re-sync in time, which can leave the
     last card's bottom edge clipped. `svh` sizes for the worst case up front. */
  max-height: calc(100svh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 37, 61, 0.25);
}

.reviews-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(193, 154, 107, 0.22);
}

.reviews-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary-navy);
  margin: 0;
}

.reviews-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F8;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: 0.2s ease;
}

.reviews-modal-close:hover {
  background: #E2E8F0;
  transform: rotate(90deg);
}

.reviews-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 58, 93, 0.25) transparent;
}

.reviews-modal-body::-webkit-scrollbar {
  width: 6px;
}

.reviews-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.reviews-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 58, 93, 0.25);
  border-radius: 10px;
}

.reviews-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 58, 93, 0.45);
}

@media (max-width: 640px) {
  .reviews-modal-card {
    max-height: calc(100svh - 1rem);
    border-radius: 20px;
  }

  .reviews-modal-header {
    padding: 1rem 1.25rem;
  }

  .reviews-modal-title {
    font-size: 1.1rem;
  }

  .reviews-modal-body {
    padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   VIDEO MODAL PLAYER
   -------------------------------------------------------------------------- */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 9, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 85vh;
  max-height: 780px;
  background: #140D09;
  border-radius: 28px;
  border: 1px solid rgba(193, 154, 107, 0.4);
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.video-modal-close:hover {
  background: #C19A6B;
  color: #170E09;
  transform: scale(1.1);
}

.video-modal-frame-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  color: #FFFFFF;
  gap: 1rem;
}

.video-modal-placeholder svg {
  width: 48px;
  height: 48px;
  color: #C19A6B;
}

.video-modal-placeholder h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0;
}

.video-modal-placeholder p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES FOR TESTIMONIALS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .video-reel-card {
    flex: 0 0 calc((100% - 1.25rem) / 2);
    width: calc((100% - 1.25rem) / 2);
  }

  .video-reels-track {
    gap: 1.25rem;
  }
  
  .reviews-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .review-rating-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-reel-card {
    flex: 0 0 100%;
    width: 100%;
    border-radius: 20px;
    padding: 1.25rem;
  }

  .video-carousel-nav-btn {
    width: 38px;
    height: 38px;
  }

  .video-carousel-pagination {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
  }

  .reviews-masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .testimonials-cta-card {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ==========================================================================
   FAQ MASTER SECTION (PREGUNTAS FRECUENTES) - 2 COLUMNS LAYOUT
   ========================================================================== */
.faq-master-section {
  width: 100%;
  padding: clamp(3rem, 6vh, 5.5rem) 0 clamp(5rem, 9vh, 7.5rem);
  background: transparent;
  position: relative;
  z-index: 2;
}

.faq-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1.42fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* Left Column: Becomes sticky only when extra FAQs are expanded */
.faq-left-col {
  position: static;
  display: flex;
  flex-direction: column;
}

.faq-master-section.faq-expanded .faq-left-col {
  position: sticky;
  top: 120px;
}

.faq-header-block {
  text-align: left;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.15rem;
}

.faq-left-col .pre-top-badge {
  align-self: flex-start !important;
  margin: 0 0 0.25rem 0 !important;
  display: inline-flex;
  align-items: center;
}

.faq-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #1B130E;
  margin: 0;
}

.faq-main-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  color: #5C4333;
  margin: 0;
  max-width: 440px;
}

/* Right Column: Accordion List & Expand */
.faq-right-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

/* FAQ Accordion List (Clean Minimalist Divider Style) */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border-top: none;
}

.faq-item {
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(193, 154, 107, 0.25);
  box-shadow: none;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(193, 154, 107, 0.55);
}

.faq-item.active {
  border-color: rgba(193, 154, 107, 0.55);
  background: transparent;
  box-shadow: none;
}

.faq-item.hidden-faq {
  display: none;
}

.faq-item.animate-in {
  animation: faqSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0.35rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.18vw, 1.1rem);
  font-weight: 500;
  color: #4E3B2F;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.faq-item:hover .faq-question-btn {
  color: #7A4D2F;
}

.faq-item.active .faq-question-btn {
  color: #7A4D2F;
}

.faq-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 232, 223, 0.65);
  border: 1px solid rgba(193, 154, 107, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5C4333;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon-circle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-circle {
  background: #003A5D;
  color: #FFFFFF;
  border-color: #003A5D;
  transform: rotate(180deg);
}

.faq-answer-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer-panel {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-text {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.68;
  color: #695448;
  font-weight: 400;
  margin: 0;
  padding: 0 0.35rem 1.45rem 0.35rem;
  border-top: none;
}

/* Clean Minimal Expand Button (No Capsule Background, Centered) */
.faq-expand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 1.25rem;
  padding: 0 0.35rem;
  width: 100%;
}

.faq-discreet-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  color: #003A5D;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: none;
}

.faq-discreet-btn:hover {
  background: transparent;
  border-color: transparent;
  color: #CEA052;
  transform: translateY(1px);
  box-shadow: none;
}

.faq-discreet-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-discreet-btn.expanded svg {
  transform: rotate(180deg);
}

@media (max-width: 960px) {
  .faq-container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .faq-left-col {
    position: static;
  }

  .faq-header-block {
    text-align: center;
    align-items: center;
    margin: 0 auto;
  }

  .faq-left-col .pre-top-badge {
    align-self: center !important;
    margin: 0 auto !important;
  }

  .faq-main-subtitle {
    max-width: 600px;
  }
}

@media (max-width: 600px) {
  .faq-question-btn {
    padding: 1.15rem 1.15rem;
    font-size: 0.96rem;
  }

  .faq-answer-text {
    padding: 0 1.15rem 1.25rem;
    padding-top: 0.95rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   EDITORIAL FOOTER (WARM BEIGE + IMAGE RIGHT)
   ========================================================================== */
.dermato-footer-section {
  width: 100%;
  padding: clamp(1rem, 2.1vh, 1.5rem) 0 clamp(2rem, 3.6vh, 2.8rem) 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

.dermato-footer-container {
  width: 98%;
  max-width: 1600px;
  margin: 0 auto;
  border-radius: 34px;
  border: none;
  color: #5f4534;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
}

.dermato-footer-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 214, 189, 0.58) 0%, rgba(255, 214, 189, 0) 55%),
    linear-gradient(120deg, #e9ddd1 0%, #eee4d9 35%, #f4ede6 100%),
    linear-gradient(90deg, rgba(244, 236, 227, 0.98) 0%, rgba(244, 236, 227, 0.9) 34%, rgba(244, 236, 227, 0.45) 58%, rgba(244, 236, 227, 0.06) 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 54%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.22) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 54%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.22) 84%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.dermato-footer-container::after {
  content: none;
}

.footer-pre-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 345px;
  position: static;
}

.footer-banner-content {
  padding: clamp(1.7rem, 2.7vw, 2.5rem) clamp(1.5rem, 2.5vw, 2.3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #8a674f;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(177, 136, 105, 0.36);
  padding: 0.42rem 0.96rem;
  border-radius: 100px;
  width: fit-content;
}

.footer-badge-icon {
  color: #b7814c;
}

.footer-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.08;
  color: #6b4633;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: none;
  text-wrap: initial;
}

.footer-title-line {
  display: block;
  white-space: nowrap;
}

.footer-banner-desc {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 1.12vw, 1.06rem);
  line-height: 1.62;
  color: #795f4d;
  margin: 0;
  max-width: 520px;
}

.footer-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.footer-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  background: #b27a42;
  border: 1px solid #b27a42;
  border-radius: 999px;
  color: #fff9f4;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.footer-btn-primary:hover {
  background: #986233;
  border-color: #986233;
  transform: translateY(-2px);
}

.footer-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(170, 130, 100, 0.42);
  border-radius: 999px;
  color: #6f4b37;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.footer-btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(170, 130, 100, 0.55);
  transform: translateY(-2px);
  color: #6f4b37;
}

.btn-sparkle {
  color: #f7d6b7;
  font-size: 0.82rem;
}

.footer-btn-secondary .btn-sparkle {
  color: #bf8550;
}

.footer-banner-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 33%, rgba(0, 0, 0, 0.95) 52%, #000 100%), linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, 0.45) 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 33%, rgba(0, 0, 0, 0.95) 52%, #000 100%), linear-gradient(to bottom, #000 0%, #000 76%, rgba(0, 0, 0, 0.45) 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.footer-banner-img {
  width: 78%;
  height: 100%;
  object-fit: cover;
  object-position: 94% 72%;
  opacity: 0.9;
  filter: none;
  margin-left: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.48) 76%, rgba(0, 0, 0, 0.14) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.48) 76%, rgba(0, 0, 0, 0.14) 90%, transparent 100%);
}

.footer-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(241, 231, 221, 0.95) 0%, rgba(241, 231, 221, 0.66) 35%, rgba(241, 231, 221, 0.25) 58%, rgba(241, 231, 221, 0.02) 80%);
}

.footer-links-grid {
  border-top: none;
  padding: clamp(1.7rem, 2.5vw, 2.3rem) clamp(1.5rem, 2.8vw, 2.4rem);
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: clamp(1.1rem, 2vw, 1.7rem);
  position: relative;
  z-index: 4;
  background: transparent;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  color: #664734;
  margin-bottom: 0.6rem;
}

.footer-brand-logo-mark {
  width: min(100%, 300px);
  height: 74px;
  display: block;
  background-color: #664734;
  -webkit-mask-image: url('logo-vector-horizontal.svg');
  mask-image: url('logo-vector-horizontal.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

@media (max-width: 1024px) {
  .footer-brand-logo-mark {
    width: min(100%, 260px);
    height: 64px;
  }
}

.footer-brand-tagline {
  font-family: var(--font-body);
  color: #7a6151;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 0.75rem 0;
  max-width: 380px;
}

.footer-trust-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a5a46;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: #6b4936;
  margin: 0 0 0.55rem 0;
  letter-spacing: -0.01em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.footer-nav-list a {
  font-family: var(--font-body);
  color: #7e6351;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #9a693d;
  transform: translateX(3px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  font-family: var(--font-body);
  color: #7d6251;
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-contact-item a {
  color: #765845;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: #9c683c;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(169, 126, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #aa7443;
  margin-top: 0;
}

.footer-bottom-bar {
  border-top: none;
  padding: 0.9rem clamp(1.5rem, 2.5vw, 2.3rem) clamp(1.8rem, 2.8vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #8d7361;
  position: relative;
  z-index: 4;
  background: transparent;
}

.footer-copyright {
  margin: 0;
}

.footer-cofepris {
  display: block;
  margin-top: 0.25rem;
  opacity: 0.8;
  font-size: 0.76rem;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-legal-links a {
  color: #846856;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #a06d40;
}

@media (min-width: 1025px) {
  .dermato-footer-container {
    width: 98%;
  }
}

@media (max-width: 1200px) {
  .footer-banner-title {
    max-width: none;
  }

  .footer-col-title {
    font-size: 1.45rem;
  }
}

@media (max-width: 1024px) {
  .footer-pre-banner {
    min-height: 320px;
  }

  .footer-banner-visual {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.85;
  }

  .footer-banner-img {
    width: 82%;
    object-position: 90% 70%;
  }

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

  .footer-col-title {
    font-size: 1.55rem;
  }
}

/* Visibility Utilities for Desktop and Mobile Footers */
.desktop-footer-only {
  display: block;
}

.mobile-footer-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-footer-only {
    display: none !important;
  }

  .mobile-footer-only {
    display: flex !important;
  }
}

/* ==========================================================================
   DEDICATED SIMPLIFIED MOBILE FOOTER
   ========================================================================== */
.dermato-mobile-footer {
  width: 92%;
  max-width: 520px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  background: linear-gradient(145deg, #eee4d9 0%, #f4ede6 60%, #ebe0d4 100%);
  border-radius: 28px;
  border: 1px solid rgba(169, 126, 92, 0.28);
  box-shadow: 0 16px 40px rgba(60, 40, 25, 0.08);
  padding: 2rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.dermato-mobile-footer::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 189, 0.6) 0%, transparent 70%);
  pointer-events: none;
}

/* Brand & Badge */
.mobile-footer-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mobile-footer-brand-wrap .footer-brand-logo-mark {
  width: min(100%, 240px);
  height: 60px;
  -webkit-mask-position: center;
  mask-position: center;
  margin: 0 auto;
}

/* CTA Card inside Mobile Footer */
.mobile-footer-cta-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(169, 126, 92, 0.3);
  border-radius: 20px;
  padding: 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.mobile-footer-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.18;
  color: #6b4633;
  margin: 0;
}

.mobile-footer-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #795f4d;
  margin: 0;
}

.mobile-cta-main-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

/* Quick Action Buttons (Call MEX, Call USA, Location) */
.mobile-footer-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.mobile-footer-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.4rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(169, 126, 92, 0.3);
  border-radius: 14px;
  color: #6f4b37;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.mobile-footer-action-btn svg {
  color: #b27a42;
}

.mobile-footer-action-btn:hover,
.mobile-footer-action-btn:active {
  background: #ffffff;
  color: #b27a42;
  border-color: #b27a42;
}

/* 2-Column Links Grid */
.mobile-footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 0.75rem 0.25rem;
  border-top: 1px solid rgba(169, 126, 92, 0.2);
  border-bottom: 1px solid rgba(169, 126, 92, 0.2);
  position: relative;
  z-index: 2;
}

.mobile-footer-heading {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 400;
  color: #6b4936;
  margin: 0 0 0.5rem 0;
}

.mobile-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mobile-footer-links a {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: #7e6351;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-footer-links a:hover {
  color: #b27a42;
}

/* Trust Badges */
.mobile-footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.mobile-footer-trust .footer-trust-item {
  font-size: 0.78rem;
  padding: 0;
}

/* Info: Address & Hours */
.mobile-footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #7a6151;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.mobile-footer-info p {
  margin: 0;
}

/* Sub-footer Legal & Copyright */
.mobile-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: #8d7361;
  border-top: 1px solid rgba(169, 126, 92, 0.18);
  padding-top: 0.9rem;
  position: relative;
  z-index: 2;
}

.mobile-footer-copy {
  margin: 0;
}

.mobile-footer-cofepris {
  display: block;
  margin-top: 0.3rem;
  opacity: 0.8;
  font-size: 0.74rem;
}

.mobile-footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-footer-legal a {
  color: #846856;
  text-decoration: none;
}

/* ==========================================================================
   TYPOGRAPHY CONSISTENCY PASS
   ========================================================================== */
/* Unified Section H2 Titles */
.procedures-title,
.location-card-title,
.location-map-title,
.testimonials-main-title,
.hub-testimonials-title,
.hub-treatments-title,
.faq-main-title,
.footer-banner-title,
.editorial-sticky-title {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-b-desc,
.doc-bio-text,
.procedures-desc,
.proc-card-desc,
.testimonials-main-subtitle,
.testimonials-cta-desc,
.faq-main-subtitle,
.faq-answer-text,
.footer-banner-desc,
.footer-brand-tagline,
.footer-nav-list a,
.footer-contact-item,
.footer-contact-item a,
.modal-subtitle {
  font-family: var(--font-body);
  color: var(--color-type-body);
}

.faq-question-btn,
.nav-link,
.review-author-name {
  font-family: var(--font-body);
  color: var(--color-type-ui);
}

.faq-question-btn {
  font-weight: 500;
}

.faq-item:hover .faq-question-btn,
.faq-item.active .faq-question-btn,
.faq-discreet-btn,
.footer-nav-list a:hover,
.footer-contact-item a:hover,
.review-author-date {
  color: var(--color-type-accent);
}

.footer-nav-list a,
.footer-contact-item a,
.review-author-date,
.faq-main-subtitle,
.footer-banner-desc,
.footer-brand-tagline {
  color: var(--color-type-soft);
}

/* Shared location section for procedure pages */
.location-map-section {
  padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 3vw, 2.5rem) clamp(4rem, 7vw, 7rem);
  background: #FAF7F2;
}

main .hub-testimonials-section.reviews-before-map {
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

@media (max-width: 640px) {
  main .hub-testimonials-section.reviews-before-map {
    padding-bottom: 2rem;
  }
}

.location-map-container {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid rgba(140, 101, 66, 0.22);
  border-radius: clamp(24px, 3vw, 38px);
  overflow: hidden;
  background: #fffdfa;
}

.location-map-content {
  padding: clamp(2.25rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-map-eyebrow {
  margin: 0 0 1rem;
  color: #8c6542;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.location-map-title {
  margin: 0 0 1rem;
  color: #5c3b28;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.04;
}

.location-map-intro {
  margin: 0 0 2rem;
  color: #765f51;
  font-family: var(--font-body);
  line-height: 1.65;
}

.location-contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-contact-item {
  display: grid;
  gap: 0.18rem;
  color: #765f51;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.location-contact-item strong {
  color: #5c3b28;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-contact-item a {
  color: inherit;
  text-decoration: none;
}

.location-contact-item a:hover {
  color: #8c6542;
}

.location-map-frame {
  min-height: 520px;
  background: #eadfd4;
}

.location-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  border: 0;
}

@media (max-width: 820px) {
  .location-map-container {
    grid-template-columns: 1fr;
  }

  .location-map-frame,
  .location-map-frame iframe {
    min-height: 380px;
  }
}

.editorial-reviews-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.68rem 1.2rem;
  border: 1px solid rgba(140, 101, 66, 0.58);
  border-radius: 999px;
  color: #6b4932;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.editorial-reviews-link:hover {
  color: #fffaf5;
  background: #8c6542;
  border-color: #8c6542;
}

.editorial-reviews-link svg {
  width: 15px;
  height: 15px;
}

.doc-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.doc-profile-action {
  min-height: 46px;
  padding: 0.78rem 1.25rem;
  border: 1px solid #8c6542;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.doc-profile-action-primary {
  color: #fffaf5;
  background: #003A5D;
  border-color: #003A5D;
}

.doc-profile-action-primary:hover {
  background: #02253D;
  border-color: #02253D;
}

.doc-profile-action-secondary {
  color: #6b4932;
  background: transparent;
}

.doc-profile-action-secondary:hover {
  color: #fffaf5;
  background: #8c6542;
}

@media (max-width: 540px) {
  .doc-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .doc-profile-action {
    width: 100%;
  }
}

/* iOS/WebKit mobile performance: avoid continuous repainting of blurred fixed layers. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 1024px) {
    html {
      overflow-x: hidden !important;
    }

    body {
      overflow-x: visible !important;
      position: static !important;
    }

    .glass-orb {
      animation: none;
      filter: none;
      opacity: 0.28;
      transform: none;
    }

    .dermato-navbar,
    .dermato-navbar.scrolled {
      background: rgba(250, 247, 242, 0.97);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    .mobile-drawer,
    .procedures-filter-wrapper,
    .hub-mobile-pill {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    .hub-mobile-pill {
      background: #ffffff !important;
    }
  }
}

/* ==========================================================================
   FLOATING SPEED-DIAL / QUICK CONTACT COMPONENT (PINK THEME MATCHING REFERENCE)
   ========================================================================== */
.floating-contact-speeddial {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  font-family: var(--font-body, system-ui, -apple-system, sans-serif) !important;
  pointer-events: auto !important;
}

/* Expanded Menu (Upward Floating Card) */
.floating-speeddial-menu {
  position: absolute !important;
  bottom: calc(100% + 18px) !important;
  left: 50% !important;
  right: auto !important;
  width: 250px;
  background: #FAF7F2;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(178, 122, 66, 0.22);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(60, 40, 25, 0.18), 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 0.65rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.96);
  transform-origin: bottom center;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s;
  z-index: 9999999 !important;
}

.floating-contact-speeddial.is-active .floating-speeddial-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, 0) scale(1) !important;
}

.speeddial-menu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.25rem 0.55rem;
  border-bottom: 1px solid rgba(178, 122, 66, 0.15);
  margin-bottom: 0.45rem;
}

.speeddial-menu-title {
  font-family: 'Larken', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #382012;
  text-transform: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
}

.speeddial-menu-badge {
  font-size: 0.64rem;
  font-weight: 600;
  color: #b27a42;
  background: rgba(178, 122, 66, 0.1);
  border: 1px solid rgba(178, 122, 66, 0.22);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.speeddial-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.speeddial-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: #ffffff;
  border: 1px solid rgba(178, 122, 66, 0.14);
  border-radius: 12px;
  text-decoration: none;
  color: #382012;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.speeddial-option:hover {
  background: #ffffff;
  border-color: #b27a42;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(60, 40, 25, 0.1);
}

.speeddial-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FAF7F2;
  border: 1.5px solid rgba(178, 122, 66, 0.25);
  box-shadow: 0 2px 8px rgba(60, 40, 25, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.speeddial-option:hover .speeddial-option-icon {
  transform: scale(1.08);
  border-color: #b27a42;
}

.speeddial-option-icon.icon-mex {
  color: #b27a42;
}

.speeddial-option-icon.icon-usa {
  color: #8c6542;
}

.speeddial-option-icon.icon-sms {
  color: #9c6c4e;
}

.speeddial-option-icon.icon-wa {
  color: #25d366;
  background: #f2fcf5;
  border-color: rgba(37, 211, 102, 0.35);
}

.speeddial-option.option-whatsapp:hover .speeddial-option-icon {
  border-color: #25d366;
  background: #e7f9ee;
}

.speeddial-option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.speeddial-option-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #382012;
  line-height: 1.25;
}

.speeddial-option-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: #8c6f5d;
  line-height: 1.2;
}

.speeddial-option.speeddial-prequalification-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  gap: 0.55rem !important;
  padding: 0.62rem 0.85rem !important;
  background: #023054 !important;
  border: 1px solid #023054 !important;
  border-radius: 9px !important;
  color: #ffffff !important;
  font: inherit;
  cursor: pointer;
}

.speeddial-option.speeddial-prequalification-btn:hover {
  background: #064a78 !important;
  border-color: #064a78 !important;
  box-shadow: 0 7px 18px rgba(2, 48, 84, 0.22);
}

.speeddial-prequalification-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.speeddial-prequalification-btn .speeddial-prequalification-label {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Main Trigger Button (Board Certified Floating Pill Card) */
.floating-contact-speeddial .floating-speeddial-btn.badge-dr-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.95rem !important;
  padding: 0.55rem 1.45rem 0.55rem 0.55rem !important;
  height: auto !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(178, 122, 66, 0.3) !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  box-shadow: 0 14px 34px rgba(60, 40, 25, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  text-align: left !important;
}

.floating-contact-speeddial .floating-speeddial-btn.badge-dr-trigger:hover {
  transform: translateY(-3px) scale(1.02) !important;
  border-color: rgba(178, 122, 66, 0.55) !important;
  box-shadow: 0 18px 42px rgba(60, 40, 25, 0.22), 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

.floating-contact-speeddial .floating-speeddial-btn.badge-dr-trigger:active {
  transform: translateY(0) scale(0.98) !important;
}

.floating-contact-speeddial.is-active .floating-speeddial-btn.badge-dr-trigger {
  border-color: #b27a42 !important;
  box-shadow: 0 16px 36px rgba(178, 122, 66, 0.28), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.floating-contact-speeddial .hub-dr-photo-wrap {
  position: relative !important;
  width: 52px !important;
  height: 52px !important;
  flex-shrink: 0 !important;
}

.floating-contact-speeddial .hub-dr-photo-inner {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #b27a42 !important;
  box-shadow: 0 4px 12px rgba(178, 122, 66, 0.3) !important;
}

.floating-contact-speeddial .hub-dr-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 24% 28% !important;
  transform: scale(1.9) !important;
  transform-origin: 24% 28% !important;
  display: block !important;
}

.floating-contact-speeddial .hub-dr-badge-icon {
  position: absolute !important;
  bottom: 0px !important;
  right: 0px !important;
  width: 14px !important;
  height: 14px !important;
  background: #25D366 !important;
  background-color: #25D366 !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 2 !important;
}

.floating-contact-speeddial.is-active .hub-dr-badge-icon {
  transform: scale(1.15) !important;
  background: #25D366 !important;
  background-color: #25D366 !important;
}

.floating-contact-speeddial .hub-dr-text-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
}

.floating-contact-speeddial .hub-dr-title {
  font-family: var(--font-body) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #4a2d1a !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.floating-contact-speeddial .hub-dr-subtitle {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #8c6542 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Responsive Styles for Floating Contact Speeddial */
@media (max-width: 860px) {
  #floating-speeddial.floating-contact-speeddial {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 20px !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    z-index: 9000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) !important;
    -webkit-transform: translateX(-50%) !important;
    will-change: auto !important;
  }

  .floating-contact-speeddial .floating-speeddial-btn.badge-dr-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    padding: 0.5rem 1.25rem 0.5rem 0.5rem !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    background: #ffffff !important;
    border: 2px solid #b27a42 !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 36px rgba(45, 25, 10, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-align: left !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    margin: 0 auto !important;
  }

  .floating-contact-speeddial .hub-dr-photo-wrap {
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }

  .floating-contact-speeddial .hub-dr-photo-inner {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid #b27a42 !important;
    box-shadow: 0 4px 12px rgba(178, 122, 66, 0.35) !important;
  }

  .floating-contact-speeddial .hub-dr-photo {
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    object-position: 24% 28% !important;
    transform: scale(1.9) !important;
    transform-origin: 24% 28% !important;
  }

  .floating-contact-speeddial .hub-dr-badge-icon {
    display: block !important;
    position: absolute !important;
    bottom: 0px !important;
    right: 0px !important;
    width: 14px !important;
    height: 14px !important;
    background: #25D366 !important;
    background-color: #25D366 !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    z-index: 2 !important;
  }

  .floating-contact-speeddial .hub-dr-text-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 0.15rem !important;
    min-width: 0 !important;
  }

  .floating-contact-speeddial .hub-dr-title {
    display: block !important;
    font-family: var(--font-body) !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    color: #382012 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .floating-contact-speeddial .hub-dr-subtitle {
    display: block !important;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #8c6542 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* Expanded Menu on Mobile (Centered) */
  .floating-contact-speeddial .floating-speeddial-menu {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 80px) !important;
    width: calc(100vw - 32px) !important;
    max-width: 320px !important;
    background: #FAF7F2 !important;
    border: 1px solid rgba(178, 122, 66, 0.25) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 52px rgba(45, 25, 10, 0.28), 0 8px 22px rgba(0, 0, 0, 0.12) !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    z-index: 9001 !important;
    transform: translate(-50%, 10px) !important;
    -webkit-transform: translate(-50%, 10px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s !important;
  }

  .floating-contact-speeddial.is-active .floating-speeddial-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) !important;
    -webkit-transform: translate(-50%, 0) !important;
  }

  .speeddial-option {
    padding: 0.72rem 0.85rem !important;
    gap: 0.8rem !important;
  }

  .speeddial-option-icon {
    width: 38px !important;
    height: 38px !important;
  }

  .speeddial-option-text {
    gap: 4px !important;
  }

  .speeddial-option-label {
    font-size: 0.9rem !important;
  }

  .speeddial-option-sub {
    font-size: 0.76rem !important;
  }
}

@media (max-width: 380px) {
  .floating-contact-speeddial .floating-speeddial-btn.badge-dr-trigger {
    padding: 0.4rem 0.95rem 0.4rem 0.4rem !important;
    gap: 0.6rem !important;
  }

  .floating-contact-speeddial .hub-dr-photo-wrap {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  .floating-contact-speeddial .hub-dr-photo-inner {
    width: 42px !important;
    height: 42px !important;
  }

  .floating-contact-speeddial .hub-dr-photo {
    width: 42px !important;
    height: 42px !important;
  }

  .floating-contact-speeddial .hub-dr-title {
    font-size: 0.88rem !important;
  }

  .floating-contact-speeddial .hub-dr-subtitle {
    font-size: 0.7rem !important;
  }
}

/* Hide floating contact button on mobile while the prequalification form modal is open */
@media (max-width: 860px) {
  body.prequal-modal-open #floating-speeddial.floating-contact-speeddial {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
