/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --bg-soft-2: #eef0f1;
  --ink: #2d383f;
  --ink-soft: #4c5960;
  --ink-mute: #7c8890;
  --line: rgba(45, 56, 63, 0.14);
  --line-strong: rgba(45, 56, 63, 0.30);
  --white: #ffffff;

  --accent: #eb201a;
  --accent-dark: #c11712;
  --accent-soft: rgba(235, 32, 26, 0.10);
  --accent-2: #f49f0a;
  --accent-2-soft: rgba(244, 159, 10, 0.14);

  --dark-bg: #232d33;
  --dark-bg-2: #1b2328;
  --dark-line: rgba(255, 255, 255, 0.14);
  --dark-ink-mute: rgba(245, 247, 248, 0.66);

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(45, 56, 63, 0.06), 0 1px 1px rgba(45, 56, 63, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(45, 56, 63, 0.18), 0 4px 10px -4px rgba(45, 56, 63, 0.10);
  --shadow-red: 0 14px 30px -10px rgba(235, 32, 26, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  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 {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: 0.7rem 1.1rem; background: var(--ink); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}
.section-head.is-center .kicker::before { display: none; }

.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; max-width: 42ch; }
.section-head.is-center p { margin-inline: auto; }

.eyebrow-lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }

/* =============================================================
   4. Components — buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft),
              background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-dark); box-shadow: 0 18px 34px -8px rgba(235, 32, 26, 0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); transform: translateY(-2px); }

.btn-ghost-invert {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-invert:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-block { width: 100%; }

/* Nav link underline + hover-invert */
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.4rem 0.1rem;
  color: var(--ink);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   5. Header / Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.nav.is-scrolled {
  /* Solid background, not blur — backdrop-filter on this element would create a new
     containing block for the fixed-position .nav-mobile panel nested inside it,
     collapsing the mobile menu once the page is scrolled. */
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(45,56,63,0.03);
}
.nav-inner {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; height: 34px; }
.nav-logo img { height: 100%; width: auto; }
.nav-links { display: none; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.nav-cta-wrap { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta-wrap .btn { padding: 0.7rem 1.3rem; font-size: 0.92rem; }

.nav-details { position: relative; }
.nav-details summary { list-style: none; }
.nav-details summary::-webkit-details-marker { display: none; }

.nav-toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-lines { position: relative; width: 18px; height: 12px; }
.nav-toggle-lines span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 5px; }
.nav-toggle-lines span:nth-child(3) { top: 10px; }
.nav-details[open] .nav-toggle-lines span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-details[open] .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.nav-details[open] .nav-toggle-lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: var(--white);
  display: flex; flex-direction: column;
  padding: 2rem var(--gutter) 2.5rem;
  gap: 0.25rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease-soft);
}
.nav-details[open] .nav-mobile { clip-path: inset(0); }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-foot { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; }
.nav-mobile-foot a.contact-line { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink-soft); }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 8vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 5rem);
  overflow: clip;
  background:
    radial-gradient(58% 42% at 82% 8%, var(--accent-soft), transparent 65%),
    radial-gradient(40% 32% at 8% 92%, var(--accent-2-soft), transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
}
.hero-kicker {
  display: flex; align-items: center; gap: 0.6em; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.4rem;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  max-width: 16ch;
  margin-bottom: 1.4rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(2.75rem, 6vw, 3.75rem); }

.hero-stats {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  padding-top: clamp(1.75rem, 4vw, 2.25rem);
}
.hero-stat {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.3rem 1.4rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), border-color 0.3s var(--ease-out);
}
.hero-stat::before {
  content: "";
  position: absolute; top: -55%; right: -25%; z-index: -1;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
  }
}
.hero-stats.is-animated .hero-stat {
  animation: statPopIn 0.75s var(--ease-soft) both;
}
.hero-stats.is-animated .hero-stat:nth-child(1) { animation-delay: 0.05s; }
.hero-stats.is-animated .hero-stat:nth-child(2) { animation-delay: 0.2s; }
.hero-stats.is-animated .hero-stat:nth-child(3) { animation-delay: 0.35s; }
@keyframes statPopIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.hero-stat-icon svg { width: 18px; height: 18px; }
.hero-stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  color: var(--ink);
  line-height: 1;
  transform-origin: left center;
}
.hero-stat-bar {
  display: block; height: 3px; margin: 0.85rem 0 0.75rem;
  background: var(--line); border-radius: 999px; overflow: hidden;
}
.hero-stat-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  transition: width 1.1s var(--ease-soft);
}
.hero-stat-label { display: block; color: var(--ink-mute); font-size: 0.92rem; max-width: 26ch; }

