:root {
  --azul: #185FA5;
  --azul-oscuro: #0f4174;
  --azul-claro: #eaf2fb;
  --naranja: #D85A30;
  --texto: #1f2a37;
  --texto-suave: #5b6673;
  --fondo: #fbfcfe;
  --superficie: #ffffff;
  --borde: #e4e9f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  letter-spacing: -0.3px;
}

/* Reveal suave al hacer scroll — le da un toque más pulido sin exagerar */
.b-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.b-reveal.b-visible {
  opacity: 1;
  transform: translateY(0);
}

.b-eyebrow {
  display: inline-block;
  color: var(--naranja);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

a { text-decoration: none; color: inherit; }

/* ---------- HEADER ---------- */
.b-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
}

.b-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.b-logo { height: 32px; }

.b-nav {
  display: flex;
  gap: 1.75rem;
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.b-nav a { color: var(--texto-suave); transition: color 0.15s; }
.b-nav a:hover { color: var(--azul); }

/* ---------- BOTONES ---------- */
.b-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: none;
}

.b-btn-primario {
  background: var(--naranja);
  color: #fff;
  box-shadow: 0 8px 20px rgba(216,90,48,0.35);
}
.b-btn-primario:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(216,90,48,0.42); }

.b-btn-secundario {
  background: #fff;
  color: var(--azul);
  border: 2px solid var(--azul);
}
.b-btn-secundario:hover { background: var(--azul-claro); }

.b-btn-ghost {
  background: var(--azul);
  color: #fff;
  padding: 0.6rem 1.3rem;
}
.b-btn-ghost:hover { background: var(--azul-oscuro); }

.b-btn-ancho { width: 100%; text-align: center; }
.b-btn-grande { font-size: 1.1rem; padding: 1.1rem 2.4rem; }

/* ---------- HERO ---------- */
.b-hero {
  background: linear-gradient(160deg, var(--azul) 0%, var(--azul-oscuro) 100%);
  color: #fff;
  overflow: hidden;
}

.b-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.b-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.b-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: -0.5px;
}

.b-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin-bottom: 1.8rem;
}

.b-hero-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.b-hero .b-btn-secundario {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.b-hero .b-btn-secundario:hover { background: rgba(255,255,255,0.12); }

.b-hero-nota {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* mockup de pantalla flotante */
.b-hero-visual { display: flex; justify-content: center; position: relative; }

.b-mock-chip {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-38%);
  background: #fff;
  color: var(--texto);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  white-space: nowrap;
}

.b-mock-pantalla {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  color: var(--texto);
  transform: rotate(-2deg);
}

.b-mock-barra {
  width: 60px;
  height: 6px;
  background: var(--borde);
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.b-mock-fila {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--borde);
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.b-mock-fila strong { color: var(--texto); }

.b-mock-fila-total {
  background: var(--azul-claro);
  border-radius: 10px;
  padding: 0.9rem 0.8rem;
  margin-bottom: 0.3rem;
  border-bottom: none;
  font-weight: 700;
}
.b-mock-fila-total strong { color: var(--azul); font-size: 1.3rem; }

.b-mock-boton {
  margin-top: 1.2rem;
  background: var(--naranja);
  color: #fff;
  text-align: center;
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 700;
}

/* ---------- SECCIONES GENERALES ---------- */
.b-seccion {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.b-seccion h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--texto);
}

.b-seccion-sub {
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin: 0.6rem 0 3rem;
}

/* ---------- GRID DE SOLUCIONES ---------- */
.b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.b-card {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform 0.18s, box-shadow 0.18s;
}

.b-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(24,95,165,0.12);
  border-color: var(--azul);
}

.b-card-icono {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.b-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.b-card p {
  color: var(--texto-suave);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- COMERCIOS COMO EL TUYO ---------- */
.b-seccion-comercios { padding-top: 1rem; }

.b-foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.b-foto-card {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 16px 34px rgba(15,65,116,0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.b-foto-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15,65,116,0.22); }

.b-foto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-foto-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.3rem 1.3rem;
  background: linear-gradient(0deg, rgba(15,30,50,0.92) 0%, rgba(15,30,50,0.55) 55%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.b-foto-card figcaption strong { font-size: 1.1rem; font-weight: 800; }
.b-foto-card figcaption span { font-size: 0.86rem; color: rgba(255,255,255,0.88); }

/* ---------- INSTALAR ---------- */
.b-seccion-instalar { background: var(--azul-claro); max-width: 100%; }
.b-seccion-instalar > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.b-instalar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.b-instalar-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 12px 30px rgba(24,95,165,0.1);
}

.b-instalar-icono { font-size: 2.5rem; margin-bottom: 0.8rem; }
.b-instalar-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.b-instalar-card p { color: var(--texto-suave); margin-bottom: 1.5rem; min-height: 66px; }
.b-instalar-nota { color: var(--texto-suave); font-size: 0.8rem; margin: 0.7rem 0 0; }

/* ---------- CTA FINAL ---------- */
.b-cta {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--naranja), #b8431f);
  color: #fff;
}

.b-cta h2 { font-size: 2.1rem; font-weight: 800; }
.b-cta p { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin: 0.8rem 0 2rem; }
.b-cta .b-btn-primario { background: #fff; color: var(--naranja); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.b-cta .b-btn-primario:hover { background: #fff5f0; }
.b-cta-categorias { font-size: 0.8rem; color: rgba(255,255,255,0.75); max-width: 560px; margin: 2rem auto 0; }

/* ---------- FOOTER ---------- */
.b-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--texto-suave);
  font-size: 0.85rem;
}
.b-footer-logo { height: 24px; margin-bottom: 0.8rem; opacity: 0.7; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .b-hero-inner { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3.5rem; }
  .b-hero h1 { font-size: 2rem; }
  .b-hero-visual { order: -1; }
  .b-mock-pantalla { max-width: 260px; transform: none; }
  .b-mock-chip { font-size: 0.68rem; padding: 0.45rem 0.7rem; bottom: 3%; }
  .b-nav { display: none; }
  .b-instalar-grid { grid-template-columns: 1fr; }
  .b-seccion { padding: 3.5rem 1.25rem; }
  .b-cta { padding: 3.5rem 1.25rem; }
}
