@import url("https://fonts.googleapis.com/css2?family=Petrona:opsz,wght@8..60,500;8..60,600;8..60,700&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --graphite: #1a1f2e;
  --graphite-mid: #252b3d;
  --copper: #c87941;
  --copper-light: #e8b48a;
  --mist: #eef2f7;
  --teal: #0d9488;
  --ink: #0f1419;
  --muted: #64748b;
  --line: #dde3ec;
  --white: #ffffff;
  --font-display: "Petrona", Georgia, serif;
  --font-ui: "Work Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(26, 31, 46, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); background: var(--mist); color: var(--ink); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--copper); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--graphite); }
.skip-link { position: absolute; left: -9999px; z-index: 9999; background: var(--copper); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }
.bef-wrap { width: min(1160px, 92vw); margin: 0 auto; }

/* Rail lateral desktop */
@media (min-width: 1100px) {
  body::before {
    content: ""; position: fixed; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--copper), var(--teal));
    z-index: 50;
  }
}

.bef-topbar { background: var(--graphite); color: #cbd5e1; font-size: 0.76rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.bef-topbar-inner { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; padding: 8px 0; width: min(1160px, 92vw); margin: 0 auto; }
.bef-topbar a { color: var(--copper-light); }

.bef-header {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100;
  transition: box-shadow 0.25s;
}
.bef-header.scrolled { box-shadow: var(--shadow); }
.bef-header-inner { display: flex; align-items: center; gap: 24px; width: min(1160px, 92vw); margin: 0 auto; padding: 16px 0; }
.bef-logo img { height: 42px; }
.bef-nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.9rem; font-weight: 500; }
.bef-nav a { color: var(--muted); text-decoration: none; }
.bef-nav a:hover, .bef-nav a.active { color: var(--graphite); }
.bef-nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--white); padding: 8px 14px; border-radius: 8px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
  border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-copper { background: var(--copper); color: #fff; box-shadow: 0 6px 20px rgba(200, 121, 65, 0.35); }
.btn-copper:hover { background: #b56a38; color: #fff; }
.btn-graphite { background: var(--graphite); color: #fff; }
.btn-graphite:hover { background: var(--graphite-mid); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--graphite); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn-block { width: 100%; }
.header-cta { white-space: nowrap; }

/* Hero */
.bef-hero {
  background: var(--graphite);
  color: #e2e8f0;
  padding: clamp(56px, 9vw, 100px) 0 clamp(64px, 10vw, 110px);
  position: relative; overflow: hidden;
}
.bef-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(200, 121, 65, 0.08) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 48px);
  pointer-events: none;
}
.bef-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  width: min(1160px, 92vw); margin: 0 auto; position: relative;
}
.bef-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper-light); margin-bottom: 18px;
}
.bef-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--copper); }
.bef-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.35rem); color: #fff; margin-bottom: 20px; letter-spacing: -0.02em; }
.bef-hero-lead { font-size: 1.06rem; color: #94a3b8; max-width: 52ch; margin-bottom: 28px; }
.bef-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.bef-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bef-hero-tags span {
  font-size: 0.74rem; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #cbd5e1;
}

/* KPI panel */
.bef-kpi-panel {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px; backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.bef-kpi-panel h3 { color: var(--copper-light); font-size: 0.85rem; margin-bottom: 20px; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.bef-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bef-kpi-item {
  background: rgba(15, 20, 25, 0.5); border-radius: 10px; padding: 16px;
  border-left: 3px solid var(--copper);
}
.bef-kpi-item.teal { border-left-color: var(--teal); }
.bef-kpi-item strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 4px; }
.bef-kpi-item span { font-size: 0.78rem; color: #94a3b8; }
.bef-hero-photo {
  margin-top: 20px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Trust band */
.bef-trust {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 20px 0; margin-top: -28px; position: relative; z-index: 2;
}
.bef-trust-inner {
  width: min(1160px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.bef-trust-item { text-align: center; }
.bef-trust-item strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--copper); }
.bef-trust-item span { font-size: 0.8rem; color: var(--muted); }

/* Sections */
.bef-section { padding: clamp(64px, 9vw, 96px) 0; }
.bef-section.alt { background: var(--white); }
.bef-head { margin-bottom: 40px; max-width: 580px; }
.bef-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); margin-bottom: 12px; }
.bef-head p { color: var(--muted); }

/* Program rows */
.bef-rows { display: flex; flex-direction: column; gap: 12px; }
.bef-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; border-left: 4px solid var(--copper);
  transition: box-shadow 0.2s, transform 0.2s;
}
.bef-row:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.bef-row-sku { font-family: var(--font-display); font-size: 1.1rem; color: var(--copper); font-weight: 700; }
.bef-row h3 { font-size: 1.05rem; margin-bottom: 4px; }
.bef-row p { font-size: 0.88rem; color: var(--muted); }
.bef-row-link { font-size: 0.85rem; font-weight: 600; color: var(--teal); white-space: nowrap; }

/* Timeline */
.bef-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.bef-timeline::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: var(--line);
}
.bef-step { text-align: center; padding: 0 12px; position: relative; }
.bef-step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--graphite); color: var(--copper-light);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  border: 3px solid var(--white); box-shadow: var(--shadow); position: relative; z-index: 1;
}
.bef-step h3 { font-size: 0.95rem; margin-bottom: 6px; }
.bef-step p { font-size: 0.82rem; color: var(--muted); }

