/* ═══════════════════════════════════════════
   JS PHARMA SOLUTIONS — SHARED DESIGN SYSTEM
   shared.css · v1.0 · Agosto 2026
═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Brand */
  --navy:    #0D2B4E;
  --blue:    #1A6DA0;
  --blueLt:  #6BAED6;
  --blueXlt: #E8F4FD;
  --green:   #0F9B6E;
  --grnLt:   #E2F5EE;
  --grnMd:   #B8E4D4;

  /* Neutrals */
  --gray50:  #F7F9FC;
  --gray100: #EDF1F7;
  --gray300: #B8C7D9;
  --gray500: #6B7C8F;
  --gray700: #3A4A5C;
  --text:    #1E2D3D;
  --white:   #FFFFFF;

  /* Typography */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', Arial, sans-serif;

  /* Spacing */
  --s1:4px; --s2:8px; --s3:16px; --s4:24px;
  --s5:32px; --s6:48px; --s7:64px; --s8:96px;

  /* Radii */
  --r1:4px; --r2:8px; --r3:12px; --r4:20px; --r5:100px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(13,43,78,.06);
  --shadow-md: 0 4px 20px rgba(13,43,78,.08);
  --shadow-lg: 0 8px 40px rgba(13,43,78,.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--sans); border: none; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: var(--sans); }

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 48px; }
.section { padding: var(--s8) 0; }
.section--gray  { background: var(--gray50); }
.section--navy  { background: var(--navy); }
.section--blue  { background: var(--blueXlt); }
.section--green { background: var(--grnLt); }

/* ── TYPOGRAPHY ── */
.eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.eyebrow--blue { color: var(--blue); }
.eyebrow--white { color: var(--blueLt); }
.h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 62px); line-height: 1.08; color: var(--navy); }
.h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 42px); line-height: 1.18; color: var(--navy); }
.h3 { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; color: var(--navy); }
.h2--white, .h3--white { color: var(--white); }
.lead { font-size: 17px; color: var(--gray500); line-height: 1.8; }
.body-sm { font-size: 14px; color: var(--gray500); line-height: 1.7; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 12px 24px; border-radius: var(--r2); transition: all .18s; white-space: nowrap; cursor: pointer; border: none; }
.btn--green  { background: var(--green); color: var(--white); }
.btn--green:hover { background: #0c8560; }
.btn--navy   { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); }
.btn--white  { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--gray50); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--gray300); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--sm { font-size: 13px; padding: 9px 18px; }
.btn--lg { font-size: 16px; padding: 15px 30px; }

/* ── BADGES ── */
.badge { display: inline-block; font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: var(--r5); white-space: nowrap; }
.badge--pub { background: var(--grnLt); color: var(--green); }
.badge--rev { background: var(--blueXlt); color: var(--blue); }
.badge--bor { background: var(--gray100); color: var(--gray500); }
.badge--obs { background: #FEF3E2; color: #92400E; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray100); height: 64px;
}
.nav__inner {
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.nav__left { display: flex; align-items: center; gap: 20px; }
.nav__logo { height: 42px; width: auto; }
.nav__divider { width: 1px; height: 24px; background: var(--gray100); }
.nav__product { display: flex; flex-direction: column; line-height: 1.25; }
.nav__product-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.nav__product-by   { font-size: 10px; color: var(--gray300); }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { font-size: 13px; color: var(--gray500); transition: color .15s; }
.nav__links a:hover, .nav__links a.active { color: var(--blue); }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.nav__lang {
  font-size: 12px; font-weight: 500; color: var(--gray300);
  padding: 5px 10px; border-radius: var(--r2);
  border: 1px solid var(--gray100); cursor: pointer;
  transition: all .15s; background: none;
  display: flex; align-items: center; gap: 4px;
}
.nav__lang:hover { color: var(--navy); border-color: var(--gray300); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.nav__hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .25s; display: block; }
.nav__mobile { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray100); padding: 20px 24px; flex-direction: column; gap: 14px; z-index: 499; box-shadow: var(--shadow-md); }
.nav__mobile a { font-size: 15px; color: var(--gray700); padding: 6px 0; border-bottom: 1px solid var(--gray100); }
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile.open { display: flex; }

