/* ==========================================================================
   Laboratorio Clínico Veterinario Península — Design System
   Static CSS. No dependencies. Brand-led, medical, professional.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (sampled from logo) */
  --teal-50:  #eef8fa;
  --teal-100: #d3edf1;
  --teal-200: #a8dbe3;
  --teal-400: #2ba7bd;   /* brand accent */
  --teal-500: #1990a6;   /* interactive */
  --teal-600: #12798d;   /* hover */
  --teal-700: #0e6172;
  --teal-900: #0a3a45;   /* deep ink-teal */

  --green:  #7fac2f;     /* deepened for AA on white */
  --green-soft: #eef5dd;
  --coral:  #d9455f;
  --coral-soft: #fce8ec;
  --purple: #8e2c8b;
  --purple-soft: #f4e6f3;

  /* Neutrals */
  --ink:    #0f1e28;     /* headings / primary text */
  --slate:  #3c525d;     /* body text */
  --muted:  #5f7681;     /* secondary text */
  --line:   #e2ecef;     /* borders */
  --line-strong: #cfdde2;
  --bg:     #f6fafb;     /* page background */
  --bg-alt: #eef5f7;     /* alt section */
  --card:   #ffffff;
  --ink-inv:#ffffff;

  /* Effects — layered, premium depth */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15,30,40,.06);
  --shadow-sm: 0 1px 2px rgba(15,30,40,.05), 0 4px 12px rgba(15,30,40,.05);
  --shadow:    0 2px 6px rgba(15,30,40,.05), 0 12px 28px rgba(15,30,40,.08);
  --shadow-lg: 0 4px 12px rgba(10,58,69,.08), 0 28px 60px rgba(10,58,69,.16);
  --ring: 0 0 0 4px rgba(43,167,189,.28);
  --glass: rgba(255,255,255,.72);

  /* Type */
  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --z-header: 50;
  --z-modal: 80;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* `clip` avoids creating a scroll container (which would break position: sticky) */
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; }
strong { color: var(--ink); font-weight: 600; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--teal-900); color: #c7e3e8; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal-400); border-radius: 2px; }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
h2.title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-top: .6rem; }
h3.title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); margin-top: 1rem; }

/* ---------- Brand quad motif (signature element) ---------- */
.quad {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px;
  width: 1em; height: 1em; transform: rotate(45deg); border-radius: 3px;
  vertical-align: -.12em;
}
.quad i { display: block; border-radius: 2px; }
.quad i:nth-child(1) { background: var(--green); }
.quad i:nth-child(2) { background: var(--coral); }
.quad i:nth-child(3) { background: var(--teal-400); }
.quad i:nth-child(4) { background: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .82em 1.5em; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .05s;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--teal-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-600); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--teal-700); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal-400); color: var(--teal-700); background: var(--teal-50); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn--lg { font-size: 1.06rem; padding: .95em 1.7em; }
.btn--block { width: 100%; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem;
  padding: .5em .9em; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line); color: var(--slate); box-shadow: var(--shadow-xs);
}
.chip svg { width: 1.05em; height: 1.05em; color: var(--teal-500); }

/* ==========================================================================
   Utility / announcement bar
   ========================================================================== */
.topbar {
  background: var(--teal-900); color: #bfe1e7;
  font-size: .84rem; font-family: var(--font-head); font-weight: 500;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding-block: 6px; }
