/* Banesco Educación Financiera v2 — premium dark/light */
:root {
  --ink: #0C1222;
  --ink-soft: #1E293B;
  --sky: #38BDF8;
  --sky-dark: #0EA5E9;
  --rose: #E11D48;
  --rose-soft: #FB7185;
  --paper: #FFFFFF;
  --mist: #F1F5F9;
  --line: #E2E8F0;
  --muted: #64748B;
  --accent: var(--sky);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(12,18,34,.08);
  --shadow-lg: 0 30px 80px rgba(12,18,34,.14);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --space-section: clamp(72px, 10vw, 110px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(1180px, 90vw); margin-inline: auto; }

/* ── Utilidades ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sky-dark);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--rose); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-lead { color: var(--muted); max-width: 540px; font-size: 1.05rem; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  text-decoration: none; border: none; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sky { background: var(--sky); color: var(--ink); }
.btn-sky:hover { background: var(--sky-dark); color: var(--paper); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--sky); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Trust bar ── */
.trust-bar {
  background: var(--ink); color: rgba(255,255,255,.75);
  font-size: .73rem; text-align: center; padding: 9px 20px; line-height: 1.5;
}
.trust-bar a { color: var(--sky); text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 20px;
}
.logo-link { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.logo-link svg { height: 48px; width: auto; min-width: 220px; display: block; }
.logo-link img { height: 48px; width: auto; min-width: 220px; object-fit: contain; display: block; }
.nav-toggle {
  display: none; background: var(--mist); border: none; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; font-size: .82rem; cursor: pointer;
}
.main-nav ul { display: flex; list-style: none; gap: 32px; align-items: center; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--muted);
  transition: color .2s;
}
.main-nav a:hover { color: var(--ink); }
.header-cta { margin-left: 8px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 130px) 0 clamp(60px, 8vw, 90px);
}
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(56,189,248,.25), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(225,29,72,.18), transparent 50%),
    radial-gradient(ellipse 40% 40% at 70% 10%, rgba(56,189,248,.12), transparent 50%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05; letter-spacing: -.03em;
  margin: 18px 0 22px;
}
.hero-copy h1 span { color: var(--sky); }
.hero-copy p { color: rgba(255,255,255,.72); font-size: 1.08rem; max-width: 500px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat strong {
  display: block; font-family: var(--font-display); font-size: 1.75rem;
  color: var(--sky); line-height: 1;
}
.hero-stat span { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }

.hero-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-visual-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: var(--radius-sm); padding: 18px 20px;
  color: var(--ink);
}
.hero-visual-badge strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.hero-visual-badge span { font-size: .82rem; color: var(--muted); }

/* ── Disclaimer ── */
.ads-disclaimer {
  background: var(--mist); border-left: 4px solid var(--rose);
  padding: 18px 22px; margin: 0; font-size: .84rem; color: var(--ink-soft);
}
.ads-disclaimer a { color: var(--rose); text-decoration: underline; }
.ads-disclaimer p { margin: 0; }

/* ── Pilares ── */
.pillars {
  padding: var(--space-section) 0;
  background: var(--paper);
}
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--mist); border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--line); line-height: 1; margin-bottom: 14px;
}
.pillar h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pillar p { font-size: .86rem; color: var(--muted); line-height: 1.55; }

