/* =========================================================
   ONE TRANSFER — styles.css
   Marketplace B2B farmacéutico — Argentina y LATAM
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  /* Brand colors */
  --color-primary: #0A4997;
  --color-accent: #00A4E3;
  --color-complementary: #66C1D7;
  --color-bg-soft: #f5f8fd;
  --color-border: #d8e4f0;
  --color-white: #ffffff;
  --color-text: #1c2b3a;
  --color-text-muted: #5c7086;
  --color-success-bg: #e6f8ee;
  --color-success-text: #1f9d5a;

  /* Gradient (logo-inspired) */
  --gradient-brand: linear-gradient(135deg, #66C1D7 0%, #00A4E3 50%, #0A4997 100%);

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Radii & shadows */
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-soft: 0 4px 20px rgba(10, 73, 151, 0.08);
  --shadow-hover: 0 8px 28px rgba(10, 73, 151, 0.14);
  --shadow-nav: 0 2px 16px rgba(10, 73, 151, 0.08);

  /* Spacing */
  --section-pad-desktop: 80px;
  --section-pad-mobile: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad-mobile) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--section-pad-desktop) 0;
  }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 164, 227, 0.35);
}

.btn-primary:hover {
  background: #0d8cc0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 164, 227, 0.4);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1rem;
}

/* Standalone secondary CTA (used without .btn base, e.g. hero) */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-green {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge-blue {
  background: rgba(0, 164, 227, 0.12);
  color: var(--color-accent);
}

.badge-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease;
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-nav);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.navbar-logo img {
  height: 34px;
  width: auto;
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-text);
}

.navbar-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-accent);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.navbar-actions .btn {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  align-items: center;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.25s ease;
}

.navbar-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 16px 24px 24px;
}

.navbar-mobile.is-open {
  display: flex;
}

.navbar-mobile a {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.navbar-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 960px) {
  .navbar-links,
  .navbar-actions {
    display: flex;
  }
  .navbar-toggle,
  .navbar-mobile {
    display: none !important;
  }
}

/* Dark navbar variant (droguerias hero) */
.navbar.navbar-dark-ready .navbar-links a {
  color: var(--color-text);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--color-bg-soft);
  overflow: hidden;
}

.hero-navy {
  background: var(--color-primary);
  background-image: radial-gradient(circle at 85% 20%, rgba(0, 164, 227, 0.25), transparent 55%);
}

.hero-navy h1,
.hero-navy .eyebrow {
  color: var(--color-white);
}

.hero-navy p,
.hero-navy .hero-content p {
  color: rgba(255, 255, 255, 0.85);
}

.hero-navy .browser-frame {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 span {
  display: block;
  color: #00A4E3;
  font-size: 28px;
}

@media (min-width: 768px) {
  .hero h1 span {
    font-size: 36px;
  }
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  margin: 14px 0 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  overflow: visible;
}

.hero-screenshot-container {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 24px 60px rgba(10, 73, 151, 0.18), 0 8px 24px rgba(10, 73, 151, 0.10);
  transform-origin: center center;
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) scale(1.25);
  transition: transform 0.1s linear;
}

.hero-screenshot-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--color-primary);
  padding: 44px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--color-white);
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Flow diagram ---------- */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-top: 40px;
}

.flow-step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flow-step h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.flow-step p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.flow-step.flow-center {
  background: var(--gradient-brand);
  border: none;
  color: var(--color-white);
}

.flow-step.flow-center h4,
.flow-step.flow-center p {
  color: var(--color-white);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.4rem;
  transform: rotate(90deg);
}

@media (min-width: 900px) {
  .flow-diagram {
    flex-direction: row;
    align-items: center;
  }
  .flow-step {
    flex: 1;
  }
  .flow-arrow {
    transform: none;
  }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 164, 227, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--color-accent);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 10px;
}

/* ---------- Tienda propia ---------- */
.tienda-section {
  background: #ffffff;
  padding: 48px 5% 80px;
}

.tienda-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.tienda-media {
  order: 1;
}

.tienda-content {
  order: 2;
}

@media (min-width: 960px) {
  .tienda-grid {
    grid-template-columns: 45% 1fr;
    gap: 60px;
  }
  .tienda-media {
    order: 2;
  }
  .tienda-content {
    order: 1;
  }
}