.topbar__tag { display: inline-flex; align-items: center; gap: .5em; }
.topbar__tag .quad { font-size: 1em; }
.topbar__links { display: flex; align-items: center; gap: 1.25rem; }
.topbar__links a { color: #d9eef1; display: inline-flex; align-items: center; gap: .45em; }
.topbar__links a:hover { color: #fff; }
.topbar__links svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .topbar__tag span { display: none; } .topbar__links a span { display: none; } }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand__text { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.05; }
.brand__text small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600); }
@media (max-width: 560px){ .brand__text { display:none; } }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--slate);
  padding: .55em .85em; border-radius: var(--radius-pill); transition: background .2s, color .2s;
}
.nav a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav a.is-active { color: var(--teal-700); background: var(--teal-50); }
.nav > .btn { display: none; } /* CTA inside nav is for the mobile menu only */
.header__cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav, .header__cta .btn--primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px;
  }
  .nav.is-open a { padding: .8em 1em; font-size: 1.05rem; }
  .nav.is-open .btn { display: inline-flex; margin-top: .5rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 82% 12%, rgba(43,167,189,.16), transparent 60%),
    radial-gradient(50% 60% at 8% 90%, rgba(142,44,139,.09), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(48px, 7vw, 92px);
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
.hero h1 .hl { color: var(--teal-600); }
.hero__lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--slate); max-width: 34ch; margin-top: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px;
  overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(43,167,189,.14), transparent 70%);
}
.hero-card__mark { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.hero-card__mark img { height: 64px; width: auto; }
.hero-card__mark b { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); display: block; }
.hero-card__mark span { font-size: .82rem; color: var(--muted); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.hero-stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.hero-stat b { font-family: var(--font-head); font-size: 1.75rem; color: var(--teal-700); display: block; line-height: 1; }
.hero-stat span { font-size: .84rem; color: var(--muted); display: block; margin-top: 6px; }
.hero-note { margin-top: 20px; display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__lead { max-width: 48ch; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* ==========================================================================
   Logos / trust strip
   ========================================================================== */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust .container { display: flex; align-items: center; gap: clamp(20px,4vw,48px); flex-wrap: wrap; justify-content: center; padding-block: 22px; }
.trust p { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: .9rem; }
.trust__item { display: inline-flex; align-items: center; gap: .6em; color: var(--slate); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.trust__item svg { width: 20px; height: 20px; color: var(--teal-500); }

/* ==========================================================================
   Services grid (color-coded)
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.svc {
  --accent: var(--teal-500); --accent-soft: var(--teal-50);
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: .9; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.svc__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: 8px; }
.svc p { font-size: .96rem; color: var(--muted); line-height: 1.6; }

/* Accent variants */
.svc.a-teal   { --accent: var(--teal-500);  --accent-soft: var(--teal-50); }
.svc.a-green  { --accent: var(--green);      --accent-soft: var(--green-soft); }
.svc.a-coral  { --accent: var(--coral);      --accent-soft: var(--coral-soft); }
.svc.a-purple { --accent: var(--purple);     --accent-soft: var(--purple-soft); }

/* ==========================================================================
   About / split feature
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); }
.feature-list .ic svg { width: 20px; height: 20px; }
.feature-list b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1rem; }
.feature-list p { font-size: .93rem; color: var(--muted); margin-top: 2px; }

.about-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(150deg, var(--teal-900), var(--teal-700)); min-height: 360px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-lg); }
.about-visual::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 60% at 80% 15%, rgba(43,167,189,.4), transparent 60%); }
.about-visual .quad-big { position: absolute; top: 34px; right: 34px; font-size: 76px; opacity: .95; }
.about-visual h3 { color: #fff; position: relative; font-size: 1.5rem; }
.about-visual p { color: #bfe1e7; position: relative; margin-top: 10px; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 940px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 46px; height: 46px; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--teal-200); color: var(--teal-700);
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--muted); }
.step:not(:last-child) .step__num::after {
  content:""; position: absolute; top: 31px; left: 46px; right: -22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-200) 0 6px, transparent 6px 12px);
}
@media (max-width: 940px){ .step .step__num::after { display: none; } }

/* ==========================================================================
   Additional services (list cards)
   ========================================================================== */
.mini { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s; }
.mini:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mini__ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); }
.mini__ic svg { width: 24px; height: 24px; }
.mini h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mini p { font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 60px); box-shadow: var(--shadow-lg); }
.cta-band::before { content:""; position:absolute; right:-40px; top:-40px; font-size: 220px; }
.cta-band .quad-big { position:absolute; right: -20px; bottom: -30px; font-size: 180px; opacity: .18; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #bfe1e7; margin-top: 8px; max-width: 46ch; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--teal-900); color: #a9cdd4; padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer a { color: #cfe7eb; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__logo img { height: 48px; width: auto; }
.footer__logo span { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.15rem; line-height: 1.05; }
.footer__logo small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-400); }
.footer__brand p { font-size: .92rem; color: #9fc4cc; max-width: 32ch; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-head); }
.footer ul { display: grid; gap: 10px; }
.footer li { font-size: .94rem; }
.footer .contact-li { display: flex; gap: 10px; align-items: flex-start; }
.footer .contact-li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--teal-400); flex-shrink: 0; }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #cfe7eb; transition: background .2s; }
.social a:hover { background: var(--teal-500); color: #fff; }
.social svg { width: 20px; height: 20px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #86b0b8; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 85% 10%, rgba(43,167,189,.12), transparent 60%); }
.page-hero .container { position: relative; padding-block: clamp(40px, 6vw, 72px); }
.breadcrumb { display: flex; align-items: center; gap: .5em; font-size: .86rem; color: var(--muted); font-family: var(--font-head); font-weight: 500; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal-600); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin-top: 12px; max-width: 60ch; }

/* ==========================================================================
   Catálogo por área (página de servicios) — acordeón
   ========================================================================== */
.cat { display: flex; flex-direction: column; gap: 14px; }
/* Compensa el header fijo al llegar por un enlace #ancla */
.area { scroll-margin-top: 150px; }

.area {
  --c: var(--teal-500); --cs: var(--teal-50);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: box-shadow .25s, border-color .25s;
}
.area.c-coral  { --c: var(--coral);  --cs: var(--coral-soft); }
.area.c-green  { --c: var(--green);  --cs: var(--green-soft); }
.area.c-purple { --c: var(--purple); --cs: var(--purple-soft); }
.area:hover { box-shadow: var(--shadow); }
.area.is-open { border-color: var(--c); }

.area__h { margin: 0; font-size: inherit; font-weight: inherit; }
.area__btn {
  width: 100%; display: flex; align-items: center; gap: 15px; text-align: left;
  padding: 16px 18px; background: none; border: 0; cursor: pointer; font: inherit;
  transition: background .2s;
}
.area__btn:hover { background: var(--bg); }
.area.is-open .area__btn { background: linear-gradient(90deg, var(--cs), transparent 72%); }

.area__ic {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; background: var(--cs); color: var(--c); transition: transform .3s;
}
.area__ic svg { width: 25px; height: 25px; }
.area.is-open .area__ic { transform: scale(1.06); }

.area__txt { flex: 1 1 auto; min-width: 0; }
.area__txt b {
  display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: 1.08rem; line-height: 1.25; letter-spacing: -.01em;
}
.area__txt span { display: block; font-size: .86rem; color: var(--muted); margin-top: 2px; }

.area__n {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  color: var(--c); background: var(--cs); border-radius: var(--radius-pill);
  padding: .36em .8em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.area__chev { flex: 0 0 auto; width: 21px; height: 21px; color: var(--muted); transition: transform .3s, color .3s; }
.area.is-open .area__chev { transform: rotate(180deg); color: var(--c); }

.area__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.area.is-open .area__panel { grid-template-rows: 1fr; }
.area__inner { overflow: hidden; min-height: 0; }
.area__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; padding: 2px 18px 18px; }

/* Sin JS: todas las áreas quedan abiertas para que el contenido sea visible */
html:not(.js) .area__panel { grid-template-rows: 1fr; }
html:not(.js) .area__chev { display: none; }

.study {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 15px 14px 17px; transition: background .2s, border-color .2s;
}
.study::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--c); opacity: .55;
}
.study:hover { background: var(--card); border-color: var(--c); }
.study.is-hidden { display: none; }
.study__top { display: flex; align-items: flex-start; gap: 11px; }
.study__name {
  flex: 1 1 auto; margin: 0; font-family: var(--font-head); font-weight: 600;
  color: var(--ink); font-size: .97rem; line-height: 1.3;
}
.study__tat {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 700; font-size: .73rem;
  color: var(--teal-700); background: var(--card); border: 1px solid var(--teal-100);
  border-radius: var(--radius-pill); padding: .28em .68em; white-space: nowrap;
}
.study__req { margin: 8px 0 0; font-size: .87rem; color: var(--muted); line-height: 1.55; }
.study__req b {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 2px;
}

