/* =========================================================
   APHERIUM — Design System
   Signature: "Panel de biomarcadores" — a lab-readout motif
   (mono numerals + reference ranges) used instead of staged
   before/after photography, which we intentionally avoid.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --ink:#14232B;
  --navy:#0F2438;
  --navy-2:#16324A;
  --teal:#17807A;
  --teal-dark:#0E5C57;
  --teal-tint:#E4F0EE;
  --gold:#C08A3E;
  --gold-tint:#F4E9D8;
  --paper:#F8FAF9;
  --paper-2:#F1F5F3;
  --mist:#DCE8E6;
  --white:#FFFFFF;
  --line:#E2E9E6;
  --line-strong:#C7D3CF;
  --muted:#5B6B67;
  --danger:#B3432E;

  --display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --container: 1180px;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(15,36,56,.05), 0 8px 24px rgba(15,36,56,.06);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

body{
  margin:0;
  font-family:var(--body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--display); font-weight:600; line-height:1.12; margin:0 0 .5em; color:var(--navy); letter-spacing:-.01em; }
h1{ font-size:clamp(2.1rem, 3.2vw + 1rem, 3.6rem); font-weight:500; }
h2{ font-size:clamp(1.6rem, 1.6vw + 1rem, 2.4rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; color:var(--ink); }
.lede{ font-size:1.15rem; color:var(--muted); max-width:60ch; }
ul,ol{ padding-left:1.2em; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
section{ padding:88px 0; }
@media (max-width:720px){ section{ padding:56px 0; } }

.visually-hidden{ position:absolute; width:1px;height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

:focus-visible{ outline:2px solid var(--teal); outline-offset:3px; border-radius:2px; }

/* -------- Eyebrow / labels -------- */
.eyebrow{
  font-family:var(--mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal-dark);
  display:inline-flex;
  align-items:center;
  gap:.5em;
  margin-bottom:.9em;
}
.eyebrow::before{ content:''; width:18px; height:1px; background:var(--gold); display:inline-block; }

