

:root{
  --bg:#FAF7F5; --surface:#FFFFFF; --surface-2:#F8F1EE;
  --ink:#342319; --ink-soft:#7B6356; --ink-faint:#A7968C;
  --line:#ECE3DE; --line-strong:#C2C6CF;
  --accent:#A86C4C; --accent-ink:#FFFFFF; --accent-soft:#F7ECE7; --accent-strong:#71452E;
  --ok:#9E532B; --ok-soft:#F4E7E1; --ok-ink:#5C290D;
  --warn:#C0392B; --warn-soft:#FBE4E1; --warn-ink:#7A241C;
  --shadow: 0 1px 2px rgba(50,30,20,.06), 0 4px 14px rgba(50,30,20,.06);
  --radius: 12px;

  
  --navy-900:#503121; 
  --navy-800:#71452E; 
  --navy-700:#9B6649; 
  --brand-blue:#C28463; 
  --blue-100:#EFD0C0; 
  --blue-050:#FBF2EE; 
  --grey-cool:#C2C6CF; 
}

*{ 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; }


.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; }


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{
  position:relative; overflow:hidden; color:#fff;
  background:
    linear-gradient(100deg, rgba(38,23,15,.92) 0%, rgba(38,23,15,.72) 38%, rgba(38,23,15,.32) 62%, rgba(38,23,15,.12) 100%),
    url('assets/hero-photo.jpg');
  background-size: cover;
  background-position: center;
  
  padding:40px 24px 130px;
  
  display:flex; align-items:center;
  flex:1 0 auto;
}
.hero-inner{ width:100%; 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(30px,5.6vw,52px); line-height:1.04; margin:0 0 3px; color:#fff;
}
@media (min-width:480px){ .hero h1{ white-space:nowrap; } }
.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-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(-100%);
}

.cta-analisis{
  max-width:1120px; margin:26px auto 0; padding:0 24px;
  display:flex; align-items:center; justify-content:center;
}
.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(69,31,11,.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(69,31,11,.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(69,31,11,.28);
}
.cta-pill.pill-whatsapp:hover{ background:var(--navy-800); }
.cta-pill.pill-whatsapp svg{ width:17px; height:17px; flex-shrink:0; }

.cta-dot{
  display:inline-flex; width:17px; height:17px; border-radius:50%;
  background:var(--brand-blue); opacity:.7; text-decoration:none;
  flex-shrink:0; transition:.15s;
}
.cta-dot:hover{ opacity:1; transform:scale(1.2); }

.cta-dot-hero{ display:none; }
@media (max-width:900px){
  
  .hero{ padding-top:16px; padding-bottom:14px; }
  
  .cta-row{ flex-direction:column; align-items:stretch; transform:none; margin-top:-10px; gap:11px; }
  
  .cta-pill{ width:100%; padding:12px 20px; }
  .cta-pill.pill-featured{ order:-1; }
  .cta-pill.pill-whatsapp{ width:100%; padding:12px 22px; }
  .cta-analisis{ margin-top:14px; }
  
  .cta-dot-inline{ display:none; }
  .cta-dot-hero{
    display:inline-flex; position:absolute; right:14px; bottom:14px; z-index:6;
  }
}


.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; }


.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:flex; flex-wrap:wrap; justify-content:center;
  --chip-cols:8; --chip-gap:6px; gap:var(--chip-gap);
}

@media (max-width:900px){ .chip-row{ --chip-cols:4; } }
.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:40px; display:flex; align-items:center; justify-content:center; text-align:center;
  flex:0 0 calc((100% - (var(--chip-cols) - 1)*var(--chip-gap))/var(--chip-cols));
}
.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:#823B15; }
.chip.chip-logo-fill.bg-doctored{ background:#8D3100; }
.chip.chip-logo-fill.bg-roisa{ background:#000; }
.chip.chip-logo-fill.bg-osde{ background:var(--navy-800); }

.chip.chip-logo-fill.bg-osde img{ max-height:17px; }

.chip.chip-logo-fill.bg-medife{ background:#F15904; }
.section-obras{ max-width:1120px; margin:12px auto 0; padding:0 24px 12px; }


.section-sucursales{ max-width:1120px; margin:12px auto 0; padding:0 24px; }
.sucursal-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

@media (max-width:360px){ .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:7px 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; }


.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; }


.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; }


.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); }


.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; }


.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; }


.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;
}


.cta-cv{ text-align:center; margin:12px auto 0; padding:0 24px; }
.cv-link{ font-family:'IBM Plex Sans',system-ui,sans-serif; font-size:14px; color:var(--navy-800); text-decoration:none; }
.cv-link b{ text-decoration:underline; text-underline-offset:3px; }
.cv-link:hover{ color:var(--brand-blue); }
.footer-cv{ color:inherit; font-weight:700; text-decoration:none; }
.footer-cv:hover{ text-decoration:underline; }


.site-footer{
  text-align:center; padding:6px 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; }


@media (max-width:900px){
  
  .section-sucursales{ margin-top:34px; width:100%; }
  .section-obras{ margin-top:38px; }
  
  .sucursal-row{ gap:10px; }
  .sucursal-card{ padding:14px 14px; gap:10px; min-width:0; }
  
  .sucursal-icon{ display:none; }
  .sucursal-text{ min-width:0; flex:1; }
  .sucursal-name{ font-size:16px; }
  
  .sucursal-addr{ font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .sucursal-hours{ font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .chip-row{ --chip-gap:4px; }
  
  .chip{ height:40px; }
  .chip.chip-logo-fill.bg-osde img{ max-height:17px; }
  .site-footer{ padding:4px 18px; }
}

@media (max-width:900px) and (max-height:825px){
  .hero{ padding-top:6px; padding-bottom:6px; }
  .hero-eyebrow{ margin-bottom:2px; }
  .hero-rule{ margin-bottom:5px; }
  .hero p{ font-size:12px; line-height:1.2; }
  .cta-row{ gap:6px; }
  .cta-pill{ padding:9px 20px; }
  .cta-pill.pill-whatsapp{ padding:9px 22px; }
  .section-sucursales{ margin-top:18px; }
  .section-obras{ margin-top:20px; padding-bottom:4px; }
  .section-title{ margin-bottom:5px; }
  .sucursal-card{ padding:8px 12px; }
}


@media (min-width:901px){
  .cta-analisis{ margin-top:-12px; }
  .hero{ padding-bottom:86px; }
}


.chip.chip-logo-fill.bg-osde img{ max-height:22px; }
.chip img[alt="OSPJN"]{ transform:scale(1.18); }
.chip img[alt="DoctoRed"]{ transform:scale(1.3); }
.chip img[alt="Visitar"]{ transform:scale(1.2); }
.chip img[alt="Accord Salud"]{ transform:scale(1.08); }

.chip-sancor .sc-logo{ display:none; }
@media (min-width:901px){
  .chip.chip-sancor{ padding:8px 6px; font-size:20px; }
  .chip.chip-sancor img{ display:none; }
  .chip-sancor .sc-logo{ display:flex; align-items:center; gap:.2em; }
  .chip-sancor .sc-ico{ display:block; width:1.091em; height:1em;
    background:url("assets/logos/sancor.png") 0 0 / auto 1em no-repeat; }
  .chip-sancor .sc-txt{ display:block; width:4.511em; height:.55em;
    background:url("assets/logos/sancor.png") -1.855em -.515em / 6.367em 1.605em no-repeat; }
}

@media (min-width:901px) and (max-width:1200px){ .chip.chip-sancor{ font-size:17px; } }