.tienda-eyebrow {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #00A4E3;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tienda-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  color: #0A4997;
  line-height: 1.2;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .tienda-headline {
    font-size: 28px;
  }
}

.tienda-text {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 24px;
}

.tienda-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tienda-bullets li {
  position: relative;
  padding-left: 28px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #1a202c;
}

.tienda-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #1D9E75;
  font-weight: 700;
}

.tienda-media .browser-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 73, 151, 0.15);
  transform: none;
}

.tienda-media .browser-frame:hover {
  transform: none;
}

.tienda-media .browser-content {
  max-height: none;
}

.tienda-media .browser-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Inteligencia comercial ---------- */
.intel-section {
  padding: 80px 5%;
  background: #f5f8fd;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.intel-section .section-eyebrow {
  text-align: center;
}

.intel-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #0A4997;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 12px;
}

.intel-section .section-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 36px;
}

.intel-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.intel-card {
  background: #fff;
  border: 0.5px solid #d8e4f0;
  border-radius: 12px;
  padding: 28px 24px;
}

.intel-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.intel-card-icon.blue { background: #e6f1fb; }
.intel-card-icon.cyan { background: #e0f6ff; }

.intel-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0A4997;
  margin-bottom: 8px;
}

.intel-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

/* Dos browser frames lado a lado */
.intel-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.browser-frame-small {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8e4f0;
  box-shadow: 0 8px 32px rgba(10, 73, 151, 0.10),
              0 2px 8px rgba(10, 73, 151, 0.06);
}

.browser-frame-small .browser-bar {
  background: #2d3748;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-frame-small .browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-frame-small .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.browser-frame-small .browser-url {
  background: #3d4a5c;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  flex: 1;
  font-family: 'Roboto', sans-serif;
}

.browser-frame-small .browser-content img {
  width: 100%;
  display: block;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

@media (max-width: 768px) {
  .intel-cards {
    grid-template-columns: 1fr;
  }

  .intel-section .intel-screens {
    grid-template-columns: 1fr;
  }

  .intel-section .intel-screens .browser-frame-small {
    width: 100%;
  }
}

/* Banda de pills */
.intel-band {
  background: #0A4997;
  border-radius: 12px;
  padding: 24px 28px;
  text-align: left;
}

.intel-band-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  font-weight: 500;
}

.intel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.intel-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

/* ---------- Inteligencia comercial (home) ---------- */
/* Reutiliza .intel-screens, .browser-frame-small, .browser-bar,
   .browser-dots, .dot y .browser-content ya definidos arriba */
.intel-home-section {
  padding: 80px 5%;
  background: #f0f7ff;
  text-align: center;
}

.intel-home-section .section-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 3px;
  color: #00A4E3;
}

.intel-home-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  color: #0A4997;
  margin-bottom: 32px;
  line-height: 1.25;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.intel-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: left;
}

.intel-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  color: #1a202c;
}

.intel-bullet-check {
  color: #00A4E3;
  font-weight: 700;
  flex-shrink: 0;
}

.intel-pill-bar {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 768px) {
  .intel-home-section h2 {
    font-size: 32px;
  }
  .intel-bullets {
    grid-template-columns: 1fr;
  }
  .intel-home-section .intel-screens {
    grid-template-columns: 1fr;
  }
}