.hero-visual { display: none; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.4vw, 2.25rem);
  box-shadow: var(--shadow-md);
  max-width: 380px;
  margin-inline: auto;
}
.hero-card-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.7rem;
  font-size: 0.95rem; font-weight: 600;
}
.hero-card-row + .hero-card-row { border-top: 1px solid var(--line); }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.tag-ok { background: rgba(34, 139, 87, 0.12); color: #1f7a4d; }
.hero-card-divider { height: 1px; background: var(--line); margin: 1.1rem 0; }
.hero-card-route {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft);
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.hero-card-arrow { color: var(--accent); font-weight: 700; }
.hero-card-status {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.92rem; color: var(--accent);
}
.hero-card-status svg { width: 18px; height: 18px; padding: 3px; background: var(--accent-soft); border-radius: 50%; flex-shrink: 0; }

/* =============================================================
   7. Services
   ============================================================= */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
.service-card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft), border-color 0.3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.service-card .card-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.65rem; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* =============================================================
   8. Process timeline
   ============================================================= */
.timeline { position: relative; padding-left: clamp(2.75rem, 6vw, 4.5rem); }
.timeline-rail {
  position: absolute; top: 0.4rem; bottom: 0.4rem; left: clamp(0.85rem, 2vw, 1.4rem);
  width: 2px; background: var(--line);
}
.timeline-rail span {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top center;
}
.timeline-steps { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 2.75rem); }
.timeline-step { position: relative; }
.step-num {
  position: absolute; top: 0; left: calc(clamp(0.85rem, 2vw, 1.4rem) - clamp(2.75rem, 6vw, 4.5rem));
  width: clamp(1.7rem, 2.8vw, 2.1rem); height: clamp(1.7rem, 2.8vw, 2.1rem);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  color: var(--ink-mute);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.timeline-step.is-revealed .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.step-body h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step-body p { color: var(--ink-soft); font-size: 0.98rem; max-width: 56ch; }

/* =============================================================
   9. Trust / Confianza — inverted section, the visual anchor
   ============================================================= */
.trust {
  background: var(--dark-bg);
  color: var(--white);
}
.trust .section-head h2 { color: var(--white); }
.trust .kicker { color: var(--accent-2); }
.trust .kicker::before { background: var(--accent-2); }
.trust .eyebrow-lede { color: var(--dark-ink-mute); }

.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.trust-pillar {
  position: relative;
  padding: clamp(2rem, 3.4vw, 2.75rem);
  background: var(--dark-bg-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
}
.pillar-num {
  display: block;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-2);
  margin-bottom: 1.25rem;
}
.pillar-icon {
  width: 52px; height: 52px;
  color: var(--accent-2);
  margin-bottom: 1.4rem;
}
.trust-pillar h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.9rem; }
.trust-pillar p { color: var(--dark-ink-mute); font-size: 1rem; margin-bottom: 1.5rem; }
.pillar-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(244, 159, 10, 0.12);
  border: 1px solid rgba(244, 159, 10, 0.35);
  color: var(--accent-2);
  font-size: 0.84rem; font-weight: 600;
}
.pillar-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

/* =============================================================
   10. Routes / origin map
   ============================================================= */
