/* css/app-landing.css — página pública /app (pacientes y médicos). Claro y oscuro, sin librerías. */
:root {
  --bg: #f4f8f6; --bg-2: #ffffff; --tx: #0f1f1a; --tx-2: #44554f; --mu: #6f807a; --br: #dfe8e4;
  --verde: #1d7d63; --verde-2: #0c3f33; --menta: #9fe3cb; --coral: #eb6834; --sombra: 0 30px 70px -40px rgba(12, 63, 51, .45);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2 { margin: 0; letter-spacing: -.035em; line-height: 1.05; }
.ico { width: 20px; height: 20px; }
.ld-in { width: min(1160px, 100% - 40px); margin: 0 auto; }

/* Solo para pacientes / solo para médicos */
body[data-para=pacientes] [data-solo=medicos], body[data-para=medicos] [data-solo=pacientes] { display: none !important; }

/* Barra superior */
.ld-top { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border-bottom: 1px solid color-mix(in srgb, var(--br) 70%, transparent); }
.ld-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.ld-marca { display: flex; align-items: center; text-decoration: none; }
.ld-marca .logo svg, .ld-marca svg { height: 26px; width: auto; }
.ld-para { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--br); }
.ld-para button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 700 .9rem var(--font); color: var(--tx-2); cursor: pointer; transition: color .3s; }
.ld-para button[aria-selected=true] { color: #fff; }
.ld-para-pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--verde); box-shadow: 0 6px 16px -8px var(--verde); transition: transform .45s cubic-bezier(.3, 1.3, .45, 1), width .45s cubic-bezier(.3, 1.3, .45, 1); }
.ld-entrar { font-weight: 700; font-size: .92rem; text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--br); background: var(--bg-2); }

/* Botones con relieve */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border: 0; border-radius: 16px; cursor: pointer; text-decoration: none;
  font: 800 1rem var(--font); color: #fff; background: var(--verde); box-shadow: 0 5px 0 color-mix(in srgb, var(--verde) 55%, #000); transition: transform .08s, box-shadow .08s, filter .2s; }
.ld-btn:hover { filter: brightness(1.06); }
.ld-btn:active { transform: translateY(5px); box-shadow: 0 0 0 color-mix(in srgb, var(--verde) 55%, #000); }
.ld-btn-2 { color: var(--tx); background: var(--bg-2); box-shadow: 0 5px 0 var(--br), inset 0 0 0 1.5px var(--br); }
.ld-btn-2:active { box-shadow: 0 0 0 var(--br), inset 0 0 0 1.5px var(--br); }
.ld-btn-grande { height: 62px; width: 100%; font-size: 1.1rem; }
.ld-btn .ico { width: 22px; height: 22px; }

/* Portada */
.ld-hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.ld-hero::before { content: ''; position: absolute; inset: -30% -10% auto 35%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--menta) 40%, transparent), transparent); opacity: .6; pointer-events: none; }
.ld-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.ld-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
.ld-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--verde), #2aa384 45%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-lead { margin: 22px 0 30px; max-width: 520px; font-size: 1.15rem; color: var(--tx-2); }
.ld-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ld-nota { margin: 16px 0 0; font-size: .86rem; color: var(--mu); }
.ld-invita { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--verde); background: color-mix(in srgb, var(--verde) 10%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--verde) 25%, var(--br)); }
.ld-hero-txt > * { animation: ld-sube .8s var(--ease) both; }
.ld-hero-txt > *:nth-child(2) { animation-delay: .08s; }
@keyframes ld-sube { from { opacity: 0; transform: translateY(24px); } }