@media (max-width: 860px) { .area__list { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .area__btn { padding: 14px; gap: 12px; }
  .area__ic { width: 44px; height: 44px; border-radius: 12px; }
  .area__ic svg { width: 22px; height: 22px; }
  .area__txt b { font-size: 1rem; }
  .area__txt span { display: none; }
  .area__n { font-size: .72rem; padding: .34em .7em; }
  .area__list { padding: 2px 13px 15px; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,48px); align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-xs); }
.info-card + .info-card { margin-top: 20px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row b { display: block; color: var(--ink); font-family: var(--font-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-row a, .info-row span { color: var(--ink); font-size: 1.02rem; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line-strong); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--teal-400); box-shadow: var(--ring); outline: none; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* Hours table */
.hours { display: grid; gap: 0; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours__row:last-child { border-bottom: none; }
.hours__row b { font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.hours__row span { color: var(--teal-700); font-weight: 600; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* Sin JS el contenido siempre es visible: solo se oculta si la clase .js está presente */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc:hover, .mini:hover { transform: none; }
}

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600; }
.skip:focus { left: 8px; }

/* ==========================================================================
   PREMIUM COMPONENTS
   ========================================================================== */

/* ---------- Decorative background art (molecular dots + blobs) ---------- */
.bg-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-art .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.bg-art .blob.t { width: 420px; height: 420px; background: radial-gradient(circle, rgba(43,167,189,.45), transparent 70%); top: -120px; right: -80px; }
.bg-art .blob.p { width: 360px; height: 360px; background: radial-gradient(circle, rgba(142,44,139,.28), transparent 70%); bottom: -140px; left: -100px; }
.bg-art .grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14,97,114,.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 40%, transparent 100%);
}

/* ---------- Hero: lab report mock card ---------- */
.report {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 24px;
}
.report__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.report__id { display: flex; align-items: center; gap: 12px; }
.report__id img { height: 40px; }
.report__id b { font-family: var(--font-head); color: var(--ink); font-size: .98rem; display: block; line-height: 1.1; }
.report__id span { font-size: .76rem; color: var(--muted); }
.report__badge { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--green); background: var(--green-soft); padding: .4em .7em; border-radius: var(--radius-pill); }
.report__badge svg { width: 13px; height: 13px; }
.report__meta { display: flex; gap: 18px; flex-wrap: wrap; padding: 14px 0; font-size: .82rem; color: var(--muted); }
.report__meta b { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.report__rows { display: grid; gap: 2px; }
.rrow { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; }
.rrow:nth-child(odd) { background: var(--bg); }
.rrow__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .9rem; }
.rrow__val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal-700); font-size: .95rem; }
.rrow__flag { width: 9px; height: 9px; border-radius: 50%; justify-self: end; }
.rrow__flag.ok { background: var(--green); }
.rrow__flag.hi { background: var(--coral); }
.rrow__flag.lo { background: var(--purple); }
.report__spark { margin-top: 14px; padding: 14px; background: linear-gradient(135deg, var(--teal-900), var(--teal-700)); border-radius: var(--radius); color: #cdeaef; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.report__spark span { font-size: .78rem; }
.report__spark b { color: #fff; font-family: var(--font-head); font-size: 1.15rem; display: block; }
.report__spark svg { flex-shrink: 0; }
.report-float {
  position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .9rem;
}
.report-float svg { width: 22px; height: 22px; }
.report-float.a { top: -22px; left: -26px; color: var(--teal-700); }
.report-float.a svg { color: var(--teal-500); }
.report-float.b { bottom: -22px; right: -18px; color: var(--green); }
.report-float.b svg { color: var(--green); }
@media (max-width: 560px){ .report-float { display: none; } }

/* ---------- Species strip ---------- */
.species { display: flex; align-items: center; justify-content: center; gap: clamp(18px,4vw,44px); flex-wrap: wrap; }
.species__item { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: .84rem; }
.species__item svg { width: 40px; height: 40px; color: var(--teal-600); }

/* ---------- Section eyebrow divider with quad ---------- */
.divider-quad { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--line-strong); }
.divider-quad::before, .divider-quad::after { content: ""; height: 1px; flex: 1; max-width: 120px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider-quad .quad { font-size: 20px; }

/* ---------- Differentiators (numbered premium cards) ---------- */
.diff {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-xs);
  transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.diff:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.diff__n { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--teal-100); position: absolute; top: 20px; right: 24px; }
.diff__ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--teal-500), var(--teal-700)); color: #fff; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.diff__ic svg { width: 26px; height: 26px; }
.diff h3 { font-size: 1.14rem; margin-bottom: 8px; }
.diff p { font-size: .96rem; color: var(--muted); }

