/* ============================================================
   BC1 — Sistema de diseño
   Educación financiera | Color, movimiento, profesionalismo
   ============================================================ */

:root {
  --navy: #0b1030;
  --navy-2: #141b4d;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --amber: #fbbf24;
  --pink: #f472b6;
  --grad: linear-gradient(120deg, var(--cyan), var(--indigo) 55%, var(--pink));
  --grad-warm: linear-gradient(120deg, var(--amber), #fb923c);
  --bg: #f6f7ff;
  --card: #ffffff;
  --ink: #12163f;
  --muted: #5a6390;
  --line: #e6e8f5;
  --radius: 22px;
  --shadow: 0 18px 45px -18px rgba(20, 27, 77, 0.35);
  --shadow-sm: 0 8px 22px -12px rgba(20, 27, 77, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.15; letter-spacing: -0.01em; }

.wrap { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Ticker superior (no desaparece al hacer scroll) ---------- */
.ticker {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 1200;
  background: linear-gradient(90deg, var(--navy), var(--indigo));
  color: #fff;
  overflow: hidden;
  height: 42px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  gap: 3.2rem;
  white-space: nowrap;
  align-items: center;
  animation: ticker 35s linear infinite;
  will-change: transform;
  padding-inline: 2rem;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.ticker-track .dot { color: var(--amber); font-size: 1.1rem; }
.ticker-track b { color: var(--cyan); font-weight: 700; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Navegación ---------- */
header.site {
  position: sticky;
  top: 42px; z-index: 1100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo .mark {
  width: 42px; height: 42px;
  background: var(--grad);
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease;
}
.logo:hover .mark { transform: rotate(-6deg) scale(1.05); }
.logo .mark svg { width: 24px; height: 24px; }
.logo .bc2 { color: var(--indigo); }

nav.menu { display: flex; align-items: center; gap: 0.5rem; }
nav.menu a {
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-2);
  transition: background .2s, color .2s;
}
nav.menu a:hover { background: #eef0ff; color: var(--indigo); }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
  margin-left: 0.4rem;
}
.nav-cta:hover { filter: brightness(1.05); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: .3s;
}
@media (max-width: 980px) {
  .burger { display: flex; }
  nav.menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 1rem;
    gap: 0.3rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
  }
  nav.menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, filter .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-light { background: #fff; color: var(--indigo); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(229,234,255,.9), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(34,211,238,.16), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
  overflow: hidden;
}
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #eef0ff; color: var(--indigo);
  font-weight: 700; font-size: .85rem;
  padding: .45rem 1rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero-kicker .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,.6);} 60% { box-shadow: 0 0 0 8px rgba(251,191,36,0);} }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1.2rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; max-width: 34rem; }
.hero .btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 1.9rem; color: var(--navy); display: block; }
.hero-stats .stat span { color: var(--muted); font-size: .92rem; }
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem;
  position: relative; z-index: 2;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.chart-line { margin-top: 1rem; }
.hero-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.hero-card .sub { color: var(--muted); font-size: .9rem; }
.hero-chip {
  position: absolute; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: .7rem 1rem;
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .9rem;
  z-index: 3; animation: float 5s ease-in-out infinite;
}
.hero-chip svg { width: 26px; height: 26px; }
.hero-chip.c1 { top: -16px; right: 8%; }
.hero-chip.c2 { bottom: 30px; left: -20px; animation-delay: 1s; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } .hero-visual { max-width: 420px; } }

/* ---------- Secciones generales ---------- */
section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-eyebrow { color: var(--indigo); font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .6rem 0 .8rem; }
.section-head p { color: var(--muted); }

