/* ==========================================================================
   María Durán by Spa Capillaire — main.css
   ========================================================================== */

:root {
  --black: #0b0a09;
  --ink: #1a1816;
  --charcoal: #221f1c;
  --ivory: #f6f1e7;
  --ivory-soft: #fbf6ec;
  --paper: #ffffff;
  --silver: #c9c4ba;
  --muted: #6c665f;
  --gold: #b8935a;
  --gold-soft: #d8bf8c;
  --gold-deep: #8a6d37;
  --line-dark: rgba(255, 250, 241, 0.14);
  --line-light: rgba(22, 21, 20, 0.10);
  --line-soft: rgba(22, 21, 20, 0.06);
  --success: #2d6d52;
  --error: #9d382f;
  --shadow-sm: 0 6px 18px rgba(11, 10, 9, 0.06);
  --shadow-md: 0 14px 32px rgba(11, 10, 9, 0.10);
  --shadow-lg: 0 28px 60px rgba(11, 10, 9, 0.18);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --header-h: 76px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset & base ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3, h4, blockquote {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: inherit;
}

h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 500; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

p { margin: 0 0 1em; }

::selection { color: var(--black); background: var(--gold-soft); }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  z-index: 1000; top: 12px; left: 12px;
  width: auto; height: auto; padding: 10px 14px; clip: auto;
  color: var(--black); background: var(--gold-soft); border-radius: 6px;
}

/* Buttons ================================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.button:hover, .button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(184, 147, 90, 0.28);
}
.button-primary:hover, .button-primary:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: 0 12px 32px rgba(184, 147, 90, 0.34);
}

.button-ghost {
  color: var(--ivory-soft);
  background: rgba(255, 250, 241, 0.06);
  border-color: rgba(255, 250, 241, 0.34);
}
.button-ghost:hover, .button-ghost:focus-visible {
  background: rgba(255, 250, 241, 0.14);
  border-color: rgba(255, 250, 241, 0.55);
}

.button-light {
  color: var(--black);
  background: var(--ivory-soft);
  border-color: var(--ivory-soft);
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: rgba(22, 21, 20, 0.22);
}
.button-outline:hover, .button-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.button-small { min-height: 42px; padding: 10px 18px; font-size: 13px; }
.button-large { min-height: 56px; padding: 17px 30px; font-size: 15px; }
.button-block { width: 100%; }

.button-row, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 200ms var(--ease), gap 200ms var(--ease);
}
.text-link::after { content: "→"; transition: transform 200ms var(--ease); }
.text-link:hover { gap: 10px; color: var(--gold); }
.section-dark .text-link { color: var(--gold-soft); }
.section-dark .text-link:hover { color: var(--ivory-soft); }

/* Eyebrow ================================================================= */
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--gold-deep); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  color: var(--ivory-soft);
  background: rgba(11, 10, 9, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 280ms var(--ease), border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 10, 9, 0.94);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.site-header.is-scrolled .brand img { height: 38px; transition: height 280ms var(--ease); }

.site-nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
}
.site-nav a {
  position: relative;
  color: rgba(255, 250, 241, 0.82);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-soft);
  transform: translateX(-50%);
  transition: width 220ms var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ivory-soft); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }

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

.language-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.language-switch a {
  min-width: 32px;
  padding: 6px 10px;
  text-align: center;
  border-radius: 999px;
  color: rgba(255, 250, 241, 0.7);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.language-switch a:hover { color: var(--ivory-soft); }
.language-switch a.active {
  color: var(--black);
  background: var(--gold-soft);
}

.header-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  width: 42px; height: 42px;
  place-items: center;
  gap: 4px;
  color: var(--ivory-soft);
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: 999px;
  background: transparent;
  transition: background 220ms var(--ease), border-color 220ms var(--ease);
}
.menu-toggle:hover { background: rgba(255, 250, 241, 0.08); }
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 1023px) {
  .site-nav {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 24px;
    background: rgba(11, 10, 9, 0.98);
    backdrop-filter: blur(14px);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 280ms var(--ease), transform 280ms var(--ease);
  }
  .menu-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a {
    display: block;
    width: min(100%, 380px);
    padding: 16px 8px;
    text-align: center;
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ivory-soft);
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav a::after { display: none; }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    inset: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .site-nav a {
    display: inline-block;
    width: auto;
    padding: 6px 0;
    font-family: var(--sans);
    font-size: 14px;
    color: rgba(255, 250, 241, 0.82);
    border-bottom: 0;
  }
  .site-nav a::after { display: block; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  min-height: clamp(560px, 86vh, 820px);
  align-items: end;
  overflow: hidden;
  padding: 140px 0 84px;
  background: var(--black);
}

.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroZoom 16s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.10);} to { transform: scale(1.00);} }

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, 0.85) 0%, rgba(11, 10, 9, 0.55) 50%, rgba(11, 10, 9, 0.15) 100%),
    linear-gradient(0deg, rgba(11, 10, 9, 0.78) 0%, rgba(11, 10, 9, 0.0) 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--ivory-soft);
}
.hero-content .eyebrow { color: var(--gold-soft); }
.hero-content h1 {
  color: var(--ivory-soft);
  margin-bottom: 20px;
  font-weight: 400;
}
.hero-lede {
  max-width: 580px;
  margin-bottom: 32px;
  color: rgba(255, 250, 241, 0.86);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; transform: none; }
}

