/* ==========================================================================
   BUEN-CEMENTO S.A. · Modelo 3: Video & Scrollytelling
   Estilos Cinemáticos de Alta Definición · 60fps · Cero Emojis
   ========================================================================== */

:root {
  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Paleta cromática: Construcción & Acero Premium */
  --bg-deep: #090a0d;
  --bg-dark: #0f1217;
  --bg-card: #151921;
  --bg-card-hover: #1c222d;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f3f5f8;
  --text-muted: #9aa3af;
  --text-dim: #64748b;

  /* Acentos de marca */
  --brand-orange: #ff6a00;
  --brand-orange-light: #ff8533;
  --brand-yellow: #f59e0b;
  --brand-accent-glow: rgba(255, 106, 0, 0.25);
  --brand-steel: #38bdf8;

  --header-height: 110px;
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis gestiona el smooth scroll */
  background-color: var(--bg-deep);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-deep);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ================= ACCESIBILIDAD ================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-orange);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 99999;
  border-radius: 4px;
}
.skip-link:focus {
  top: 1rem;
}

/* ================= OVERLAYS Y CURSOR ================= */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  display: none;
}

@media (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--brand-orange);
    transition: opacity 0.2s, transform 0.1s;
  }
  .cursor-ring {
    display: block;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 106, 0, 0.4);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
  }
}

/* ================= BARRA DE PROGRESO ================= */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-yellow));
  z-index: 10001;
  width: 0%;
  box-shadow: 0 0 10px var(--brand-orange);
}

/* ================= HEADER FIJO & DEMO BAR ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: rgba(9, 10, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* DEMO BAR OBLIGATORIA */
.demo-bar {
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  padding: 0.35rem 1.25rem;
}

.demo-bar-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-bar-notice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #cbd5e1;
}

.demo-pill {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.demo-orig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #38bdf8;
  font-weight: 600;
  margin-left: 0.5rem;
}
.demo-orig-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.models-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.switcher-title {
  color: #64748b;
  font-size: 0.7rem;
  margin-right: 0.2rem;
}

.model-pill-link {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.model-pill-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.model-pill-link.is-active {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.2);
}

/* NAVEGACIÓN PRINCIPAL */
.nav-container {
  padding: 0.75rem 1.25rem;
}

.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--brand-orange);
  letter-spacing: 0.5px;
}

.main-nav {
  display: none;
}

@media (min-width: 980px) {
  .main-nav {
    display: block;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-item:hover, .nav-item.is-active {
  color: #fff;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width 0.2s var(--ease-cinematic);
}

.nav-item:hover::after, .nav-item.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.25s var(--ease-cinematic);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), #e05500);
  color: #fff;
  box-shadow: 0 4px 20px var(--brand-accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 106, 0, 0.4);
  background: linear-gradient(135deg, var(--brand-orange-light), var(--brand-orange));
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
}

.btn-outline:hover {
  background: var(--brand-orange);
  color: #fff;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

@media (min-width: 980px) {
  .mobile-toggle {
    display: none;
  }
}

.toggle-bar {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease;
}

/* MENÚ MÓVIL */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-strong);
  padding: 1.5rem 1.25rem;
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-nav-link:hover {
  color: var(--brand-orange);
}

/* ================= TIMELINE LATERAL DE SCROLLYTELLING ================= */
.story-timeline {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: none;
}

@media (min-width: 1200px) {
  .story-timeline {
    display: block;
  }
}

.timeline-track {
  position: absolute;
  right: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--brand-orange);
  box-shadow: 0 0 8px var(--brand-orange);
  transition: height 0.2s ease;
}

.timeline-nodes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