.intel-pill-single {
  display: inline-block;
  background: #0A4997;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  padding: 6px 20px;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---------- El problema ---------- */
.problem-section {
  padding: 80px 5%;
  background: #fff;
  text-align: center;
}
.problem-section h2 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0A4997;
  max-width: 620px;
  margin: 0 auto 12px;
}
.problem-section .section-sub {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.problem-card {
  background: #fff;
  border: 0.5px solid #d8e4f0;
  border-radius: 12px;
  padding: 28px 24px;
}
.problem-card.without { border-top: 3px solid #e8eef5; }
.problem-card.with { border-top: 3px solid #00A4E3; }
.problem-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0A4997;
  margin-bottom: 16px;
}
.problem-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.problem-card li {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.problem-card li::before {
  flex-shrink: 0;
  font-weight: 700;
  margin-top: 1px;
}
.problem-card li.negative::before { content: '✗'; color: #e24b4a; }
.problem-card li.positive { color: #444; }
.problem-card li.positive::before { content: '✓'; color: #1D9E75; }

/* ---------- Feature split (image + text) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.feature-split-media,
.feature-split-copy {
  min-width: 0;
}

.feature-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

/* ---------- Labs strip ---------- */
.labs-strip {
  padding: 48px 5% 16px;
  background: #fff;
  border-top: 0.5px solid #e8eef5;
  border-bottom: 0.5px solid #e8eef5;
  text-align: center;
}

.labs-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #aab;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  margin-bottom: 32px;
}

.labs-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-top: 24px;
  padding-bottom: 8px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.labs-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

.labs-track:hover {
  animation-play-state: paused;
}

.lab-logo {
  height: 52px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
  flex-shrink: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.lab-logo-sm {
  height: 41.6px;
}

.lab-logo:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Pricing section ---------- */
.pricing-section {
  background: #f5f8fd;
  padding: 80px 0;
}

.pricing-section .eyebrow {
  color: #00A4E3;
}

.pricing-section h2 {
  color: #0A4997;
}

.pricing-section p {
  color: #555;
}

/* Card de ejemplo Fabogesic — fondo blanco */
.pricing-section .price-example {
  background: #fff;
  border: 1px solid #d8e4f0;
  border-radius: 12px;
  backdrop-filter: none;
  box-shadow: none;
}

.pricing-section .price-example .pex-name,
.pricing-section .price-example .pex-row,
.pricing-section .price-example .pex-row span {
  color: #444;
  border-bottom-color: var(--color-border);
}

.pricing-section .price-example .pex-row:last-child {
  color: var(--color-success-text);
}

/* Browser frame alrededor del screenshot */
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 164, 227, 0.15);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 1;
}

.browser-frame:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 32px 80px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 164, 227, 0.2);
}

/* Sin ::after shimmer, sin .is-visible, sin animaciones */
.browser-frame::after {
  display: none;
}

.browser-bar {
  background: #2d3748;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red    { background: #66C1D7; }
.dot.yellow { background: #00A4E3; }
.dot.green  { background: #0A4997; }

.browser-url {
  background: #3d4a5c;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 4px;
  flex: 1;
  font-family: 'Roboto', sans-serif;
}

.browser-content {
  overflow: hidden;
  max-height: 420px;
}

.hero-lab-screenshot {
  width: 100%;
  object-fit: cover;
  border-radius: 0 0 8px 8px;
}

.ofertas-screenshot-section {
  background: var(--color-white);
  padding: 0 5% 60px;
}

.ofertas-screenshot-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.ofertas-screenshot-section .browser-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 73, 151, 0.15);
  transform: none;
}

.ofertas-screenshot-section .browser-frame:hover {
  transform: none;
}

.ofertas-screenshot-section .browser-content {
  max-height: none;
}

.ofertas-screenshot-section .browser-content img {
  width: 100%;
  height: auto;
  display: block;
}

.listado-screenshot {
  width: 100%;
  display: block;
  /* .feature-split img le agregaría su propio radius/shadow/border encima:
     lo anulamos acá para que el único marco visible sea el del wrapper */
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.hero-farmacia-media .listado-screenshot {
  width: 100%;
  object-fit: cover;
  border-radius: 0 0 8px 8px !important;
}

/* Catalog screenshot — real iMac image floating free, no card/wrapper */
.catalog-section {
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.stats-bar {
  overflow: visible;
}

.imac-wrapper {
  flex: 0 0 580px;
  width: 580px;
  min-width: 0;
  max-width: 100%;
  position: relative;
  /* Sobresale hacia arriba y abajo del contenedor */
  margin-top: -100px;
  margin-bottom: -100px;
  overflow: visible;
  z-index: 2;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.imac-container {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin-left: -40px; /* se corre a la izquierda rompiendo el grid */
  /* con el PNG transparente, la sombra cae solo sobre el monitor */
  filter: drop-shadow(0 40px 80px rgba(10, 73, 151, 0.16))
          drop-shadow(0 8px 20px rgba(0, 0, 0, 0.10));
}

.imac-image {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1; /* el marco detrás: la screenshot va encima (ver .imac-screen-area) */
  pointer-events: none;
  /* Este reset sigue haciendo falta: border/box-shadow/border-radius se
     dibujan sobre el rectángulo del <img>, no sobre el canal alfa del PNG,
     así que aunque el fondo ahora sea transparente, la regla genérica
     .feature-split img seguiría agregando un marco/sombra rectangular
     visible alrededor del recorte si no lo anulamos acá. */
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

.imac-screen-area {
  position: absolute;
  top: 7.8%;
  left: 10.1%;
  width: 79.8%;
  height: 56%;
  z-index: 2; /* la screenshot por encima de la pantalla opaca del PNG */
  overflow: hidden;
  background: #f0f0f0;
  /* sin border-radius — el marco del iMac ya tiene el suyo */
}

.imac-apple-cover {
  position: absolute;
  bottom: 20.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: 3;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.imac-apple-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5); /* versión gris discreta */
}

/* Área de imagen con scroll interno */
.imac-screen-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.catalog-screenshot-tall {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transform: translateY(0px);
  will-change: transform;
}

.feature-split h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 16px;
}

.feature-split p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-primary);
  font-size: 0.96rem;
}

.feature-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .catalog-section {
    padding: 40px 0 48px;
  }
  .catalog-section .imac-wrapper {
    margin-top: 0;
    margin-bottom: 24px;
    max-width: 100%;
    height: auto;
  }
  .catalog-section .imac-container {
    margin-left: 0;
    max-width: 100%;
  }
  .catalog-section .feature-split-copy {
    padding-left: 20px;
    padding-right: 20px;
  }
  .catalog-section .feature-split h2 {
    font-size: 28px;
  }
  .catalog-section .feature-split p {
    font-size: 16px;
    line-height: 1.6;
  }
  .catalog-section .feature-list {
    gap: 12px;
  }
  .catalog-section .feature-list li {
    font-size: 16px;
  }
}

@media (min-width: 960px) {
  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .feature-split.reverse .feature-split-media {
    order: 2;
  }
  .catalog-section .section-grid {
    grid-template-columns: 1.6fr 1fr; /* imagen 60%, texto 40% */
    gap: 32px;
    align-items: center;
    background: none;
    border: none;
    padding: 80px 5% 80px 0;
    overflow: visible;
  }
}

/* ---------- Pricing example card (listado) ---------- */
.price-example {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  max-width: 340px;
}

.price-example .pex-name {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 8px;
}

.price-example .pex-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-text-muted);
}