/* ==========================================================================
   TRUST STRIP (differentials)
   ========================================================================== */
.trust-strip {
  color: var(--ivory-soft);
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.trust-item {
  position: relative;
  padding: 26px 28px;
  border-top: 1px solid var(--line-dark);
}
.trust-item:first-child { border-top: 0; }
.trust-item span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.trust-item p {
  margin: 0;
  color: rgba(255, 250, 241, 0.65);
  font-size: 14px;
  line-height: 1.55;
}
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-top: 0; border-left: 1px solid var(--line-dark); }
  .trust-item:nth-child(odd) { border-left: 0; }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item:nth-child(odd) { border-left: 1px solid var(--line-dark); }
  .trust-item:first-child { border-left: 0; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
}
.section-ivory { background: var(--ivory); color: var(--ink); }
.section-dark { background: var(--black); color: var(--ivory-soft); }

.section-heading {
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-heading.align-left { margin-inline: 0; text-align: left; }
.section-heading p {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
}
.section-dark .section-heading p { color: rgba(255, 250, 241, 0.7); }
.section-dark h2, .section-dark h3 { color: var(--ivory-soft); }

/* ==========================================================================
   ALISADOS — TREATMENT CARDS
   ========================================================================== */
.card-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.treatment-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}
.treatment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 147, 90, 0.35);
}

.treatment-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ddd5c8;
}
.treatment-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.treatment-card:hover .treatment-media img { transform: scale(1.04); }

.treatment-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
  padding: 26px 24px 28px;
}
.treatment-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.treatment-body h3 { margin: 0; }
.treatment-benefit {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.treatment-meta {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.meta-value { color: var(--ink); font-size: 14px; line-height: 1.5; }

/* ==========================================================================
   BEFORE / AFTER SLIDER
   ========================================================================== */
.ba-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 980px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }

.ba-case {
  display: grid;
  gap: 22px;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1a1816;
  box-shadow: var(--shadow-lg);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-img-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 60ms linear;
  will-change: clip-path;
}
.ba-img-clip .ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(11, 10, 9, 0.55);
  color: var(--ivory-soft);
  backdrop-filter: blur(6px);
}
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; background: rgba(184, 147, 90, 0.85); color: var(--black); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 250, 241, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: ew-resize;
  transition: left 60ms linear;
}
.ba-handle::before {
  content: "";
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.ba-handle svg {
  position: relative;
  width: 22px; height: 22px;
  color: var(--ink);
  z-index: 1;
}
.ba-handle:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.ba-info { padding: 0 4px; color: var(--ivory-soft); }
.ba-treatment {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(216, 191, 140, 0.4);
  border-radius: 999px;
}
.ba-info h3 { margin-bottom: 8px; color: var(--ivory-soft); }
.ba-info p { margin-bottom: 14px; color: rgba(255, 250, 241, 0.72); font-size: 15px; }

/* ==========================================================================
   CURLS (editorial)
   ========================================================================== */
.curls { background: var(--ivory); }
.curls-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.curls-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d8cebe;
  box-shadow: var(--shadow-md);
}
.curls-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.curls-copy h2 { margin-bottom: 16px; }
.curls-copy p { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); }
.clean-list {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.clean-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 1px;
  background: var(--gold);
}

@media (min-width: 920px) {
  .curls-grid { grid-template-columns: 1fr 1.1fr; }
}

/* ==========================================================================
   THERAPIES (editorial + 3 numbered items)
   ========================================================================== */
.therapies-grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.therapies-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ddd5c8;
  box-shadow: var(--shadow-md);
}
.therapies-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.therapies-list {
  display: grid;
  gap: 18px;
}

.therapy-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
}
.therapy-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 147, 90, 0.35);
}
.therapy-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}
.therapy-body h3 { margin: 0 0 8px; font-size: 20px; }
.therapy-body p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.therapy-meta {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}
.therapy-meta .meta-value { font-size: 13px; }

@media (min-width: 920px) {
  .therapies-grid { grid-template-columns: 0.9fr 1.2fr; }
}

