/* ============================================================
   BM Consulting — Componentes
   ============================================================ */

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-default);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header .brand-mark img { height: 56px; width: auto; }
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
  font-size: 14.5px;
  font-weight: 600;
}
.site-nav a { color: var(--text-body); }
.site-nav a:hover, .site-nav a.is-active { color: var(--brand-azure); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--brand-navy); }

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 16px;
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-cta-text { display: none; }
}

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--action-primary);
  color: var(--action-on-primary);
  box-shadow: 0 10px 26px rgba(25,168,230,0.35);
}
.btn-primary:hover { background: var(--action-primary-hover); color: #fff; }
.btn-primary:active { background: var(--action-primary-press); }
.btn-secondary {
  background: #fff;
  color: var(--brand-navy);
  border-color: var(--border-strong);
}
.btn-secondary:hover { color: var(--brand-azure); border-color: var(--brand-azure); }
.btn-on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-on-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ============ HERO (home) ============ */
.hero {
  padding: 76px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azure-50);
  border: 1px solid var(--azure-200);
  color: var(--brand-steel);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--status-live);
  flex: none;
}
.hero-title {
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--brand-navy);
  font-weight: 700;
  margin: 22px 0 0;
}
.hero-title .accent { color: var(--brand-azure); }
.hero-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  max-width: 520px;
  margin: 20px 0 0;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat-number { font-size: var(--text-h4); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-title { font-size: 40px; }
  .hero-visual { order: -1; height: auto !important; padding: 20px 0 32px; }
  /* Las notas flotantes se ajustaron para un contenedor ancho de escritorio;
     en pantallas angostas se ocultan para evitar que se recorten o se encimen. */
  .hero-visual-note { display: none; }
}

/* ============ VISUAL DE HERO (tarjeta ilustrativa) ============ */
.hero-visual { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-visual-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(25,168,230,0.20), rgba(6,51,88,0.02) 70%);
  filter: blur(6px);
}
.hero-visual-card {
  position: relative; width: 340px; max-width: 88vw; background: #fff;
  border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 22px; overflow: hidden;
}
.hero-visual-note {
  position: absolute; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 12px 15px; box-shadow: var(--shadow-lg);
}
.hero-visual-note--dark { background: var(--brand-navy); color: #fff; border: none; }

/* ============ TRUST STRIP ============ */
.trust-strip { border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); background: #fff; }
.trust-strip .container {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; justify-content: center;
}
.trust-strip .label {
  font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--text-faint);
}
.trust-strip .name { font-weight: 700; color: var(--neutral-600); }
.trust-strip .dot { color: var(--border-strong); }

/* ============ SECCIONES ============ */
.section { padding: var(--space-20) 0 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head .eyebrow { display: block; }
.section-title {
  font-size: var(--text-h2); line-height: 1.1; letter-spacing: var(--tracking-tight);
  color: var(--brand-navy); font-weight: 700; margin: 12px 0 0;
}
.section-lead { font-size: var(--text-lg); color: var(--text-muted); margin: 16px 0 0; }
.back-to-top {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  color: var(--brand-steel); background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 9px 18px;
}
.back-to-top-row { display: flex; justify-content: flex-end; margin-top: 22px; }

@media (max-width: 640px) {
  .section { padding: 56px 0 12px; }
  .section-title { font-size: 28px; }
}

/* ============ PILLS DE CATEGORÍA ============ */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 40px; }
.pill {
  font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--border-strong); color: var(--brand-navy);
}
.pill.is-active { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }

/* ============ TARJETAS ============ */
.card {
  background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-md);
}
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--azure-50);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.card-icon svg { width: 22px; height: 22px; color: var(--brand-blue); }
.card-title { font-size: var(--text-h6); font-weight: 700; color: var(--brand-navy); margin: 16px 0 0; }
.card-text { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-muted); margin: 8px 0 0; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-pos { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-pos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-pos { grid-template-columns: 1fr; }
}

/* Dos columnas de contenido (IA banner, teaser de Nosotros) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}

/* Tarjetas insignia (spotlight) de dos columnas */
.spotlight-grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.spotlight-grid--reverse { grid-template-columns: 0.8fr 1.2fr; }
@media (max-width: 900px) {
  .spotlight-grid, .spotlight-grid--reverse { grid-template-columns: 1fr; }
  .spotlight-grid--reverse > *:first-child { order: 2; }
}

/* ============ TARJETA DE PRODUCTO ============ */
.product-card {
  background: #fff; border: 1px solid var(--border-default); border-top: 3px solid var(--accent-2);
  border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.product-card .card-title { margin-top: 4px; }
.product-card .card-text { flex: 1; }
.product-card .card-cta { font-size: 13.5px; font-weight: 700; color: var(--brand-steel); margin-top: 6px; }
.product-card:hover .card-cta { color: var(--brand-azure); }
.product-card--accent-1 { border-top-color: var(--accent-1); }
.product-card--accent-2 { border-top-color: var(--accent-2); }
.product-card--accent-3 { border-top-color: var(--accent-3); }
.product-card--accent-4 { border-top-color: var(--accent-4); }

/* ============ SPOTLIGHT (producto insignia) ============ */
.spotlight {
  background: var(--brand-navy); border-radius: var(--radius-2xl); padding: 44px; color: #fff;
  position: relative; overflow: hidden; margin-bottom: 18px;
}
.spotlight-glow {
  position: absolute; border-radius: 50%; background: rgba(25,168,230,0.18); filter: blur(30px);
}
.spotlight .eyebrow { color: var(--azure-200); }
.spotlight h3, .spotlight h4 { color: #fff; font-size: var(--text-h4); margin: 10px 0 0; }
.spotlight p { color: rgba(255,255,255,0.82); font-size: var(--text-base); line-height: var(--leading-relaxed); margin: 12px 0 0; max-width: 640px; }

/* ============ ESTADÍSTICAS ============ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { background: var(--brand-mist); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.stat-tile--card { background: #fff; border: 1px solid var(--border-default); }
.stat-number { font-family: var(--font-mono); font-size: var(--text-stat); font-weight: 700; color: var(--brand-navy); }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ BANNER OSCURO / CTA ============ */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-steel));
  border-radius: var(--radius-2xl); padding: 40px 48px; position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-banner-glow { position: absolute; top: -40px; right: 120px; width: 200px; height: 200px; border-radius: 50%; background: rgba(25,168,230,0.2); filter: blur(20px); }
