/* appflujo-tv.app · fondo blanco, degradado #d13104 → #ff4209 · TT Corals */

/* TT Corals es una fuente comercial (TypeType). Sube los .woff2 con licencia a /assets/fonts/.
   Mientras no estén, el navegador usa la fuente del sistema sin romper nada. */
@font-face { font-family: "TT Corals"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("TT Corals Regular"), local("TTCorals-Regular"), url("../fonts/TTCorals-Regular.woff2") format("woff2"); }
@font-face { font-family: "TT Corals"; font-weight: 400; font-style: italic; font-display: swap;
  src: local("TT Corals Italic"), local("TTCorals-Italic"), url("../fonts/TTCorals-Italic.woff2") format("woff2"); }
@font-face { font-family: "TT Corals"; font-weight: 500; font-style: normal; font-display: swap;
  src: local("TT Corals Medium"), local("TTCorals-Medium"), url("../fonts/TTCorals-Medium.woff2") format("woff2"); }
@font-face { font-family: "TT Corals"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("TT Corals Bold"), local("TTCorals-Bold"), url("../fonts/TTCorals-Bold.woff2") format("woff2"); }
@font-face { font-family: "TT Corals"; font-weight: 800; font-style: normal; font-display: swap;
  src: local("TT Corals ExtraBold"), local("TTCorals-ExtraBold"), url("../fonts/TTCorals-ExtraBold.woff2") format("woff2"); }