/* Teléfono dibujado */
.ld-tel { position: relative; justify-self: center; width: 300px; animation: ld-entra 1s .15s var(--ease) both; }
@keyframes ld-entra { from { opacity: 0; transform: translateY(40px) rotate(4deg); } }
.ld-tel-marco { position: relative; aspect-ratio: 9 / 19.2; border-radius: 48px; padding: 12px; background: linear-gradient(145deg, #1d2a26, #0a120f); box-shadow: var(--sombra), 0 0 0 2px #2b3934, inset 0 0 0 2px #39474215; animation: ld-flota 7s ease-in-out infinite; }
@keyframes ld-flota { 50% { transform: translateY(-10px) rotate(-1deg); } }
.ld-tel-isla { position: absolute; z-index: 2; top: 22px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; }
.ld-pantalla { position: absolute; inset: 12px; overflow: hidden; border-radius: 37px; padding: 58px 14px 14px; display: grid; align-content: start; gap: 10px; background: #f2f6f4; color: #17241f; font-size: 12px; line-height: 1.35; }
.ld-p-saludo { padding: 14px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #e26b98, #c2416f 50%, #7d2348); }
.ld-pantalla-med .ld-p-saludo { background: radial-gradient(120% 140% at 0% 0%, #35b08c, #1d7d63 45%, #0f3d31); }
.ld-p-saludo small { display: block; opacity: .8; font-size: 10px; }
.ld-p-saludo b { display: block; font-size: 16px; letter-spacing: -.02em; }
.ld-p-liston { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; background: rgba(255, 255, 255, .18); }
.ld-p-hoy { padding: 12px; border-radius: 20px; background: #fff; display: grid; gap: 7px; box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .3); }
.ld-p-hoy-h { display: flex; justify-content: space-between; align-items: center; }
.ld-p-hoy-h b { font-size: 15px; }
.ld-p-aro { position: relative; width: 36px; height: 36px; display: grid; place-items: center; }
.ld-p-aro svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ld-p-aro circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ld-p-aro circle:first-child { stroke: #e8eeec; }
.ld-p-aro circle + circle { stroke: #1f9d6b; stroke-dasharray: var(--p) 100; animation: ld-aro 1.4s 1s var(--ease) both; }
@keyframes ld-aro { from { stroke-dasharray: 0 100; } }
.ld-p-aro i { font-style: normal; font-size: 9px; font-weight: 800; }
.ld-p-t { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 12px; background: #f6f9f8; }
.ld-p-t > span { width: 22px; height: 22px; flex: none; border-radius: 7px; background: #fde6e9; position: relative; }
.ld-p-t.ok > span { background: #1f9d6b; }
.ld-p-t.ok > span::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ld-p-t b { display: block; font-size: 11.5px; }
.ld-p-t small { display: block; font-size: 9.5px; color: #6b7a75; }
.ld-p-t div { flex: 1; }
.ld-p-t em { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: #c2416f; padding: 4px 9px; border-radius: 8px; box-shadow: 0 2px 0 #8e2a52; animation: ld-toque 3.2s 2.2s ease-in-out infinite; }
@keyframes ld-toque { 0%, 80%, 100% { transform: none; } 85% { transform: translateY(2px); box-shadow: none; } }
.ld-p-carta { padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .3); }
.ld-p-carta small { color: #7a5af5; font-weight: 700; font-size: 10px; }
.ld-p-carta b { display: block; font-size: 22px; letter-spacing: -.03em; }
.ld-p-carta b i { font-style: normal; font-size: 10px; font-weight: 600; color: #6b7a75; margin-left: 4px; }
.ld-p-carta svg { width: 100%; height: 34px; }
.ld-p-carta path { fill: none; stroke: #7a5af5; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: ld-trazo 1.6s 1.2s var(--ease) forwards; }
@keyframes ld-trazo { to { stroke-dashoffset: 0; } }
.ld-p-racha { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11px; color: #6b7a75; }
.ld-p-racha b { color: #17241f; }
.ld-flama { display: inline-block; width: 14px; height: 18px; background: radial-gradient(circle at 50% 70%, #ffd166, #ff8a1f 55%, #e8590c); border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%; animation: ld-flama 1.2s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes ld-flama { to { transform: scale(1.08, .92) rotate(4deg); } }
.ld-m-pac { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; }
.ld-m-ini { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, #1d7d63, #2aa384); }
.ld-m-pac b { display: block; }
.ld-m-pac small, .ld-m-casa small, .ld-m-preg small { display: block; font-size: 9.5px; color: #6b7a75; }
.ld-m-casa { padding: 10px; border-radius: 16px; background: #fff; display: grid; gap: 6px; }
.ld-m-casa div { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; font-size: 11px; }
.ld-m-casa i { font-style: normal; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.ld-m-casa .n-a { color: #9a5a0c; background: #fff1dc; } .ld-m-casa .n-ok { color: #155535; background: #dff3ea; }
.ld-m-preg { padding: 10px; border-radius: 16px; background: #eef4ff; border-left: 3px solid #2b6cb0; }
.ld-m-preg p { margin: 2px 0 0; font-weight: 700; font-size: 11px; }
.ld-m-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ld-m-btns span { text-align: center; padding: 8px 4px; border-radius: 10px; font-weight: 800; font-size: 10.5px; background: #fff; box-shadow: 0 2px 0 #dfe8e4; }
.ld-m-btns .pri { color: #fff; background: #1d7d63; box-shadow: 0 2px 0 #0f4d3c; }
.ld-flota { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 16px; background: var(--bg-2); color: var(--tx); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); border: 1px solid var(--br); display: flex; align-items: center; gap: 8px; animation: ld-burbuja 6s ease-in-out infinite; }
.ld-flota b { font-size: .95rem; }
.ld-flota small { color: var(--mu); font-size: .76rem; }
.ld-flota-1 { left: -70px; top: 22%; flex-direction: column; align-items: flex-start; gap: 0; }
.ld-flota-2 { right: -60px; bottom: 18%; animation-delay: -3s; }
@keyframes ld-burbuja { 50% { transform: translateY(-12px); } }

/* Secciones */
section.ld-revela { padding: 90px 0; }
.ld-kicker { display: inline-block; margin-bottom: 14px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); }
section h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; }
.ld-revela .ld-in > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ld-revela:not(.visto) .ld-in > * { opacity: 0; transform: translateY(30px); }
.ld-revela.visto .ld-in > *:nth-child(2) { transition-delay: .06s; } .ld-revela.visto .ld-in > *:nth-child(3) { transition-delay: .12s; } .ld-revela.visto .ld-in > *:nth-child(4) { transition-delay: .18s; }

.ld-mision { background: var(--verde-2); color: #e9f6f0; }
.ld-mision .ld-kicker { color: var(--menta); }
.ld-mision h2 { color: #fff; max-width: 820px; }
.ld-mision p { max-width: 760px; margin: 22px 0 46px; font-size: 1.15rem; color: #c3dcd2; }
.ld-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: 22px; overflow: hidden; }
.ld-tres div { padding: 26px; background: var(--verde-2); }
.ld-tres b { display: block; font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.ld-tres span { color: #a9c8bc; font-size: .95rem; }

.ld-red { position: relative; max-width: 760px; height: 300px; margin: 40px auto 30px; }
.ld-red > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ld-red > svg path { fill: none; stroke: var(--br); stroke-width: 2.5; stroke-dasharray: 6 8; }
.ld-pt { fill: var(--verde); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--verde) 60%, transparent)); }
.ld-pt.b { fill: var(--coral); }
.ld-nodo { position: absolute; width: 150px; margin-left: -75px; display: grid; justify-items: center; text-align: center; gap: 2px; }
.ld-nodo span { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2aa384, var(--verde)); box-shadow: 0 14px 30px -14px var(--verde); margin-bottom: 6px; }
.ld-nodo span .ico { width: 28px; height: 28px; }
.ld-nodo b { font-size: 1rem; }
.ld-nodo small { color: var(--mu); font-size: .8rem; }
.ld-nodo.n1 { left: 25%; top: 50%; transform: translateY(-50%); }
.ld-nodo.n4 { left: 75%; top: 50%; transform: translateY(-50%); }
.ld-nodo.n2 { left: 50%; top: 0; } .ld-nodo.n3 { left: 50%; bottom: 0; }
.ld-nodo.n2 span { background: linear-gradient(145deg, #8f76ff, #6a4cf0); box-shadow: 0 14px 30px -14px #6a4cf0; }
.ld-nodo.n3 span { background: linear-gradient(145deg, #3fb7cc, #0e8ca3); box-shadow: 0 14px 30px -14px #0e8ca3; }
.ld-nodo.n1 span { background: linear-gradient(145deg, #f7a36b, var(--coral)); box-shadow: 0 14px 30px -14px var(--coral); }
.ld-pasos { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ld-pasos li { counter-increment: p; position: relative; padding-top: 52px; }
.ld-pasos li::before { content: counter(p); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--verde); background: color-mix(in srgb, var(--verde) 12%, var(--bg-2)); }
.ld-pasos b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.ld-pasos span { color: var(--tx-2); font-size: .95rem; }

.ld-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; margin-top: 46px; }
.ld-items article b { display: block; margin: 14px 0 6px; font-size: 1.05rem; }
.ld-items article p { margin: 0; color: var(--tx-2); font-size: .95rem; }
.ld-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 10px 22px -12px var(--c); }
.ld-ico .ico { width: 23px; height: 23px; }

.ld-confianza { background: var(--bg-2); border-top: 1px solid var(--br); border-bottom: 1px solid var(--br); }
.ld-confianza-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.ld-confianza ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.ld-confianza li { padding-left: 28px; position: relative; color: var(--tx-2); }
.ld-confianza li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 4px; background: var(--verde); }
.ld-confianza li b { color: var(--tx); }

.ld-instalar-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; padding: 50px; border-radius: 36px; background: linear-gradient(150deg, var(--bg-2), color-mix(in srgb, var(--menta) 18%, var(--bg-2))); border: 1px solid var(--br); box-shadow: var(--sombra); }
.ld-instalar h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.ld-instalar-txt > p { color: var(--tx-2); margin: 14px 0 24px; }
.ld-qr { display: grid; justify-items: center; gap: 10px; color: var(--mu); font-size: .85rem; }
.ld-qr-caja { position: relative; padding: 16px; border-radius: 28px; background: #fff; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .45); }
.ld-qr-caja svg { display: block; width: 220px; height: 220px; }
.ld-qr-logo { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 14px; background: #fff; display: grid; place-items: center; }
.ld-qr-logo img { border-radius: 10px; }
.ld-ios { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ld-ios li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--br); animation: ld-sube .6s var(--ease) both; }
.ld-ios li:nth-child(2) { animation-delay: .1s; } .ld-ios li:nth-child(3) { animation-delay: .2s; }
.ld-ios li div { flex: 1; }
.ld-ios b { display: block; }
.ld-ios small { color: var(--mu); font-size: .85rem; }
.ld-ios-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--verde); }
.ld-ios-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #0a84ff; background: color-mix(in srgb, #0a84ff 10%, var(--bg-2)); }
.ld-ios-ico svg { width: 24px; height: 24px; }
.ld-ios-ico.app { background: none; }
.ld-ios-ico.app img { border-radius: 8px; }
.ld-ios-aviso { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: #fff3d6; color: #6b4708; font-size: .92rem; }
.ld-flecha { position: fixed; z-index: 60; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); width: 34px; height: 46px; margin-left: -17px; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 46'%3E%3Cpath d='M17 2v38M5 28l12 14 12-14' fill='none' stroke='%231d7d63' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: ld-flecha 1.4s ease-in-out infinite; opacity: 0; transition: opacity .4s; }
.ld-flecha.ver { opacity: 1; }
@keyframes ld-flecha { 50% { transform: translateY(8px); } }
.ld-ya { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--br); }
.ld-ya > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #1f9d6b; }
.ld-ya div { flex: 1; } .ld-ya b { display: block; } .ld-ya small { color: var(--mu); }
.ld-ya .ld-btn { height: 44px; }

.ld-faq .ld-in > div { margin-top: 30px; max-width: 820px; }
.ld-faq details { border-bottom: 1px solid var(--br); }
.ld-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.08rem; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--verde); transition: transform .3s; }
.ld-faq details[open] summary::after { transform: rotate(45deg); }
.ld-faq details p { margin: -6px 0 20px; color: var(--tx-2); max-width: 680px; }

.ld-final { padding: 100px 0; text-align: center; background: radial-gradient(60% 120% at 50% 100%, color-mix(in srgb, var(--menta) 30%, transparent), transparent); }
.ld-final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 760px; margin: 0 auto 30px; }
.ld-final .ld-cta { justify-content: center; }

.ld-pie { padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--br); color: var(--mu); font-size: .88rem; }
.ld-pie-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ld-pie nav { display: flex; gap: 18px; }
.ld-pie a { text-decoration: none; }
.ld-pie a:hover { color: var(--tx); }
.ld-pie svg { height: 20px; width: auto; }

@media (max-width: 960px) {
  .ld-hero { padding: 40px 0 70px; }
  .ld-hero-in, .ld-confianza-in, .ld-instalar-in { grid-template-columns: 1fr; }
  .ld-tel { width: 270px; margin-top: 20px; }
  .ld-flota-1 { left: -36px; } .ld-flota-2 { right: -30px; }
  .ld-items { grid-template-columns: 1fr 1fr; }
  .ld-pasos { grid-template-columns: 1fr 1fr; }
  .ld-tres { grid-template-columns: 1fr; }
  .ld-instalar-in { padding: 28px 22px; gap: 30px; }
}
@media (max-width: 560px) {
  .ld-in { width: calc(100% - 32px); }
  .ld-top-in { height: 58px; }
  .ld-para button { padding: 7px 12px; font-size: .84rem; }
  .ld-entrar { padding: 8px 12px; font-size: .84rem; }
  .ld-items, .ld-pasos { grid-template-columns: 1fr; gap: 26px; }
  .ld-cta .ld-btn { flex: 1; padding: 0 16px; }
  section.ld-revela { padding: 64px 0; }
  .ld-red { height: 260px; }
  .ld-nodo { width: 110px; margin-left: -55px; }
  .ld-nodo span { width: 52px; height: 52px; border-radius: 16px; }
  .ld-nodo small { display: none; }
  .ld-nodo.n1 { left: 15%; } .ld-nodo.n4 { left: 85%; }
  .ld-qr-caja svg { width: 180px; height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ld-revela:not(.visto) .ld-in > * { opacity: 1; transform: none; }
  .ld-p-carta path { stroke-dashoffset: 0; }
}

/* Logo (símbolo + nombre) */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--tx); white-space: nowrap; }
.logo svg { width: var(--logo-h, 26px) !important; height: var(--logo-h, 26px) !important; color: var(--tx); flex: none; }
.logo-txt b { color: var(--verde); }
.ld-pie .logo { font-size: .95rem; }
@media (max-width: 560px) {
  .ld-marca .logo-txt { display: none; }
  .ld-flota-1 { left: -18px; top: 6%; }
  .ld-flota-2 { right: -14px; bottom: 6%; }
}

/* ===================================================================
   Estilo clínico y claro: blanco, tinta oscura, un solo acento verde,
   íconos de línea, sin degradados de texto ni brillos.
   =================================================================== */
:root { --bg: #ffffff; --bg-2: #ffffff; --suave: #f5f8f7; --tx: #14211c; --tx-2: #4b5a55; --mu: #74827d; --br: #e3e9e6; --verde: #1b7a60; --sombra: 0 24px 60px -36px rgba(20, 40, 33, .28); }
body { background: #fff; }
h1, h2 { letter-spacing: -.02em; }
.ld-top { background: rgba(255, 255, 255, .92); }
.ld-para { background: var(--suave); border-color: transparent; }
.ld-entrar { background: #fff; }

/* Botones: planos y limpios */
.ld-btn { height: 52px; border-radius: 12px; font-weight: 700; box-shadow: none; }
.ld-btn:hover { filter: none; background: #166a53; }
.ld-btn:active { transform: none; box-shadow: none; background: #135c48; }
.ld-btn-2 { color: var(--tx); background: #fff; box-shadow: inset 0 0 0 1.5px var(--br); }
.ld-btn-2:hover { background: var(--suave); }
.ld-btn-2:active { box-shadow: inset 0 0 0 1.5px var(--br); }

/* Portada */
.ld-hero { padding: 64px 0 80px; background: linear-gradient(180deg, var(--suave), #fff 70%); }
.ld-hero::before { display: none; }
.ld-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; }
.ld-hero h1 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--verde); }
.ld-lead { font-size: 1.12rem; }
.ld-invita { background: #fff; }
.ld-flota { display: none; }
.ld-tel-marco { background: linear-gradient(145deg, #eef1f0, #d9dfdc); box-shadow: 0 30px 60px -34px rgba(20, 40, 33, .35), inset 0 0 0 1px #c9d1cd; animation: none; }
.ld-tel-isla { background: #1c2522; }
.ld-pantalla { background: #f7f9f8; }
.ld-p-saludo, .ld-pantalla-med .ld-p-saludo { color: var(--tx); background: #fff; border: 1px solid var(--br); }
.ld-p-liston { background: #fbe9ef; color: #9c3158; }
.ld-p-t em { background: var(--verde); box-shadow: none; animation: none; }
.ld-p-racha .ld-flama, .ld-tel .ld-flama { animation: none; }

/* Secciones */
section.ld-revela { padding: 84px 0; }
.ld-kicker { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 700; }
section h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; }

/* Misión: clara, como una carta */
.ld-mision { background: var(--suave); color: var(--tx); border-top: 1px solid var(--br); border-bottom: 1px solid var(--br); }
.ld-mision .ld-kicker { color: var(--verde); }
.ld-mision h2 { color: var(--tx); }
.ld-mision p { color: var(--tx-2); font-size: 1.12rem; }
.ld-tres { background: none; gap: 16px; border-radius: 0; overflow: visible; }
.ld-tres div { background: #fff; border: 1px solid var(--br); border-radius: 16px; }
.ld-tres b { color: var(--tx); }
.ld-tres span { color: var(--tx-2); }

/* Cómo se conecta: nodos planos */
.ld-red > svg path { stroke: #cfd8d4; stroke-dasharray: 4 6; }
.ld-pt, .ld-pt.b { fill: var(--verde); filter: none; }
.ld-nodo span, .ld-nodo.n1 span, .ld-nodo.n2 span, .ld-nodo.n3 span { color: var(--verde); background: #fff; border: 1.5px solid #cfe3db; box-shadow: 0 10px 24px -18px rgba(20, 40, 33, .4); border-radius: 50%; }
.ld-pasos li::before { border-radius: 50%; background: #fff; border: 1.5px solid #cfe3db; }

/* Lo que ofrece: íconos de línea en un círculo suave, sin colores de relleno */
.ld-ico { width: 44px; height: 44px; border-radius: 50%; color: var(--verde); background: #eaf5f0; box-shadow: none; }
.ld-items { gap: 30px 32px; }
.ld-items article { padding-top: 4px; }

.ld-confianza { background: #fff; }
.ld-confianza li::before { border-radius: 50%; width: 10px; height: 10px; top: 9px; }

/* Instalar: tarjeta blanca */
.ld-instalar-in { background: #fff; box-shadow: var(--sombra); border-radius: 24px; }
.ld-qr-caja { box-shadow: none; border: 1px solid var(--br); border-radius: 20px; }
.ld-ios li { background: var(--suave); border-color: transparent; }
.ld-ios-n { background: #fff; color: var(--verde); border: 1.5px solid #cfe3db; }

.ld-final { background: var(--suave); border-top: 1px solid var(--br); }
.ld-pie { background: #fff; }

/* Cómo se conecta: flujo horizontal alineado */
.ld-flujo { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 880px; margin: 44px auto 48px; }
.ld-flujo .ld-nodo { position: static; width: auto; margin: 0; transform: none; }
.ld-flujo .ld-nodo span { position: relative; z-index: 1; width: 64px; height: 64px; }
.ld-flujo-linea { position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 0; border-top: 2px dashed #cfd8d4; }
.ld-flujo-linea i { position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: ld-viaja 4.5s linear infinite; }
.ld-flujo-linea i.d2 { animation-delay: -1.5s; }
.ld-flujo-linea i.d3 { animation-delay: -3s; }
@keyframes ld-viaja { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 560px) {
  .ld-flujo .ld-nodo span { width: 52px; height: 52px; }
  .ld-flujo-linea { top: 26px; }
  .ld-flujo .ld-nodo b { font-size: .85rem; }
  .ld-flujo .ld-nodo small { display: none; }
}

/* ===================================================================
   Imágenes: fotos reales, capturas del sistema en celular y laptop
   =================================================================== */
.ph { width: 22px; height: 22px; flex: none; }
.ph.grande { width: 30px; height: 30px; color: var(--verde); }
.ld-foto { display: block; width: 100%; object-fit: cover; border-radius: 22px; background: var(--suave); }

/* Celular con captura real */
.ld-cel { margin: 0; position: relative; width: 250px; aspect-ratio: 620 / 1341; padding: 9px; border-radius: 40px; background: #e9eeec; box-shadow: 0 30px 60px -32px rgba(20, 40, 33, .45), inset 0 0 0 1px #cfd7d3; }
.ld-cel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.ld-cel::before { content: ''; position: absolute; z-index: 1; top: 17px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #1c2522; opacity: .9; }

/* Laptop con captura real */
.ld-lap { margin: 0; width: 100%; }
.ld-lap-pantalla { padding: 10px 10px 12px; border-radius: 18px 18px 6px 6px; background: #1f2724; box-shadow: 0 30px 60px -34px rgba(20, 40, 33, .5); }
.ld-lap-pantalla img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ld-lap-base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #d9dfdc, #b9c2be); box-shadow: 0 14px 30px -18px rgba(20, 40, 33, .45); }

/* Portada con foto + celular */
.ld-hero { padding: 56px 0 72px; }
.ld-hero-img { position: relative; min-height: 520px; }
.ld-foto-grande { position: absolute; right: 0; top: 0; width: 82%; height: 470px; border-radius: 28px; }
.ld-cel-hero { position: absolute; left: 0; bottom: -10px; width: 220px; }
.ld-hero-img.medicos { min-height: 0; padding: 30px 0 40px 40px; }
.ld-hero-img.medicos .ld-lap { position: relative; z-index: 1; }
.ld-foto-retrato { position: absolute; z-index: 2; left: -10px; bottom: -6px; width: 150px; height: 190px; border: 6px solid #fff; border-radius: 24px; box-shadow: 0 20px 40px -24px rgba(20, 40, 33, .5); }

/* Médicos y médicas */
.ld-equipo { padding: 10px 0 40px; }
.ld-fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ld-fotos .ld-foto { height: 260px; }
.ld-equipo-txt { margin: 18px 0 0; text-align: center; color: var(--tx-2); font-weight: 600; }

/* Filas: imagen + texto corto */
.ld-fila, .ld-familia { padding: 70px 0; }
.ld-familia { background: var(--suave); }
.ld-fila-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ld-fila.inversa .ld-fila-img { order: 2; }
.ld-fila-txt h2 { margin-bottom: 14px; }
.ld-fila-txt p { margin: 0; font-size: 1.1rem; color: var(--tx-2); max-width: 460px; }
.ld-fila-img { position: relative; display: flex; justify-content: center; }
.ld-fila-img.dos { gap: 0; }
.ld-fila-img.dos .ld-cel { width: 230px; }
.ld-fila-img.dos .ld-cel.atras { margin-left: -60px; margin-top: 60px; z-index: 0; }
.ld-fila-img.dos .ld-cel:first-child { z-index: 1; }
.ld-fila-img.foto-cel { justify-content: flex-start; min-height: 470px; }
.ld-foto-fila { width: 78%; height: 420px; }
.ld-fila-img.foto-cel .ld-cel { position: absolute; right: 0; bottom: -10px; width: 200px; }
.ld-chips { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ld-chips li { padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--verde); background: #eaf5f0; }
.ld-mini { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ld-mini li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--tx); }
.ld-mini .ph { color: var(--verde); }

.ld-pantallas .ld-lap { max-width: 980px; margin: 40px auto 0; }
.ld-pantallas { text-align: center; }

/* Misión con foto */
.ld-mision-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.ld-foto-mision { height: 380px; }
.ld-mision p { margin: 18px 0 0; }

/* Sellos de confianza */
.ld-sellos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ld-sellos div { display: grid; gap: 6px; padding: 22px; border-radius: 18px; border: 1px solid var(--br); background: #fff; }
.ld-sellos b { font-size: 1rem; }
.ld-sellos span { color: var(--tx-2); font-size: .92rem; }

/* El diagrama con íconos Phosphor */
.ld-flujo .ld-nodo span .ph { width: 28px; height: 28px; }
.ld-invita .ph { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .ld-hero-img { min-height: 460px; margin-top: 10px; }
  .ld-foto-grande { height: 400px; width: 80%; }
  .ld-cel-hero { width: 190px; }
  .ld-hero-img.medicos { padding: 10px 0 30px 20px; }
  .ld-fila-in, .ld-mision-in { grid-template-columns: 1fr; gap: 36px; }
  .ld-fila.inversa .ld-fila-img { order: 0; }
  .ld-fotos { grid-template-columns: 1fr 1fr; }
  .ld-fotos .ld-foto { height: 200px; }
  .ld-sellos { grid-template-columns: 1fr 1fr; }
  .ld-foto-mision { height: 280px; }
}
@media (max-width: 560px) {
  .ld-hero-img { min-height: 400px; }
  .ld-foto-grande { height: 340px; width: 78%; }
  .ld-cel-hero { width: 160px; padding: 7px; border-radius: 30px; }
  .ld-cel-hero img { border-radius: 24px; }
  .ld-cel::before { top: 13px; width: 56px; height: 16px; margin-left: -28px; }
  .ld-foto-retrato { width: 110px; height: 140px; left: -6px; }
  .ld-fila, .ld-familia { padding: 56px 0; }
  .ld-fila-img.dos .ld-cel { width: 170px; }
  .ld-fila-img.dos .ld-cel.atras { margin-left: -46px; margin-top: 40px; }
  .ld-fila-img.foto-cel { min-height: 380px; }
  .ld-foto-fila { height: 330px; width: 80%; }
  .ld-fila-img.foto-cel .ld-cel { width: 160px; }
  .ld-fila-img > .ld-cel:only-child { width: 220px; }
  .ld-sellos { grid-template-columns: 1fr; }
  .ld-fotos .ld-foto { height: 170px; border-radius: 16px; }
}
.ld-cel::before { display: none; }
@media (max-width: 560px) { .ld-pasos { grid-template-columns: 1fr 1fr; gap: 22px 16px; } .ld-pasos li { padding-top: 44px; } .ld-pasos span { font-size: .88rem; } }

/* Todo lo que incluye */
.ld-todo { padding: clamp(56px, 8vw, 104px) 0; background: var(--suave); text-align: center; }
.ld-todo h2 { margin: 0 auto; max-width: 18ch; }
.ld-todo-sub { margin: 12px auto 0; max-width: 46ch; color: var(--tx-2); font-size: 1.08rem; }
.ld-todo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; text-align: left; }
.ld-todo-grid > div { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 18px; border: 1px solid var(--br); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ld-todo-grid > div:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.ld-todo-grid b { font-size: 1.02rem; margin-top: 6px; }
.ld-todo-grid span { color: var(--tx-2); font-size: .93rem; line-height: 1.45; }
@media (max-width: 900px) { .ld-todo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ld-todo-grid { grid-template-columns: 1fr; } .ld-todo { text-align: left; } .ld-todo h2, .ld-todo-sub { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ld-todo-grid > div { transition: none; } }

/* Celular estilo iPhone Pro Max: marco de titanio, isla dinámica y captura completa (440 × 956) */
.ld-cel { aspect-ratio: 440 / 956; padding: 0; border-radius: 15% / 6.9%; background: linear-gradient(150deg, #5b5f66, #1b1d21 38%, #2c2f34 62%, #6a6e75); box-shadow: 0 40px 70px -34px rgba(20, 40, 33, .55), 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .18); }
.ld-cel img { position: absolute; left: 3.1%; top: 1.45%; width: 93.8%; height: 97.1%; object-fit: cover; object-position: top; border-radius: 12.6% / 5.7%; background: #f2f6f4; }
.ld-cel::before { display: block; top: 2.5%; left: 50%; width: 28%; height: 3.4%; margin-left: -14%; border-radius: 999px; background: #0b0c0e; opacity: 1; z-index: 2; }
.ld-cel::after { content: ''; position: absolute; right: -1%; top: 27%; width: 1.2%; height: 9.5%; border-radius: 0 3px 3px 0; background: #3a3d42; }
.ld-cel-hero, .ld-cel-hero img { padding: 0; }

/* Fondos suaves: la página deja de ser toda blanca, sin perder limpieza */
body { background: #fcfdfc; }
.ld-hero { background:
    radial-gradient(760px 420px at 88% 6%, rgba(27, 122, 96, .10), transparent 62%),
    radial-gradient(620px 380px at 4% 96%, rgba(235, 104, 52, .07), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 27v10M27 32h10' stroke='%231b7a60' stroke-opacity='.07' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f3f9f6, #fcfdfc 78%); }
.ld-conecta { background: linear-gradient(180deg, #fcfdfc, #f4f9f7); }
.ld-fila { background: #fcfdfc; }
.ld-fila.inversa { background: linear-gradient(180deg, #f4f9f7, #f8fbf6 55%, #fcfdfc); }
.ld-familia { background: radial-gradient(700px 360px at 12% 20%, rgba(235, 104, 52, .06), transparent 60%), #f6faf8; }
.ld-pantallas { background: linear-gradient(180deg, #fcfdfc, #eef6f2); }
.ld-todo { background: radial-gradient(800px 420px at 50% 0%, rgba(27, 122, 96, .08), transparent 65%), #f4f9f7; }
.ld-mision { background: linear-gradient(120deg, #eaf5f0, #fbf4ee); border: 0; }
.ld-confianza { background: #fcfdfc; }
.ld-faq { background: linear-gradient(180deg, #fcfdfc, #f4f9f7); }
.ld-final { background: radial-gradient(70% 130% at 50% 100%, rgba(27, 122, 96, .14), transparent), #f4f9f7; }
.ld-sellos div, .ld-todo-grid > div { box-shadow: 0 1px 2px rgba(20, 40, 33, .04); }
.ld-cel { height: auto; flex: none; align-self: center; }
/* Barra de estado sobre la captura (la isla no tapa la app) */
.ld-cel img { box-sizing: border-box; padding-top: 11.4%; background: #fbfdfc; }

/* Por especialidad */
.ld-esp { padding: clamp(56px, 8vw, 104px) 0; text-align: center; background: linear-gradient(180deg, #fff, var(--bg)); }
.ld-esp h2 { margin: 0 auto; max-width: 20ch; }
.ld-esp-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 34px auto 22px; max-width: 900px; }
.ld-esp-tabs button { font: 600 .92rem var(--font); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--br); background: #fff; color: var(--tx-2); cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s; }
.ld-esp-tabs button:hover { border-color: var(--verde); color: var(--verde); }
.ld-esp-tabs button[aria-selected=true] { background: var(--verde); border-color: var(--verde); color: #fff; }
.ld-esp-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; text-align: left; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--br); box-shadow: var(--sombra); max-width: 980px; margin: 0 auto; animation: espEntra .4s var(--ease); }
@keyframes espEntra { from { opacity: 0; transform: translateY(10px); } }
.ld-esp-panel h3 { font-size: 1.5rem; margin: 0 0 6px; }
.ld-esp-norma { display: inline-flex; align-items: center; gap: 6px; color: var(--verde); font-weight: 600; font-size: .85rem; }
.ld-esp-norma .ph { width: 18px; height: 18px; }
.ld-esp-panel ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ld-esp-panel li { position: relative; padding-left: 28px; color: var(--tx-2); line-height: 1.45; }
.ld-esp-panel li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e3f4ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7d63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ld-esp-demo { border-radius: 18px; background: var(--bg); border: 1px solid var(--br); padding: 22px; min-height: 190px; display: grid; place-items: center; }
.ld-esp-mas { color: var(--mu); font-size: .92rem; margin: 22px auto 0; max-width: 60ch; }
.esp-m-nota { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.esp-m-nota b { width: 100%; }
.esp-m-nota i { display: block; width: 100%; height: 9px; border-radius: 6px; background: #dfe8e4; }
.esp-m-chip { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e3f4ec; color: var(--verde); }
.esp-m-chip.coral { background: #fde9df; color: #b5471c; }
.esp-m-chip.warn { background: #fdf3d8; color: #8a6200; }
.esp-m-fotos { display: flex; gap: 6px; width: 100%; }
.esp-m-fotos em { width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #f1d9cc, #d9a98f); }
.esp-m-curva { width: 100%; max-width: 260px; }
.esp-m-curva path { fill: none; stroke-width: 2; }
.esp-m-curva .p97 { stroke: #b7c7c1; stroke-dasharray: 4 4; }
.esp-m-curva .p50 { stroke: #44554f; }
.esp-m-curva circle { fill: var(--verde); }
.esp-m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.esp-m-tiles div { background: #fff; border: 1px solid var(--br); border-radius: 14px; padding: 12px; display: grid; gap: 4px; }
.esp-m-tiles small { color: var(--mu); font-size: .74rem; }
.esp-m-tiles b { font-size: 1.05rem; }
.esp-m-odo { display: flex; gap: 6px; }
.esp-m-odo span { display: grid; justify-items: center; gap: 4px; }
.esp-m-odo svg { width: 46px; height: 46px; }
.esp-m-col { display: grid; justify-items: center; gap: 12px; }
@media (max-width: 420px) { .esp-m-odo svg { width: 36px; height: 36px; } }
.esp-m-odo polygon, .esp-m-odo rect { fill: #fff; stroke: #94a3b8; stroke-width: 1; }
.esp-m-odo .r { fill: #dc2626; }
.esp-m-odo .a { fill: #2563eb; }
.esp-m-odo .cr { fill: none; stroke: #ca8a04; stroke-width: 2.5; }
.esp-m-odo small { font-size: .72rem; color: var(--mu); font-weight: 600; }
.esp-m-esc { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.esp-m-esc div { display: grid; gap: 4px; justify-items: start; }
.esp-m-esc b { font-size: 2.2rem; line-height: 1; }
.esp-m-esc p { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 0; }
.esp-m-esc p i { width: 18px; border-radius: 5px 5px 2px 2px; }
.esp-m-esc .d { background: #dc2626; } .esp-m-esc .w { background: #d4a017; } .esp-m-esc .i { background: #2563eb; }
.esp-m-esc .muted { color: var(--mu); }
@media (max-width: 760px) {
  .ld-esp-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 20px; }
  .ld-esp-tabs::-webkit-scrollbar { display: none; }
  .ld-esp-tabs button { flex: none; }
  .ld-esp-panel { grid-template-columns: 1fr; }
  .ld-esp { text-align: left; } .ld-esp h2 { margin-left: 0; }
}
@media (max-width: 380px) { .esp-m-tiles { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .ld-esp-panel { animation: none; } }

.ld-esp-demo .rostro { width: 150px; }
.ld-esp-demo .rostro-c { fill: #fff; stroke: #b7c7c1; stroke-width: 1.5; }
.ld-esp-demo .rostro-l { fill: none; stroke: #b7c7c1; stroke-width: 1.4; stroke-linecap: round; }
.ld-esp-demo .zona { fill: rgba(29,125,99,.1); stroke: var(--verde); stroke-width: 1; stroke-dasharray: 2 2; }
.ld-esp-demo .zona.on { fill: var(--verde); stroke-dasharray: none; }

/* Buscar médico (idea de directorio con buscador, carruseles y ciudades) */
.ld-busca { padding: clamp(48px, 7vw, 96px) 0; background: linear-gradient(180deg, var(--bg), #fff); }
.ld-busca h2 { max-width: 22ch; }
.ld-buscador { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; margin-top: 26px; padding: 8px; border-radius: 20px; background: #fff; border: 1px solid var(--br); box-shadow: var(--sombra); max-width: 860px; }
.ld-buscador label { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: var(--bg); }
.ld-buscador .ph { width: 20px; height: 20px; color: var(--verde); flex: none; }
.ld-buscador input, .ld-buscador select { border: 0; background: none; font: 500 1rem var(--font); color: var(--tx); width: 100%; padding: 14px 0; outline: none; }
.ld-buscador .ld-btn { margin: 0; }
.ld-b-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ld-b-chips a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--br); color: var(--tx-2); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .2s, color .2s; }
.ld-b-chips a:hover { border-color: var(--verde); color: var(--verde); }
.ld-b-chips small { color: var(--mu); font-weight: 500; }
.ld-fila-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.ld-fila-cab h3 { margin: 0; font-size: 1.25rem; }
.ld-fila-cab a { color: var(--verde); font-weight: 700; text-decoration: none; }
.ld-mu { color: var(--mu); font-size: .88rem; }
.ld-carrusel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.ld-doc, .ld-op { scroll-snap-align: start; display: grid; align-content: start; gap: 4px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--br); color: var(--tx); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.ld-doc:hover, .ld-op:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.ld-doc img, .ld-doc-ini { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; margin-bottom: 8px; }
.ld-doc-ini { display: grid; place-items: center; background: #e3f4ec; color: var(--verde); font-weight: 800; font-size: 1.5rem; }
.ld-doc span { color: var(--verde); font-weight: 600; font-size: .9rem; }
.ld-doc small, .ld-op small { color: var(--mu); font-size: .82rem; }
.ld-doc em { justify-self: start; margin-top: 6px; font-style: normal; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e3f4ec; color: var(--verde); }
.ld-op { grid-auto-rows: min-content; }
.ld-op p { margin: 4px 0 6px; color: var(--tx-2); line-height: 1.45; font-size: .93rem; }
.ld-est { color: #e0a100; letter-spacing: 2px; }
.ld-ciudades { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.ld-ciudades ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.ld-ciudades a { color: var(--tx-2); text-decoration: none; font-size: .92rem; }
.ld-ciudades a:hover { color: var(--verde); text-decoration: underline; }
@media (max-width: 720px) { .ld-buscador { grid-template-columns: 1fr; } .ld-buscador .ld-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ld-doc, .ld-op { transition: none; } }

.esp-m-probar { order: 9; font-weight: 700; color: var(--verde); text-decoration: none; padding: 8px 14px; border-radius: 999px; background: #e3f4ec; }
.esp-m-probar:hover { background: var(--verde); color: #fff; }

/* Acceso al directorio desde arriba, categorías y «Cerca de mí» */
.ld-nav-buscar { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--verde); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.ld-nav-buscar:hover { background: #e3f4ec; }
.ld-nav-buscar .ph { width: 18px; height: 18px; }
@media (max-width: 560px) { .ld-nav-buscar span { display: none; } }
.ld-buscador-hero { grid-template-columns: 1fr auto auto; margin: 22px 0 6px; max-width: 560px; }
.ld-buscador { grid-template-columns: 1.4fr 1fr auto auto; }
.ld-cerca { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--br); background: #fff; color: var(--verde); font: 700 .92rem var(--font); padding: 0 14px; border-radius: 14px; cursor: pointer; white-space: nowrap; }
.ld-cerca:hover { border-color: var(--verde); }
.ld-cerca .ico { width: 18px; height: 18px; }
.ld-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.ld-cats a { display: grid; gap: 2px; justify-items: start; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--br); color: var(--tx); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.ld-cats a:hover { transform: translateY(-2px); box-shadow: var(--sombra); border-color: var(--verde); }
.ld-cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e3f4ec; color: var(--verde); margin-bottom: 6px; }
.ld-cat-ico .ico { width: 22px; height: 22px; }
.ld-cats b { font-size: .95rem; line-height: 1.25; }
.ld-cats small { color: var(--mu); font-size: .8rem; }
.ld-cat-todas .ld-cat-ico { background: var(--verde); color: #fff; }
@media (max-width: 720px) { .ld-buscador, .ld-buscador-hero { grid-template-columns: 1fr; } .ld-cerca { justify-content: center; padding: 12px; } .ld-cats { grid-template-columns: repeat(2, 1fr); } }

/* GRATIS, tarjetas flotantes y aparición escalonada */
.ld-gratis { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid #bfe3cd; color: var(--tx-2); font-weight: 600; font-size: .9rem; margin-bottom: 14px; position: relative; overflow: hidden; box-shadow: 0 8px 20px -14px rgba(12,63,51,.5); }
.ld-gratis b { background: var(--coral); color: #fff; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; font-size: .78rem; }
.ld-gratis::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); transform: translateX(-100%); animation: ldBrillo 3.6s ease-in-out 1s infinite; }
@keyframes ldBrillo { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.ld-flota { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 18px 40px -18px rgba(12,63,51,.45); font-size: .85rem; opacity: 0; animation: ldEntra .7s var(--ease) forwards, ldFlota 6s ease-in-out infinite; }
.ld-flota b { display: block; color: var(--tx); }
.ld-flota small { color: var(--mu); }
.ld-flota-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #e3f4ec; color: var(--verde); }
.ld-flota-ico.n { background: #fde9df; color: #b5471c; }
.ld-flota-ico.v { background: var(--verde); color: #fff; }
.ld-flota-ico .ico { width: 18px; height: 18px; }
.ld-flota.f1 { top: 12%; left: -6%; animation-delay: .5s, 1.2s; }
.ld-flota.f2 { bottom: 22%; right: -4%; animation-delay: 1s, 1.7s; }
.ld-flota.f3 { bottom: 4%; left: 8%; animation-delay: 1.5s, 2.2s; }
@keyframes ldEntra { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ldFlota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 900px) { .ld-flota.f1 { left: 2%; } .ld-flota.f2 { right: 2%; } .ld-flota.f3 { display: none; } }
.ld-busca .ld-cats a, .ld-busca .ld-doc { opacity: 0; transform: translateY(14px); }
.ld-busca.visto .ld-cats a, .ld-busca.visto .ld-doc { animation: ldEntra .55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms + .1s); }
.ld-doc img { width: 100%; height: 150px; border-radius: 14px; object-fit: cover; object-position: center 20%; }
@media (prefers-reduced-motion: reduce) { .ld-gratis::after, .ld-flota { animation: none; opacity: 1; } .ld-busca .ld-cats a, .ld-busca .ld-doc { opacity: 1; transform: none; animation: none !important; } }