/* ---------- Big stat band ---------- */
.statband { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); }
.statband .container { position: relative; z-index: 1; }
.statband__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 780px){ .statband__grid { grid-template-columns: repeat(2,1fr); gap: 30px 20px; } }
.statband__item { text-align: center; color: #bfe1e7; }
.statband__item b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); color: #fff; line-height: 1; letter-spacing: -.02em; }
.statband__item span { display: block; margin-top: 10px; font-size: .92rem; }
.statband__sep { position:absolute; inset:0; }

/* ---------- Photo frame (for real photos later; holds SVG art now) ---------- */
.photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: linear-gradient(160deg, var(--teal-50), #fff);
  border: 1px solid var(--line); aspect-ratio: 4 / 3;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo__tag { position: absolute; left: 16px; bottom: 16px; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-pill); padding: .5em 1em; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink); display: inline-flex; align-items: center; gap: .5em; }
.photo__tag svg { width: 15px; height: 15px; color: var(--teal-600); }

/* ---------- Quote / promise ---------- */
.quote { position: relative; max-width: 780px; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--font-head); font-size: 4rem; line-height: .6; color: var(--teal-200); }
.quote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--ink); line-height: 1.4; letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 18px; font-style: normal; font-size: .95rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .25s; color: var(--teal-600); }
.faq summary .plus::before, .faq summary .plus::after { content:""; position: absolute; background: currentColor; border-radius: 2px; }
.faq summary .plus::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq summary .plus::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: transform .25s; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq details[open] summary { color: var(--teal-700); }
.faq .faq__body { padding: 0 24px 22px; color: var(--muted); font-size: .98rem; }