/* Tarjetas de producto */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem; }
.prod-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  transition: transform .35s, box-shadow .35s;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.prod-art { height: 180px; display: grid; place-items: center; position: relative; overflow: hidden; }
.prod-art svg { width: 120px; height: 120px; filter: drop-shadow(0 10px 16px rgba(20,25,77,.15)); }
.prod-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.prod-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.prod-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin: .9rem 0 1.1rem; }
.tag { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: #eef0ff; color: var(--indigo); }
.prod-foot { display: flex; align-items: center; justify-content: space-between; }
.price-big { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.price-big small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.price-big .old { text-decoration: line-through; color: #b3bad6; font-size: .9rem; font-weight: 600; margin-right: .5rem; }
.prod-foot .btn { padding: .6rem 1.1rem; font-size: .9rem; }

/* Service / feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2,1fr);} .grid-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--card); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s;
}
.svc-card:hover { transform: translateY(-6px); }
.svc-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc-card .ico svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.svc-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Startup CTA band ---------- */
.cta-band {
  background: var(--grad);
  border-radius: 30px;
  color: #fff;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .8rem; }
.cta-band p { font-size: 1.08rem; opacity: .92; margin-bottom: 1.8rem; max-width: 40rem; margin-inline: auto; }
.cta-band .btn-light { margin: 0 .4rem; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #cdd3f0; padding: 3.5rem 0 0; margin-top: 3rem; }
footer .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 900px) { footer .grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
footer a { display: block; padding: .28rem 0; font-size: .93rem; transition: color .2s; }
footer a:hover { color: var(--cyan); }
footer .brand p { font-size: .93rem; margin-top: .8rem; max-width: 20rem; }
.socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--grad); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
footer .contact-line { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; font-size: .93rem; }
footer .contact-line svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.3rem 0; text-align: center; font-size: .85rem; color: #8b94c0; }

/* ---------- Botón WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 1200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.6);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #25d366; opacity: .6; animation: ring 2s infinite; }
@keyframes ring { 0%{ transform: scale(.9); opacity:.7;} 100%{ transform: scale(1.5); opacity:0;} }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1300;
  background: var(--navy); color: #e4e9ff;
  padding: 1.2rem 2rem; transform: translateY(110%); transition: transform .45s ease;
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-inner { max-width: 1200px; margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-bar p { font-size: .92rem; flex: 1; min-width: 220px; }
.cookie-bar p a { color: var(--amber); text-decoration: underline; }
.cookie-btns { display: flex; gap: .7rem; }
.cookie-btns .btn { padding: .6rem 1.2rem; font-size: .9rem; }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; }

/* ---------- Página interior (título) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(99,102,241,.18), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--bg));
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .crumbs { color: var(--indigo); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); }
.page-hero p { color: var(--muted); max-width: 44rem; margin-top: .6rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--indigo); }
.breadcrumb .sep { margin: 0 .4rem; color: #c3c8e2; }

/* ---------- Contenido rico / legal ---------- */
.content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2.5rem 3rem; margin: 3rem auto; }
.content h2 { font-size: 1.6rem; margin: 2rem 0 1rem; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; color: var(--navy); }
.content p { color: #3a4369; margin-bottom: 1rem; }
.content ul, .content ol { margin: 0 0 1.2rem 1.4rem; color: #3a4369; }
.content li { margin-bottom: .4rem; }
.content ul li::marker { color: var(--indigo); }
.content strong { color: var(--navy); }
.legal-box { background: #fbfbff; border-left: 4px solid var(--indigo); padding: 1rem 1.3rem; border-radius: 8px; margin: 1.4rem 0; }
.updated { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Formulario contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; display: block; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 2px solid var(--line);
  border-radius: 12px; font-size: .98rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.info-list { margin-top: 1.2rem; }
.info-list a { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: 12px; }
.info-list a:hover { background: #f1f2ff; }
.info-list svg { width: 22px; height: 22px; color: var(--indigo); }
.info-list b { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.info-list span { font-weight: 600; }

/* ---------- Faq ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: .9rem; box-shadow: var(--shadow-sm); }
.faq summary { font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--indigo); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: .8rem; }
.faq .lbl { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Timeline Actualidad ---------- */
.timeline { border-left: 3px solid #dfe3ff; margin-left: 1rem; padding-left: 1.6rem; }
.timeline .node { position: relative; margin-bottom: 1.8rem; }
.timeline .node::before {
  content: ""; position: absolute; left: -2.05rem; top: .4rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--grad); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--indigo);
}
.timeline .node b { color: var(--indigo); }

/* ---------- Utilidades ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.vid2 { clip-path: url(#vidgrad); background: var(--grad); }
.badge-pill { background: var(--grad-warm); color: #7c2d12; font-weight: 800; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Timeline / tools banners ---------- */
.tool-row { display: flex; flex-direction: column; gap: 1.4rem; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .3s; }
.tool:hover { transform: translateY(-4px); }
.tool h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; margin-bottom: .5rem; }
.tool h3 svg { width: 24px; height: 24px; color: var(--indigo); }
.tool p { color: var(--muted); font-size: .94rem; }

.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1rem; }
.glossary .term { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.glossary .term b { color: var(--indigo); display: block; margin-bottom: .3rem; }
.glossary .term span { color: var(--muted); font-size: .92rem; }