/* =====================================================================
   FisioIA — Sistema de diseño (estética editorial de lujo)
   Paleta de marca: #004aad  ·  #ffffff  ·  #000000  ·  #d4af37
   ===================================================================== */

:root {
  --blue:        #004aad;
  --blue-bright: #2f74e0;
  --blue-soft:   #6ea3ef;
  --gold:        #d4af37;
  --gold-soft:   #e7cd7a;
  --white:       #ffffff;
  --black:       #000000;

  --bg:          #050a17;   /* navy casi negro, cinematográfico */
  --bg-2:        #081228;
  --surface:     #0c1730;
  --surface-2:   #10203f;
  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text:        #ffffff;
  --muted:       rgba(255, 255, 255, 0.66);
  --muted-2:     rgba(255, 255, 255, 0.44);

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
}

/* ------------------------------ Reset ------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Fondo con degradado sutil y glow azul */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(0, 74, 173, 0.34), transparent 60%),
    radial-gradient(760px 520px at 8% 12%, rgba(47, 116, 224, 0.14), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* --------------------------- Utilidades --------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 78px 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.h-display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.h-section { font-size: clamp(2rem, 4vw, 3.1rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.gold { color: var(--gold); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------------------------- Botones ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 15px 28px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #1a1405; box-shadow: 0 14px 34px -12px rgba(212, 175, 55, 0.6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(212, 175, 55, 0.7); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 34px -12px rgba(0, 74, 173, 0.75); }
.btn--primary:hover { transform: translateY(-2px); background: #0257c9; }
.btn--ghost { border-color: var(--line-strong); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--lg { padding: 18px 34px; font-size: 16px; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------------------- Navbar ----------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 10, 23, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(0, 74, 173, 0.9); }
.brand span b { color: var(--white); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s ease; }
.nav__links a:hover { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ------------------------------ Hero ------------------------------ */
.hero { padding: 96px 0 84px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { margin-bottom: 34px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); }

.hero__art {
  position: relative; aspect-ratio: 1 / 1; border-radius: 26px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(47, 116, 224, 0.35), transparent 55%),
    linear-gradient(160deg, #0a1c3d 0%, #04122c 100%);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__art img { width: 62%; border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 110%, rgba(212, 175, 55, 0.18), transparent 70%);
}
.hero__badge {
  position: absolute; z-index: 2;
  background: rgba(8, 18, 40, 0.9); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 12px 16px; font-family: var(--font-display);
  font-size: 13px; display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(6px);
}
.hero__badge b { font-size: 18px; color: var(--gold); }
.hero__badge--1 { top: 22px; left: -14px; }
.hero__badge--2 { bottom: 26px; right: -14px; }

/* --------------------------- Marquee ------------------------------ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.trust__item { font-family: var(--font-display); font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.trust__item b { color: #fff; font-size: 22px; }
.trust__item .gold { font-size: 22px; }

/* ---------------------------- Grids ------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------- Cards ------------------------------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(8, 15, 32, 0.6) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0, 74, 173, 0.22); border: 1px solid rgba(47, 116, 224, 0.3);
  margin-bottom: 20px; font-size: 24px;
}
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* --------------------- Tarjetas de producto ----------------------- */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(6, 12, 26, 0.7) 100%);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow);
}
.product__body { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.product__tag {
  align-self: flex-start; font-family: var(--font-display); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(212,175,55,0.4);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.product__body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; }
.product__body p { color: var(--muted); margin-bottom: 12px; }
.product__list { margin: 12px 0 26px; display: grid; gap: 10px; }
.product__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: rgba(255,255,255,0.82); }
.product__list li::before { content: "→"; color: var(--gold); font-weight: 700; }
.product__visual { position: relative; min-height: 320px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 70% 20%, rgba(47,116,224,0.3), transparent 60%), #071634; }
.product__visual--alt { background: radial-gradient(120% 120% at 30% 20%, rgba(212,175,55,0.16), transparent 60%), #06122a; }
.mock {
  width: 78%; border-radius: 18px; border: 1px solid var(--line-strong);
  background: rgba(4, 10, 24, 0.85); box-shadow: var(--shadow); overflow: hidden;
}
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock__body { padding: 18px; display: grid; gap: 12px; }
.mock__line { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.1); }
.mock__line.short { width: 55%; }
.mock__line.blue { background: linear-gradient(90deg, var(--blue), var(--blue-bright)); width: 72%; height: 16px; }
.mock__line.gold { background: linear-gradient(90deg, var(--gold), var(--gold-soft)); width: 40%; height: 14px; }
.mock__pill { display: inline-flex; padding: 8px 14px; border-radius: 10px; background: rgba(0,74,173,0.25); border: 1px solid rgba(47,116,224,0.35); font-size: 12px; font-family: var(--font-display); width: fit-content; }

/* ------------------------- Recursos (leads) ----------------------- */
.resource {
  position: relative; background: linear-gradient(180deg, var(--surface) 0%, rgba(8,15,32,0.6) 100%);
  border: 1px solid var(--line); border-radius: 22px; padding: 36px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.resource:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.4); box-shadow: var(--shadow); }
.resource__free { position: absolute; top: 22px; right: 22px; font-family: var(--font-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #1a1405; background: var(--gold); padding: 5px 11px; border-radius: 999px; font-weight: 700; }
.resource__ico { font-size: 30px; margin-bottom: 18px; }
.resource h3 { font-size: 1.5rem; margin-bottom: 10px; }
.resource p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }

/* ------------------------------ CTA ------------------------------- */
.cta-band {
  text-align: center; border-radius: 28px; padding: 72px 40px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #05327a 0%, #012258 60%, #01173d 100%);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(50% 60% at 50% 0%, rgba(212,175,55,0.22), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 30px; }

/* ----------------------------- Steps ------------------------------ */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step__num { counter-increment: step; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--gold); width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(212,175,55,0.35); display: grid; place-items: center; }
.step__num::before { content: "0" counter(step); }
.step h4 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ------------------------------ Blog ------------------------------ */
.post-card {
  display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(8,15,32,0.6) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card__cover { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center;
  background: linear-gradient(150deg, #0a1c3d, #04122c); border-bottom: 1px solid var(--line); }
.post-card__cover span { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: rgba(255,255,255,0.14); }
.post-card__cover--a { background: radial-gradient(100% 100% at 20% 10%, rgba(47,116,224,0.4), transparent 60%), #071634; }
.post-card__cover--b { background: radial-gradient(100% 100% at 80% 10%, rgba(212,175,55,0.2), transparent 60%), #06122a; }
.post-card__cover--c { background: radial-gradient(100% 100% at 50% 120%, rgba(47,116,224,0.35), transparent 60%), #081937; }
.post-card__cover--d { background: radial-gradient(100% 100% at 10% 90%, rgba(212,175,55,0.16), transparent 60%), #05122b; }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 12.5px; color: var(--muted-2); font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.post-card__body h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.25; }
.post-card__body p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card__more { margin-top: 18px; color: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 8px; }
.chip { display: inline-block; font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft); background: rgba(0,74,173,0.22); border: 1px solid rgba(47,116,224,0.3); padding: 5px 11px; border-radius: 999px; }

/* ------------------------- Artículo (post) ------------------------ */
.article { max-width: 760px; margin: 0 auto; }
.article__header { margin-bottom: 40px; }
.article__header h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 18px 0 18px; }
.article__meta { font-size: 14px; color: var(--muted-2); font-family: var(--font-display); }
.article__cover { aspect-ratio: 16 / 8; border-radius: 20px; margin-bottom: 40px; border: 1px solid var(--line); display:grid; place-items:center;
  background: radial-gradient(100% 120% at 30% 10%, rgba(47,116,224,0.35), transparent 60%), linear-gradient(150deg,#0a1c3d,#04122c); }
.article__cover span { font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: rgba(255,255,255,0.12); }
.prose { font-size: 18px; color: rgba(255,255,255,0.86); }
.prose h2 { font-size: 1.7rem; margin: 42px 0 16px; }
.prose h3 { font-size: 1.3rem; margin: 32px 0 12px; color: #fff; }
.prose p { margin-bottom: 20px; }
.prose ul { margin: 0 0 22px; display: grid; gap: 10px; }
.prose ul li { padding-left: 26px; position: relative; color: var(--muted); }
.prose ul li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.prose strong { color: #fff; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin: 28px 0; font-size: 1.2rem; color: #fff; font-style: italic; }
.callout { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; margin: 32px 0; }
.callout h4 { font-size: 1.1rem; margin-bottom: 8px; color: var(--gold); }

/* ----------------------------- Footer ----------------------------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__brand p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 34ch; }
.footer h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: var(--muted); font-size: 15px; transition: color .2s ease; }
.footer__links a:hover { color: var(--gold); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px; font-size: 13.5px; color: var(--muted-2); flex-wrap: wrap; gap: 12px; }

/* --------------------------- Reveal anim -------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------- Responsive -------------------------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 440px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .product__visual { min-height: 260px; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 74px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 0; }
  .nav__links.open a { padding: 14px 24px; width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .product__body { padding: 32px 26px; }
  .cta-band { padding: 54px 24px; }
}