.price-example .pex-row:last-child {
  border-bottom: none;
  color: var(--color-success-text);
  font-weight: 700;
}

/* ---------- Steps (numbered) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-item {
  position: relative;
  padding-top: 8px;
}

.step-number {
  counter-increment: step;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-item p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
#faq {
  background: #f8fafc;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-white);
}

.faq-question {
  width: 100%;
  background: transparent;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  text-align: left;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 22px 18px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- FAQ link banner ---------- */
.faq-link-banner {
  background: #f5f8fd;
  border-top: 0.5px solid #d8e4f0;
  border-bottom: 0.5px solid #d8e4f0;
  padding: 24px 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}
.faq-link-banner p {
  font-size: 14px;
  color: #555;
  margin: 0;
}
.faq-link-banner a {
  font-size: 14px;
  color: #00A4E3;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.faq-link-banner a:hover {
  text-decoration: underline;
}

/* Wrapper FAQ home (reutiliza .faq-item/.faq-question/.faq-answer) */
.faq-home {
  background: #f5f8fd;
  padding: 80px 5%;
}
.faq-home .faq-container {
  max-width: 700px;
  margin: 0 auto;
}
.faq-home .faq-item + .faq-item {
  margin-top: 12px;
}

/* ---------- Declaration band (droguerias) ---------- */
.declaration-band {
  background: var(--color-primary);
  padding: 60px 0;
}

.declaration-band p {
  color: var(--color-white);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.5;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- "What doesn't change" grid ---------- */
.unchanged-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 700px) {
  .unchanged-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .unchanged-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.unchanged-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
}

.unchanged-item .unchanged-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.unchanged-item h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.unchanged-item p {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--color-bg-soft);
}

/* Variante gradiente (home) — scoped con :has() para no afectar
   los .cta-final de farmacias.html / laboratorios.html */
