/* ==========================================================================
   CME | Cannabis Medicinal Ec (CANNAMEDEC S.A.S.)
   Rediseño Corporativo Sobrio y Clínico para SimCodec Demo
   ========================================================================== */

:root {
  /* Paleta cromática corporativa sobria */
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-bg-emerald-soft: #f0fdf4;
  --color-bg-emerald-tint: #ecfdf5;

  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  --color-border-medical: #d1fae5;

  /* Verdes institucionales médicos */
  --color-brand-primary: #1b4332;       /* Verde bosque médico sobrio */
  --color-brand-secondary: #2d6a4f;     /* Verde corporativo intermedio */
  --color-brand-accent: #40916c;        /* Acento botánico */
  --color-brand-light: #52b788;         /* Acento sutil para insignias */
  --color-brand-dark: #081c15;          /* Contraste profundo */

  /* Textos y neutros de alta legibilidad */
  --color-text-title: #0f172a;          /* Slate 900 */
  --color-text-body: #334155;           /* Slate 700 */
  --color-text-muted: #64748b;          /* Slate 500 */
  --color-text-subtle: #94a3b8;         /* Slate 400 */
  --color-text-inverse: #ffffff;

  /* Estados y badges */
  --color-success: #166534;
  --color-success-bg: #dcfce7;
  --color-simcodec-blue: #0284c7;
  --color-simcodec-bg: #f0f9ff;
  --color-simcodec-border: #bae6fd;

  /* Tipografías sobrias */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras sutiles controladas (sin brillos exagerados) */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-navbar: 0 2px 10px rgba(15, 23, 42, 0.06);

  /* Radio de bordes sobrios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Transición refinada */
  --transition-quick: 0.18s ease-in-out;
}

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

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

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

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

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

button, input, select, textarea {
  font: inherit;
}

/* ==========================================================================
   BARRA OBLIGATORIA SIMCODEC DEMO (TOP BANNER)
   ========================================================================== */
.simcodec-topbar {
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.8125rem;
  padding: 8px 16px;
  border-bottom: 1px solid #1e293b;
  position: relative;
  z-index: 60;
}

.simcodec-topbar-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.simcodec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.simcodec-pulse {
  width: 7px;
  height: 7px;
  background-color: #38bdf8;
  border-radius: 50%;
  display: inline-block;
}

.simcodec-message {
  color: #e2e8f0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.simcodec-message strong {
  color: #ffffff;
  font-weight: 600;
}

.simcodec-topbar-link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-quick);
}

.simcodec-topbar-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   NAVBAR 100% OPACO (SIN TRANSPARENCIAS AL SCROLL)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff !important; /* 100% SÓLIDO */
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-navbar);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: #ffffff !important;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Navegación de escritorio */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-body);
  padding: 6px 4px;
  position: relative;
  transition: color var(--transition-quick);
}

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

.nav-link.active {
  color: var(--color-brand-primary);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-brand-primary);
  border-radius: 2px;
}

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

/* Botones estándar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-quick);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-brand-primary);
  color: #ffffff;
  border-color: var(--color-brand-primary);
}

.btn-primary:hover {
  background-color: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-brand-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-subtle);
  border-color: var(--color-brand-primary);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border-color: #22bf5b;
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 0.95rem;
}

/* Botón menú móvil */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--color-text-body);
}

.mobile-nav-menu {
  display: none;
}


/* ==========================================================================
   HERO CORPORATIVO SOBRIO
   ========================================================================== */
.hero-section {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 56px 24px 64px;
  position: relative;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-brand-secondary);
  width: fit-content;
}

.meta-pill-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-accent);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-text-title);
  letter-spacing: -0.025em;
}

.hero-title span {
  color: var(--color-brand-primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-body);
  line-height: 1.65;
  max-width: 640px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-icon {
  color: var(--color-brand-primary);
  margin-bottom: 2px;
}

.trust-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-title);
  line-height: 1.3;
}

.trust-desc {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* Card Visual en Hero */
.hero-visual-card {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.hero-product-img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.12));
}

.hero-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.overlay-info {
  display: flex;
  flex-direction: column;
}

.overlay-product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-brand-primary);
}

.overlay-product-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.overlay-tag {
  background-color: var(--color-bg-emerald-soft);
  color: var(--color-brand-secondary);
  border: 1px solid var(--color-border-medical);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.section {
  padding: 72px 24px;
}

.section-subtle {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

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

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-primary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: var(--color-text-title);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN: PATOLOGÍAS Y MECANISMO ENDOCANNABINOIDE
   ========================================================================== */
.pathology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pathology-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-quick), border-color var(--transition-quick), box-shadow var(--transition-quick);
}

.pathology-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.pathology-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--color-bg-emerald-soft);
  border: 1px solid var(--color-border-medical);
  color: var(--color-brand-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pathology-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-title);
  line-height: 1.3;
}

