/* Optinox · web pública (optinox.com.ar) - GGDSIGNSTUDIO
   Estilo GGDSIGNSTUDIO: fondo gris claro, tarjetas blancas redondeadas con borde suave, navy de marca + turquesa,
   Plus Jakarta Sans, íconos en cuadraditos pastel. Nada brillante: sombras neutras y suaves, sin glow. */
:root {
  --bg: #F4F6FA; --card: #FFFFFF; --line: #E9EDF3; --navy: #0C1F3F; --navy2: #15305A; --navy-muted: #A9B6CC;
  --ink: #0C1F3F; --text: #1E293B; --muted: #64748B; --teal: #0E7C8A; --teal-l: #4FC8D6; --teal-soft: #E6F4F5;
  --sky: #E0F2FE; --sky-i: #0369A1; --green: #DCFCE7; --green-i: #15803D; --amber: #FEF3C7; --amber-i: #B45309;
  --violet: #EDE9FE; --violet-i: #6D28D9; --pink: #FCE7F3; --pink-i: #BE185D; --red: #B91C1C;
  --shadow: 0 6px 20px -10px rgba(11, 15, 23, .22); --radius: 24px; --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0; }
section, [id] { scroll-margin-top: 84px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 6px 12px; border-radius: 999px; }
.eyebrow svg { width: 16px; height: 16px; flex-shrink: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sec { padding: 88px 0; }
.sec-head { max-width: 760px; margin-bottom: 44px; display: grid; gap: 14px; }
.sec-head .eyebrow { justify-self: start; }
.sec-head.center .eyebrow { justify-self: center; }
.sec-head.center { margin-left: auto; margin-right: auto; justify-items: center; }
.alt { background: #fff; border-block: 1px solid var(--line); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; font-family: inherit; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0B6670; color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 246, 250, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.95); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; color: var(--teal); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.btn-primary { background: var(--teal); }
.nav a.btn-primary:hover { background: #0B6670; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 24px; height: 24px; color: var(--ink); }
.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(12, 36, 72, .45); backdrop-filter: blur(4px); display: none; }
.mnav.open { display: block; }
.mnav-panel { position: absolute; top: 10px; left: 10px; right: 10px; background: #fff; border-radius: 24px; padding: 14px; box-shadow: var(--shadow); }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.mnav-head img { height: 30px; }
.mnav a.item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; color: var(--ink); font-weight: 700; }
.mnav a.item:hover { background: var(--bg); }
.mnav .btns { padding: 10px 6px 4px; }
.mnav .btns .btn { flex: 1; }
@media (max-width: 960px) { .nav { display: none; } .burger { display: inline-flex; } }

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--teal-l); }
.hero .lead { color: var(--navy-muted); margin-top: 18px; }
.hero .eyebrow { background: rgba(255,255,255,.08); color: #CFE9EC; }
.hero .btns { margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; color: #CBD5E1; font-size: 14px; font-weight: 600; }
.ticks span { display: inline-flex; align-items: center; gap: 7px; }
.ticks svg { width: 18px; height: 18px; color: var(--teal-l); }
.hero-sub { padding-top: 56px; padding-bottom: 64px; }
.hero-sub .wrap { padding-top: 56px; padding-bottom: 64px; }
.crumbs { font-size: 13px; color: var(--navy-muted); margin-bottom: 14px; }
.crumbs a { color: #CFE9EC; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 56px; } }

/* Mockups (dibujados en HTML: siempre nítidos y livianos) */
.device-stage { position: relative; min-height: 460px; }
.panel-mock { background: #fff; border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); overflow: hidden; color: var(--text); font-size: 12px; }
.panel-mock .bar { display: flex; gap: 6px; padding: 10px 12px; background: #EEF2F7; }
.panel-mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; display: block; }
.panel-mock .body { display: grid; grid-template-columns: 110px 1fr; min-height: 330px; }
.panel-mock .side { background: var(--navy); padding: 12px 8px; display: grid; align-content: start; gap: 4px; }
.panel-mock .side b { display: block; color: #fff; font-size: 12px; padding: 4px 8px 10px; }
.panel-mock .side span { color: var(--navy-muted); padding: 6px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.panel-mock .side span.on { background: var(--teal); color: #fff; }
.panel-mock .main { padding: 14px; background: var(--bg); display: grid; gap: 10px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.kpi small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; }
.kpi strong { font-size: 16px; color: var(--ink); }
.rowc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.rowc .t { flex: 1; min-width: 0; }
.rowc .t b { display: block; color: var(--ink); font-size: 12px; }
.rowc .t span { color: var(--muted); font-size: 10.5px; }
.chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.c-ok { background: var(--green); color: #166534; } .c-warn { background: var(--amber); color: #92400E; } .c-bad { background: #FEE2E2; color: var(--red); } .c-info { background: var(--sky); color: var(--sky-i); }
.av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.av svg { width: 15px; height: 15px; }
.phone { position: absolute; right: -6px; bottom: -28px; width: 210px; background: #0B0F17; border-radius: 34px; padding: 8px; box-shadow: 0 28px 50px -24px rgba(0,0,0,.6); }
.phone .scr { background: var(--bg); border-radius: 27px; overflow: hidden; padding: 14px 10px 10px; display: grid; gap: 8px; font-size: 10px; color: var(--text); }
.phone .hi { display: flex; align-items: center; gap: 7px; }
.phone .hi i { width: 26px; height: 26px; border-radius: 8px; background: var(--teal); display: block; }
.phone .hi b { font-size: 12px; color: var(--ink); display: block; line-height: 1.1; }
.phone .next { background: var(--navy); color: #fff; border-radius: 16px; padding: 10px; }
.phone .next small { color: var(--navy-muted); font-size: 8.5px; font-weight: 700; letter-spacing: .04em; }
.phone .next b { display: block; font-size: 12.5px; margin-top: 4px; }
.phone .next span { color: var(--navy-muted); font-size: 9.5px; }
.phone .pet { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; gap: 8px; align-items: center; }
.phone .pet i { width: 30px; height: 30px; border-radius: 9px; background: var(--amber); display: grid; place-items: center; }
.phone .dock { background: var(--navy); border-radius: 14px; height: 34px; display: flex; justify-content: space-around; align-items: center; margin-top: 4px; }
.phone .dock i { width: 14px; height: 14px; border-radius: 4px; background: #334766; display: block; }
.phone .dock i.on { background: var(--teal); width: 28px; }
@media (max-width: 960px) { .device-stage { min-height: 0; padding-bottom: 20px; } .phone { width: 170px; right: -4px; bottom: -18px; } }
@media (max-width: 520px) { .panel-mock .body { grid-template-columns: 1fr; } .panel-mock .side { display: none; } .phone { position: relative; right: auto; bottom: auto; margin: -40px auto 0; } }

/* Capturas reales en marco de celular */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 10px 0 6px; }
.pshot { margin: 0; background: #0B0F17; border-radius: 40px; padding: 9px; box-shadow: 0 26px 50px -26px rgba(0,0,0,.55); flex-shrink: 0; }
.pshot img { display: block; width: 100%; height: auto; border-radius: 31px; aspect-ratio: 390 / 844; }
.pshot.main { width: 270px; position: relative; z-index: 2; }
.pshot.side { width: 228px; position: relative; z-index: 1; opacity: .97; }
.phones.n3 .pshot.side.l { margin-right: -70px; transform: translateY(26px) rotate(-4deg); }
.phones.n3 .pshot.side.r { margin-left: -70px; transform: translateY(26px) rotate(4deg); }
.phones.n2 .pshot.side.r { margin-left: -40px; transform: translateY(30px) rotate(4deg); }
.hero .pshot { box-shadow: 0 30px 60px -28px rgba(0,0,0,.8); }
@media (max-width: 1100px) { .pshot.main { width: 240px; } .pshot.side { width: 200px; } }
@media (max-width: 520px) {
  .pshot { border-radius: 30px; padding: 6px; } .pshot img { border-radius: 24px; }
  .pshot.main { width: 56%; } .pshot.side { width: 46%; }
  .phones.n3 .pshot.side.l { margin-right: -16%; } .phones.n3 .pshot.side.r { margin-left: -16%; } .phones.n2 .pshot.side.r { margin-left: -12%; }
}

/* Tarjetas y grillas */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
a.card { color: inherit; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card h3 { margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--teal); white-space: nowrap; }
.card .more svg { width: 16px; height: 16px; }
.btn svg, .list svg, .ticks svg { flex-shrink: 0; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 23px; height: 23px; }
.i-sky { background: var(--sky); color: var(--sky-i); } .i-green { background: var(--green); color: var(--green-i); } .i-amber { background: var(--amber); color: var(--amber-i); }
.i-violet { background: var(--violet); color: var(--violet-i); } .i-pink { background: var(--pink); color: var(--pink-i); } .i-teal { background: var(--teal-soft); color: var(--teal); }

/* Bloques texto + visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { margin: 14px 0 14px; }
.list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }
.list b { color: var(--ink); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.visual { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }

/* Mock clínica / receta / ticket */
.mock-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mock-title b { color: var(--ink); }
.tl { display: grid; gap: 10px; }
.tl .e { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; font-size: 14px; }
.tl .e .h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.tl .e .h b { color: var(--ink); }
.tl .e small { color: var(--muted); }
.rx { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 13.5px; }
.rx .band { height: 6px; background: var(--teal); }
.rx .in { padding: 16px; display: grid; gap: 10px; }
.rx .rp { font-size: 26px; font-weight: 800; font-style: italic; color: var(--teal); line-height: 1; }
.rx .it { display: flex; gap: 10px; }
.rx .it i { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.rx .box { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12.5px; }
.rx .box small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.qr { width: 120px; height: 120px; border-radius: 14px; background:
  repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 14px), repeating-linear-gradient(0deg, var(--navy) 0 8px, transparent 8px 13px); opacity: .9; position: relative; }
.qr::after { content: ''; position: absolute; inset: 40px; background: #fff; border-radius: 8px; }
.qrsvg { display: block; border: 1px solid var(--line); border-radius: 14px; flex-shrink: 0; }
.qrcard { margin: 0; width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 8px; text-align: center; flex-shrink: 0; }
.qrcard img { width: 100%; height: auto; border-radius: 8px; }
.qrcard figcaption { font-size: 12px; font-weight: 700; color: var(--teal); margin-top: 4px; }
.ticket { font: 13px/1.5 'Courier New', monospace; color: #111; background: #fff; border: 1px dashed #CBD5E1; border-radius: 14px; padding: 14px; }

/* Pasos */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan.best { border: 2px solid var(--teal); position: relative; }
.plan.best::before { content: 'El más elegido'; position: absolute; top: -13px; left: 24px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 9px; }
.plan li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--teal); }
.plan li.no { color: #94A3B8; } .plan li.no svg { color: #CBD5E1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; }
table.cmp thead th { background: var(--bg); color: var(--ink); font-weight: 800; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .y { color: var(--teal); font-weight: 800; } table.cmp .n { color: #CBD5E1; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* CTA final */
.cta { background: var(--navy); color: #fff; border-radius: 32px; padding: 56px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: var(--navy-muted); margin-top: 12px; font-size: 18px; }
.cta .btns { justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 40px 24px; } .cta .btns { justify-content: flex-start; } }

/* Franja de confianza */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; padding: 26px 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--teal); }

/* Pie */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--ink); font-weight: 600; }
.foot a:hover { color: var(--teal); }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

/* Botones flotantes (celular y escritorio): WhatsApp + volver arriba */
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 16px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; box-shadow: 0 4px 12px -4px rgba(11,15,23,.25); }
.fab-wa:hover { color: #fff; background: var(--navy2); }
.fab-wa svg { width: 24px; height: 24px; color: #25D366; }
.fab-top { position: fixed; right: 22px; bottom: 84px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; cursor: pointer; }
.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.fab-top svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .fab-wa span { display: none; } .fab-wa { width: 56px; padding: 0; justify-content: center; } .fab-top { right: 23px; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media print { .top, .fab-wa, .fab-top, .mnav { display: none !important; } }