.cta-final:has(.btn-cta-white) {
  background: linear-gradient(135deg, #0A4997, #00A4E3);
  padding: 80px 5%;
  text-align: center;
}
.cta-final:has(.btn-cta-white) h2 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-final:has(.btn-cta-white) p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-white {
  display: inline-block;
  background: #fff;
  color: #0A4997;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
}
.btn-cta-white:hover {
  background: #f0f6ff;
}

.cta-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cta-box h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cta-box p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* Quiet contact section (droguerias) */
.contact-quiet {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-quiet p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.contact-quiet a.email-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1.5px solid var(--color-complementary);
}

.contact-quiet a.email-link:hover {
  color: var(--color-accent);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

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

  .footer-grid-5 {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 0.6fr;
  }
}

.footer-logo-col img {
  height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 699px) {
  .footer-logo-col {
    display: flex;
    justify-content: center;
    margin-top: 24px;
  }
}

.footer-logo img {
  height: 32px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h5 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

/* ---------- Farmacias redesign — Hero ---------- */
.hero-farmacia {
  background: #0A4997;
  padding: 140px 5% 60px;
  overflow: hidden;
}

.hero-farmacia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: center;
}

@media (min-width: 960px) {
  .hero-farmacia-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    text-align: left;
  }
}

.badge-solid-green {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #22c55e;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.hero-farmacia-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-farmacia-content .hero-highlight {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  color: #7DD3ED;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-farmacia-content .hero-highlight {
    font-size: 36px;
  }
}

.hero-farmacia-content .hero-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 28px;
}

.btn-farmacia-cta {
  display: inline-block;
  background: #ffffff;
  color: #0A4997;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 32px;
  text-decoration: none;
}

@media (min-width: 960px) {
  .hero-farmacia-content .hero-actions {
    justify-content: flex-start;
  }
}

.hero-farmacia-content .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.btn-navy {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(10, 73, 151, 0.35);
}

.btn-navy:hover {
  background: #08386f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 73, 151, 0.4);
}

.hero-scroll-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  text-decoration: none;
}

.hero-scroll-link:hover {
  text-decoration: underline;
}

/* ---------- Farmacias redesign — Tu operación no cambia ---------- */
.operacion-section {
  background: var(--color-white);
  padding-top: 40px;
}

.operacion-section .unchanged-item {
  background: var(--color-white);
}

/* ---------- Farmacias redesign — CTA final navy ---------- */
.cta-final-navy {
  background: var(--color-primary);
  padding: 80px 5%;
  text-align: center;
}

.cta-final-navy h2 {
  color: var(--color-white);
}

/* ---------- Farmacias redesign — Cómo funciona (tarjetas) ---------- */
.how-it-works-section {
  background: var(--color-white);
  padding: 80px 5%;
}

.how-it-works-section .eyebrow {
  font-family: 'Roboto', sans-serif;
  color: #00A4E3;
}

.how-it-works-section .section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #0A4997;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.how-card {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 24px rgba(10, 73, 151, 0.08);
  border-radius: 12px;
  padding: 36px 28px;
}

.how-card-num-bg {
  position: absolute;
  top: -10px;
  right: 16px;
  z-index: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  color: #00A4E3;
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}

.how-card-num {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #00A4E3;
  margin-bottom: 16px;
}

.how-card h4 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: #0A4997;
  margin-bottom: 10px;
}

.how-card p {
  position: relative;
  z-index: 1;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #4a5568;
}

@media (max-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
  }
  .how-it-works-section {
    padding: 80px 16px;
  }
}

/* ---------- Farmacias redesign — Laboratorios disponibles (marquee 2 filas) ---------- */
.labs-marquee-section {
  background: #f8fafc;
  padding: 60px 5% 40px;
  text-align: center;
}

.labs-marquee-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00A4E3;
  margin-bottom: 8px;
}

.labs-marquee-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: #0A4997;
  margin-bottom: 36px;
}

.labs-marquee-row {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  min-height: 60px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.labs-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
}

.labs-marquee-track-rtl {
  animation: marquee-rtl 35s linear infinite;
}

.labs-marquee-row:hover .labs-marquee-track {
  animation-play-state: paused;
}

.labs-marquee-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease;
  flex-shrink: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: none;
}

.labs-marquee-logo:hover {
  filter: grayscale(0%) opacity(1);
}

.labs-marquee-logo-sm {
  height: 42px;
}