.routes-layout {
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.route-map-wrap { width: 100%; }
.route-map-wrap svg { width: 100%; height: auto; }
.route-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.route-node circle { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.route-node.is-destination circle { fill: var(--ink); stroke: var(--ink); }
.route-node text {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  fill: var(--ink); text-anchor: middle;
}
.route-node.is-destination text { fill: var(--white); }

.origins-list { display: flex; flex-direction: column; gap: 0.9rem; }
.origin-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.origin-code {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  color: var(--accent);
  width: 2.6rem; flex-shrink: 0;
}
.origin-name { font-weight: 700; font-size: 1.02rem; }
.origin-note { color: var(--ink-mute); font-size: 0.86rem; margin-left: auto; }

/* =============================================================
   11. Offices
   ============================================================= */
.offices-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.office-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.office-city { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.office-role {
  display: inline-block; margin-top: 0.5rem; margin-bottom: 1rem;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.office-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* =============================================================
   12. Contact
   ============================================================= */
.contact { background: var(--bg-soft); }
.contact-layout {
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 3.5rem);
}
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-line {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 1.05rem; font-weight: 600;
}
.contact-line svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.contact-note { color: var(--ink-soft); font-size: 0.98rem; max-width: 40ch; }

.contact-form-wrap { position: relative; }
.cta-form {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-soft);
}
.cta-form.is-sent { opacity: 0; transform: translateY(-10px); pointer-events: none; position: absolute; inset: 0; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s var(--ease-out);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }

.cta-submit { position: relative; margin-top: 0.4rem; }
.cta-submit .btn-spinner {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
}
.is-sending .cta-submit-label { opacity: 0; }
.is-sending .btn-spinner { opacity: 1; }
.btn-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--white);
  border-radius: 50%; animation: spin 0.85s linear infinite;
}

.form-error {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(235, 32, 26, 0.3);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent-dark);
  font-size: 0.88rem;
}
.form-error a { text-decoration: underline; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

.cta-success {
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out) 0.15s, transform 0.6s var(--ease-soft) 0.15s;
}
.cta-success.is-visible { opacity: 1; transform: translateY(0); }
.cta-success-icon {
  width: 52px; height: 52px; margin-inline: auto 1.1rem;
  display: grid; place-items: center;
  color: var(--white); background: var(--accent);
  border-radius: 50%;
}
.cta-success-icon svg { width: 24px; height: 24px; }
.cta-success h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.cta-success p { color: var(--ink-soft); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { background: var(--dark-bg); color: var(--dark-ink-mute); padding-block: clamp(3rem, 6vw, 4rem) 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem; font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a, .footer-col p { font-size: 0.94rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

/* =============================================================
   14. Reveal-on-scroll (universal) + tilt
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

.has-tilt-target { --rx: 0deg; --ry: 0deg; }
.has-tilt {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
}

/* =============================================================
   15. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-details { display: none; }

  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .hero-visual { display: flex; align-items: center; }

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

  .routes-layout { grid-template-columns: 1.1fr 0.9fr; }
  .contact-layout { grid-template-columns: 0.85fr 1.15fr; }

  .footer-top { grid-template-columns: 1.3fr repeat(3, 0.9fr); }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3.2rem, 4.6vw, 4.4rem); }
}

/* =============================================================
   16. Reduced motion — only the genuinely intrusive bits
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .timeline-rail span { transition: none; }
}

/* =============================================================
   17. Calculadora de Costo Total de Importación (modal)
   ============================================================= */
html.quote-modal-open { overflow: hidden; }

.quote-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  visibility: hidden; opacity: 0;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.quote-modal[aria-hidden="false"] {
  visibility: visible; opacity: 1;
  transition: opacity 0.3s var(--ease-out);
}
.quote-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 26, 29, 0.6);
  backdrop-filter: blur(2px);
}
.quote-modal-panel {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(20, 26, 29, 0.45);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease-soft);
}
.quote-modal[aria-hidden="false"] .quote-modal-panel { transform: translateY(0) scale(1); }

.quote-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.quote-modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.quote-modal-close svg { width: 16px; height: 16px; }

.quote-modal-head { margin-bottom: 1.5rem; padding-right: 2.5rem; }
.quote-modal-head h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }

.quote-step-dots { display: flex; gap: 0.4rem; }
.quote-step-dot {
  width: 26px; height: 4px; border-radius: 999px;
  background: var(--line-strong);
  transition: background-color 0.3s var(--ease-out);
}
.quote-step-dot.is-active { background: var(--accent); }
.quote-step-dot.is-done { background: var(--accent-2); }

.quote-step .field { margin-bottom: 1.1rem; }
.quote-step-intro { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.4rem; }

.quote-toggle { display: flex; gap: 0.6rem; }
.quote-toggle-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.quote-toggle-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.quote-maritime-field { padding: 0.9rem 1rem 1rem; background: var(--bg-soft); border-radius: var(--radius); }
.quote-link-btn {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
}
.quote-dims { margin-top: 0.9rem; }
.quote-dims-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.quote-dims-row input {
  padding: 0.65rem 0.7rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); font: inherit;
}
.quote-dims-result { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-soft); }
.quote-dims-result strong { color: var(--ink); }

.quote-field-error {
  color: var(--accent-dark); font-size: 0.86rem; margin: -0.4rem 0 0.9rem;
}

.quote-step-actions { display: flex; flex-direction: column-reverse; gap: 0.75rem; }
.quote-step-actions .btn-ghost { width: 100%; }
.quote-step-actions .quote-submit { width: 100%; position: relative; }

@media (min-width: 480px) {
  .quote-step-actions { flex-direction: row; align-items: center; gap: 1rem; }
  .quote-step-actions .btn-ghost { width: auto; flex: 0 0 auto; }
  .quote-step-actions .quote-submit { width: auto; flex: 1; min-width: 0; }
}

.quote-result { text-align: center; }
.quote-result-icon {
  width: 52px; height: 52px; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  color: var(--white); background: var(--accent);
  border-radius: 50%;
}
.quote-result-icon svg { width: 24px; height: 24px; }
.quote-result h4 { font-size: 1.3rem; margin-bottom: 1.4rem; }

.quote-breakdown { text-align: left; margin-bottom: 1.3rem; }
.quote-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.quote-row span { color: var(--ink-soft); }
.quote-row strong { color: var(--ink); font-weight: 700; }
.quote-row-total {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.quote-row-total span { color: var(--ink); font-weight: 700; }
.quote-row-total strong { color: var(--accent); font-size: 1.25rem; }

.quote-disclaimer { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: 1.4rem; text-align: left; }

@media (min-width: 540px) {
  .quote-modal-panel { padding: 2.25rem 2.5rem; }
}

/* =============================================================
   18. Página /cotizar (formulario ampliado, mobile-first)
   ============================================================= */
.rfq-page { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.rfq-page main { flex: 1; }
.rfq-wrap { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

.rfq-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.rfq-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.rfq-logo img { height: 30px; width: auto; }
.rfq-back { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.rfq-back:hover { color: var(--accent); }

.rfq-intro { padding-block: clamp(1.75rem, 6vw, 3rem) 1.25rem; }
.rfq-intro h1 { font-size: clamp(1.8rem, 6.4vw, 2.6rem); margin-bottom: 0.75rem; }
.rfq-intro p:not(.kicker) { color: var(--ink-soft); font-size: 1.02rem; }

.rfq-form { display: grid; gap: 1rem; padding-bottom: 2.5rem; }
.rfq-card {
  display: grid; gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 4vw, 1.75rem);
}
.rfq-card h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 0.65rem; }
.rfq-num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
}
.rfq-fields { display: grid; gap: 1rem; }
.rfq-label { font-size: 0.84rem; font-weight: 700; color: var(--ink-soft); }
.opt { font-weight: 500; color: var(--ink-mute); }
.rfq-hint { font-size: 0.86rem; color: var(--ink-mute); }
.rfq-privacy { font-size: 0.86rem; color: var(--ink-mute); padding-inline: 0.25rem; }
.rfq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rfq-submit { margin-top: 0.25rem; }

.rfq-form .field select {
  width: 100%;
  padding: 0.85rem 2.4rem 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d383f' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 14px;
  color: var(--ink);
  font: inherit;
  -webkit-appearance: none; appearance: none;
}
.rfq-form .field select:focus { border-color: var(--accent); }

.choice-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice.is-check span::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--white);
}
.choice.is-check input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.rfq-file {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer;
  overflow: hidden;
}
.rfq-file svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }
.rfq-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field:focus-within .rfq-file { border-color: var(--accent); }
.rfq-file-input, .field .rfq-file-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; pointer-events: none; }