/* ==========================================================================
   DIAGNOSIS (dark, editorial)
   ========================================================================== */
.diagnostic {
  color: var(--ivory-soft);
}
.diagnostic-grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.diagnostic-copy h2 { color: var(--ivory-soft); }
.diagnostic-copy p { color: rgba(255, 250, 241, 0.74); }
.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: 22px 0 28px;
}
.diagnostic-list span {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 14px;
  color: var(--ivory-soft);
  border-bottom: 1px solid var(--line-dark);
}
.diagnostic-list span::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 12px; height: 1px;
  background: var(--gold-soft);
}

.diagnostic-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1a1816;
  box-shadow: var(--shadow-lg);
}
.diagnostic-visual img { width: 100%; height: 100%; object-fit: cover; }
.visual-note {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  padding: 16px 18px;
  background: rgba(11, 10, 9, 0.78);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  color: var(--ivory-soft);
}
.visual-note strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--gold-soft);
}
.visual-note span { font-size: 13px; color: rgba(255, 250, 241, 0.78); }

@media (min-width: 920px) {
  .diagnostic-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ==========================================================================
   PROTOCOLS (technology)
   ========================================================================== */
.protocols { background: var(--ivory); }
.protocols-grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}
.protocol-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}
.protocol-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}
.protocol-num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-deep);
  min-width: 38px;
}
.protocol-item h3 { margin: 0 0 4px; font-size: 19px; }
.protocol-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

@media (min-width: 980px) {
  .protocols-grid { grid-template-columns: 0.9fr 1.1fr; }
  .protocols-grid .section-heading { margin-bottom: 0; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 32px 28px;
  background: rgba(255, 250, 241, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.testimonial-mark {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.6;
  color: var(--gold-soft);
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ivory-soft);
  font-weight: 400;
}
.testimonial figcaption {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 250, 241, 0.5);
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0;
  background:
    linear-gradient(135deg, rgba(184, 147, 90, 0.16) 0%, rgba(11, 10, 9, 0) 60%),
    var(--black);
  color: var(--ivory-soft);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.cta-band-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
.cta-band h2 {
  margin: 0 0 12px;
  max-width: 28ch;
  color: var(--ivory-soft);
  font-size: clamp(26px, 3vw, 36px);
}
.cta-band p {
  margin: 0;
  max-width: 50ch;
  color: rgba(255, 250, 241, 0.74);
  font-size: 16px;
}
@media (min-width: 820px) {
  .cta-band-inner { grid-template-columns: 1fr auto; gap: 40px; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--ivory); }
.contact-grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy p { color: var(--muted); }

.contact-details {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.contact-details a,
.contact-details div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-details > :last-child { border-bottom: 0; padding-bottom: 0; }
.contact-details > :first-child { padding-top: 0; }
.contact-details span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.contact-details strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.contact-details a:hover strong { color: var(--gold-deep); }

/* Form */
.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(28px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-heading h3 { margin: 0 0 6px; font-size: 22px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 14px; }

.contact-form label {
  display: grid;
  gap: 6px;
}
.contact-form label > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px;
  background: var(--ivory-soft);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.18);
}
.contact-form .is-invalid input,
.contact-form .is-invalid select,
.contact-form .is-invalid textarea {
  border-color: var(--error);
}
.contact-form small[data-error] {
  min-height: 14px;
  color: var(--error);
  font-size: 12px;
}
.form-status {
  margin: 0;
  color: var(--success);
  font-size: 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.form-status.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 980px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .form-heading,
  .contact-form label.full,
  .contact-form .form-status,
  .contact-form .form-submit { grid-column: 1 / -1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  color: rgba(255, 250, 241, 0.78);
  background: var(--black);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  gap: 32px;
  padding: 56px 0 36px;
}
.footer-brand p { color: rgba(255, 250, 241, 0.6); font-size: 14px; max-width: 36ch; }
.footer-logo {
  width: 180px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}
.site-footer nav {
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.site-footer nav a { color: rgba(255, 250, 241, 0.74); transition: color 200ms var(--ease); }
.site-footer nav a:hover { color: var(--gold-soft); }
.footer-contact p { margin: 0 0 10px; font-size: 14px; }
.footer-contact strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-contact a { color: rgba(255, 250, 241, 0.78); }
.footer-contact a:hover { color: var(--ivory-soft); }

@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 250, 241, 0.5);
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  color: #fff;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.floating-whatsapp svg { width: 26px; height: 26px; }
.floating-whatsapp:hover, .floating-whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.55);
}
.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .floating-whatsapp::before { animation: none; } }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   PRINT / MISC
   ========================================================================== */
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }
