/* DM Sans latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/DMSans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Outfit latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(fonts/Outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* MediConecta — landing de lanzamiento. Paleta y tipografías según la guía de marca. */
:root {
  --navy: #002D5C; --blue: #0066CC; --teal: #00C9B7; --teal-dark: #00695F;
  --ink: #0F172A; --text: #334155; --muted: #526071; --line: #E2E8F0;
  --bg: #FFFFFF; --soft: #F4F8FB; --ok: #10B981; --err: #DC2626;
  --grad: linear-gradient(135deg, #00C9B7, #0066CC);
  --radius: 20px; --shadow: 0 10px 40px -12px rgba(0, 45, 92, .18);
  --head: 'Outfit', system-ui, sans-serif; --body: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.soft { background: var(--soft); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 56ch; }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 104px; gap: 20px; }
.nav img { height: 80px; width: auto; max-width: 62vw; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav ul a:hover { color: var(--blue); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--body); padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(0,102,204,.45); outline-offset: 2px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(0,102,204,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0,102,204,.6); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn[disabled] { opacity: .65; cursor: wait; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, rgba(0,201,183,.22), transparent 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 55vw; height: 55vw; max-width: 640px; max-height: 640px; background: radial-gradient(closest-side, rgba(0,102,204,.14), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,201,183,.12); color: var(--teal-dark); font-weight: 600; font-size: .85rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(0,201,183,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0,201,183,0); } }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: .92rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 7px; }

/* Formulario */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.form-title { font: 600 1.15rem var(--head); color: var(--navy); margin: 0 0 4px; } .form-card .sub { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 14px; } .field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], select { width: 100%; font: 1rem var(--body); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 4px 0 16px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: #ECFDF5; color: #065F46; } .form-msg.err { display: block; background: #FEF2F2; color: #991B1B; }
.form-msg a { color: inherit; font-weight: 700; }
.tabs { display: flex; gap: 6px; background: var(--soft); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.tabs button { flex: 1; font: 600 .9rem var(--body); padding: 9px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed=true] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0,45,92,.12); }

/* Mock de agenda (vista de ejemplo) */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; max-width: 400px; margin-inline: auto; position: relative; }
.mock-tag { position: absolute; top: -12px; right: 18px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock-av { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.3rem; }
.mock-head strong { display: block; color: var(--navy); font-family: var(--head); } .mock-head span { font-size: .85rem; color: var(--muted); }
.mock-day { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 10px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { text-align: center; padding: 10px 0; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--navy); }
.slot.on { background: var(--grad); border-color: transparent; color: #fff; } .slot.off { color: var(--muted); text-decoration: line-through; }
.mock-btn { margin-top: 16px; text-align: center; background: var(--navy); color: #fff; font-weight: 600; padding: 13px; border-radius: 12px; }

/* Cards, pasos, chips */
.grid { display: grid; gap: 20px; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0,102,204,.3); }
.ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(0,201,183,.13); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.step-n { font: 800 2.6rem var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-weight: 500; font-size: .94rem; color: var(--navy); }
.note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.soon { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* Planes */
.plan { display: flex; flex-direction: column; } .plan.hot { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.plan .hot-tag { position: absolute; top: -13px; left: 24px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.price { font: 800 2.3rem var(--head); color: var(--navy); margin: 8px 0 2px; } .price small { font: 500 .9rem var(--body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: .94rem; display: grid; gap: 9px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }

/* FAQ */
.faq { max-width: 780px; margin: 32px auto 0; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
details[open] { border-color: rgba(0,102,204,.35); }
summary { cursor: pointer; font: 600 1.05rem var(--head); color: var(--navy); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; } summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); line-height: 1; }
details[open] summary::after { content: "–"; } details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA y footer */
.cta { background: var(--navy); color: #CBD5E1; border-radius: 28px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; } .cta .lead { color: #CBD5E1; }
footer { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer img { height: 74px; width: auto; max-width: 100%; margin-bottom: 14px; } footer .foot-title { font: 600 .95rem var(--head); color: var(--navy); margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } footer a { color: var(--text); text-decoration: none; } footer a:hover { color: var(--blue); }
.legal { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; color: var(--muted); font-size: .82rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: #25D366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Páginas legales */
.doc { max-width: 760px; padding: 48px 0 80px; } .doc h2 { font-size: 1.25rem; margin-top: 2em; } .doc li { margin-bottom: .4em; }

/* Reveal al scroll (solo si hay JS) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; } .js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } .js .rv { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid, .cta, .foot { grid-template-columns: 1fr; } .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; }
}
@media (max-width: 600px) { .g3, .g4, .g2, .row2 { grid-template-columns: 1fr; } .nav .btn-sm { padding: 9px 16px; } .nav img { height: 52px; max-width: 54vw; } .nav .wrap { height: 80px; } }

/* v4: páginas internas */
.page-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.page-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; max-width: 700px; max-height: 700px; background: radial-gradient(closest-side, rgba(0,201,183,.18), transparent 70%); z-index: -1; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 22ch; }
.page-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; } .crumbs a { color: var(--muted); } .crumbs span { margin: 0 6px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.risk { font-size: .88rem; color: var(--muted); margin-top: 14px; } .risk::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.compare .col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: #fff; }
.compare .col.after { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.compare h3 { margin-bottom: 14px; } .compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: .96rem; }
.compare .before li::before { content: "✕"; color: var(--err); font-weight: 800; margin-right: 9px; }
.compare .after li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 9px; }
.person { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.person .av { width: 180px; height: 180px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 3.4rem var(--head); margin-inline: auto; }
.person h3 { font-size: 1.5rem; margin-bottom: 2px; } .person .role { color: var(--teal-dark); font-weight: 700; font-size: .92rem; margin-bottom: 14px; }
.principle { border-left: 4px solid var(--teal); padding: 4px 0 4px 18px; }
.principle h3 { margin-bottom: 4px; } .principle p { margin: 0; color: var(--muted); }
.prose { max-width: 720px; } .prose p { font-size: 1.05rem; }
.facts { width: 100%; border-collapse: collapse; font-size: .96rem; } .facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } .facts th { width: 38%; color: var(--navy); font-family: var(--head); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; } .toc a { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .92rem; } .toc a:hover { border-color: var(--blue); color: var(--blue); }
.faq-group { max-width: 780px; margin: 56px auto 0; } .faq-group > h2 { font-size: 1.5rem; margin-bottom: 4px; }
.faq-group .faq { margin-top: 18px; }
.spec h3 { margin-bottom: 8px; } .spec .when { font-size: .9rem; margin-top: 12px; color: var(--text); } .spec .when strong { color: var(--navy); }
.callout { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; padding: 18px 22px; font-size: .96rem; }
.callout.warn { border-left-color: #D97706; background: #FFFBEB; }
@media (max-width: 900px) { .compare, .person { grid-template-columns: 1fr; } .person .av { width: 130px; height: 130px; font-size: 2.6rem; } }