/* ── FOOTER ── */
.footer { background: #071a30; padding: 56px 0 28px; }
.footer__top {
  display: grid; grid-template-columns: 220px repeat(4, 1fr);
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 24px;
}
.footer__logo { height: 40px; margin-bottom: 14px; }
.footer__tagline { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.65; }
.footer__col-title { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 13px; color: rgba(255,255,255,.35); transition: color .15s; }
.footer__links a:hover { color: rgba(255,255,255,.8); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__copy { font-size: 11px; color: rgba(255,255,255,.2); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 11px; color: rgba(255,255,255,.2); transition: color .15s; }
.footer__legal a:hover { color: rgba(255,255,255,.5); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { font-size: 11px; color: rgba(255,255,255,.2); transition: color .15s; padding: 4px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r2); }
.footer__social a:hover { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }

/* ── WHATSAPP WIDGET ── */
.wa-widget {
  position: fixed; bottom: 28px; right: 28px; z-index: 400;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.wa-bubble-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  cursor: pointer; border: none; transition: all .2s;
  font-size: 26px; line-height: 1;
}
.wa-bubble-btn:hover { background: #20b958; transform: scale(1.05); }
.wa-badge-count {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #E24B4A; color: var(--white);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.wa-tooltip {
  background: var(--navy); color: var(--white);
  font-size: 13px; padding: 8px 14px; border-radius: var(--r3);
  white-space: nowrap; box-shadow: var(--shadow-md);
  animation: fadeInUp .2s ease;
}
.wa-panel {
  background: var(--white); border-radius: var(--r3);
  box-shadow: 0 8px 40px rgba(0,0,0,.15);
  width: 320px; overflow: hidden;
  animation: fadeInUp .25s ease;
  display: none;
}
.wa-panel.open { display: block; }
.wa-panel__header { background: #075E54; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.wa-panel__avatar { width: 42px; height: 42px; border-radius: 50%; background: #128C7E; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.wa-panel__info { flex: 1; }
.wa-panel__name { font-size: 14px; font-weight: 600; color: var(--white); }
.wa-panel__status { font-size: 11px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 4px; }
.wa-panel__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #25D366; }
.wa-panel__close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 18px; cursor: pointer; padding: 4px; }
.wa-panel__body { padding: 18px; background: #ECE5DD; }
.wa-panel__msg { background: var(--white); border-radius: 0 var(--r3) var(--r3) var(--r3); padding: 12px 14px; font-size: 13px; color: var(--gray700); line-height: 1.6; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.wa-panel__msg strong { color: var(--navy); display: block; margin-bottom: 4px; font-size: 14px; }
.wa-panel__time { font-size: 10px; color: var(--gray300); text-align: right; margin-top: 4px; }
.wa-panel__actions { padding: 14px 18px; background: var(--white); display: flex; flex-direction: column; gap: 8px; }
.wa-option {
  background: var(--grnLt); border: 1px solid var(--grnMd);
  border-radius: var(--r2); padding: 10px 14px;
  font-size: 13px; color: var(--green); font-weight: 500;
  cursor: pointer; text-align: left; width: 100%; transition: all .15s;
}
.wa-option:hover { background: var(--grnMd); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CONTACT FORM ── */
.contact-section { padding: var(--s8) 0; background: var(--gray50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-form { background: var(--white); border-radius: var(--r3); padding: 36px; border: 1px solid var(--gray100); box-shadow: var(--shadow-md); }
.form-title { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.form-sub { font-size: 13px; color: var(--gray500); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group--full { grid-column: 1 / -1; }
.form-label { font-size: 12px; font-weight: 600; color: var(--gray700); margin-bottom: 6px; display: block; letter-spacing: .02em; }
.form-label span { color: var(--green); }
.form-input, .form-select, .form-textarea {
  width: 100%; font-size: 14px; color: var(--text);
  background: var(--white); border: 1.5px solid var(--gray100);
  border-radius: var(--r2); padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s;
  outline: none; font-family: var(--sans);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,109,160,.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray300); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7C8F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gray500); }
.form-check input { margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.form-check a { color: var(--blue); }
.form-submit { width: 100%; margin-top: 8px; font-size: 15px; padding: 14px; justify-content: center; }
.form-success { display: none; text-align: center; padding: 24px; }
.form-success__icon { font-size: 40px; margin-bottom: 10px; }
.form-success__title { font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.form-success__body { font-size: 14px; color: var(--gray500); }
.form-error-msg { font-size: 11px; color: #E24B4A; margin-top: 4px; display: none; }
.form-input.error, .form-select.error, .form-textarea.error { border-color: #E24B4A; }

.contact-info { padding: 20px 0; }
.contact-info__item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--gray100); align-items: flex-start; }
.contact-info__item:last-child { border-bottom: none; }
.contact-info__icon { width: 40px; height: 40px; border-radius: var(--r2); background: var(--grnLt); border: 1px solid var(--grnMd); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray300); margin-bottom: 3px; }
.contact-info__value { font-size: 14px; color: var(--navy); font-weight: 500; }
.contact-info__sub { font-size: 12px; color: var(--gray500); margin-top: 1px; }

/* ── SCREEN CHROME ── */
.screen-chrome { background: var(--white); border-radius: 14px; border: 1px solid var(--gray100); box-shadow: var(--shadow-lg); overflow: hidden; }
.screen-bar { background: var(--gray50); border-bottom: 1px solid var(--gray100); padding: 10px 14px; display: flex; align-items: center; gap: 7px; }
.screen-dot { width: 9px; height: 9px; border-radius: 50%; }
.screen-url { flex: 1; background: var(--white); border: 1px solid var(--gray100); border-radius: 4px; padding: 3px 10px; font-size: 10px; color: var(--gray300); font-family: monospace; margin: 0 8px; }
.screen-body { padding: 16px; }

/* ── SPLIT LAYOUT ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--gray100); }
.split:last-child { border-bottom: none; padding-bottom: 0; }
.split--rev > *:first-child { order: 2; }
.split--rev > *:last-child  { order: 1; }
.split__label { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.split__title { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 32px); color: var(--navy); line-height: 1.25; margin-bottom: 14px; }
.split__body { font-size: 14px; color: var(--gray500); line-height: 1.75; margin-bottom: 20px; }
.split__items { margin-top: 16px; }
.split__item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gray100); align-items: flex-start; }
.split__item:last-child { border-bottom: none; }
.split__check { width: 18px; height: 18px; border-radius: 50%; background: var(--grnLt); border: 1px solid var(--grnMd); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 9px; color: var(--green); font-weight: 700; margin-top: 2px; }
.split__text { font-size: 13px; color: var(--gray700); line-height: 1.6; }

/* ── VISUAL PANEL ── */
.vp { background: var(--gray50); border: 1px solid var(--gray100); border-radius: var(--r3); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.vp-card { background: var(--white); border: 1px solid var(--gray100); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.vp-label { font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.vp-name { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.vp-sub { font-size: 11px; color: var(--gray500); }
.vp-row { display: flex; gap: 8px; }
.vp-stat { flex: 1; background: var(--white); border: 1px solid var(--gray100); border-radius: 10px; padding: 12px; text-align: center; box-shadow: var(--shadow-sm); }
.vp-stat__n { font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 2px; }
.vp-stat__l { font-size: 10px; color: var(--gray500); }
.vp-prog { background: var(--gray100); border-radius: 3px; height: 5px; overflow: hidden; margin-top: 6px; }
.vp-prog-fill { height: 5px; border-radius: 3px; background: var(--green); }
.vp-prog-labels { font-size: 10px; color: var(--gray500); display: flex; justify-content: space-between; margin-bottom: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .split { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .split--rev > * { order: unset; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: var(--s7) 0; }
}
@media (max-width: 580px) {
  .footer__top { grid-template-columns: 1fr; }
  .vp-row { flex-direction: column; }
  .wa-panel { width: 290px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