@keyframes marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .labs-marquee-row {
    min-height: 42px;
  }
  .labs-marquee-logo {
    height: 42px;
  }
  .labs-marquee-logo-sm {
    height: 29px;
  }
  .labs-marquee-track {
    gap: 32px;
  }
  .labs-marquee-track-rtl {
    animation-duration: 20s;
  }
  .labs-marquee-title {
    font-size: 22px;
  }
}

/* ---------- Laboratorios — Reporting en tiempo real ---------- */
.reporting-section {
  background: #0A4997;
  padding: 80px 5%;
  text-align: center;
}

.reporting-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #66C1D7;
  margin-bottom: 12px;
}

.reporting-headline {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.25;
  color: #fff;
  max-width: 760px;
  margin: 0 auto 20px;
}

.reporting-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
  max-width: 640px;
  margin: 0 auto;
}

.reporting-frame {
  max-width: min(960px, 100%);
  margin: 40px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(48px);
  transition: none;
}

.reporting-frame.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  animation: float-dashboard 4s ease-in-out infinite;
  animation-delay: 0.7s;
}

@keyframes float-dashboard {
  0%   { transform: translateY(0px);   box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
  50%  { transform: translateY(-10px); box-shadow: 0 36px 80px rgba(0, 0, 0, 0.25); }
  100% { transform: translateY(0px);   box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .reporting-frame,
  .reporting-frame.visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

.reporting-frame .browser-content {
  overflow: visible;
  max-height: none;
}

.reporting-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.reporting-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.reporting-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

@media (max-width: 768px) {
  .reporting-headline {
    font-size: 28px;
  }
  .reporting-sub {
    font-size: 16px;
  }
  .reporting-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .reporting-frame {
    max-width: 100%;
    overflow-x: auto;
  }
  .reporting-screenshot {
    width: auto;
    max-width: none;
    min-width: 600px;
  }
}

/* ---------- Droguerías — Hero flow diagram (inline SVG, sin imágenes) ---------- */
.hero-flow-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(10, 73, 151, 0.10);
  padding: 32px;
  width: 100%;
}

.hero-flow-nodes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-flow-node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 6px;
}

.hero-flow-node span {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.25;
}

.hero-flow-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-flow-node-ot {
  border-color: #00A4E3;
}

.hero-flow-node-ot span {
  color: #00A4E3;
}

.hero-flow-ot-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #00A4E3;
}

.hero-flow-node-active {
  background: #0A4997;
  border: none;
  box-shadow: 0 4px 20px rgba(10, 73, 151, 0.35);
  animation: pulse-node 2.5s infinite;
}

.hero-flow-node-active span {
  font-weight: 700;
  color: #ffffff;
}

.hero-flow-arrow {
  width: 20px;
  height: 12px;
  flex-shrink: 0;
  animation: arrow-flow 1.5s infinite;
}

.hero-flow-arrow:nth-of-type(2) {
  animation-delay: 0.5s;
}

.hero-flow-divider {
  border-top: 1px solid #e2e8f0;
  margin: 24px 0;
}

.hero-flow-stats {
  display: flex;
  justify-content: space-around;
  gap: 16px;
}

.hero-flow-stat {
  text-align: center;
}

.hero-flow-stat-num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #0A4997;
  line-height: 1.1;
}

.hero-flow-stat-accent {
  color: #00A4E3;
}

.hero-flow-stat-label {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #4a5568;
  margin-top: 4px;
}

@keyframes pulse-node {
  0%   { box-shadow: 0 4px 20px rgba(10, 73, 151, 0.35); }
  50%  { box-shadow: 0 4px 32px rgba(10, 73, 151, 0.60); }
  100% { box-shadow: 0 4px 20px rgba(10, 73, 151, 0.35); }
}

@keyframes arrow-flow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

@media (max-width: 768px) {
  .hero-flow-card {
    padding: 24px;
  }
  .hero-flow-nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hero-flow-arrow {
    display: none;
  }
  .hero-flow-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-flow-node-active,
  .hero-flow-arrow {
    animation: none;
  }
}

/* ---------- Droguerías — Botón de contacto ---------- */
.contact-btn {
  display: inline-block;
  background: #0A4997;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 36px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-btn:hover {
  background: #08386f;
  transform: translateY(-2px);
}
