/* Estilos compartidos de las landings de Instagram: link.html (médicos) y esteban.html (fundador) */
/* Landing "link en la bio" de Instagram — una sola plantilla, personalizada por médico desde data.js (campo landing) */
:root {
  --deep: #0D4A3A; --accent: #C4956A; --accent-ink: #1B1B1B; --paper: #F7F5F2; --ink: #1A1A1A; --soft: #5C6B66;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --card: color-mix(in srgb, #fff 70%, var(--paper));
  --serif: 'Fraunces', Georgia, serif; --sans: 'Manrope', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--deep); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.stage { min-height: 100vh; display: flex; justify-content: center; }
.lp { width: 100%; max-width: 460px; background: var(--paper); position: relative; overflow: hidden; }
@media (min-width: 560px) {
  .stage { padding: 40px 16px 64px; background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--deep); }
  .lp { border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); }
}

/* Portada */
.cover { position: relative; width: 100%; padding-top: 70%; background: var(--deep); color: #fff; overflow: hidden; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.cover::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(0,0,0,.32) 0%, transparent 15%, transparent 30%, color-mix(in srgb, var(--deep) 50%, transparent) 44%, color-mix(in srgb, var(--deep) 84%, transparent) 62%, color-mix(in srgb, var(--deep) 93%, transparent) 100%); }
.cover--compact { padding-top: 84px; }
.cover--compact::after { display: none; }
/* Vidrio líquido (estilo iOS): translúcido, desenfoca lo que hay detrás, con brillo fino en el borde */
.glass { background: rgba(255,255,255,.14); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); border: 1px solid rgba(255,255,255,.32); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.1), 0 8px 24px rgba(0,0,0,.16); }
.cover-avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin-bottom: 18px; box-shadow: 0 0 0 3px var(--accent); background: rgba(255,255,255,.08); display: grid; place-items: center; font-family: var(--serif); font-size: 40px; }
.cover-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topbar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; color: #fff; }
.pill-logo { height: 17px; width: auto; display: block; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer; }
.cover-body { position: relative; z-index: 2; padding: 0 20px 26px; }
.cover-body > .who { padding: 0 4px; }
.cover-logo { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 14px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); background: #fff; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.cover h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 10vw, 44px); line-height: 1.02; letter-spacing: -0.02em; }
.cover h1 small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .75; margin-bottom: 8px; font-weight: 400; }
.cover .spec { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 19px; color: color-mix(in srgb, #fff 82%, var(--accent)); }
.cover .reg { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; opacity: .65; }

/* Llamado principal */
.btn-main { margin-top: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 24px -10px rgba(0,0,0,.4); display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px 14px 14px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); transition: transform .15s ease, filter .15s ease; }
.btn-main:hover { filter: brightness(1.06); }
.btn-main:active { transform: scale(.985); }
.btn-main .ic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.btn-main strong { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.btn-main span { display: block; font-size: 12.5px; font-weight: 500; opacity: .8; margin-top: 1px; }
.btn-main .arrow { margin-left: auto; opacity: .7; }
.alt-lines { display: flex; gap: 8px; margin-top: 10px; }
.alt-lines a { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; color: #fff; padding: 11px; border-radius: 99px; }
.verified { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.72); }
.verified svg { color: var(--accent); }

/* Datos destacados */
.facts { display: flex; margin-top: 12px; padding: 11px 4px; border-radius: 22px; }
.fact { flex: 1; min-width: 0; text-align: center; padding: 0 6px; }
.fact + .fact { border-left: 1px solid rgba(255,255,255,.24); }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: -0.01em; color: #fff; line-height: 1.15; }
.fact span { display: block; font-size: 10.5px; color: rgba(255,255,255,.78); margin-top: 3px; line-height: 1.3; }

/* Parte inferior: el color de arriba baja y se aclara; cada sección es una tarjeta de vidrio */
.lower { padding: 6px 14px 20px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 93%, transparent) 0%, color-mix(in srgb, var(--deep) 62%, var(--paper)) 22%, var(--paper) 55%, var(--lower-end, var(--paper)) 100%); }
.block { padding: 22px 20px; border-radius: 24px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px -14px rgba(0,0,0,.25); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.eyebrow { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--deep) 70%, var(--ink)); }
.eyebrow i { font-style: normal; color: var(--accent); filter: saturate(1.1) brightness(.85); }
.lead { font-family: var(--serif); font-size: 20px; line-height: 1.38; letter-spacing: -0.01em; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { list-style: none; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.85); box-shadow: 0 1px 2px rgba(0,0,0,.06); color: color-mix(in srgb, var(--deep) 75%, var(--ink)); }

.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s ease; }
.video:hover img { transform: scale(1.03); }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play span { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 600; }
.video-cap span { font-family: var(--mono); font-weight: 400; color: var(--soft); }

.place { font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.hours { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.hours div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; line-height: 1.45; }
.hours dt { font-weight: 700; }
.hours dt:not(:empty)::after { content: " ·"; color: var(--soft); font-weight: 400; }
.hours dd { color: var(--soft); }
.btn-line { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 18px; padding: 14px; border-radius: 99px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px -2px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.05); font-size: 14px; font-weight: 700; transition: transform .15s ease; }
.btn-line:active { transform: scale(.98); }

.block.rows { padding-top: 6px; padding-bottom: 6px; }
.rows a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.rows a:last-child { border-bottom: 0; box-shadow: none; }
.rows .ri { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.95); box-shadow: 0 1px 3px rgba(0,0,0,.08); color: color-mix(in srgb, var(--deep) 80%, var(--ink)); flex: none; }
.rows strong { display: block; font-size: 14.5px; font-weight: 700; }
.rows small { display: block; font-size: 12px; color: var(--soft); margin-top: 1px; }
.rows .go { margin-left: auto; color: var(--soft); transition: transform .15s ease; }
.rows a:hover .go { transform: translateX(3px); }

/* Pie Doclick */
.foot { background: var(--foot, var(--deep)); color: #fff; padding: 30px 24px calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 560px) { .foot { padding-bottom: 34px; } }
.foot h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.foot p { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 8px; line-height: 1.5; }
.foot .explore { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: #fff; padding: 10px 16px; border-radius: 99px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.foot .sign { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 11.5px; color: rgba(255,255,255,.55); }
.foot .sign a { color: rgba(255,255,255,.85); font-weight: 600; }

/* Barra fija de WhatsApp */
.dock { position: fixed; z-index: 10; left: 50%; bottom: 0; width: 100%; max-width: 460px; transform: translate(-50%, 110%); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); transition: transform .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.dock.on { transform: translate(-50%, 0); pointer-events: auto; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); }

.loading { padding: 120px 24px; text-align: center; color: var(--soft); font-size: 14px; }
.notfound { padding: 90px 28px; text-align: center; }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 10px; }
.notfound p { color: var(--soft); margin-bottom: 24px; }
.notfound a { display: inline-block; padding: 14px 22px; border-radius: 14px; background: var(--deep); color: #fff; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