.field.has-error input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field.has-error textarea,
.field.has-error select { border-color: var(--accent); }
.field.has-error .choice span,
.field.has-error .rfq-file { border-color: rgba(235, 32, 26, 0.55); }
.field-error { color: var(--accent-dark); font-size: 0.84rem; font-weight: 600; }

.rfq-success {
  display: grid; gap: 1rem; justify-items: center; text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 6vw, 2.75rem);
  margin-block: 1.5rem 3rem;
  outline: none;
}
.rfq-success h2 { font-size: 1.6rem; }
.rfq-success-text { color: var(--ink-soft); font-size: 1.05rem; max-width: 36ch; }
.rfq-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--white);
}
.rfq-success-icon svg { width: 26px; height: 26px; }
.rfq-ref { font-size: 0.9rem; color: var(--ink-mute); }
.rfq-ref strong { font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--ink); }
.rfq-success .btn { margin-top: 0.5rem; }

.rfq-footer { padding-block: 1.5rem; font-size: 0.85rem; color: var(--ink-mute); text-align: center; }

@media (min-width: 640px) {
  .rfq-fields.cols-2 { grid-template-columns: 1fr 1fr; }
}


/* =============================================================
   19. Farmacéuticos: pop-up del inicio y página /farmaceuticos/
   Verde de marca #009c8e para detalles y fondos suaves. Los textos en
   blanco van sobre #00817a (contraste 4.7:1) para cumplir AA.
   ============================================================= */