/* -------- Buttons -------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family:var(--body); font-weight:600; font-size:.95rem;
  padding:13px 26px; border-radius:var(--radius);
  border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  line-height:1.1;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--teal); color:var(--white); }
.btn-primary:hover{ background:var(--teal-dark); }
.btn-gold{ background:var(--gold); color:var(--navy); }
.btn-gold:hover{ background:#a97a34; }
.btn-outline{ background:transparent; border-color:var(--line-strong); color:var(--navy); }
.btn-outline:hover{ border-color:var(--navy); }
.btn-ghost{ background:transparent; color:var(--teal-dark); padding:13px 4px; }
.btn-whatsapp{ background:#1F8B6B; color:#fff; }
.btn-whatsapp:hover{ background:#176B52; }
.btn-mp{ background:#009EE3; color:#fff; }
.btn-mp:hover{ background:#0081BA; }
.btn-flow{ background:#0A2540; color:#fff; }
.btn-flow:hover{ background:#061A30; }
.btn-block{ width:100%; }
.btn[disabled], .btn.is-placeholder{
  background:var(--paper-2); color:var(--muted); border:1px dashed var(--line-strong); cursor:not-allowed;
}
.btn.is-placeholder:hover{ transform:none; }

/* -------- Header / Nav -------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(248,250,249,.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:var(--container); margin:0 auto; }
.brand{ display:flex; align-items:center; gap:.6em; font-family:var(--display); font-size:1.35rem; color:var(--navy); font-weight:600; }
.brand .mark{
  width:34px; height:34px; flex:none;
  object-fit:contain;
}
.brand .mark.css-fallback{
  border-radius:50%;
  background:conic-gradient(from 210deg, var(--teal), var(--navy) 60%, var(--gold) 100%);
}
.nav-links{ display:flex; gap:28px; align-items:center; list-style:none; margin:0; padding:0; }
.nav-links a{ font-size:.94rem; color:var(--ink); padding:6px 2px; border-bottom:1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"]{ border-bottom-color:var(--gold); color:var(--navy); }
.nav-cta{ display:flex; gap:10px; align-items:center; }
.nav-toggle{ display:none; background:none; border:1px solid var(--line-strong); border-radius:4px; padding:8px 10px; }
@media (max-width:940px){
  .nav-links{ position:absolute; top:100%; left:0; right:0; background:var(--white); flex-direction:column; align-items:flex-start; padding:18px 24px; border-bottom:1px solid var(--line); display:none; gap:14px; }
  .nav-links.is-open{ display:flex; }
  .nav-toggle{ display:inline-flex; }
  .nav-cta .btn-outline{ display:none; }
}

/* -------- Hero -------- */
.hero{ padding:64px 0 40px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin:28px 0 8px; }
.hero-note{ font-size:.85rem; color:var(--muted); margin-top:8px; }
.hero-photo{ position:relative; border-radius:6px; overflow:hidden; box-shadow:var(--shadow); }
.hero-photo img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/5; filter:grayscale(.15) sepia(.12) hue-rotate(140deg) saturate(1.3); }
.hero-photo::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(15,36,56,0) 40%, rgba(15,36,56,.45) 100%); }
.hero-photo figcaption{ position:absolute; left:16px; bottom:14px; right:16px; color:#fff; font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; z-index:2; }

/* -------- Biomarker strip (signature element) -------- */
.biopanel{
  border:1px solid var(--line); background:var(--white); border-radius:var(--radius);
  display:grid; grid-template-columns:repeat(4,1fr); box-shadow:var(--shadow); overflow:hidden;
  margin-top:36px;
}
@media (max-width:760px){ .biopanel{ grid-template-columns:repeat(2,1fr); } }
.biopanel .cell{ padding:18px 20px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.biopanel .cell:nth-child(4n){ border-right:none; }
.biopanel .label{ font-family:var(--mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); display:block; margin-bottom:6px; }
.biopanel .value{ font-family:var(--mono); font-size:1.5rem; color:var(--navy); }
.biopanel .value small{ font-size:.62em; color:var(--muted); }
.biopanel .trend{ font-size:.72rem; margin-left:6px; }
.trend.down{ color:var(--teal-dark); }
.trend.up{ color:var(--danger); }
.biopanel-caption{ font-size:.78rem; color:var(--muted); margin-top:10px; }

/* -------- Section headers -------- */
.section-head{ max-width:64ch; margin-bottom:44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* -------- Cards -------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:900px){ .grid-3, .grid-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; } }

.card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:30px; }
.card-service{ background:var(--white); border:1px solid var(--line); border-radius:6px; overflow:hidden; display:flex; flex-direction:column; box-shadow:var(--shadow); }
.card-service .thumb{ aspect-ratio:16/10; overflow:hidden; }
.card-service .thumb img{ width:100%; height:100%; object-fit:cover; filter:grayscale(.2) sepia(.1) hue-rotate(150deg) saturate(1.2); }
.card-service .body{ padding:26px 26px 28px; flex:1; display:flex; flex-direction:column; }
.card-service .tag{ font-family:var(--mono); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); margin-bottom:.6em; }
.card-service .foot{ margin-top:auto; padding-top:14px; }

.audience-card{ border-radius:6px; padding:34px; color:var(--white); position:relative; overflow:hidden; }
.audience-card.institucional{ background:var(--navy); }
.audience-card.particular{ background:var(--teal-dark); }
.audience-card.docente{ background:linear-gradient(135deg, var(--gold), #a97a34); }
.audience-card.docente h3, .audience-card.docente p, .audience-card.docente li{ color:var(--navy); }
.audience-card.docente ul{ color:var(--navy); }
.audience-card h3{ color:var(--white); }
.audience-card p{ color:rgba(255,255,255,.82); }
.audience-card ul{ color:rgba(255,255,255,.82); margin:0 0 20px; padding-left:1.1em; }
.audience-card li{ margin-bottom:6px; }

.step{ display:flex; gap:18px; }
.step .num{ font-family:var(--mono); font-size:.85rem; color:var(--gold); border:1px solid var(--gold); border-radius:50%; width:34px; height:34px; display:flex; align-items:center; justify-content:center; flex:none; }
.step h4{ font-family:var(--body); font-weight:700; font-size:1.02rem; margin:0 0 .3em; color:var(--navy); }
.step p{ color:var(--muted); font-size:.95rem; margin:0; }

.specialist{ text-align:left; }
.avatar-placeholder{
  width:100%; aspect-ratio:1/1; border-radius:6px; margin-bottom:16px;
  background:linear-gradient(135deg, var(--mist), var(--paper-2));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--display); font-size:2rem; color:var(--teal-dark);
  border:1px dashed var(--line-strong);
}
.specialist .role{ font-family:var(--mono); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--teal-dark); margin-bottom:.4em; display:block; }
.specialist .pending{ font-size:.78rem; color:var(--muted); font-style:italic; }

