/* Laboratorio Biosur — sitio de pacientes
   Paleta de marca oficial (branding Biosur): navy #304b6f, azul medio
   #658dc0, azul pálido #c1d0ee, gris frío #c2c6cf, negro y blanco. */

:root{
  --bg:#F5F7FA; --surface:#FFFFFF; --surface-2:#EEF2F8;
  --ink:#1A2433; --ink-soft:#57647A; --ink-faint:#8D96A6;
  --line:#DEE3EC; --line-strong:#C2C6CF;
  --accent:#4E77A6; --accent-ink:#FFFFFF; --accent-soft:#E7EDF7; --accent-strong:#304B6F;
  --ok:#2E9B5C; --ok-soft:#E1F4E9; --ok-ink:#0F5A31;
  --warn:#C0392B; --warn-soft:#FBE4E1; --warn-ink:#7A241C;
  --shadow: 0 1px 2px rgba(20,32,50,.06), 0 4px 14px rgba(20,32,50,.06);
  --radius: 12px;

  /* paleta de marca — Laboratorio Biosur */
  --navy-900:#22384F; /* variante oscura derivada, para profundidad en el hero */
  --navy-800:#304B6F; /* navy de marca */
  --navy-700:#4B7099; /* variante intermedia derivada */
  --brand-blue:#658DC0; /* azul medio de marca (uso decorativo/acentos) */
  --blue-100:#C1D0EE; /* azul pálido de marca */
  --blue-050:#EEF3FB; /* tint muy claro derivado */
  --grey-cool:#C2C6CF; /* gris frío de marca */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
[hidden]{ display:none!important; }
body{
  background:var(--bg); color:var(--ink);
  font-family:'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  min-height:100vh;
  display:flex; flex-direction:column;
}
h1,h2,h3{ text-wrap:balance; margin:0 0 6px; }
.brand-face{ font-family:'Archivo', 'IBM Plex Sans', system-ui, sans-serif; font-weight:900; }
a{ color:var(--accent-strong); }
button{ font-family:inherit; }
input,select{ font-family:inherit; font-size:15px; }

.mono{ font-family:'IBM Plex Mono', ui-monospace, monospace; }

/* ---------- header / nav ---------- */
.site-header{
  background:var(--surface); border-bottom:1px solid var(--line);
  padding:14px 24px; position:sticky; top:0; z-index:30;
}
.site-header.overlay{
  background:transparent; border-bottom:none; position:absolute; top:0; left:0; right:0;
}
.site-header.overlay .brand-text h1,
.site-header.overlay .brand-text p{ color:#fff; }
.site-header.overlay .site-nav a{ color:var(--blue-100); }
.site-header.overlay .site-nav a:hover{ color:#fff; }
.site-header-inner{
  max-width:1120px; margin:0 auto; display:flex; align-items:center; gap:20px;
}
.site-header .brand-text h1{
  font-family:'Archivo', 'IBM Plex Sans', system-ui, sans-serif; font-weight:900;
  font-size:15px; letter-spacing:.01em;
}
.site-header .brand-text p{ margin:0; font-size:10.5px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.12em; }
.site-header a.home-link{ text-decoration:none; color:inherit; display:flex; align-items:center; gap:11px; }
.brand-badge{
  width:40px; height:40px; border-radius:10px; background:var(--navy-800);
  color:#fff; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; overflow:hidden;
}
.brand-badge img{ width:100%; height:100%; object-fit:cover; display:block; }
.brand-badge svg{ width:22px; height:22px; }
.site-nav{ display:flex; gap:26px; margin-left:8px; }
.site-nav a{
  color:var(--ink-soft); text-decoration:none; font-size:13.5px; font-weight:600;
}
.site-nav a:hover{ color:var(--navy-900); }
@media (max-width:700px){ .site-nav{ display:none; } }
.btn-whatsapp-nav{
  margin-left:auto; display:inline-flex; align-items:center; gap:8px;
  background:var(--navy-900); color:#fff; text-decoration:none;
  padding:10px 18px; border-radius:999px; font-size:13px; font-weight:700;
  white-space:nowrap; transition:.15s;
}
.btn-whatsapp-nav:hover{ background:var(--navy-800); }
.btn-whatsapp-nav svg{ width:16px; height:16px; }

/* ---------- layout ---------- */
main{ flex:1; width:100%; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }
main.simple{ max-width:880px; margin:0 auto; padding:28px 20px 60px; width:100%; }
.lead{ color:var(--ink-soft); font-size:15px; max-width:60ch; margin-bottom:26px; }

.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px; box-shadow:var(--shadow);
}
.card + .card{ margin-top:16px; }

/* ---------- hero (home) ---------- */
.hero{
  position:relative; overflow:hidden; color:#fff;
  background:
    linear-gradient(100deg, rgba(15,25,38,.92) 0%, rgba(15,25,38,.72) 38%, rgba(15,25,38,.32) 62%, rgba(15,25,38,.12) 100%),
    url('assets/hero-photo.jpg');
  background-size: cover;
  background-position: center;
  padding:26px 24px 62px;
}
.hero-inner{ max-width:1120px; margin:0 auto; position:relative; display:grid; grid-template-columns:1fr; gap:24px; align-items:center; }
@media (max-width:900px){ .hero-inner{ grid-template-columns:1fr; } .hero-art{ display:none; } }
.hero-eyebrow{ font-size:12px; font-weight:700; letter-spacing:.16em; color:var(--blue-100); text-transform:uppercase; margin:0 0 6px; }
.hero h1{
  font-family:'Archivo','IBM Plex Sans',system-ui,sans-serif; font-weight:900;
  font-size:clamp(26px,4.2vw,38px); line-height:1.04; margin:0 0 3px; color:#fff;
}
.hero h1 em{ font-style:normal; color:#fff; }
.hero-rule{ width:56px; height:3px; background:var(--brand-blue); border:none; margin:0 0 8px; }
.hero p{ font-size:14px; color:var(--blue-100); max-width:44ch; line-height:1.35; }
.hero-art{ display:flex; align-items:center; justify-content:center; }
.hero-art svg, .hero-art img{ width:100%; max-width:380px; height:auto; display:block; }

/* CTA pills, superpuestos sobre el borde inferior del hero */
.cta-row{
  max-width:1120px; margin:0 auto; padding:0 24px; position:relative; z-index:5;
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap;
  transform:translateY(-50%);
}
.cta-pill{
  display:inline-flex; align-items:center; justify-content:center; text-align:center;
  text-decoration:none; font-family:'Archivo','IBM Plex Sans',system-ui,sans-serif; font-weight:800;
  border-radius:999px; padding:10px 20px; width:200px; font-size:14.5px; letter-spacing:.03em;
  box-shadow:0 12px 32px rgba(11,37,69,.16); transition:.15s; border:1px solid transparent;
  background:var(--surface); color:var(--ink);
}
.cta-pill:hover{ transform:translateY(-2px); }
.cta-pill.pill-dark{ background:#fff; color:var(--navy-800); }
.cta-pill.pill-tint{ background:#fff; color:var(--navy-800); }
.cta-pill.pill-featured{
  background:var(--brand-blue); color:#fff;
  box-shadow:0 16px 38px rgba(11,37,69,.28);
  order:0;
}
.cta-pill.pill-whatsapp{
  background:var(--brand-blue); color:#fff; gap:8px; width:auto; padding:10px 22px;
  box-shadow:0 16px 38px rgba(11,37,69,.28);
}
.cta-pill.pill-whatsapp:hover{ background:var(--navy-800); }
.cta-pill.pill-whatsapp svg{ width:17px; height:17px; flex-shrink:0; }
@media (max-width:900px){
  .cta-row{ flex-direction:column; align-items:stretch; transform:translateY(-28px); }
  .cta-pill{ width:100%; }
  .cta-pill.pill-featured{ order:-1; }
  .cta-pill.pill-whatsapp{ width:100%; }
}

/* ---------- feature strip ---------- */
.feature-strip{
  max-width:1120px; margin:54px auto 0; padding:0 24px 8px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
@media (max-width:820px){ .feature-strip{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .feature-strip{ grid-template-columns:1fr; } }
.feature{ display:flex; align-items:flex-start; gap:12px; }
.feature-icon{
  width:44px; height:44px; border-radius:999px; background:var(--blue-100); color:var(--navy-800);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.feature-icon svg{ width:20px; height:20px; }
.feature-title{ font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--navy-900); }
.feature-desc{ font-size:12.5px; color:var(--ink-soft); margin-top:2px; line-height:1.4; }

/* ---------- obras sociales (chips) ---------- */
.section-title{ font-size:15px; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.04em; font-weight:900; margin-bottom:8px; }
.section-title.section-title-sucursales{ color:var(--navy-900); }
.chip-row{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
@media (max-width:900px){ .chip-row{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:560px){ .chip-row{ grid-template-columns:repeat(2,1fr); } }
.chip{
  background:var(--surface-2); border:1px solid var(--grey-cool); color:var(--ink-soft);
  font-size:12px; font-weight:600; padding:4px 12px; border-radius:999px;
  height:36px; display:flex; align-items:center; justify-content:center; text-align:center;
}
.chip.chip-logo{
  background:#fff; padding:8px 14px; overflow:hidden;
}
.chip.chip-logo img{ max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; display:block; }
.chip.chip-logo-fill{
  padding:6px 10px; border:none; overflow:hidden;
}
.chip.chip-logo-fill img{ max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; display:block; }
.chip.chip-logo-fill.bg-ospjn{ background:#187f7a; }
.chip.chip-logo-fill.bg-doctored{ background:#3e028b; }
.chip.chip-logo-fill.bg-roisa{ background:#000; }
.chip.chip-logo-fill.bg-osde{ background:var(--navy-800); }
.section-obras{ max-width:1120px; margin:18px auto 0; padding:0 24px 18px; }

/* ---------- sucursales ---------- */
.section-sucursales{ max-width:1120px; margin:18px auto 0; padding:0 24px; }
.sucursal-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:700px){ .sucursal-row{ grid-template-columns:1fr; } }
.sucursal-card{
  display:flex; align-items:flex-start; gap:12px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius); padding:9px 14px; box-shadow:var(--shadow);
}
.sucursal-icon{
  width:32px; height:32px; border-radius:999px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-soft); color:var(--accent-strong);
}
.sucursal-icon svg{ width:16px; height:16px; }
.sucursal-name{ font-family:'Archivo','IBM Plex Sans',system-ui,sans-serif; font-weight:900; font-size:15px; color:var(--navy-900); }
.sucursal-addr{ font-size:13px; color:var(--ink-soft); margin-top:2px; }
.sucursal-hours{ font-size:14px; color:var(--ink-faint); margin-top:2px; }

/* ---------- listado de documentos (instructivos) ---------- */
.doc-list{ display:flex; flex-direction:column; gap:10px; }
.doc-item{
  display:flex; align-items:center; gap:12px; background:var(--surface);
  border:1px solid var(--line); border-radius:9px; padding:14px 16px;
  text-decoration:none; color:var(--ink); box-shadow:var(--shadow); transition:.12s;
}
.doc-item:hover{ border-color:var(--accent); background:var(--accent-soft); }
.doc-item .doc-icon{ font-size:18px; }
.doc-item .doc-name{ font-size:14px; font-weight:600; }

/* ---------- forms ---------- */
.grid{ display:grid; gap:14px; }
label{ display:flex; flex-direction:column; gap:5px; font-size:13px; font-weight:600; color:var(--ink-soft); }
input[type=text],input[type=date],input[type=password]{
  border:1px solid var(--line-strong); background:var(--surface); color:var(--ink);
  border-radius:8px; padding:11px 12px; width:100%; outline:none; transition:.12s;
}
input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }

.btn{
  border:none; border-radius:8px; padding:12px 18px; font-size:14px; font-weight:700; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:7px; transition:.12s; width:100%;
}
.btn-primary{ background:var(--accent); color:var(--accent-ink); }
.btn-primary:hover{ background:var(--accent-strong); }
.btn-primary:disabled{ opacity:.55; cursor:not-allowed; }
.btn-ghost{ background:var(--surface-2); color:var(--ink); }
.btn-ghost:hover{ background:var(--line); }
.btn-logout{ background:transparent; color:var(--ink-soft); font-size:12.5px; width:auto; padding:6px 10px; }

/* ---------- tabs (portal: ingresar / crear clave) ---------- */
.seg{ display:flex; gap:4px; background:var(--surface-2); padding:4px; border-radius:10px; margin-bottom:20px; }
.seg button{
  flex:1; border:none; background:transparent; color:var(--ink-soft); padding:9px 12px; border-radius:7px;
  font-size:13.5px; font-weight:600; cursor:pointer;
}
.seg button.active{ background:var(--surface); color:var(--accent-strong); box-shadow:var(--shadow); }

/* ---------- banners ---------- */
.banner{ display:flex; align-items:flex-start; gap:10px; padding:12px 14px; border-radius:8px; font-size:13.5px; margin-bottom:16px; line-height:1.5; }
.banner-warn{ background:var(--warn-soft); color:var(--warn-ink); }
.banner-ok{ background:var(--ok-soft); color:var(--ok-ink); }
.banner-info{ background:var(--accent-soft); color:var(--accent-strong); }
.hint{ font-size:12px; color:var(--ink-faint); margin-top:2px; }

/* ---------- resultados list ---------- */
.res-item{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 16px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2);
}
.res-item + .res-item{ margin-top:10px; }
.res-item .fecha{ font-weight:700; font-size:14px; }
.res-item .estado{ font-size:12px; color:var(--ok-ink); }
.empty-state{ text-align:center; padding:40px 16px; color:var(--ink-faint); font-size:14px; }

/* ---------- instructivos ---------- */
.instructivo{ margin-bottom:30px; }
.instructivo h2{ font-size:17px; color:var(--accent-strong); }
.instructivo ol,.instructivo ul{ padding-left:22px; line-height:1.65; }
.instructivo p{ line-height:1.65; }
.instructivo .destacado{ background:var(--accent-soft); border-radius:8px; padding:12px 14px; margin:12px 0; }
.toc{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px; }
.toc a{
  font-size:12.5px; font-weight:600; text-decoration:none; color:var(--accent-strong);
  background:var(--accent-soft); padding:7px 12px; border-radius:999px;
}

/* ---------- footer ---------- */
.site-footer{
  text-align:center; padding:8px 18px; font-size:12.5px; color:var(--navy-800);
  border-top:1px solid var(--line); border-bottom:3px solid var(--brand-blue);
  font-weight:400; font-family:'IBM Plex Sans',system-ui,sans-serif;
}
.footer-whatsapp{
  display:inline-flex; align-items:center; gap:4px; color:inherit; text-decoration:none; font-weight:inherit;
  font-family:inherit; font-size:inherit;
}
.footer-whatsapp svg{ width:14px; height:14px; }
.footer-contacto{ font-weight:700; }
.footer-whatsapp:hover{ text-decoration:underline; }