.timeline-dot {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0.75rem;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.dot-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dot-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.timeline-dot:hover .dot-label,
.timeline-dot.is-active .dot-label {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot.is-active .dot-num {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 12px var(--brand-orange);
}

.timeline-dot.is-active {
  color: #fff;
}

/* ================= HERO CINEMÁTICO ================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  filter: brightness(0.45) contrast(1.15);
  transition: transform 1.2s var(--ease-cinematic);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 60% 40%, rgba(255, 106, 0, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, rgba(9, 10, 13, 0.7) 0%, rgba(9, 10, 13, 0.95) 90%, var(--bg-deep) 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: 60px 60px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 820px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  backdrop-filter: blur(4px);
}

.badge-tag-highlight {
  background: rgba(255, 106, 0, 0.15);
  border-color: rgba(255, 106, 0, 0.4);
  color: #ff9d42;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
}

.accent-gradient {
  background: linear-gradient(90deg, #ffffff, var(--brand-orange-light), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2.2rem;
  max-width: 680px;
}

.hero-lead strong {
  color: #fff;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: rgba(21, 25, 33, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

.metric-divider {
  display: none;
}

@media (min-width: 768px) {
  .metric-divider {
    display: block;
    width: 1px;
    background: var(--border-subtle);
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.scroll-text {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: 2px;
  animation: mouseWheel 1.6s infinite ease-in-out;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ================= SCROLLYTELLING CHAPTERS ================= */
.scrolly-wrapper {
  position: relative;
}

.chapter-block {
  padding: 7rem 0;
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.bg-darker {
  background-color: var(--bg-dark);
}

.chapter-header {
  max-width: 780px;
  margin-bottom: 4rem;
}

.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.kicker-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand-orange);
  background: rgba(255, 106, 0, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.kicker-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #94a3b8;
}

.chapter-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.chapter-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* GRID SPLIT CHAPTER 1 */
.grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 980px) {
  .grid-split {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  padding: 2rem;
}

.showcase-visual {
  padding: 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  height: 380px;
}

.frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.showcase-visual:hover .frame-img {
  transform: scale(1.04);
}

.frame-tag-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
}

.tech-badge {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.spec-table-box {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #11151c;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}
.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  color: var(--text-dim);
}

.spec-val {
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.card-headline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-bullet {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bullet-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 106, 0, 0.2);
}

.bullet-text strong {
  display: block;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.bullet-text p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CAPÍTULO 02: LOGÍSTICA */
.logistics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 980px) {
  .logistics-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.logistics-graphic-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.truck-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.truck-ambient-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--brand-accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.truck-image {
  position: relative;
  z-index: 2;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
  transition: transform 0.5s ease;
}

.truck-scene:hover .truck-image {
  transform: translateY(-6px) scale(1.02);
}

.pulse-indicator {
  position: absolute;
  z-index: 4;
}

.pulse-spot-1 { top: 25%; left: 15%; }
.pulse-spot-2 { bottom: 25%; right: 15%; }

.pulse-core {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--brand-orange);
  border-radius: 50%;
}

.pulse-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--brand-orange);
  border-radius: 50%;
  animation: pulseAnim 2s infinite ease-out;
}

@keyframes pulseAnim {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.truck-caption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.caption-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-orange);
  display: block;
  margin-bottom: 0.25rem;
}

.truck-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.logistics-cards-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
}

.card-header-icon {
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.zone-badge-strip {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.zone-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.75rem;
}

.zones-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zp {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: #e2e8f0;
}

/* CAPÍTULO 03: CRÉDITO EMPRESARIAL */
.credit-banner-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.banner-image-container {
  position: relative;
  height: 380px;
}

.credit-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

.banner-overlay-content {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  max-width: 650px;
}

.banner-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0.75rem 0 0.5rem;
}

.banner-sub {
  font-size: 1rem;
  color: #cbd5e1;
}

.credit-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem;
  background: #11151c;
}

.credit-step-item {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 106, 0, 0.3);
}

.step-num-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 0.4rem;
}

.credit-step-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.credit-step-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* CAPÍTULO 04: BASE OPERATIVA */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 980px) {
  .hub-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
}