.pathology-desc {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.55;
  flex-grow: 1;
}

.pathology-product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-brand-primary);
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

/* ==========================================================================
   SECCIÓN: CALCULADORA INTERACTIVA DE DOSIS MÉDICA
   ========================================================================== */
.calc-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calc-inputs-pane {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--color-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-title);
  display: flex;
  justify-content: space-between;
}

.form-label-val {
  color: var(--color-brand-primary);
  font-weight: 700;
}

.range-slider {
  width: 100%;
  accent-color: var(--color-brand-primary);
  height: 6px;
  cursor: pointer;
}

.radio-pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.radio-pill-item {
  position: relative;
}

.radio-pill-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-quick);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-body);
}

.radio-pill-item input[type="radio"]:checked + .radio-pill-label {
  border-color: var(--color-brand-primary);
  background-color: var(--color-bg-emerald-soft);
  color: var(--color-brand-primary);
  font-weight: 700;
}

.calc-results-pane {
  background-color: var(--color-bg-subtle);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.results-header-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 4px;
}

.results-header-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.results-metric-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-brand-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-unit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dosage-schedule {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.schedule-label {
  color: var(--color-text-muted);
}

.schedule-val {
  font-weight: 700;
  color: var(--color-text-title);
}

.calc-disclaimer {
  font-size: 0.73rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

/* ==========================================================================
   SECCIÓN: CATÁLOGO CLÍNICO DE PRODUCTOS
   ========================================================================== */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-quick);
}

.filter-btn:hover {
  border-color: var(--color-brand-secondary);
  color: var(--color-brand-primary);
}

.filter-btn.active {
  background-color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-quick), border-color var(--transition-quick), box-shadow var(--transition-quick);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
}

.product-card-top {
  position: relative;
  background-color: var(--color-bg-subtle);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  border-bottom: 1px solid var(--color-border);
}

.product-img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-brand-primary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-title);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--color-text-body);
  line-height: 1.5;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.spec-badge {
  background-color: var(--color-bg-muted);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.product-variants-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.variant-select {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--color-text-title);
  font-weight: 500;
}

.product-card-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-brand-primary);
}

/* ==========================================================================
   SECCIÓN: MARCO LEGAL Y CALIDAD FARMACÉUTICA EN ECUADOR
   ========================================================================== */
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.compliance-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.compliance-badge {
  display: inline-block;
  background-color: var(--color-bg-emerald-soft);
  color: var(--color-brand-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.compliance-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-title);
  margin-bottom: 12px;
}

.compliance-card p {
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 16px;
}

.legal-table th, .legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.legal-table th {
  background-color: var(--color-bg-subtle);
  font-weight: 700;
  color: var(--color-text-title);
}

.status-check {
  color: var(--color-success);
  font-weight: 700;
}

/* ==========================================================================
   SECCIÓN: DISPENSARIOS FÍSICOS Y PUNTOS DE ATENCIÓN
   ========================================================================== */
.dispensaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dispensary-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.dispensary-type {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dispensary-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-title);
}

.dispensary-address {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dispensary-schedule {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  line-height: 1.45;
}

/* ==========================================================================
   SECCIÓN: PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color var(--transition-quick);
}

.faq-question:hover {
  background-color: var(--color-bg-subtle);
}

.faq-chevron {
  color: var(--color-brand-primary);
  transition: transform var(--transition-quick);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.875rem;
  color: var(--color-text-body);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
  background-color: #ffffff;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   SECCIÓN: FORMULARIO DE CONSULTA CLÍNICA
   ========================================================================== */
.consultation-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-text-title);
  background-color: #ffffff;
  transition: border-color var(--transition-quick);
}

.input-field:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

textarea.input-field {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL Y BANNER DE DEMO OBLIGATORIO
   ========================================================================== */
.site-footer {
  background-color: #081c15; /* Verde profundo sobrio */
  color: #f1f5f9;
  border-top: 1px solid #1b4332;
  padding-top: 56px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

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

.footer-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.82rem;
  color: #cbd5e1;
  transition: color var(--transition-quick);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-contact-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Franja Obligatoria SimCodec en Footer */
.footer-simcodec-banner {
  background-color: #0b1522;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  padding: 20px 24px;
}

.simcodec-banner-box {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.simcodec-banner-text {
  font-size: 0.88rem;
  color: #e2e8f0;
}

.simcodec-banner-text strong {
  color: #38bdf8;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: #64748b;
}

/* Modal interactivo */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   RESPONSIVIDAD Y AJUSTES MÓVILES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .calc-inputs-pane {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 12px;
  }

  .mobile-nav-menu.active {
    display: flex;
  }

  .pathology-grid,
  .dispensaries-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
