/* AIPortalHospital — landing estática. Sin frameworks; fuentes del sistema. */
:root {
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --cyan: #0e7490;
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --wrap: 1120px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-900); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand span b { color: var(--blue-700); }
.main-nav { display: flex; gap: 18px; margin-left: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; }
.main-nav a:hover { color: var(--blue-700); }
.lang { display: flex; gap: 2px; font-size: .85rem; font-weight: 700; }
.lang a { text-decoration: none; color: var(--muted); padding: 6px 7px; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--blue-800); background: var(--blue-50); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-800); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue-800); border-color: var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-900); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.site-header .btn { margin-left: 4px; }
@media (max-width: 980px) { .main-nav { display: none; } .lang { margin-left: auto; } }
.header-cta { white-space: nowrap; }
.cta-short { display: none; }
@media (max-width: 560px) {
  .cta-long { display: none; } .cta-short { display: inline; }
  .site-header .wrap { gap: 8px; padding: 0 16px; }
  .brand { font-size: 1rem; gap: 8px; } .brand img { width: 30px; height: 30px; }
  .lang a { padding: 6px 5px; }
  .site-header .btn-sm { padding: 0 12px; }
  .hero { padding: 36px 0 44px; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 760px; }
.section-head { margin-bottom: 32px; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.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: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 56px 0; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } }
.hero .sub { font-size: 1.15rem; color: var(--text); max-width: 620px; }
.price-line { font-size: 1.1rem; color: var(--ink); margin: 18px 0 22px; }
.price-line strong { font-size: 1.45rem; color: var(--blue-800); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.badge { display: inline-flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: var(--warn); border: 1px solid #fde68a; border-radius: 10px; padding: 8px 12px; font-size: .92rem; font-weight: 600; margin-bottom: 18px; }

/* Mock account card */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; font-size: .95rem; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.mock-top strong { color: var(--ink); }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.mock small { color: var(--muted); display: block; margin-bottom: 12px; }
.mock table { width: 100%; border-collapse: collapse; }
.mock td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.mock td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 10px; }
.mock tr.total td { font-weight: 800; color: var(--ink); border-top: 2px solid var(--ink); }
.mock .fake-btn { margin-top: 14px; background: var(--blue-700); color: #fff; border-radius: 10px; text-align: center; padding: 10px; font-weight: 700; }
.mock .caption { margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: center; }

/* Stats */
.stats { padding: 28px 0; background: var(--blue-950); color: #e2e8f0; }
.stats .grid { gap: 24px; }
.stat strong { display: block; font-size: 2rem; color: #fff; line-height: 1.1; margin-bottom: 4px; }
.stat span { font-size: .95rem; }

/* Lists */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.tick-list li:first-child { border-top: 0; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tick-list.phase li::before { background: #d97706 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 8.5V12l2.5 1.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.avail .card h3 { display: flex; align-items: center; gap: 8px; }
.avail .card.today { border-top: 4px solid var(--ok); }
.avail .card.phased { border-top: 4px solid #d97706; }

/* Modules */
.module .price { margin-top: 12px; font-weight: 800; color: var(--blue-800); }

/* Video */
.video-box { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-note { font-size: .92rem; color: var(--muted); margin-top: 10px; }

/* Pricing */
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; }
.price-big { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--blue-800); line-height: 1; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.prices { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.prices caption { text-align: left; font-weight: 700; color: var(--ink); padding-bottom: 8px; }
table.prices th, table.prices td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.prices td.num { text-align: right; font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.prices th.num { text-align: right; }
@media (max-width: 480px) { table.prices td.num { white-space: normal; } table.prices th, table.prices td { padding: 10px 6px; } }
table.prices tr.muted td { color: var(--muted); font-weight: 600; }
.calc { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 22px; }
.calc label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.calc-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.calc input[type=number] { width: 120px; font-size: 1.2rem; font-weight: 700; padding: 10px 12px; border: 2px solid var(--blue-100); border-radius: 10px; font-family: inherit; color: var(--ink); }
.calc input[type=number]:focus { border-color: var(--blue-600); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--blue-100); background: #fff; color: var(--blue-800); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit; min-height: 36px; }
.chip:hover { border-color: var(--blue-600); }
.calc-out { margin-top: 16px; }
.calc-total { font-size: 1.6rem; font-weight: 800; color: var(--blue-900); font-variant-numeric: tabular-nums; }
.calc-detail { font-size: .92rem; color: var(--muted); margin: 4px 0 0; }
.note { font-size: .9rem; color: var(--muted); }
.offer { border: 2px solid var(--blue-100); }
.offer.featured { border-color: var(--blue-600); }
.offer .tag { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-700); margin-bottom: 6px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); padding: 14px 36px 14px 0; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 1.5rem; color: var(--blue-700); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; }

/* Contact */
.contact { background: var(--blue-950); color: #e2e8f0; }
.contact h2, .contact h3 { color: #fff; }
.contact .lead { color: #cbd5e1; }
.contact a { color: #93c5fd; }
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }
.form { background: #fff; color: var(--text); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; color: var(--ink); background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--blue-600); }
.field textarea { min-height: 90px; resize: vertical; }
.form .btn { width: 100%; }
.form .note { margin: 12px 0 0; }
.form-status { margin-top: 12px; font-weight: 600; color: var(--ok); }
.form-status.err { color: #b91c1c; }
.contact-alt { margin-top: 22px; font-size: 1rem; }
.contact-alt strong { color: #fff; }

/* Utilidades (sin estilos inline: la CSP no permite 'unsafe-inline') */
.center { align-items: center; }
.narrow { max-width: 860px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.contact .eyebrow { color: #93c5fd; }
.contact .checks { color: #fff; }

/* Footer */
.site-footer { padding: 36px 0; font-size: .92rem; color: var(--muted); background: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer p { margin: 0 0 6px; }