/* ── Cursos destacados ── */
.featured {
  padding: var(--space-section) 0;
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}
.featured-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s;
}
.featured-card:hover { transform: translateY(-6px); }
.featured-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.featured-body { padding: 22px; }
.tag {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 6px; margin-bottom: 10px;
}
.tag-basic { background: #DCFCE7; color: #166534; }
.tag-mid { background: #DBEAFE; color: #1E40AF; }
.tag-pro { background: #FFE4E6; color: #BE123C; }
.featured-body h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.featured-price { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.featured-body p { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }

/* ── Catálogo grid ── */
.courses { padding: var(--space-section) 0; }
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
}
.course-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.course-card:hover { border-color: var(--sky); box-shadow: var(--shadow); }
.course-card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.course-price, .product-price {
  font-size: 1.1rem; font-weight: 800; color: var(--rose); margin-bottom: 8px;
}
.course-body p { font-size: .84rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.course-body .btn { align-self: flex-start; padding: 10px 18px; font-size: .82rem; }

/* ── Tabla precios ── */
.pricing { padding: var(--space-section) 0; background: var(--ink); color: var(--paper); }
.pricing .section-title { color: var(--paper); }
.pricing .section-lead { color: rgba(255,255,255,.6); }
.pricing-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.1); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.pricing-table th {
  background: rgba(255,255,255,.06); padding: 14px 18px; text-align: left;
  font-weight: 700; color: var(--sky);
}
.pricing-table td { padding: 13px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.pricing-table tr:hover td { background: rgba(255,255,255,.03); }
.price-cell { font-weight: 800; color: var(--sky); white-space: nowrap; }

/* ── Proceso ── */
.process {
  padding: var(--space-section) 0; background: var(--mist);
}
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
}
.process-step {
  padding: 32px 24px; border-right: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-right: none; }
.process-step::before {
  content: attr(data-step); font-family: var(--font-display);
  font-size: 3rem; font-weight: 800; color: var(--mist);
  line-height: 1; margin-bottom: 12px; display: block;
}
.process-step h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: .82rem; color: var(--muted); }

/* ── About + Contact ── */
.about-contact { padding: var(--space-section) 0; }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-panel {
  padding: 36px; background: var(--mist); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about-list { list-style: none; margin-top: 20px; }
.about-list li {
  padding: 10px 0; padding-left: 24px; position: relative;
  font-size: .92rem; color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--sky);
}

.contact-form-wrap {
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: 36px;
}
.contact-form-wrap h3 {
  font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 6px;
}
.contact-form-wrap > p { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; opacity: .8; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06);
  color: var(--paper); font-family: var(--font-body); font-size: .9rem;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .78rem; color: rgba(255,255,255,.7); margin-bottom: 16px;
}
.form-consent input { width: auto; margin-top: 3px; }
.form-consent a { color: var(--sky); }
.form-error { color: var(--rose-soft); font-size: .78rem; display: none; margin-bottom: 10px; }
.form-error.visible { display: block; }

.contact-details { margin-top: 28px; display: grid; gap: 10px; }
.contact-item { font-size: .9rem; }
.contact-item strong { color: var(--sky); margin-right: 6px; }
.contact-link { color: var(--sky) !important; text-decoration: underline; }

.map-wrap { margin-top: 48px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ── Catálogo page ── */
.page-hero {
  background: var(--ink); color: var(--paper);
  padding: 64px 0; text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,.65); margin-top: 10px; }
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center; margin-bottom: 32px;
}
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: .2s;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bs-toggle { font-size: .86rem; color: var(--muted); }
.bs-toggle button {
  background: none; border: 1.5px solid var(--sky); color: var(--sky-dark);
  padding: 6px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; margin-left: 8px;
}
.catalog-cta { text-align: center; margin-top: 40px; }

/* ── Legal ── */
.legal-page { padding: 56px 0 80px; }
.legal-page h1 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 8px; }
.legal-meta { color: var(--muted); font-size: .86rem; margin-bottom: 32px; }
.legal-page h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.legal-page ul, .legal-page ol { padding-left: 22px; margin-bottom: 14px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .84rem; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal-page th { background: var(--mist); }

/* ── Footer ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 0 24px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-legal a { color: var(--sky); text-decoration: none; font-size: .84rem; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-brand img { height: 36px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: .86rem; opacity: .65; max-width: 300px; }
.footer-identity { font-size: .8rem; opacity: .55; margin-top: 16px; line-height: 1.6; }
.footer-col h4 {
  color: var(--sky); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .86rem; }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .76rem; opacity: .5;
}

/* ── Cookies ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--ink); color: var(--paper); padding: 18px 20px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.25);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1180px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cookie-inner p { font-size: .86rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: var(--sky); }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns .btn-ghost { padding: 10px 18px; font-size: .82rem; }

.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: var(--ink); padding: 10px 14px; gap: 8px;
}
.sticky-cta a {
  flex: 1; text-align: center; padding: 12px; border-radius: 10px;
  font-weight: 700; font-size: .84rem; text-decoration: none;
}
.sticky-cta .cta-phone { background: var(--sky); color: var(--ink); }
.sticky-cta .cta-wa { background: var(--rose); color: var(--paper); }
body.cookie-visible .sticky-cta { bottom: 78px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: none; }
  .ac-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px; display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
  .header-cta { margin-left: 0; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
