/* Perfil Público — identidad visual (móvil primero). Tokens aproximados a las capturas. */
:root {
  --bg: #f4f6f7;
  --card: #ffffff;
  --ink: #19283f;
  --ink-2: #46556b;
  --muted: #66727f; /* contraste AA sobre blanco y sobre --bg */
  --action: #00807a; /* turquesa oscurecido: texto blanco con contraste 4.9:1 */
  --action-hover: #006a65;
  --ring: #449e9a;
  --ring-track: #e2ecea;
  --mint: #edf7f5;
  --mint-2: #f4faf9;
  --line: #dfe6e8;
  --warn-bg: #fff4d6;
  --warn-ink: #6b4f00;
  --err-bg: #fdecec;
  --err-ink: #8a1f1f;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(25, 40, 63, .04), 0 8px 24px rgba(25, 40, 63, .05);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--action); text-underline-offset: 2px; }
a:hover { color: var(--action-hover); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1e9c95; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Cabecera ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
@media (max-width: 420px) { .brand { gap: 8px; } .brand-name { font-size: 18px; } .brand svg { width: 26px; height: 26px; } .beta { font-size: 9.5px; padding: 3px 6px; } .menu-btn { padding: 7px 10px; } }
@media (max-width: 359px) { .menu-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.beta { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; background: var(--mint); color: #1d4f4c; padding: 4px 8px; border-radius: 7px; }
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.tabs { display: flex; gap: 6px; width: 100%; order: 3; }
.tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.tab:hover { background: var(--mint-2); color: var(--ink); }
.tab[aria-current="page"] { background: var(--mint); color: #12605b; }
.tab .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; display: inline-grid; place-items: center; }
.tab .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tab[aria-disabled="true"] { opacity: .55; pointer-events: none; }
@media (min-width: 900px) {
  .tabs { width: auto; order: 1; margin-left: 24px; }
  .header-right { order: 2; }
  .tab { flex: none; }
}

.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.menu-btn:hover { border-color: #c5d2d5; color: var(--ink); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(25, 40, 63, .14); padding: 6px; list-style: none; margin: 0; display: none; }
.menu-list[data-open="true"] { display: block; }
.menu-list a, .menu-list button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; font-size: 15px; }
.menu-list a:hover, .menu-list button:hover, .menu-list a:focus-visible, .menu-list button:focus-visible { background: var(--mint-2); }
.menu-list .state { font-size: 12.5px; color: var(--muted); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #5b6878; margin: 0 0 8px; }
.page-title { font-size: clamp(30px, 7.5vw, 46px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 24px; }
.lead { color: var(--ink-2); font-size: 17px; margin: -12px 0 24px; }
h2.section-title { font-size: clamp(22px, 5vw, 28px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; }
h3 { line-height: 1.25; }

main { padding: 28px 0 64px; }
@media (min-width: 768px) { main { padding-top: 44px; } }

/* ---------- Tarjetas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; min-width: 0; }
@media (min-width: 768px) { .card { padding: 32px; } }
.card.mint { background: linear-gradient(180deg, var(--mint-2), #fff 85%); }
.stack > * + * { margin-top: 20px; }

.notice { border-radius: var(--radius-sm); padding: 14px 16px; background: var(--mint); color: var(--ink); margin-bottom: 20px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.err { background: var(--err-bg); color: var(--err-ink); }
.demo-flag { display: inline-flex; align-items: center; gap: 8px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 0; background: var(--action); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--action-hover); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { background: #a9bcbd; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { border-color: #b9c8cb; background: #fbfdfd; }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 14.5px; border-radius: 11px; }
.link-btn { background: none; border: 0; color: var(--action); text-decoration: underline; cursor: pointer; padding: 0; font-weight: 600; }

/* ---------- Formulario ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid > * { min-width: 0; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.field .error { font-size: 13.5px; color: var(--err-ink); margin: 6px 0 0; }
.input { width: 100%; min-height: 50px; border: 1px solid #cfd9dc; border-radius: 14px; padding: 12px 14px; background: #fff; font-size: 16px; }
.input:focus { border-color: #1e9c95; outline: 3px solid rgba(30, 156, 149, .25); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: #c24b4b; }
.optional { font-weight: 500; color: var(--muted); font-size: 13.5px; }

.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(25, 40, 63, .14); list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; z-index: 30; }
.combo-list[hidden] { display: none; }
.combo-opt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; min-width: 0; }
.combo-opt[aria-selected="true"], .combo-opt:hover { background: var(--mint); }
.combo-opt img, .avatar-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: #dfe8ea; }
.combo-opt .meta { min-width: 0; }
.combo-opt .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-opt .sub { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-status { padding: 12px; font-size: 14.5px; color: var(--muted); }
.combo-status .link-btn { margin-left: 4px; }
.selected-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #b9dcd8; background: var(--mint); border-radius: 14px; margin-top: 8px; min-width: 0; }
.selected-chip .meta { min-width: 0; flex: 1; }
.selected-chip .name, .selected-chip .sub, .combo-opt .name, .combo-opt .sub { display: block; }
.selected-chip .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-chip .sub { font-size: 13.5px; color: var(--ink-2); }
.selected-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- Tarjeta principal ---------- */
.profile-card { display: grid; gap: 24px; }
.profile-head { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; background: #dfe8ea; }
@media (min-width: 768px) { .avatar { width: 96px; height: 96px; } }
.profile-name { font-size: clamp(24px, 6vw, 32px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; margin: 2px 0 6px; overflow-wrap: anywhere; }
.profile-role { font-size: 17px; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.profile-place { font-size: 16px; color: var(--muted); margin: 2px 0 0; overflow-wrap: anywhere; }
.score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ring { position: relative; width: 140px; height: 140px; }
@media (min-width: 768px) { .ring { width: 152px; height: 152px; } }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--ring-track); }
.ring .arc { stroke: var(--ring); stroke-linecap: round; transition: stroke-dashoffset .9s ease; }
.ring .inner { fill: var(--mint-2); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ring-den { font-size: 15px; color: var(--muted); margin-top: 4px; }
.score-caption { font-size: 14px; color: var(--muted); }
.trajectory { border-top: 1px solid var(--line); padding-top: 20px; }
.trajectory ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trajectory li { overflow-wrap: anywhere; }
.trajectory .dates { color: var(--muted); font-size: 14.5px; }
.trajectory .src { font-size: 13.5px; }
@media (min-width: 768px) {
  .profile-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }
  .profile-card .trajectory { grid-column: 1 / -1; }
}

/* ---------- Observación ---------- */
.observation { background: var(--mint-2); border: 1px solid var(--line); border-left: 6px solid var(--ring); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 20px; }
@media (min-width: 768px) { .observation { padding: 30px 32px; } }
.observation p.big { font-size: clamp(20px, 4.8vw, 25px); line-height: 1.35; font-weight: 750; letter-spacing: -0.01em; margin: 6px 0 12px; color: var(--ink); }
.observation .note { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Listas de hallazgos ---------- */
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.dots li { position: relative; padding-left: 22px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ring); }
.dots .t { font-weight: 750; display: block; margin-bottom: 2px; }
.dots .d { color: var(--ink-2); }
.ev { margin-top: 6px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.priorities { counter-reset: p; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.priorities li { counter-increment: p; position: relative; padding-left: 44px; min-height: 32px; }
.priorities li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--action); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col > .card { margin-bottom: 0; } }
.two-col + * { margin-top: 20px; }

/* ---------- Foto ---------- */
.photo-row { display: flex; gap: 16px; align-items: flex-start; }
.photo-score { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.photo-score small { font-size: 16px; color: var(--muted); font-weight: 600; }
.obs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.obs-list li { padding-left: 24px; position: relative; color: var(--ink-2); }
.obs-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.obs-list li.ok::before { content: "✓"; color: var(--action); }
.obs-list li.ko::before { content: "!"; color: #b06b00; left: 5px; }

/* ---------- Noticias ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .news { grid-template-columns: 1fr 1fr; } }
.news a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: #fff; height: 100%; }
.news a:hover { border-color: #b9d6d3; background: var(--mint-2); }
.news .src { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1d6c67; }
.news .ttl { font-weight: 700; line-height: 1.3; margin: 4px 0; overflow-wrap: anywhere; }
.news .dt { font-size: 13.5px; color: var(--muted); }

/* ---------- Seguidores e insights ---------- */
.followers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.followers > div { padding: 4px 16px; border-left: 1px solid var(--line); min-width: 0; }
.followers > div:first-child { border-left: 0; padding-left: 0; }
.followers .net { color: #0f6f6a; font-weight: 700; font-size: 15px; }
.followers .num { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.followers .lbl { color: var(--muted); font-size: 14.5px; }
.insights { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .insights { grid-template-columns: 1fr 1fr; } }
.insight { background: var(--mint-2); border: 1px solid #d8e9e6; border-radius: 18px; padding: 18px; min-width: 0; }
.insight .k { font-weight: 750; line-height: 1.25; }
.insight .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; }
.insight .v.na { font-size: 17px; color: var(--muted); font-weight: 650; }
.insight .d { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Bloqueo ---------- */
.locked { position: relative; }
.locked .skel-card { pointer-events: none; }
.skel { display: block; height: 12px; border-radius: 8px; background: linear-gradient(90deg, #e7eef0, #f3f7f8, #e7eef0); background-size: 200% 100%; margin: 10px 0; }
.skel.w90 { width: 90%; } .skel.w75 { width: 75%; } .skel.w60 { width: 60%; } .skel.w40 { width: 40%; }
.skel.h { height: 18px; width: 55%; }
.blurred { filter: blur(3px); opacity: .75; user-select: none; }
.lock-panel { position: relative; z-index: 2; background: #fff; border: 1px solid #b9dcd8; border-radius: var(--radius); box-shadow: 0 18px 44px rgba(25, 40, 63, .16); padding: 22px 20px; margin: -40px 0 20px; }
@media (min-width: 768px) { .lock-panel { padding: 28px 32px; margin: -80px 32px 24px; } }
.lock-panel h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -0.02em; line-height: 1.2; }
.benefits { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.benefits li { padding-left: 26px; position: relative; color: var(--ink-2); }
.benefits li::before { content: "✓"; position: absolute; left: 2px; color: var(--action); font-weight: 800; }
.fine { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.locked-title { display: flex; align-items: center; gap: 8px; }
.locked-title svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* ---------- PDF ---------- */
.pdf-card { display: grid; gap: 16px; align-items: center; }
@media (min-width: 768px) { .pdf-card { grid-template-columns: auto 1fr auto; } }
.pdf-icon { width: 56px; height: 68px; border-radius: 10px; background: var(--mint); display: grid; place-items: center; color: #12605b; font-weight: 800; font-size: 14px; border: 1px solid #cfe5e2; }
.price { font-weight: 800; font-size: 22px; white-space: nowrap; }

/* ---------- Carga ---------- */
.loading { display: grid; gap: 24px; justify-items: center; text-align: center; padding: 8px 0 24px; }
.stage { position: relative; width: min(100%, 380px); height: 260px; }
.lcard { position: absolute; width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgba(25, 40, 63, .10); padding: 14px; text-align: left; }
.lcard .row { display: flex; align-items: center; gap: 10px; }
.lcard .av { width: 34px; height: 34px; border-radius: 50%; background: #d9e6e8; flex: none; }
.lcard .tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #1d6c67; text-transform: uppercase; }
.lcard .bar { height: 9px; border-radius: 6px; background: #e8eff1; margin: 9px 0 0; }
.lcard .img { height: 54px; border-radius: 10px; background: linear-gradient(135deg, #e3eeef, #f1f6f7); margin-top: 10px; }
.lcard.c1 { left: 0; top: 18px; animation: float1 6s ease-in-out infinite; }
.lcard.c2 { right: 0; top: 0; animation: float2 7s ease-in-out infinite; }
.lcard.c3 { left: 24px; bottom: 0; animation: float2 6.5s ease-in-out infinite reverse; }
.lcard.c4 { right: 12px; bottom: 26px; animation: float1 7.5s ease-in-out infinite reverse; }
.lcard.dim { opacity: .45; }
/* Tarjetas adicionales de la escena de carga */
.lcard .tl { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lcard .tl i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #9fc9c6; flex: none; }
.lcard .tl .bar { margin: 0; flex: 1; }
.lcard .portrait { width: 64px; height: 64px; border-radius: 50%; margin: 10px auto 2px; background: #e3eeef; position: relative; overflow: hidden; border: 3px solid #cfe5e3; }
.lcard .portrait .face { position: absolute; left: 50%; top: 24%; width: 40%; height: 40%; transform: translateX(-50%); border-radius: 50%; background: #c4d8db; box-shadow: 0 26px 0 10px #c4d8db; }
.lcard .minibars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 10px; }
.lcard .minibars i { flex: 1; border-radius: 4px 4px 0 0; background: #cfe5e3; animation: grow 3.2s ease-in-out infinite; transform-origin: bottom; }
.lcard .minibars i:nth-child(2n) { animation-delay: .6s; background: #b4d9d5; }
.lcard .minibars i:nth-child(3n) { animation-delay: 1.2s; }
.lcard .miniring { width: 40px; height: 40px; border-radius: 50%; border: 5px solid #e8eff1; border-top-color: var(--action); border-right-color: var(--action); flex: none; animation: spin 4s linear infinite; }
.lcard .col { flex: 1; }
.lcard .col .bar:first-child { margin-top: 0; }
.lcard.c5, .lcard.c6, .lcard.c7 { display: none; }
.lcard.c5 { width: 150px; text-align: center; }
.lcard.c6 { width: 170px; }
.lcard.c7 { width: 190px; }
@keyframes grow { 0%, 100% { transform: scaleY(.75); } 50% { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* En pantallas anchas, escena más grande con siete tarjetas */
@media (min-width: 760px) {
  .stage { width: 680px; height: 340px; }
  .lcard.c5, .lcard.c6, .lcard.c7 { display: block; }
  .lcard.c1 { left: 0; top: 14px; z-index: 2; }
  .lcard.c2 { left: 235px; right: auto; top: 0; z-index: 3; }
  .lcard.c4 { right: 0; top: 22px; bottom: auto; z-index: 2; }
  .lcard.c3 { left: 18px; bottom: 0; z-index: 2; }
  .lcard.c5 { left: 268px; bottom: 6px; z-index: 3; animation: float1 6.8s ease-in-out infinite; }
  .lcard.c6 { right: 6px; bottom: 0; z-index: 2; animation: float2 7.2s ease-in-out infinite; }
  .lcard.c7 { left: 418px; top: 136px; z-index: 1; animation: float2 8s ease-in-out infinite reverse; }
}
/* En móvil se añade una quinta tarjeta pequeña (foto) en el centro */
@media (max-width: 759px) {
  .stage { height: 300px; }
  .lcard.c4 { bottom: 74px; }
  .lcard.c5 { display: block; width: 116px; right: 4px; bottom: -4px; padding: 10px; z-index: 2; animation: float1 6.8s ease-in-out infinite; }
  .lcard.c5 .tag { font-size: 10px; }
  .lcard.c5 .portrait { width: 44px; height: 44px; margin-top: 6px; }
}
.shimmer { background: linear-gradient(90deg, #e8eff1 0%, #f6fafa 40%, #e8eff1 80%); background-size: 220% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) rotate(-2deg); } 50% { transform: translate(6px, -10px) rotate(1deg); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) rotate(2deg); } 50% { transform: translate(-8px, 8px) rotate(-1deg); } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.phrase { font-size: 19px; font-weight: 700; min-height: 1.6em; }
.done-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14.5px; }
.done-list li::before { content: "✓ "; color: var(--action); font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .lcard, .shimmer, .ring .arc, .lcard .minibars i, .lcard .miniring { animation: none !important; transition: none !important; }
}

/* ---------- Tablas / listas simples ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-plain > li:last-child { border-bottom: 0; }
.row-between { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--mint); color: #12605b; }
.badge.grey { background: #eef1f3; color: var(--ink-2); }
.badge.err { background: var(--err-bg); color: var(--err-ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; background: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }
[tabindex="-1"]:focus { outline: none; }
.tab { min-width: 0; }
@media (max-width: 380px) { .tab { font-size: 14px; padding: 9px 8px; gap: 6px; white-space: normal; text-align: center; line-height: 1.2; } .tab svg, .tab .dot { flex: none; } }
#analysis-form, #analysis-form ~ p { max-width: 780px; }

/* Ejemplo orientativo de reescritura */
.example { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; }
.example summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.example .ex-k { margin: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.example .ex-k a { text-transform: none; letter-spacing: 0; font-weight: 600; }
.example blockquote { margin: 0; padding: 8px 10px; border-left: 3px solid var(--line); background: var(--mint-2); color: var(--ink-2); overflow-wrap: anywhere; }
.example .ex-s { border-left-color: var(--action, #00807a); background: var(--mint); color: var(--ink); }
.example .ex-n { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

/* Evolución (Mis análisis) */
.evo-chart { width: 100%; max-width: 560px; height: auto; display: block; }
.evo-grid { stroke: var(--line); stroke-width: 1; }
.evo-axis { fill: var(--muted); font-size: 12px; }
.evo-line { fill: none; stroke: var(--action); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.evo-dot { fill: var(--action); stroke: #fff; stroke-width: 2; }
.evo-hit { fill: transparent; }
.evo-pt:hover .evo-dot { r: 7; }
.evo-label { fill: var(--ink); font-size: 13px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.evo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.evo-table th, .evo-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.evo-table td.up { color: #0b6e4f; font-weight: 700; }
.evo-table td.down { color: #a3361f; font-weight: 700; }
#plan-area:empty { display: none; }
#plan-area { margin-bottom: 16px; }

/* ---------- Portada (embudo) ---------- */
.hero { display: grid; gap: 24px; align-items: start; margin: 4px 0 20px; }
.hero-main { display: grid; gap: 16px; min-width: 0; }
.hero-main .form-funnel { margin: 0; }
.hero-title { font-size: clamp(30px, 7.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 6px 0 12px; color: var(--ink); font-weight: 800; }
.hero .lead { font-size: 17px; margin: 0 0 14px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { font-size: 13px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.trust li::before { content: '✓ '; color: var(--action); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 40px; margin-top: 12px; } .sample { position: sticky; top: 90px; margin-top: 40px; } }
@media (max-width: 600px) { .hero .lead { font-size: 16px; } .hero-title { margin-bottom: 8px; } }

.sample { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px rgba(25, 40, 63, .12); padding: 18px; transform: rotate(-1deg); }
.sample-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.sample-head strong { display: block; color: var(--ink); }
.sample-head span { font-size: 13px; color: var(--muted); }
.sample-av { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #c4d8db 0 30%, transparent 31%), radial-gradient(circle at 50% 110%, #c4d8db 0 46%, #e3eeef 47%); border: 2px solid #cfe5e3; }
.sample-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--action) 0 83%, #e8eff1 83% 100%); position: relative; }
.sample-ring::before { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.sample-ring span, .sample-ring small { position: relative; line-height: 1; color: var(--ink); }
.sample-ring span { font-size: 20px; font-weight: 800; }
.sample-ring small { font-size: 10px; color: var(--muted); }
.sample-obs { margin: 14px 0 10px; padding: 12px; border-radius: 12px; background: var(--mint); color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.35; }
.sample-obs span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #1d6c67; margin-bottom: 4px; }
.sample-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.sample-list li::before { display: inline-block; width: 20px; font-weight: 800; }
.sample-list .ok::before { content: '▲'; color: #0b6e4f; }
.sample-list .ko::before { content: '▼'; color: #a3361f; }
.sample-lock { display: grid; gap: 6px; filter: blur(2px); opacity: .6; margin-bottom: 10px; }
.sample-lock i { height: 9px; border-radius: 6px; background: #e8eff1; }
.sample-lock i:nth-child(2) { width: 80%; } .sample-lock i:nth-child(3) { width: 55%; }
.sample-link { font-weight: 700; font-size: 14px; }

.form-funnel { border: 2px solid var(--action); box-shadow: 0 10px 30px rgba(0, 128, 122, .12); }
.step-label { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.step-label span { width: 26px; height: 26px; border-radius: 50%; background: var(--action); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.step2 { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.input-xl { font-size: 18px; min-height: 56px; }
.btn-xl { min-height: 56px; font-size: 17px; }
.how { margin: 28px 0 8px; }
.how-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }

/* Aviso para salir del navegador de Instagram/Facebook */
.inapp-overlay { position: fixed; inset: 0; background: rgba(25, 40, 63, .55); display: grid; place-items: end center; z-index: 50; padding: 16px; }
.inapp-card { background: #fff; border-radius: 20px; padding: 20px; width: min(100%, 460px); display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.inapp-card h2 { margin: 0; font-size: 20px; color: var(--ink); }
.inapp-card p { margin: 0; color: var(--ink-2); }
@media (min-width: 700px) { .inapp-overlay { place-items: center; } }

/* Aspectos positivos (▲) y a mejorar (▼), como en la muestra de la portada */
.dots.up li, .dots.down li { padding-left: 30px; }
.dots.up li::before, .dots.down li::before { width: auto; height: auto; border-radius: 0; background: none; top: .1em; left: 0; font-weight: 800; font-size: 1.05em; line-height: 1.2; }
.dots.up li::before { content: '▲'; color: #0b6e4f; }
.dots.down li::before { content: '▼'; color: #a3361f; }
.locked-dots { gap: 14px; }
.locked-dots .blurred { padding-top: 2px; }
.followers.in-insights { margin: 4px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

/* Opciones de desbloqueo: análisis suelto y seguimiento */
.offers { display: grid; gap: 14px; margin: 16px 0 6px; }
@media (min-width: 720px) { .offers { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.offer { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; }
.offer .btn { margin-top: auto; }
.offer-main { border: 2px solid var(--action); box-shadow: 0 10px 26px rgba(0, 128, 122, .12); }
.offer-tag { position: absolute; top: -11px; left: 16px; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--action); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.offer-head h3 { margin: 0; font-size: 19px; }
.offer-price { font-size: 24px; font-weight: 800; color: var(--ink); white-space: nowrap; text-align: right; line-height: 1.1; }
.offer-price small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.offer .benefits { margin: 0; }
.offer .soon { color: var(--muted); }
.soon-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #fff4dd; color: #8a5a00; font-size: 12px; font-weight: 800; }
.addon { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--mint); cursor: pointer; }
.addon input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: none; }
.addon strong { display: block; font-size: 15px; }
.addon small { display: block; color: var(--muted); font-size: 13px; }
.offer .fine { margin: 0; }
.benefits li.soon::before { content: "•"; color: var(--muted); }
[hidden] { display: none !important; }

/* Aceptación de condiciones antes de pagar */
.terms { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; }
.terms input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--action); }
.terms.needs { outline: 2px solid #c2410c; outline-offset: 4px; border-radius: 8px; }
.legal ul { padding-left: 20px; } .legal li { margin: 4px 0; } .legal mark { background: #fff4dd; }