.testimonial{ border-left:2px solid var(--gold); padding-left:22px; }
.testimonial p{ font-family:var(--display); font-size:1.15rem; font-style:italic; color:var(--navy); }
.testimonial cite{ font-style:normal; font-family:var(--mono); font-size:.78rem; color:var(--muted); }
.testimonial .flag{ display:inline-block; margin-top:10px; font-family:var(--mono); font-size:.66rem; letter-spacing:.05em; text-transform:uppercase; color:var(--gold); border:1px solid var(--gold-tint); background:var(--gold-tint); padding:3px 8px; border-radius:3px; }

/* -------- FAQ (native details/summary — zero JS) -------- */
.faq-group{ border-top:1px solid var(--line); }
details.faq-item{ border-bottom:1px solid var(--line); padding:18px 0; }
details.faq-item summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:20px; align-items:center; font-weight:600; color:var(--navy); font-size:1.02rem; }
details.faq-item summary::-webkit-details-marker{ display:none; }
details.faq-item summary::after{ content:'+'; font-family:var(--mono); font-size:1.3rem; color:var(--gold); flex:none; }
details.faq-item[open] summary::after{ content:'\2212'; }
details.faq-item .a{ padding-top:12px; color:var(--muted); max-width:70ch; }
.faq-cat-title{ margin-top:52px; }
.faq-cat-title:first-of-type{ margin-top:0; }

/* -------- Blog -------- */
.post-card{ border-bottom:1px solid var(--line); padding:30px 0; display:grid; grid-template-columns:220px 1fr; gap:26px; }
@media (max-width:700px){ .post-card{ grid-template-columns:1fr; } }
.post-card .thumb{ border-radius:5px; overflow:hidden; aspect-ratio:4/3; }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; filter:grayscale(.2) sepia(.1) hue-rotate(150deg) saturate(1.2); }
.post-meta{ font-family:var(--mono); font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; }
.article-body{ max-width:70ch; margin:0 auto; }
.article-body h2{ margin-top:1.6em; }
.article-body p{ color:var(--ink); font-size:1.05rem; }
.article-hero{ aspect-ratio:21/9; border-radius:6px; overflow:hidden; margin-bottom:28px; }
.article-hero img{ width:100%; height:100%; object-fit:cover; filter:grayscale(.2) sepia(.1) hue-rotate(150deg) saturate(1.2); }
.article-cta{ background:var(--teal-tint); border-radius:6px; padding:26px 28px; margin:2.2em 0; }
.disclaimer{ font-size:.82rem; color:var(--muted); border-top:1px solid var(--line); padding-top:16px; margin-top:2.4em; }
.tag-list{ display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; }
.tag-pill{ font-family:var(--mono); font-size:.68rem; text-transform:uppercase; letter-spacing:.05em; background:var(--paper-2); border:1px solid var(--line); padding:4px 10px; border-radius:20px; color:var(--muted); }

