/*
Theme Name: Eva Healths
Theme URI: https://evahealths.com
Author: EVA Tecnología Innovación y Salud S.A.C.
Author URI: https://evatissac.com/
Description: Sitio comercial de Eva Healths, Plataforma Integral de Atención Médica Inteligente. Liviano, rápido y sin constructores de páginas.
Version: 1.0.0
Requires PHP: 7.4
License: Propietaria
Text Domain: evahealths
*/

:root {
  --navy: #00294f;
  --navy-2: #0b3c6b;
  --teal: #0ea5a4;
  --teal-2: #0f766e;
  --sky: #e8f4fb;
  --ink: #0f172a;
  --muted: #5b6b7f;
  --line: #e3e8ef;
  --bg: #ffffff;
  --soft: #f6f9fc;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 41, 79, .10);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 10px; }
.skip-link { position: absolute; left: -999px; } .skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 99; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; font-size: 1rem; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14, 165, 164, .35); }
.btn-primary:hover { background: var(--teal-2); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .92rem; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.25rem; }
.brand img { height: 36px; width: auto; display: block; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), var(--navy)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--teal-2); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { padding: 70px 0 60px; background: radial-gradient(1200px 500px at 85% -10%, #d9f3f2 0, rgba(217, 243, 242, 0) 60%), linear-gradient(180deg, #f5fafe 0, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.hero-note { color: var(--muted); font-size: .92rem; }
.hero-note b { color: var(--teal-2); }

/* Maqueta de la app (ilustrativa) */
.mock { background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 41, 79, .18); border: 1px solid var(--line); overflow: hidden; }
.mock-bar { height: 34px; background: #f1f5f9; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: block; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-row { display: flex; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #bae6fd, #99f6e4); }
.mock-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mock-card small { color: var(--muted); display: block; font-size: .78rem; }
.mock-card strong { font-size: 1rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--navy-2); font-weight: 600; }
.chip.warn { background: #fff4e5; color: #b45309; } .chip.ok { background: #e7f8ef; color: #15803d; }
.ai-bubble { background: linear-gradient(135deg, #0ea5a4, #0b3c6b); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: .9rem; }
.ai-bubble b { display: block; font-size: .78rem; opacity: .85; margin-bottom: 2px; }

/* Confianza */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; list-style: none; margin: 0; padding: 22px 20px; }
.trust li { display: flex; align-items: center; gap: 8px; color: var(--navy-2); font-weight: 600; font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--teal); font-weight: 900; }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--sky); margin-bottom: 14px; }

/* Pasos */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 41, 79, .3); }
.step p { color: var(--muted); margin: 0; }

/* Para quien */
.audience .card a { font-weight: 700; text-decoration: none; }
.audience .card ul { padding-left: 18px; margin: 10px 0 14px; color: var(--muted); }

/* IA */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #e7f8ef; color: #15803d;
  font-weight: 900; display: grid; place-items: center; font-size: .8rem; }
.ai-panel { background: linear-gradient(160deg, var(--navy) 0, #0b4a74 100%); color: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.ai-panel .line { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: .95rem; }
.ai-panel .line b { color: #5eead4; }

/* Pacientes */
.patients { background: linear-gradient(180deg, #f0fbf9 0, #fff 100%); }
.lead-muted { color: var(--muted); font-size: 1.08rem; }
.hero-patient { margin-top: 6px; font-weight: 600; } .hero-patient a { color: var(--teal-2); text-decoration: none; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #0b1b2e; color: #fff; border-radius: 12px; padding: 8px 16px; font-weight: 700; opacity: .9; }
.store small { display: block; font-size: .7rem; font-weight: 500; opacity: .8; }
.store-ico { font-size: 1.4rem; }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 300px; background: #0b1b2e; border-radius: 42px; padding: 12px; box-shadow: 0 30px 70px rgba(0, 41, 79, .25); position: relative; }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0b1b2e; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen { background: #f5fafc; border-radius: 32px; padding: 36px 14px 18px; display: grid; gap: 10px; min-height: 540px; }
.ph-head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); }
.ph-head img { border-radius: 8px; }
.ph-hello { font-size: 1.15rem; font-weight: 800; }
.ph-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-size: .88rem; color: var(--muted); }
.ph-card b { display: block; color: var(--ink); margin-bottom: 2px; }
.ph-alert { background: linear-gradient(135deg, #0ea5a4, #0b3c6b); color: #e6fffb; border: 0; }
.ph-alert b { color: #fff; }
.ph-btn { display: inline-block; margin-top: 8px; background: #fff; color: var(--teal-2); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .8rem; }
.ph-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin: 6px 0; }
.ph-bars i { width: 18px; background: #99f6e4; border-radius: 4px; display: block; }
.ph-doc { border-left: 4px solid var(--teal); }
.company-logo { display: inline-block; margin-right: 10px; vertical-align: middle; }
.company-logo img { height: 36px; width: auto; }

/* Planes */
.billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 6px; }
.billing-toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.billing-toggle button.on { background: var(--navy); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; position: relative; }
.plan.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 8px 0 2px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan .desc { color: var(--muted); min-height: 48px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 8px; font-size: .95rem; flex: 1; }
.plan li::before { content: "✓ "; color: var(--teal-2); font-weight: 900; }
.plan .trial { font-size: .85rem; color: var(--teal-2); font-weight: 700; margin-bottom: 10px; }
.plan .btn { width: 100%; }

/* Preguntas */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-2); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Llamado final */
.cta-band { background: linear-gradient(135deg, var(--navy) 0, #0b4a74 60%, var(--teal-2) 100%); color: #fff; border-radius: 26px; padding: 56px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e6f3; font-size: 1.1rem; }
.cta-band .hero-ctas { justify-content: center; }

/* Pie */
.site-footer { background: #0b1b2e; color: #b8c6d6; padding: 56px 0 28px; margin-top: 84px; font-size: .95rem; }
.site-footer a { color: #e2ecf6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: .85rem; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); text-decoration: none; font-size: 1.7rem; }

/* Paginas y entradas */
.content { max-width: 820px; margin: 0 auto; padding: 56px 20px; }
.content h1 { margin-bottom: 18px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 18px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
  .grid-3, .steps, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .steps { gap: 34px; }
  .cta-band { padding: 40px 22px; }
}
