/* ===== BienBC · Estilos principales =====
   Paleta: azul marino profundo, dorado suave, neutros claros.
*/

:root {
  --navy-900: #0d2138;
  --navy-700: #14324f;
  --navy-500: #1f4a72;
  --blue-400: #3b7ba8;
  --blue-200: #cfe3f2;
  --gold-400: #d7ad62;
  --gold-500: #c99c4c;
  --gold-soft: #f4e7ce;
  --ink: #22303c;
  --muted: #64717c;
  --bg: #f6f9fb;
  --bg-2: #eef3f8;
  --card: #ffffff;
  --line: #e2e9f0;
  --whatsapp: #25d366;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(16, 38, 60, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 38, 60, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
body.lock { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { color: var(--navy-900); line-height: 1.2; font-weight: 800; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Promo bar (barrita en movimiento, siempre visible) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(90deg, #0b1f38, #14486e);
  color: #eef5fb;
  overflow: hidden;
  height: 42px;
  display: flex; align-items: center;
}
.topbar-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  align-items: center;
  animation: marquee 34s linear infinite;
  font-size: 0.86rem;
  letter-spacing: 0.4px;
  padding: 0 24px;
}
.topbar-track span b { color: var(--gold-400); font-weight: 700; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== Navegación principal ===== */
.site-header {
  position: sticky; top: 42px; z-index: 55;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,38,60,.08); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand-name { font-size: 1.5rem; font-weight: 900; color: var(--navy-900); letter-spacing: .5px; }
.brand-name span { color: var(--gold-500); }
.brand-tag { font-size: .68rem; color: var(--muted,#7b8794); font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--navy-700);
  border-radius: 10px; transition: all .25s ease;
}
.nav-links a:hover { background: var(--blue-200); color: var(--navy-900); }
.nav-links a.active { background: var(--navy-900); color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn-whatsapp-nav {
  background: var(--whatsapp); color: #fff; font-weight: 700; border: none;
  padding: 10px 18px; border-radius: 30px; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(37,211,102,.3);
}
.btn-whatsapp-nav:hover { transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: flex-start; gap: 6px;
    background: #fff; padding: 90px 24px 30px; transition: transform .35s ease; transform: translateX(110%);
    z-index: 54;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.15rem; padding: 14px; width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: min(78vh, 780px);
  min-height: 540px;
  background: #0b1f38;
  overflow: hidden;
  display: grid; align-items: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,27,48,.88) 0%, rgba(12,40,66,.72) 46%, rgba(13,45,72,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 7px 16px; border-radius: 30px;
  font-size: .82rem; letter-spacing: 1px; margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); max-width: 760px; margin-bottom: 18px;
}
.hero h1 span { color: var(--gold-400); }
.hero p { color: #dbe7f2; font-size: 1.12rem; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; border-radius: 30px;
  padding: 14px 26px; font-size: 1rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #fff; box-shadow: 0 12px 28px rgba(201,154,76,.4); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn:hover { transform: translateY(-3px); }

.hero-stats {
  position: relative; z-index: 2; margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 720px;
}
.stat-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px; padding: 16px; backdrop-filter: blur(6px); color: #fff;
}
.stat-card b { font-size: 1.6rem; color: var(--gold-400); display: block; }
.stat-card span { font-size: .82rem; color: #dbe7f2; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .kicker {
  color: var(--gold-500); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--muted,#64748c); font-size: 1.05rem; }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 16px;
  text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.cat-card .ic { font-size: 2.2rem; margin-bottom: 10px; }
.cat-card b { display: block; color: var(--navy-900); font-size: 1rem; margin-bottom: 2px; }
.cat-card span { font-size: .8rem; color: var(--muted); }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius,18px);
  overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16/10; background: #edf2f6; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.tag {
  position: absolute; top: 12px; left: 12px; background: var(--gold-500); color: #fff;
  font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 20px; letter-spacing: .5px;
  z-index: 2;
}
.tag.cat { background: var(--navy-700); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.05rem; }
.card-body .cat-label { font-size: .78rem; color: var(--muted); }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px;
  padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-weight: 900; font-size: 1.28rem; color: var(--navy-900); }
.price span { font-size: .8rem; font-weight: 600; color: var(--gold-500); }
.specs { display: flex; gap: 12px; font-size: .8rem; color: var(--muted); }
.specs i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
.btn-card {
  margin-top: auto; background: var(--navy-900); color: #fff; border: none; border-radius: 10px;
  padding: 11px; font-weight: 700; font-size: .92rem; transition: background .25s ease, transform .25s ease;
}
.btn-card:hover { background: var(--blue-700, #1f4a72); }
.btn-ver {
  margin-top: auto; display: inline-block; text-align: center; background: var(--gold-500); color: #fff;
  border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: .88rem;
  transition: background .25s ease, transform .25s ease;
}
.btn-ver:hover { background: var(--gold-400); transform: translateY(-2px); }

/* ---------- Sección Actualidad / posts ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.post {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-img { height: 170px; object-fit: cover; width: 100%; }
.post-body { padding: 20px; }
.post-date { font-size: .78rem; color: var(--gold-500); font-weight: 800; letter-spacing: .5px; }
.post-body h3 { font-size: 1.08rem; margin: 6px 0 8px; }
.post-body p { font-size: .92rem; color: var(--muted); }

/* ---------- Tabs (herramientas/glosario en actualidad) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.tab-btn {
  border: 1px solid var(--line); background: #fff; color: var(--navy-700); font-weight: 700;
  padding: 10px 20px; border-radius: 30px; transition: all .25s ease;
}
.tab-btn.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none;} }

.list-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.list-card h4 { font-size: 1rem; margin-bottom: 6px; color: var(--navy-800); }
.list-card p { font-size: .92rem; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 22px; padding: 48px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0c2038, #143c62);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 10px; }
.cta-banner p { color: #cfe0ee; margin-bottom: 24px; max-width: 560px; }

/* ---------- Contacto rápido ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  display: flex; gap: 14px; align-items: flex-start; transition: transform .3s ease, box-shadow .3s ease;
}
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-item .ci-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-200); color: var(--navy-700); font-size: 1.2rem;
}
.contact-item b { color: var(--navy-900); display: block; }
.contact-item p, .contact-item a { font-size: .92rem; color: var(--muted); }

/* ---------- Sociales ---------- */
.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  transition: transform .3s ease, background .3s ease;
}
.social:hover { transform: translateY(-3px); }
.social.in { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social.fb { background: #1877f2; }
.social.tw { background: #0f1419; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3d3e2; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer-col b { color: #fff; font-size: 1.05rem; display: block; margin-bottom: 16px; }
.footer-col a { color: #c3d3e2; display: block; padding: 5px 0; font-size: .95rem; transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover { color: var(--gold-400); padding-left: 4px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 42px; height: 42px; border-radius: 10px; }
.footer-brand b { color: #fff; font-size: 1.3rem; }
.footer-note { font-size: .9rem; max-width: 320px; margin-bottom: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: #93a6b8;
}
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform .3s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 34px; height: 34px; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); animation: pulse 1.8s ease-out infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Barra de cookies ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 18px; z-index: 80;
  background: #0f2035; color: #e6eef6; border-radius: 16px; padding: 22px 24px;
  box-shadow: var(--shadow-lg); display: none; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}
.cookie-bar.show { display: flex; animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: none;} }
.cookie-bar p { flex: 1 1 300px; font-size: .92rem; }
.cookie-bar p a { color: var(--gold-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { border: none; border-radius: 8px; padding: 10px 16px; font-weight: 700; font-size: .9rem; }
.cookie-btn.acc { background: var(--gold-500); color: #fff; }
.cookie-btn.dec { background: #2a3c52; color: #dbe4ed; }

/* ---------- Breadcrumbs / head interior ---------- */
.page-head {
  background: linear-gradient(120deg, #0c2038, #1a4a70); color: #fff; padding: 64px 0 52px; text-align: center;
}
.page-head h1 { color: #fff; font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 10px; }
.page-head p { color: #c6d8ea; max-width: 640px; margin: 0 auto; }
.breadcrumb { color: var(--gold-400); font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.breadcrumb a { color: #9db6cc; }
.breadcrumb a:hover { color: #fff; }

.content { padding: 64px 0; }
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.prose h3 { margin: 30px 0 10px; font-size: 1.2rem; }
.prose p { margin-bottom: 14px; font-size: 1.02rem; color: #40505c; }
.prose ul { margin: 0 0 18px 22px; }
.prose ul li { list-style: disc; margin-bottom: 8px; color: #40505c; }
.prose a { color: var(--blue-700); text-decoration: underline; }
.prose .highlight { background: var(--gold-100); border-left: 4px solid var(--gold-500); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 14px 0; }
.info-box-title { font-weight: 800; color: var(--navy-900); margin-bottom: 4px; }

/* ---------- Formulario contacto ---------- */
.form-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow);
}
form.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy-800); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .98rem;
  font-family: inherit; background: #f9fbfc; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(215,178,98,.18); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.btn-submit { border: none; width: 100%; }
.map-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.success {
  display: none; background: #eafaf1; border: 1px solid #b7e5cd; color: #1f7a4d;
  padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-top: 16px;
}
.success.show { display: block; }

/* ---------- Equipo / valores ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .fic { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .93rem; }

.person { display: flex; gap: 20px; align-items: center; background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; margin:14px 0; }
.person .av { width: 64px; height:64px; border-radius:50%; background:var(--navy-700); color:#fff; display:grid; place-items:center; font-weight:800; font-size:1.3rem; flex:none; }
.person b { color: var(--navy-900); display:block; }
.person span { color: var(--gold-500); font-weight:700; font-size:.85rem; }

/* ---------- Herramientas (actualidad) ---------- */
.tool-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:18px; }
.gloss-list { display:grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap:16px; }
.pill { display:inline-block; background:var(--blue-200); color:var(--navy-700); border-radius:20px; padding:4px 12px; font-size:.78rem; font-weight:700; margin:4px 4px 0 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 20px; }
.timeline::before { content:""; position:absolute; left:-6px; top:0; bottom:0; width:3px; background: var(--line); }
.t-item { position: relative; padding: 0 0 26px 30px; }
.t-item::before { content:""; position:absolute; left:-13px; top:6px; width:17px; height:17px; border-radius:50%; background:#fff; border:4px solid var(--gold-400); }
.t-item b { display:block; color:var(--navy-900); font-size:1.05rem; }
.t-item .t-date { color:var(--gold-500); font-weight:800; font-size:.8rem; letter-spacing:.5px; }
.t-item p { color:var(--muted); font-size:.95rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; left: 22px; bottom: 22px; z-index: 65; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy-900); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; border: none; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-layout { grid-template-columns: 1fr; }
  .cta-banner { padding: 34px 24px; }
  .section { padding: 56px 0; }
  .topbar-track { font-size: .78rem; gap: 40px; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.25rem; }
  .bottom-2 { display: none; }
}

/* utilidades */
.mt-0{margin-top:0}.center{text-align:center}
.muted{color:var(--muted)}
.lead{font-size:1.08rem;color:var(--muted);max-width:680px}
.hr{border:none;border-top:1px solid var(--line);margin:16px 0}