.hub-subtitle {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hub-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hub-details-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-details-list strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.hub-details-list p, .hub-details-list a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.blueprint-box {
  position: relative;
  height: 100%;
  min-height: 380px;
  background: #0d1117;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-size: 30px 30px;
  background-image: linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
}

.blueprint-marker {
  position: relative;
  z-index: 3;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.marker-dot {
  width: 16px;
  height: 16px;
  background: var(--brand-orange);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 15px var(--brand-orange);
}

.marker-pulse {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  animation: pulseAnim 2.5s infinite;
}

.marker-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.marker-card strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.marker-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blueprint-specs {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.b-spec {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}
.b-spec span { color: var(--text-dim); }
.b-spec strong { color: #fff; }

/* ================= CATÁLOGO DE MATERIALES ================= */
.section-catalog {
  padding: 7rem 0;
  background: var(--bg-deep);
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 4rem;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin: 1rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  z-index: 2;
  color: var(--brand-orange-light);
}

.product-thumb {
  height: 200px;
  background: #11151c;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.bg-metal { background: radial-gradient(circle, #1e293b 0%, #0f172a 100%); }
.bg-grid { background: radial-gradient(circle, #1a2233 0%, #0d121d 100%); }
.bg-roof { background: radial-gradient(circle, #252433 0%, #111019 100%); }

.metal-visual-icon {
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease, transform 0.3s ease;
}

.product-card:hover .metal-visual-icon {
  color: var(--brand-orange);
  transform: scale(1.1);
}

.product-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--brand-orange);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.product-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border-subtle);
}

.product-footer {
  margin-top: auto;
}

/* ================= CALCULADORA / COTIZADOR ================= */
.section-calculator {
  padding: 7rem 0;
  background: var(--bg-dark);
}

.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.calc-header {
  margin-bottom: 3.5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 600;
}

.field-help {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-orange);
}

.range-stepper {
  display: flex;
  align-items: center;
  background: #0d1016;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}

.step-btn {
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.step-btn:hover {
  background: var(--brand-orange);
}

.field-input {
  width: 100%;
  height: 50px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.field-select {
  height: 50px;
  background: #0d1016;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: #fff;
  padding: 0 1rem;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.calc-summary-box {
  background: #0d1117;
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .calc-summary-box {
    grid-template-columns: 1.3fr 1fr;
  }
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.sum-title {
  color: var(--text-dim);
}

.sum-value {
  font-weight: 700;
  color: #fff;
}

.sum-value.highlight {
  color: var(--brand-orange);
}

.summary-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-micro-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

/* ================= CTA FINAL ================= */
.section-cta-final {
  padding: 7rem 0;
  background: var(--bg-deep);
}

.cta-cinematic-card {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1c222e 0%, #0d1015 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--brand-accent-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content-inner {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.cta-headline {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1.25rem 0 1rem;
}

.cta-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.cta-direct-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.sep-bullet {
  color: var(--brand-orange);
}

/* ================= FOOTER ================= */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  color: var(--text-muted);
}

.grid-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.footer-brand-motto {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.footer-legal-tag {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.footer-heading {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-nav, .footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.86rem;
}

.footer-nav a:hover, .footer-contact a:hover {
  color: var(--brand-orange);
}

.footer-simcodec-notice {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.notice-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notice-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
}

.notice-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.notice-desc a {
  color: #38bdf8;
  font-weight: 600;
}
.notice-desc a:hover {
  text-decoration: underline;
}

.footer-models {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.footer-models span {
  color: var(--text-dim);
}

.footer-models a {
  color: #94a3b8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.footer-models a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-models a.is-current {
  color: var(--brand-orange);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
@media (max-width: 768px) {
  :root {
    --header-height: 90px;
  }
  .demo-bar {
    display: none; /* Mantiene la cabecera limpia en pantallas muy reducidas */
  }
  .chapter-block {
    padding: 4.5rem 0;
  }
  .hero-section {
    padding-top: calc(var(--header-height) + 1.5rem);
    min-height: auto;
  }
  .banner-image-container {
    height: 280px;
  }
  .banner-overlay-content {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }
}