/* ---------- Coverage / area ---------- */
.coverage-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 24px; margin-top: 24px; }
@media (max-width: 480px){ .coverage-list { grid-template-columns: 1fr; } }
.coverage-list li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.coverage-list svg { width: 18px; height: 18px; color: var(--teal-500); flex-shrink: 0; }

/* ---------- Value list (checkmarks) ---------- */
.checks { display: grid; gap: 14px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.checks .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin-top: 1px; }
.checks .tick svg { width: 15px; height: 15px; }
.checks b { color: var(--ink); font-family: var(--font-head); }

/* ---------- Team cards ---------- */
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .25s, box-shadow .25s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__photo { aspect-ratio: 1 / 1; background: linear-gradient(150deg, var(--teal-100), var(--teal-50)); display: grid; place-items: center; color: var(--teal-500); }
.team-card__photo svg { width: 40%; height: 40%; opacity: .5; }
/* Al sustituir el ícono por una fotografía real, ésta llena la tarjeta */
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 20px 22px; }
.team-card__body b { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; display: block; }
.team-card__body span { color: var(--teal-700); font-size: .88rem; font-weight: 600; }
.team-card__body p { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ---------- Misc premium touches ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); padding: .45em .9em; border-radius: var(--radius-pill); }
.tag svg { width: 14px; height: 14px; }
.text-grad { background: linear-gradient(120deg, var(--teal-500), var(--teal-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Section intro spacing helper */
.mt-44 { margin-top: 44px; } .mt-36 { margin-top: 36px; } .mt-28 { margin-top: 28px; }

/* ==========================================================================
   MOTION SYSTEM
   ========================================================================== */

/* Staggered reveals */
.reveal { transition-delay: var(--sd, 0ms); }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; background: rgba(10,58,69,.08); }
.scroll-progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-400), var(--green)); border-radius: 0 3px 3px 0; }

/* Header on scroll */
.header { transition: background .3s ease, box-shadow .3s ease; }
.header.is-scrolled { background: rgba(255,255,255,.95); box-shadow: 0 6px 26px rgba(15,30,40,.09); }