:root {
  --c1: #d13104;
  --c2: #ff4209;
  --grad: linear-gradient(120deg, #ff4209 0%, #e83a06 50%, #d13104 100%);
  --grad-soft: linear-gradient(135deg, #fff3ee 0%, #ffe6dc 100%);
  --ink: #1d1410;
  --text: #4a3d36;
  --muted: #7d6d64;
  --line: #f0e4de;
  --soft: #fff7f3;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(29, 20, 16, .04), 0 12px 32px -14px rgba(209, 49, 4, .22);
  --glow: 0 14px 34px -12px rgba(255, 66, 9, .55);
  --font: "TT Corals", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-underline-offset: 3px; }
a:hover { color: var(--c2); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.05rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong, b { color: var(--ink); font-weight: 700; }
u { text-decoration-color: var(--c2); text-decoration-thickness: 2px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 1.15em; }
.btn--grad { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn--grad:hover { color: #fff; box-shadow: 0 18px 40px -12px rgba(255, 66, 9, .7); }
.btn--line { background: #fff; color: var(--c1); border-color: #ffd3c2; }
.btn--line:hover { border-color: var(--c2); color: var(--c2); }
.btn--white { background: #fff; color: var(--c1); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); }
.btn--white:hover { color: var(--c2); }
.btn--ghost-white { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost-white:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--xl { padding: .75em 1.6em .75em 1.3em; font-size: 1.12rem; border-radius: 18px; text-align: left; }
.btn--xl i { font-size: 1.7em; }
.btn--xl small { display: block; font-size: .72em; font-weight: 500; opacity: .85; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo b { color: var(--c2); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover { color: var(--c2); }

/* ---------- Inicio ---------- */
.hero {
  position: relative; padding: 52px 0 26px; overflow: hidden;
  background:
    radial-gradient(640px 420px at 88% 8%, rgba(255, 66, 9, .12), transparent 65%),
    radial-gradient(520px 360px at 4% 92%, rgba(209, 49, 4, .07), transparent 65%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; background: var(--soft); border: 1px solid #ffdccf;
  color: var(--c1); font-weight: 500; font-size: .9rem;
}
.lead { font-size: 1.15rem; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero__cta--center { justify-content: center; }

.code-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 10px 10px 10px 18px; border-radius: 18px; background: #fff;
  border: 2px dashed #ffbfa6; box-shadow: var(--shadow);
}
.code-chip__label { font-size: .92rem; color: var(--muted); font-weight: 500; }
.code-chip__label i { color: var(--c2); margin-right: 4px; }
.code-chip__num { font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; color: var(--ink); font-variant-numeric: tabular-nums; }
.code-chip__btn {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  border: 0; border-radius: 12px; padding: 9px 14px; background: var(--grad); color: #fff;
}
.device-tip {
  margin: 16px 0 0; padding: 10px 14px; border-radius: 14px; max-width: 560px;
  background: var(--soft); border-left: 4px solid var(--c2); font-size: .97rem;
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; font-size: .95rem; font-weight: 500; color: var(--ink); }
.hero__facts i { color: var(--c2); margin-right: 6px; }

/* Teléfono de muestra */
.hero__art { position: relative; display: flex; justify-content: center; }
.phone {
  width: 270px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #2a1d17, #120c09);
  box-shadow: 0 40px 80px -30px rgba(209, 49, 4, .55), 0 0 0 1px rgba(0, 0, 0, .1);
  transform: rotate(-4deg);
}
.phone__screen { height: 100%; border-radius: 30px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 18px 14px 10px; font-size: .9rem; color: var(--ink); }
.live { margin-left: auto; font-size: .62rem; font-weight: 700; color: #fff; background: var(--grad); padding: 3px 8px; border-radius: 999px; }
.app-hero {
  margin: 4px 12px 12px; height: 130px; border-radius: 18px; background: var(--grad); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; font-weight: 700; font-size: .85rem; position: relative;
}
.app-hero i { position: absolute; top: 50%; left: 50%; translate: -50% -70%; font-size: 1.6rem; background: rgba(255, 255, 255, .22); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 12px; }
.app-grid span { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--ink); }
.app-grid i { color: var(--c2); font-size: 1rem; }
.float {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink);
}
.float i { color: var(--c2); }
.float--a { top: 12%; left: -4%; }
.float--b { bottom: 14%; right: 0; }

.toc { display: flex; gap: 10px; margin-top: 44px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.toc a i { color: var(--c2); }
.toc a:hover { border-color: var(--c2); color: var(--c1); }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--soft); border-block: 1px solid var(--line); }
.head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker { display: inline-block; margin-bottom: 10px; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c2); }

/* Descarga */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card {
  display: flex; flex-direction: column; gap: 4px; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.dl-card > .btn { margin-top: auto; }
.dl-card.is-mine { border: 2px solid var(--c2); transform: translateY(-4px); }
.dl-card.is-mine::before { content: "Tu dispositivo"; align-self: flex-start; margin-bottom: 8px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--grad); padding: 3px 10px; border-radius: 999px; }
.dl-card__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.45rem; margin-bottom: 12px; box-shadow: var(--glow); }
.dl-card__note { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.dl-card__note i { color: var(--c2); }
.digits { display: flex; gap: 6px; margin: 4px 0 16px; }
.digits span {
  flex: 1; display: grid; place-items: center; height: 54px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid #ffd3c2; font-size: 1.6rem; font-weight: 800; color: var(--c1); font-variant-numeric: tabular-nums;
}
.qr { display: grid; place-items: center; width: 148px; height: 148px; margin: 4px auto 16px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: #ffd3c2; font-size: 4rem; }
.qr img, .qr canvas { width: 100%; height: 100%; }

.ios-note {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 18px 22px; border-radius: 18px;
  background: var(--soft); border: 1px solid var(--line);
}
.ios-note > i { font-size: 1.6rem; color: var(--ink); margin-top: 2px; }
.ios-note p { margin: 0; }
.ios-note.is-mine { border: 2px solid var(--c2); background: #fff; }

.ficha { display: grid; grid-template-columns: repeat(6, 1fr); margin: 26px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ficha div { padding: 14px 16px; border-right: 1px solid var(--line); }
.ficha div:last-child { border-right: 0; }
.ficha dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ficha dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-size: .95rem; word-break: break-word; }

/* Qué es */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { display: flex; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.features li > i { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--c1); font-size: 1.15rem; }
.features h3 { margin-bottom: 2px; font-size: 1.05rem; }
.features p { margin: 0; font-size: .95rem; }

/* Pestañas de instalación */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem;
  padding: 11px 18px; border-radius: 14px; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.tabs button i { color: var(--c2); }
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.tabs button[aria-selected="true"] i { color: #fff; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.panel h3 { font-size: 1.4rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem;
}
.tip { margin: 6px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--soft); font-size: .95rem; }
.tip i { color: var(--c2); margin-right: 6px; }
.table-wrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

/* Errores y preguntas */
.errors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.err, .faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.err[open], .faq details[open] { border-color: #ffbfa6; }
.err summary, .faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; font-weight: 700; color: var(--ink); line-height: 1.4;
}
.err summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.err summary::after, .faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-soft); color: var(--c1); font-weight: 800;
}
.err[open] summary::after, .faq details[open] summary::after { content: "–"; }
.err summary i { color: var(--c2); width: 22px; margin-right: 6px; }
.err p, .faq p { margin: 0; padding: 0 18px 18px; }
.faq { display: grid; gap: 12px; margin-top: 26px; }
.link-btn { font: inherit; color: var(--c1); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 700; }

/* Opiniones */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stars { color: var(--c2); font-size: .9rem; display: flex; gap: 3px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; color: var(--ink); }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.review figcaption small { display: block; font-weight: 400; color: var(--muted); margin-left: auto; font-size: .85rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }

/* Cierre */
.cta-final { background: var(--grad); color: rgba(255, 255, 255, .92); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-final__in { position: relative; }
.cta-final img { margin: 0 auto 18px; border-radius: 18px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.cta-final h2, .cta-final b { color: #fff; }

/* Pie */
.foot { padding: 48px 0 110px; background: #fff; border-top: 1px solid var(--line); font-size: .95rem; }
.foot__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot__in p { max-width: 380px; margin-top: 10px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { color: var(--c2); }
.foot__legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* Barra fija en celulares */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .25);
  transition: transform .25s;
}
.dock .btn { flex: 1; padding: .8em 1em; }
.dock__code {
  font: inherit; font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; color: var(--c1); cursor: pointer;
  background: var(--soft); border: 2px dashed #ffbfa6; border-radius: 999px; padding: 4px 16px; line-height: 1.1;
}
.dock__code small { display: block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dock.is-hidden { transform: translateY(110%); }

.toast {
  position: fixed; left: 50%; bottom: 96px; translate: -50% 20px; z-index: 70; opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: opacity .2s, translate .2s;
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .ficha { grid-template-columns: repeat(3, 1fr); }
  .ficha div:nth-child(3) { border-right: 0; }
  .ficha div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero__grid, .two-col { grid-template-columns: 1fr; gap: 34px; }
  .hero__art { display: none; }
  .dl-grid, .reviews { grid-template-columns: 1fr; }
  .errors { grid-template-columns: 1fr; }
  .dock { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 30px; }
  .section { padding: 60px 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .code-chip { width: 100%; justify-content: space-between; }
  .code-chip__label { flex-basis: 100%; }
  .ficha { grid-template-columns: 1fr 1fr; }
  .ficha div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .ficha div:nth-child(2n) { border-right: 0 !important; }
  .ficha div:nth-last-child(-n+2) { border-bottom: 0; }
  .panel { padding: 24px 18px; }
  .dl-card { padding: 22px; }
  .digits span { height: 48px; font-size: 1.35rem; }
  .ios-note { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dl-card, .dock, .toast { transition: none; }
}