/* -------- Forms -------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:.82rem; font-weight:600; color:var(--navy); }
.field .hint{ font-size:.76rem; color:var(--muted); }
input,select,textarea{
  font-family:var(--body); font-size:.96rem; padding:11px 13px;
  border:1px solid var(--line-strong); border-radius:4px; background:var(--white); color:var(--ink);
}
input:focus,select:focus,textarea:focus{ border-color:var(--teal); }
textarea{ resize:vertical; min-height:110px; }
.honeypot{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-status{ margin-top:14px; font-size:.9rem; padding:12px 14px; border-radius:4px; display:none; }
.form-status.ok{ background:var(--teal-tint); color:var(--teal-dark); display:block; }
.form-status.err{ background:#F7E4DF; color:var(--danger); display:block; }
.form-note{ font-size:.78rem; color:var(--muted); margin-top:10px; }

/* -------- Payment placeholders -------- */
.plan-card{ border:1px solid var(--line); border-radius:6px; padding:26px; background:var(--white); display:flex; flex-direction:column; }
.plan-card h4{ margin-bottom:4px; }
.plan-price{ font-family:var(--mono); color:var(--muted); font-size:.85rem; margin-bottom:16px; }
.payment-slot{ margin-top:auto; }
.payment-slot .btn{ width:100%; }
.payment-todo{ font-family:var(--mono); font-size:.68rem; color:var(--gold); margin-top:8px; display:block; }
.payment-form{ margin-top:auto; padding-top:16px; border-top:1px dashed var(--line-strong); }
.payment-form .field{ margin-bottom:10px; }
.payment-form .field label{ font-size:.74rem; }
.payment-buttons{ display:flex; flex-direction:column; gap:8px; }
.payment-note{ font-size:.72rem; color:var(--muted); margin-top:8px; }

/* -------- Bands / CTA -------- */
.band{ background:var(--navy); color:#fff; border-radius:8px; padding:52px; display:flex; justify-content:space-between; align-items:center; gap:30px; }
.band h2{ color:#fff; margin-bottom:.2em; }
.band p{ color:rgba(255,255,255,.78); margin:0; }
@media (max-width:760px){ .band{ flex-direction:column; text-align:center; } }

.whatsapp-fab{
  position:fixed; right:20px; bottom:20px; z-index:60;
  width:56px; height:56px; border-radius:50%; background:#1F8B6B; color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(15,36,56,.28);
}

/* -------- Barra fija de conversión (solo mobile, solo landing de convenios) -------- */
.sticky-convert-bar{ display:none; }
@media (max-width:760px){
  body[data-page="convenios"] .whatsapp-fab{ display:none; }
  body[data-page="convenios"]{ padding-bottom:64px; }
  .sticky-convert-bar{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:60;
    background:var(--white); border-top:1px solid var(--line);
    box-shadow:0 -6px 18px rgba(15,36,56,.12);
    padding:10px 14px; gap:10px;
  }
  .sticky-convert-bar .btn{ flex:1; padding:12px 10px; font-size:.86rem; }
}
/* -------- Hero brand logo (real logo featured in Home hero) -------- */
.hero-brand-logo{ height:56px; width:auto; margin-bottom:22px; }
.hero-brand-logo-full{ height:auto; width:180px; margin-bottom:26px; }
@media (max-width:600px){
  .hero-brand-logo{ height:44px; }
  .hero-brand-logo-full{ width:140px; }
}

/* -------- Real partner/authority assets (no duotone — shown as provided) -------- */
.logo-card-wide{
  background:#fff; border:1px solid var(--line); border-radius:6px;
  padding:28px 20px; display:flex; align-items:center; justify-content:center;
  min-height:110px; margin-bottom:16px;
}
.logo-card-wide img{ max-width:100%; max-height:60px; width:auto; object-fit:contain; }
.partner-photo{ border-radius:6px; overflow:hidden; margin-bottom:16px; aspect-ratio:3/2; }
.partner-photo img{ width:100%; height:100%; object-fit:cover; } /* sin duotono: foto real de un tercero */

.site-footer{ background:var(--navy); color:rgba(255,255,255,.82); padding:64px 0 28px; margin-top:60px; }
.site-footer h4{ color:#fff; font-family:var(--body); font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; }
.site-footer a{ color:rgba(255,255,255,.78); }
.site-footer a:hover{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.14); margin-top:48px; padding-top:22px; font-size:.78rem; color:rgba(255,255,255,.55); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.footer-legal{ font-size:.74rem; color:rgba(255,255,255,.5); max-width:70ch; margin-top:14px; }

.crumb{ font-family:var(--mono); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:18px; }
.crumb a{ color:var(--teal-dark); }