.cta-banner h2 { color: #fff; font-size: var(--text-h3); }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: var(--text-base); margin-top: 10px; max-width: 520px; }
.cta-banner-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cta-banner { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .cta-banner-actions { width: 100%; }
  .cta-banner-actions .btn { flex: 1; }
}

/* ============ PÁGINA DE PRODUCTO / INTERIOR ============ */
.page-hero { padding: 52px 0 40px; }
.page-hero .heading-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.page-hero .heading-row img { height: 84px; width: auto; }
.page-hero h1 { font-size: var(--text-h1); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); margin-top: 8px; }
.page-hero .hero-lead { max-width: 660px; }
@media (max-width: 640px) {
  .page-hero h1 { font-size: 32px; }
  .page-hero .heading-row img { height: 56px; }
}

.diff-panel {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-steel));
  border-radius: var(--radius-xl); padding: 32px; color: #fff;
}
.diff-panel .eyebrow { color: var(--azure-200); }
.diff-panel h2 { color: #fff; font-size: var(--text-h4); margin-top: 8px; }
.diff-panel p { color: rgba(255,255,255,0.86); font-size: var(--text-base); line-height: var(--leading-relaxed); margin-top: 10px; max-width: 720px; }

.related-products { border-top: 1px solid var(--border-default); padding-top: 32px; margin-top: 8px; }
.related-products .items { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.related-products a {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-pill); padding: 10px 18px; font-weight: 700; font-size: 13.5px; color: var(--brand-navy);
}
.related-products a:hover { border-color: var(--brand-azure); color: var(--brand-azure); }

/* ============ PROCESO NUMERADO ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step .step-number { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--brand-azure); }
.step h3 { font-size: var(--text-h6); margin-top: 10px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: var(--leading-relaxed); margin-top: 8px; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; top: 50%; right: -22px; transform: translateY(-50%);
  color: var(--border-strong); font-size: 20px; font-weight: 700;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: "↓"; top: auto; bottom: -22px; right: 50%; transform: translateX(50%); }
}

/* ============ NOSOTROS / EQUIPO ============ */
.about-card {
  background: #fff; border: 1px solid var(--border-default); border-top: 3px solid var(--brand-azure);
  border-radius: var(--radius-lg); padding: 28px;
}
.about-card h2 { font-size: var(--text-h5); }
.about-card p { font-size: 14.5px; line-height: var(--leading-relaxed); color: var(--text-muted); margin-top: 12px; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 20px; }
.team-photo {
  width: 84px; height: 84px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--brand-mist); border: 1px solid var(--border-default);
}
.team-photo-fallback {
  width: 84px; height: 84px; border-radius: 50%; flex: none; background: var(--brand-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 22px;
}
.team-card h3 { font-size: var(--text-h6); }
.team-card .role { font-size: 12.5px; font-weight: 700; color: var(--brand-azure); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.team-card p { font-size: 13.5px; line-height: var(--leading-relaxed); color: var(--text-muted); margin-top: 10px; }
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--surface-chrome); color: var(--text-on-chrome); }
.footer-top { padding: 56px 0 32px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 64px; width: auto; border-radius: var(--radius-sm); background: #fff; padding: 8px 14px; }
.footer-brand p { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: rgba(255,255,255,0.6); margin: 16px 0 0; max-width: 280px; }
.footer-col .label { font-family: var(--font-mono); font-size: var(--text-2xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: rgba(255,255,255,0.45); }
.footer-col .links { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: var(--text-sm); }
.footer-col .links a { color: rgba(255,255,255,0.8); }
.footer-col .links a:hover { color: #fff; }
.footer-col .links a.is-strong { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { padding: 18px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; padding: 40px 0 24px; gap: 28px; }
}

/* ============ BOTÓN FLOTANTE DE WHATSAPP ============ */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 60; width: 58px; height: 58px;
  border-radius: 50%; background: var(--whatsapp-green); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 640px) {
  .whatsapp-fab { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ============ FORMULARIOS (Contacto) ============ */
.form-row { margin-bottom: 20px; }
.form-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--brand-navy); margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text-body);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.form-checkbox-row input { margin-top: 3px; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.form-alert { border-radius: var(--radius-md); padding: 16px 18px; font-size: 14.5px; margin-bottom: 24px; }
.form-alert--success { background: var(--azure-50); border: 1px solid var(--azure-200); color: var(--brand-steel); }
.form-alert--error { background: #FBE4E5; border: 1px solid #f3b9bb; color: #8c2327; }
/* Honeypot: oculto por CSS (no type=hidden) para atrapar bots sin depender solo del atributo */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ============ PÁGINA 404 ============ */
.error-page { padding: 100px 0; text-align: center; }
.error-page .code { font-family: var(--font-mono); font-size: 80px; font-weight: 700; color: var(--azure-200); }
.error-page h1 { font-size: var(--text-h2); margin-top: 8px; }
.error-page p { color: var(--text-muted); margin-top: 12px; }
