/* ============================================================
   Biblioteca Digital de Fisioterapia — style.css
   Design system: navy #0F2942 · teal #0D9488 · amber #F59E0B
   ============================================================ */

:root {
  --primary: #0F2942;
  --accent: #0D9488;
  --accent-dark: #0B7C71;
  --alert: #F59E0B;
  --alert-soft: #FDBA74;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --text: #1E293B;
  --text-soft: #64748B;
  --pastel-blue: #EFF6FF;
  --pastel-mint: #F0FDFA;
  --border: #E2E8F0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 12px rgba(15, 41, 66, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 41, 66, 0.12);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--primary); line-height: 1.25; font-weight: 800; }
h1 { font-size: 30px; }
h2 { font-size: 25px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { color: var(--text); }
s { color: var(--text-soft); }

.accent { color: var(--accent); }
.alert-text { color: var(--alert); }

/* ---------- Layout ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--bg); }
.section-mint { background: var(--pastel-mint); }
.hero { padding-top: 36px; padding-bottom: 28px; }
#producto { padding-top: 0; padding-bottom: 8px; margin-top: -8px; }
#cta-1 { padding-top: 8px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; text-align: center; }
.container-narrow { max-width: 640px; }
.center { text-align: center; }
.center-lead { margin-left: auto; margin-right: auto; max-width: 90%; }

.lead { font-size: 16px; color: var(--text-soft); margin-top: 10px; line-height: 1.5; }
.microcopy { font-size: 13px; color: var(--text-soft); margin-top: 18px; line-height: 1.4; }

.hero .container h1 { margin-top: 16px; }
.hero-headline { font-size: 20px; font-weight: 600; color: var(--text); margin-top: 16px; }

/* ---------- Icons ---------- */
[data-lucide] { width: 20px; height: 20px; stroke-width: 2; vertical-align: middle; }
.ico-14 { width: 14px; height: 14px; }
.ico-18 { width: 18px; height: 18px; }
.star-fill { fill: var(--alert); stroke: var(--alert); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); padding: 16px 24px; border: 2px solid transparent;
  transition: all 0.2s ease; letter-spacing: 0.3px; text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-20deg); pointer-events: none; z-index: 1;
  animation: btn-scan 3s ease-in-out infinite;
}
@keyframes btn-scan {
  0% { transform: translateX(-180%) skewX(-20deg); }
  60%, 100% { transform: translateX(280%) skewX(-20deg); }
}
@media (prefers-reduced-motion: reduce) { .btn::after { animation: none; display: none; } }
.btn-block { display: flex; width: 100%; max-width: 420px; margin: 0 auto; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); text-transform: uppercase; }
.btn-primary:hover { background: var(--accent-dark); transform: scale(1.02); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-pill { border-radius: 999px; background: var(--primary); color: #fff; padding: 10px 20px; font-size: 13px; }

/* ---------- Badges ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 8px 16px; border-radius: 999px;
}
.badge-outline {
  display: inline-flex; align-items: center; gap: 6px; background: transparent;
  color: var(--accent); border: 1.5px solid var(--accent); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 14px;
}
.badge-fire {
  display: inline-flex; align-items: center; gap: 5px; background: #FEF3C7;
  color: #B45309; font-size: 12px; font-weight: 700; padding: 5px 12px;
  border-radius: 999px; margin-bottom: 14px;
}
.badge-vip {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 5px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 999px;
  white-space: nowrap; box-shadow: var(--shadow);
}

/* ---------- 01 Urgency bar ---------- */
.urgency-bar {
  position: sticky; top: 0; z-index: 100; background: var(--primary);
  color: #fff; padding: 12px 16px;
}
.urgency-inner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; text-align: center;
}
.urgency-inner .sep { opacity: 0.5; }
.urgency-timer { color: var(--alert); font-variant-numeric: tabular-nums; }
.urgency-inner i { color: var(--alert); }

/* ---------- 03 Product shot + seals ---------- */
.shot-layout { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.seals { display: flex; flex-direction: row; gap: 18px; justify-content: center; flex-wrap: wrap; }
.seal { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-align: center; }
.seal-circle {
  width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.seal span { font-size: 12px; font-weight: 600; color: var(--text-soft); }

/* ---------- Placeholders ---------- */
.ph {
  background: var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #94A3B8; font-size: 12px; text-align: center; padding: 16px;
  width: 100%; font-weight: 600; position: relative; overflow: hidden;
}
.ph small { font-weight: 400; font-size: 11px; opacity: 0.85; }
.ph-hero { aspect-ratio: 4 / 3; max-width: 640px; }
.ph-hero-img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.ph-wide-img { display: block; width: 100%; max-width: 720px; height: auto; margin: 1.5rem auto 0; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-wide { aspect-ratio: 9 / 7; margin-top: 24px; }
.ph-bonus { aspect-ratio: 5 / 6; margin-bottom: 14px; }
.ph-plan { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.ph-plan-vip { aspect-ratio: 6 / 5; margin-bottom: 14px; }

/* ---------- 04 Social proof ---------- */
.social-proof { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-soft); }
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 16px; height: 16px; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 12px; color: #94A3B8; }
.secure-line.light { color: rgba(255,255,255,0.75); }

/* ---------- 05 Preview grid ---------- */
.preview-marquee { margin-top: 32px; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.preview-track { display: flex; gap: 16px; width: max-content; animation: preview-scroll 30s linear infinite; }
.preview-card { padding: 8px; flex: 0 0 auto; width: 260px; }
.preview-card img { width: 100%; height: 340px; object-fit: contain; border-radius: 8px; background: #fff; display: block; image-rendering: -webkit-optimize-contrast; }
@keyframes preview-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .preview-track { animation: none; } }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
#testimonios .preview-card { padding: 0; background: transparent; box-shadow: none; }
#testimonios .preview-card img { background: transparent; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 06 Pain ---------- */
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.icon-badge.alert { background: #FEF3C7; color: var(--alert); }
.pain-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.pain-card {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow);
}
.pain-card p { margin: 0; font-size: 15px; text-align: left; }
.pain-x { color: #EF9A9A; flex-shrink: 0; width: 22px; height: 22px; }
.bridge-card {
  display: flex; align-items: center; gap: 14px; background: var(--pastel-mint);
  border: 1.5px solid var(--accent); border-radius: 16px; padding: 22px; margin-top: 4px;
}
.bridge-card p { margin: 0; font-weight: 600; color: var(--primary); text-align: left; }
.bridge-arrow { color: var(--accent); flex-shrink: 0; }

/* ---------- 08 Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.testimonial-mock {
  aspect-ratio: 5 / 7; justify-content: flex-end; align-items: stretch;
  padding: 0; border-radius: var(--radius); position: relative;
}
.testimonial-mock .ph-label { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 11px; color: #94A3B8; }
.comments {
  background: linear-gradient(to top, rgba(15,41,66,0.92), rgba(15,41,66,0.75));
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.comment { display: flex; gap: 8px; }
.comment .avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.35); flex-shrink: 0; }
.comment strong { color: #fff; font-size: 12.5px; }
.comment em { color: rgba(255,255,255,0.6); font-size: 11px; font-style: normal; }
.comment p { color: rgba(255,255,255,0.92); font-size: 12.5px; margin: 2px 0 4px; line-height: 1.4; }
.comment .likes { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,0.6); font-size: 11px; }

/* ---------- 09/11 Feature cards ---------- */
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.feature-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
}
.feature-card.highlight { border: 1.5px solid var(--accent); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-blue));
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.feature-card h3 { margin-bottom: 4px; text-align: left; }
.feature-card p { font-size: 14px; color: var(--text-soft); margin: 0; text-align: left; }

/* ---------- 10 Countdown reinforced ---------- */
.countdown-blocks { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 16px; }
.cd-block {
  background: #fff; border: 1.5px solid var(--accent); border-radius: 12px;
  padding: 16px 22px; min-width: 90px; display: flex; flex-direction: column; align-items: center;
}
.cd-num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-label { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.cd-colon { font-size: 36px; font-weight: 800; color: var(--accent); }
.reinforce { font-size: 14px; margin-top: 6px; }

/* ---------- 12 CTA dark ---------- */
.cta-dark {
  background: var(--primary); border-radius: var(--radius-lg); padding: 40px 24px;
  text-align: center; margin: 0 4px;
}
.cta-dark h2 { color: #fff; }
.cta-dark p { color: rgba(255,255,255,0.8); margin: 12px auto 24px; max-width: 480px; font-size: 15px; }

/* ---------- 14 Checklist ---------- */
.checklist { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.check-ico { color: var(--accent); flex-shrink: 0; }
#checklist .badge-pill { margin-bottom: 14px; }
#checklist h2 { margin-bottom: 4px; }
#que-recibes .badge-pill { margin-top: 40px; margin-bottom: 20px; }
#que-recibes .checklist { margin-top: 24px; }

/* ---------- 15 Bonuses ---------- */
.bonus-list { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.bonus-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); text-align: center;
}
.bonus-card h3 { margin-bottom: 6px; }
.bonus-img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 14px; border-radius: var(--radius); }
.plan-img { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 14px; border-radius: var(--radius); }
.plan-img-vip { max-width: 460px; }
.bonus-card p { font-size: 14px; color: var(--text-soft); }
.bonus-value { margin: 12px 0; font-weight: 600; }
.bonus-value s { font-size: 16px; }

/* ---------- 16 Plans ---------- */
.plans-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 36px; }
.plan-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; position: relative; }
.plan-vip { border: 2.5px solid var(--accent); box-shadow: var(--shadow-lg); margin-top: 14px; }
.plan-card h3 { margin-bottom: 16px; text-align: center; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; text-align: left; }
.plan-features li.locked { color: var(--text-soft); }
.feat-check { color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.feat-lock { color: #CBD5E1; width: 18px; height: 18px; flex-shrink: 0; }
.bonus-summary { background: var(--pastel-blue); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.bonus-summary p { font-size: 14px; color: var(--primary); font-weight: 600; margin: 6px 0; text-align: left; }
.price { text-align: center; margin: 16px 0; display: flex; flex-direction: column; gap: 2px; }
.price s { font-size: 16px; }
.price strong { font-size: 34px; color: var(--primary); }
.price-vip strong { color: var(--accent); }
.pay-method { text-align: center; font-size: 13px; color: var(--text-soft); margin-bottom: 16px; }
.anchor-note {
  border: 1.5px dashed var(--accent); border-radius: 12px; padding: 14px;
  margin-top: 18px; font-size: 13px; color: var(--primary); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.anchor-note i { color: var(--accent); }

/* ---------- 17 Guarantee ---------- */
.guarantee-badge {
  width: 72px; height: 72px; border-radius: 50%; background: var(--pastel-mint);
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  margin-bottom: 14px;
}
.guarantee-badge i { width: 34px; height: 34px; }
.guarantee-seal { width: 100px; height: auto; margin: 0 auto 14px; display: block; }

/* ---------- 18 FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; cursor: pointer; padding: 20px; font-size: 15px;
  font-weight: 700; color: var(--primary); text-align: left; font-family: inherit;
}
.faq-ico { color: var(--accent); flex-shrink: 0; transition: transform 0.25s ease; }
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 20px 20px; font-size: 14.5px; color: var(--text-soft); margin: 0; text-align: left; }

/* ---------- 19 Footer ---------- */
.footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 48px 0; }
.footer .brand { font-size: 22px; font-weight: 800; color: #fff; }
.footer-sub { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 6px; }
.contact-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 18px; margin: 24px auto; max-width: 360px; }
.contact-card p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 4px 0; }
.contact-card strong { color: #fff; }
.footer-link { color: #fff; text-decoration: underline; font-size: 13px; display: inline-block; margin-bottom: 20px; }
.disclaimer { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; max-width: 560px; margin: 0 auto 16px; }
.copyright { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 21px; }
  body { font-size: 17px; }
  .lead { font-size: 17px; }
   .section { padding: 60px 0; }
   .hero { padding-top: 44px; padding-bottom: 32px; }
   .hero-headline { font-size: 24px; }

  .shot-layout { flex-direction: row; align-items: center; justify-content: center; gap: 40px; }
  .seals { flex-direction: column; }
  .preview-card { width: 280px; }
  .feature-list, .pain-list { max-width: 720px; margin-left: auto; margin-right: auto; }
  .bonus-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .plans-grid { flex-direction: row; align-items: flex-start; gap: 28px; }
  .plan-card { flex: 1; }
  .cta-dark { padding: 56px 40px; }
}

@media (min-width: 1024px) {
  .cta-dark h2 { font-size: 34px; }
}