/* Floating actions */
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: grid; gap: 12px; justify-items: center; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, opacity .3s, visibility .3s; }
.fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fab svg { width: 27px; height: 27px; }
.fab--wa { background: #25d366; color: #fff; }
.fab--wa:hover { color: #fff; }
.fab--top { width: 46px; height: 46px; background: #fff; color: var(--teal-700); border: 1px solid var(--line); opacity: 0; visibility: hidden; }
.fab--top svg { width: 20px; height: 20px; }
.fab--top.is-on { opacity: 1; visibility: visible; }
@media (max-width: 560px) { .fab-stack { right: 14px; bottom: 14px; } .fab { width: 52px; height: 52px; } }

/* Hero micro-motion */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.report-float.a { animation: floaty 5s ease-in-out infinite; }
.report-float.b { animation: floaty 6s ease-in-out .9s infinite; }
.report-float b { display: block; line-height: 1.15; }
.report-float small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .01em; }

@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes popin { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
.js .spark-line { stroke-dasharray: 260; stroke-dashoffset: 260; }
.js .report.in .spark-line { animation: drawline 1.5s ease .5s forwards; }
.js .spark-dot { opacity: 0; transform-origin: center; }
.js .report.in .spark-dot { animation: popin .45s ease 1.85s forwards; }

@keyframes rowin { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.report.in .rrow { animation: rowin .5s ease both; }
.report.in .rrow:nth-child(1) { animation-delay: .30s; }
.report.in .rrow:nth-child(2) { animation-delay: .42s; }
.report.in .rrow:nth-child(3) { animation-delay: .54s; }
.report.in .rrow:nth-child(4) { animation-delay: .66s; }

/* Photo hover */
.photo img { transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.photo:hover img { transform: scale(1.045); }

/* Service icon micro-motion */
.svc__icon, .diff__ic { transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.svc:hover .svc__icon, .diff:hover .diff__ic { transform: translateY(-3px) rotate(-4deg); }

/* ---------- Process timeline ("timelapse") ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.timeline__track { position: absolute; top: 24px; left: 8%; right: 8%; height: 3px; background: var(--line-strong); border-radius: 3px; overflow: hidden; }
.timeline__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-400), var(--green)); transition: width 1s cubic-bezier(.4,0,.2,1); }
.tstep { position: relative; }
.tstep__dot {
  position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--line-strong);
  color: var(--muted); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; margin-bottom: 18px;
  transition: background .45s ease, border-color .45s ease, color .45s ease, box-shadow .45s ease, transform .45s ease;
}
.tstep.is-on .tstep__dot {
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700)); border-color: var(--teal-400);
  color: #fff; box-shadow: 0 0 0 6px var(--teal-50), var(--shadow-sm); transform: scale(1.06);
}
.tstep h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tstep p { font-size: .93rem; color: var(--muted); }
.tstep__meta {
  display: inline-flex; align-items: center; gap: .45em; margin-top: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-700); background: var(--teal-50); padding: .4em .8em; border-radius: var(--radius-pill);
  opacity: 0; transform: translateY(6px); transition: opacity .45s ease .15s, transform .45s ease .15s;
}
.tstep.is-on .tstep__meta { opacity: 1; transform: none; }
/* Sin JS: la línea de tiempo se muestra completa */
html:not(.js) .timeline__fill { width: 100%; }
html:not(.js) .tstep__dot { background: linear-gradient(145deg, var(--teal-500), var(--teal-700)); border-color: var(--teal-400); color: #fff; }
html:not(.js) .tstep__meta { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__track { top: 6px; bottom: 30px; left: 24px; right: auto; width: 3px; height: auto; }
  .timeline__fill { width: 100%; height: 0; transition: height 1s cubic-bezier(.4,0,.2,1); }
  .tstep { padding-left: 78px; padding-bottom: 34px; }
  .tstep__dot { position: absolute; left: 0; top: 0; margin: 0; }
  html:not(.js) .timeline__fill { height: 100%; }
}

/* ---------- Catalog tools (search + scrollspy) ---------- */
.catalog-tools { position: sticky; top: 74px; z-index: 30; padding: 14px 0; margin-bottom: 8px; background: rgba(238,245,247,.93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.catalog-tools__inner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 300px; }
.search input { width: 100%; padding: .78em 1em .78em 2.9em; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--teal-400); box-shadow: var(--ring); outline: none; }
.search > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search__count { font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.pill-row--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tag { cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.tag:hover { background: var(--teal-100); color: var(--teal-700); }
.tag.is-active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }
.area.is-hidden, .study.is-hidden { display: none; }
.no-results { display: none; text-align: center; padding: 48px 16px; color: var(--muted); }
.no-results.is-on { display: block; }

/* ---------- Copy to clipboard ---------- */
.copy-btn { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted); padding: 7px; border-radius: 9px; display: inline-grid; place-items: center; transition: color .2s, background .2s; }
.copy-btn:hover { color: var(--teal-600); background: var(--teal-50); }
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn.is-done { color: var(--green); }
.info-row { align-items: center; }

/* ---------- Form success ---------- */
.form-success { display: none; text-align: center; padding: 26px 8px; }
.form-success.is-on { display: block; animation: popin .45s ease both; }
.form-success__ic { width: 66px; height: 66px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success__ic svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.25rem; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: .96rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .report-float.a, .report-float.b, .report.in .rrow, .report.in .spark-line, .report.in .spark-dot { animation: none !important; }
  .spark-line { stroke-dashoffset: 0; }
  .spark-dot { opacity: 1; }
  .photo:hover img, .svc:hover .svc__icon, .diff:hover .diff__ic { transform: none; }
  .timeline__fill { transition: none; }
  .tstep__meta { opacity: 1; transform: none; }
  .fab:hover { transform: none; }
}