.btn-pharma {
  background: #00817a; color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(0, 129, 122, 0.55);
}
.btn-pharma:hover { background: #00665f; color: var(--white); transform: translateY(-2px); }

.pharma-page {
  --accent: #009c8e;
  --accent-dark: #00665f;
  --accent-soft: rgba(0, 156, 142, 0.10);
  --accent-2: #00695f;
  --accent-2-soft: rgba(0, 156, 142, 0.07);
  --shadow-red: 0 14px 30px -12px rgba(0, 129, 122, 0.45);
  --pharma-btn: #00817a;
  --pharma-text: #00695f;
  --font-impact: "Anton", "Impact", "Arial Narrow", sans-serif;
}
.pharma-page .btn-primary { background: var(--pharma-btn); color: var(--white); box-shadow: var(--shadow-red); }
.pharma-page .btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.pharma-page .kicker { color: var(--pharma-text); }
.pharma-page .kicker::before { background: var(--accent); }
.pharma-page .timeline-step.is-revealed .step-num { color: #0a1114; }
.pharma-page ::selection { background: var(--accent); color: #0a1114; }
.pharma-page .nav-link::after { background: var(--accent); }
.pharma-page .hero-kicker { color: var(--pharma-text); font-weight: 600; }

/* ---- Tipografía del estilo "AGEMED": condensada, mayúsculas, con trazo manuscrito ---- */
.pharma-page .hero-title,
.pharma-page .section-head h2,
.pharma-page .pharma-cta h2,
.ph-display {
  font-family: var(--font-impact);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.04;
}
.pharma-page .hero-title { font-size: clamp(2.9rem, 8.5vw, 5.6rem); max-width: 14ch; margin-bottom: 0.9rem; }
.pharma-page .hero-title em { color: var(--accent); }
.pharma-page .section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; }
.pharma-page .pharma-cta h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.ph-script {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.25;
  color: var(--pharma-btn);
}
.ph-agemed-line {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.45rem, 4vw, 2.2rem); line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.01em;
  margin: 0.15rem 0 1.5rem;
}
.ph-pill {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.9rem;
  background: var(--pharma-btn); color: var(--white);
  border-radius: 999px; padding: 0.65rem 1.5rem;
  font-family: var(--font-body); font-weight: 800;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.ph-pill i { font-style: normal; opacity: 0.7; }
.pharma-hero-note { margin-top: 1.1rem; font-size: 0.92rem; color: var(--ink-mute); max-width: 52ch; }
.pharma-page .hero-sub { margin-top: 1.4rem; margin-bottom: 1.8rem; }

/* cruces decorativas */
.ph-cross { position: absolute; color: var(--accent); opacity: 0.35; pointer-events: none; }
.ph-cross svg { width: 100%; height: 100%; display: block; }
.ph-cross-1 { width: 38px; height: 38px; top: -14px; right: -10px; }
.ph-cross-2 { width: 26px; height: 26px; bottom: -12px; left: -14px; }
.ph-cross-3 { width: 54px; height: 54px; top: 46%; right: -30px; opacity: 0.2; }
.pharma-page .hero-visual { position: relative; }

/* ---- Tarjetas y listas ---- */
.pharma-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.pharma-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.pharma-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--pharma-text);
  margin-bottom: 1rem;
}
.pharma-icon svg { width: 24px; height: 24px; }
.pharma-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.pharma-card p { color: var(--ink-soft); font-size: 0.96rem; }
.pharma-list { list-style: none; padding: 0; margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.pharma-list li { position: relative; padding-left: 1.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.pharma-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.pharma-origin-code {
  display: inline-block; margin-bottom: 0.75rem;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  color: var(--pharma-text); background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 0.2rem 0.55rem;
}

/* ---- Bloque AGEMED ---- */
.ph-agemed { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.ph-agemed-copy p { color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; margin-bottom: 1.1rem; }
.ph-agemed-copy .btn { margin-top: 0.4rem; }
.ph-steps { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.ph-step {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.ph-step-num {
  font-family: var(--font-impact); font-size: 1.6rem; line-height: 1;
  color: var(--pharma-btn); min-width: 2ch;
}
.ph-step strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.ph-step span { color: var(--ink-soft); font-size: 0.93rem; }

/* ---- Documentos, FAQ, cierre ---- */
.pharma-docs { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.pharma-doc {
  display: flex; align-items: flex-start; gap: 0.85rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.pharma-doc svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 0.1rem; }
.pharma-doc strong { display: block; font-size: 0.98rem; margin-bottom: 0.15rem; }
.pharma-doc span { color: var(--ink-soft); font-size: 0.9rem; }
.pharma-footnote { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-mute); max-width: 70ch; }

.faq { display: grid; gap: 0.75rem; max-width: 60rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--pharma-text);
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.faq-item p { padding: 0 1.25rem 1.2rem; color: var(--ink-soft); font-size: 0.98rem; }
.faq-item a { color: var(--pharma-text); text-decoration: underline; font-weight: 600; }

.pharma-cta {
  display: grid; gap: 1.1rem; justify-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.pharma-cta p { color: var(--ink-soft); max-width: 58ch; }
.pharma-cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

@media (min-width: 640px) {
  .pharma-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .pharma-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .pharma-docs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .pharma-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .pharma-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .pharma-grid.cols-5 { grid-template-columns: repeat(6, 1fr); }
  .pharma-grid.cols-5 > * { grid-column: span 2; }
  .pharma-grid.cols-5 > :nth-child(n+4) { grid-column: span 3; }
  .ph-agemed { grid-template-columns: 1.05fr 1fr; }
}

/* ---- Pop-up del inicio ---- */
.pharma-pop {
  width: min(440px, calc(100% - 2rem)); max-height: calc(100% - 2rem);
  margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto;
  border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(10, 17, 20, 0.5);
}
.pharma-pop::backdrop { background: rgba(10, 17, 20, 0.55); }
.pharma-pop[open] { animation: pharma-pop-in 0.28s ease both; }
@keyframes pharma-pop-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pharma-pop[open] { animation: none; } }
.pharma-pop-bar { height: 6px; background: #009c8e; }
.pharma-pop-body { position: relative; padding: clamp(1.5rem, 5vw, 2rem); }
.pharma-pop-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft); cursor: pointer;
  display: grid; place-items: center;
}
.pharma-pop-close:hover { background: rgba(0, 156, 142, 0.10); color: var(--ink); }
.pharma-pop-close svg { width: 20px; height: 20px; }
.pharma-pop-kicker {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #00695f; font-weight: 700; margin-bottom: 0.9rem;
  padding-right: 2.5rem;
}
.pharma-pop-script {
  display: block; font-family: var(--font-display);
  font-weight: 800; font-size: 1.05rem; line-height: 1.25; color: #00817a;
}
.pharma-pop-title {
  font-family: "Anton", "Impact", "Arial Narrow", sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05;
  font-size: clamp(2rem, 8vw, 2.6rem); margin: 0.1rem 0 0.9rem;
}
.pharma-pop-text { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.4rem; }
.pharma-pop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; }
.pharma-pop-later {
  border: 0; background: none; cursor: pointer; padding: 0.5rem 0.25rem;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.pharma-pop-later:hover { color: var(--ink); }

/* ---- Enlace "Farmacéuticos" del inicio: botón blanco con acento verde ---- */
.btn-pharma-link { gap: 0.65rem; }
.btn-pharma-link:hover { border-color: #009c8e; background: rgba(0, 156, 142, 0.08); color: var(--ink); }
.btn-pharma-link .pl-cross {
  position: relative; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: #009c8e; color: #ffffff;
  display: grid; place-items: center;
}
.btn-pharma-link .pl-cross svg { width: 14px; height: 14px; }
.btn-pharma-link .pl-cross::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #009c8e; opacity: 0;
  animation: pl-pulse 2.6s ease-out infinite;
}
.btn-pharma-link .pl-arrow { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn-pharma-link:hover .pl-arrow { transform: translateX(4px); }
@keyframes pl-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pharma-link .pl-cross::after { animation: none; }
  .btn-pharma-link .pl-arrow { transition: none; }
}

/* punto verde en el enlace del menú */
.nav-link-pharma, .nav-mobile .nav-link-pharma { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav-link-pharma::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #009c8e; flex-shrink: 0;
}

/* ---- Lista de opciones con explicación (Personalización) ---- */
.choice-list { flex-direction: column; gap: 0.6rem; }
.choice-list .choice span {
  display: grid; grid-template-columns: 18px 1fr; column-gap: 0.75rem; row-gap: 0.1rem;
  align-items: start; width: 100%;
}
.choice-list .choice.is-check span::before { grid-row: 1 / span 2; margin-top: 0.15rem; }
.choice-list .choice b { grid-column: 2; font-weight: 700; color: var(--ink); font-size: 0.97rem; }
.choice-list .choice em { grid-column: 2; font-style: normal; font-weight: 400; color: var(--ink-mute); font-size: 0.87rem; line-height: 1.4; }

/* ---- Formulario del cotizador ---- */
.choice-list .choice:not(.is-check) span { grid-template-columns: 1fr; }
.choice-list .choice:not(.is-check) b,
.choice-list .choice:not(.is-check) em { grid-column: 1; }
.qt-rfq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1.15rem; margin-bottom: 1rem;
}
.qt-rfq summary { cursor: pointer; font-weight: 700; font-size: 0.95rem; }
.qt-rfq pre {
  margin: 0.8rem 0 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft);
  max-height: 22rem; overflow: auto;
}

/* ---- IA del formulario del cotizador ---- */
.qt-ai .rfq-hint { margin-bottom: 0.75rem; }
.qt-ai textarea { min-height: 9rem; }
.qt-ai-btn { margin-top: 0.25rem; }
.qt-ai [data-qt-ai-status] { margin: 0.75rem 0 0; font-weight: 600; color: var(--ink-soft); }
.qt-ai-notes { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.qt-ai-notes li {
  font-size: 0.88rem; color: var(--ink); background: rgba(244, 159, 10, 0.14);
  border-left: 3px solid var(--accent-2); border-radius: var(--radius-sm); padding: 0.45rem 0.7rem;
}
.field.ai-filled input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field.ai-filled select,
.field.ai-filled textarea { background: rgba(0, 156, 142, 0.09); border-color: rgba(0, 156, 142, 0.6); }