/* Price table */
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--graphite); color: #fff; font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { font-weight: 700; color: var(--copper); white-space: nowrap; }

/* FAQ */
.bef-faq { display: grid; gap: 12px; }
.bef-faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
}
.bef-faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.bef-faq-item p { font-size: 0.88rem; color: var(--muted); }

/* Contact */
.bef-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.bef-contact-list { list-style: none; margin: 24px 0; }
.bef-contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.bef-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 20px; }
.bef-map iframe { width: 100%; height: 280px; border: 0; }
.bef-contact-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* CTA band */
.bef-cta-band {
  background: linear-gradient(120deg, var(--graphite) 0%, var(--graphite-mid) 60%, #1e3a4a 100%);
  padding: 64px 0; text-align: center; color: #fff;
}
.bef-cta-band h2 { color: #fff; margin-bottom: 14px; }
.bef-cta-band p { color: #94a3b8; max-width: 520px; margin: 0 auto 28px; }

/* Catalog */
.bef-cat-hero {
  padding: 72px 0 56px; background: var(--graphite); color: #fff;
}
.bef-cat-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.bef-cat-hero p { color: #94a3b8; margin-top: 12px; }
.bef-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.bef-chip {
  padding: 9px 18px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
}
.bef-chip.active, .bef-chip:hover { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.bef-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.bef-cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.bef-cat-card:hover { box-shadow: var(--shadow); }
.bef-cat-img { aspect-ratio: 16/10; overflow: hidden; }
.bef-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.bef-cat-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.bef-sku { font-size: 0.72rem; font-weight: 700; color: var(--copper); letter-spacing: 0.08em; }
.feat-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.feat-tags li { font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--graphite); }
.modalidad-tag { font-size: 0.75rem; color: var(--muted); }
.precio-line strong { display: block; color: var(--graphite); font-size: 1rem; }
.precio-line span { font-size: 0.78rem; color: var(--muted); }
.precio-note { font-size: 0.72rem; color: var(--muted); }

/* Page hero inner */
.bef-page-hero { padding: 56px 0 40px; background: var(--graphite); color: #fff; }
.bef-page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.bef-page-hero p { color: #94a3b8; margin-top: 12px; max-width: 600px; }

/* Legal */
.legal-page { padding: 48px 0 72px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .fecha { color: var(--muted); margin-bottom: 24px; font-size: 0.88rem; }
.legal-page h2 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--copper); }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 10px; font-size: 0.92rem; }
.legal-page ul { padding-left: 20px; margin-bottom: 16px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.84rem; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal-page th { background: var(--mist); color: var(--graphite); }

.ads-disclaimer {
  border-left: 4px solid var(--copper); padding: 18px 22px; margin: 36px auto;
  font-size: 0.86rem; background: #fff8f0; color: var(--muted);
  max-width: min(1160px, 92vw); border-radius: 0 var(--radius) var(--radius) 0;
}
.ads-disclaimer strong { color: var(--graphite); }

.bef-legal-strip { background: var(--graphite-mid); color: #94a3b8; text-align: center; padding: 14px 0; font-size: 0.82rem; }
.bef-footer { background: var(--graphite); color: #cbd5e1; padding: 52px 0 28px; }
.bef-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; margin-bottom: 32px; }
.bef-footer-brand p { font-size: 0.86rem; color: #94a3b8; margin-top: 14px; max-width: 300px; }
.bef-footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--copper-light); margin-bottom: 14px; }
.bef-footer-col a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 8px; font-size: 0.86rem; }
.bef-footer-col a:hover { color: #fff; }
.bef-footer-legal { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }
.bef-footer-legal a { color: #94a3b8; text-decoration: none; }
.bef-footer-copy { font-size: 0.78rem; color: #64748b; margin-top: 14px; }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--white); border-top: 3px solid var(--copper);
  padding: 16px; transform: translateY(110%); transition: transform 0.35s;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.12);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { width: min(1160px, 92vw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-inner p { font-size: 0.84rem; color: var(--muted); flex: 1; min-width: 240px; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s, transform 0.55s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .bef-hero-grid, .bef-contact, .bef-footer-grid, .bef-timeline { grid-template-columns: 1fr; }
  .bef-trust-inner { grid-template-columns: repeat(2, 1fr); }
  .bef-row { grid-template-columns: 56px 1fr; }
  .bef-row-link { grid-column: 2; }
  .bef-timeline::before { display: none; }
  .bef-kpi-grid { grid-template-columns: 1fr; }
  .bef-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--white); padding: 20px; border-bottom: 1px solid var(--line);
  }
  .bef-nav.open { display: flex; }
  .bef-header-inner { position: relative; flex-wrap: wrap; }
  .bef-nav-toggle { display: block; }
  .header-cta { display: none; }
}
@media (max-width: 520px) {
  .bef-trust-inner { grid-template-columns: 1fr; }
}
