/* Habitat Wall Systems - Custom Engineering & Industrial Styles */

:root {
  --color-brand-blue: #0284c7;
  --color-brand-dark: #0f172a;
  --color-brand-light: #38bdf8;
  --color-accent-orange: #f97316;
  --color-accent-dark-orange: #ea580c;
  --color-steel: #64748b;
  --color-concrete: #f1f5f9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Technical Blueprint Grid Background */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(2, 132, 199, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
}

.bg-grid-pattern-dark {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
}

.bg-dots-pattern {
  background-image: radial-gradient(rgba(2, 132, 199, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism Header */
.glass-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Gradients */
.gradient-text-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.82) 55%, rgba(2, 132, 199, 0.4) 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.gradient-orange-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Spec Table Custom Styling */
.spec-table tr:nth-child(even) {
  background-color: #f8fafc;
}
.spec-table tr:hover {
  background-color: #f0f9ff;
}

/* Card Hover Elevation */
.card-elevation {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-elevation:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Step Sequence Connectors */
.step-line::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: 2.25rem;
  bottom: -1rem;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.step-item:last-child .step-line::after {
  display: none;
}

/* Drag & Drop Upload Area */
.drag-drop-area {
  border: 2px dashed #cbd5e1;
  transition: all 0.2s ease;
}
.drag-drop-area.drag-over {
  border-color: #0284c7;
  background-color: #f0f9ff;
}

/* Accordion Smooth Chevron Rotation */
details[open] .chevron-icon {
  transform: rotate(180deg);
}

/* Nav Dropdown Animations */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Pulse badge animation */
@keyframes subtle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.pulse-badge {
  animation: subtle-pulse 3s infinite ease-in-out;
}

/* Responsive Table Scroll Hint */
.table-responsive-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Infinite Marquee Animation for Footer Partner Logos */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f8fafc, rgba(248, 250, 252, 0));
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f8fafc, rgba(248, 250, 252, 0));
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* ============================================================
   FLUJO DE GESTIÓN INTEGRAL — bloque interactivo (opción 1B)
   ============================================================ */

:root {
  --hw-navy:      #0d1626;  /* fondo del bloque */
  --hw-navy-soft: #141f31;  /* tarjetas inactivas */
  --hw-line:      #1e2c42;  /* bordes / separadores */
  --hw-blue:      #0b83c4;  /* activo, CTA */
  --hw-blue-lt:   #1a9fe0;  /* acentos, texto azul */
  --hw-white:     #ffffff;
  --hw-text:      #a7b5c6;
  --hw-text-soft: #8fa0b5;
  --hw-radius:    22px;
}

.hw-flow {
  background: var(--hw-navy);
  border-radius: var(--hw-radius);
  padding: 40px 44px 44px;
  font-family: 'Barlow', system-ui, Helvetica, Arial, sans-serif;
  color: var(--hw-text);
}
.hw-flow * { box-sizing: border-box; }

.hw-flow__eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hw-blue-lt);
  text-align: center;
  margin: 0;
}

/* ---- Pestañas de etapa ---- */
.hw-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hw-step {
  appearance: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  background: var(--hw-navy-soft);
  border: 1px solid var(--hw-line);
  border-radius: 12px;
  padding: 14px 16px 16px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hw-step:hover {
  border-color: #2b3d59;
  transform: translateY(-2px);
}
.hw-step:focus-visible {
  outline: 2px solid var(--hw-blue-lt);
  outline-offset: 2px;
}
.hw-step__num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--hw-blue-lt);
  line-height: 1.2;
}
.hw-step__title {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b7c3d1;
  margin-top: 6px;
  line-height: 1.2;
}
.hw-step[aria-selected="true"] {
  background: var(--hw-blue);
  border-color: var(--hw-blue-lt);
}
.hw-step[aria-selected="true"] .hw-step__num {
  color: #e0f2fe;
}
.hw-step[aria-selected="true"] .hw-step__title {
  color: var(--hw-white);
}

/* ---- Barra de progreso ---- */
.hw-progress {
  height: 3px;
  background: var(--hw-line);
  border-radius: 2px;
  margin: 18px 0 30px;
  overflow: hidden;
}
.hw-progress__bar {
  height: 100%;
  width: 16.666%;
  background: var(--hw-blue-lt);
  transition: width .25s ease;
}

/* ---- Panel de detalle ---- */
.hw-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: start;
}
.hw-panel__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--hw-white);
  margin: 0;
}
.hw-panel__desc {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
.hw-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hw-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  display: inline-block;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.hw-btn--primary {
  background: var(--hw-blue);
  color: var(--hw-white);
}
.hw-btn--primary:hover {
  background: var(--hw-blue-lt);
}
.hw-btn--ghost {
  border: 1px solid #24344c;
  color: var(--hw-text-soft);
}
.hw-btn--ghost:hover {
  color: var(--hw-white);
  border-color: #3a5070;
}

.hw-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hw-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hw-line);
  font-size: 15px;
  line-height: 1.5;
  color: #c3ceda;
}
.hw-list li::before {
  content: "—";
  color: var(--hw-blue-lt);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hw-flow { padding: 32px 28px 36px; }
  .hw-steps { grid-template-columns: repeat(3, 1fr); }
  .hw-panel { grid-template-columns: 1fr; gap: 26px; }
  .hw-panel__title { font-size: 28px; }
}
@media (max-width: 600px) {
  .hw-flow { padding: 26px 20px 30px; border-radius: 16px; }
  .hw-steps { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hw-step { padding: 12px 12px 13px; }
  .hw-step__title { font-size: 15px; }
  .hw-panel__title { font-size: 24px; }
  .hw-btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hw-step, .hw-progress__bar { transition: none; }
  .hw-step:hover { transform: none; }
}

/* ==========================================================================
   COBERTURA LOGÍSTICA ESTRATÉGICA — esquema de radio de acción (opción 2B)
   Vanilla HTML/CSS/JS, sin dependencias.
   Los destinos se definen en HWC_CITIES.
   Es un ESQUEMA, no un mapa: los anillos son distancia real, la dirección
   es aproximada. Bajo 600px el esquema se oculta y queda la lista.
   ========================================================================== */

.hwc {
  background: var(--hw-navy);
  border-radius: 22px;
  padding: 44px 48px;
  font-family: 'Barlow', system-ui, Helvetica, Arial, sans-serif;
  color: var(--hw-text);
  overflow: hidden;
}
.hwc * { box-sizing: border-box; }
.hwc__grid {
  display: grid;
  grid-template-columns: 1fr 680px;
  gap: 48px;
  align-items: center;
}

.hwc__eyebrow {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hw-blue-lt);
}
.hwc__title {
  margin: 8px 0 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--hw-white);
}
.hwc__lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hwc__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--hw-line);
}
.hwc__statNum {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--hw-white);
  line-height: 1;
  white-space: nowrap;
}
.hwc__statLbl {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hw-text-dim);
  margin-top: 6px;
}

/* ---------- Esquema radial ---------- */
.hwc__radar {
  position: relative;
  width: 680px;
  height: 680px;
  margin: 0 auto;
}
.hwc__ring {
  position: absolute;
  border: 1px solid #1c2b40;
  border-radius: 50%;
}
.hwc__axis {
  position: absolute;
  background: #162335;
}
.hwc__axis--v {
  left: 340px;
  top: 40px;
  bottom: 40px;
  width: 1px;
}
.hwc__axis--h {
  top: 340px;
  left: 40px;
  right: 40px;
  height: 1px;
}

.hwc__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hwc__pin--home {
  left: 340px;
  top: 340px;
  gap: 8px;
}
.hwc__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hw-blue-lt);
}
.hwc__dot--far {
  background: #2c5f80;
}
.hwc__dot--home {
  width: 18px;
  height: 18px;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(26, 159, 224, .18);
}
.hwc__label {
  background: var(--hw-navy-soft);
  border: 1px solid #24344c;
  border-radius: 8px;
  padding: 7px 12px;
  text-align: center;
  white-space: nowrap;
}
.hwc__label--home {
  background: var(--hw-blue);
  border-radius: 5px;
  padding: 5px 11px;
  white-space: nowrap;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.hwc__labelCity {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
}
.hwc__labelMeta {
  font-size: 12px;
  color: var(--hw-text-soft);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Lista equivalente (móvil + accesibilidad) ---------- */
.hwc__list {
  display: none;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.hwc__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hw-line-soft);
}
.hwc__city {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--hw-white);
}
.hwc__meta {
  font-size: 14px;
  color: var(--hw-text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hwc { padding: 32px 28px 34px; }
  .hwc__grid { grid-template-columns: 1fr; gap: 32px; }
  .hwc__title { font-size: 28px; }
  .hwc__radar { transform: scale(var(--radar-scale, 1)); transform-origin: top center; }
}
@media (max-width: 600px) {
  .hwc { padding: 26px 20px 28px; border-radius: 16px; }
  .hwc__title { font-size: 24px; }
  .hwc__stats { grid-template-columns: 1fr; }
  .hwc__radar { display: none; }
  .hwc__list { display: block; }
}

/* ==========================================================================
   TABLAS COMPARATIVAS DE SECTORES — Habitat Wall Modern Comparison Card
   ========================================================================== */

.hw-comparison {
  width: 100%;
  color: #102033;
}

.hw-comparison * {
  box-sizing: border-box;
}

.hw-comparison .hw-shell {
  overflow: hidden;
  border: 1px solid #dce7e7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 39, 57, 0.07);
}

.hw-comparison .hw-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hw-comparison .hw-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 22px;
  color: #ffffff;
}

.hw-comparison .hw-heading:first-child {
  background: linear-gradient(135deg, #0e1e38 0%, #162f55 100%); /* Azul marino elegante como en el hero */
}

.hw-comparison .hw-heading:last-child {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); /* Azul cyan/sky institucional */
}

.hw-comparison .hw-heading-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.hw-comparison .hw-kicker {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hw-comparison .hw-heading h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.hw-comparison .hw-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-comparison .hw-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid #e5e7eb;
}

.hw-comparison .hw-side {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 14px 22px;
}

.hw-comparison .hw-side-negative {
  background: #fffbfa;
}

.hw-comparison .hw-side-positive {
  background: #f4fbf7;
}

.hw-comparison .hw-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  margin-top: 2px;
}

.hw-comparison .hw-side-negative .hw-symbol {
  color: #dc2626;
  background: #fee2e2;
}

.hw-comparison .hw-side-positive .hw-symbol {
  color: #059669;
  background: #d1fae5;
}

.hw-comparison .hw-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6; /* Mayor espacio y holgura entre líneas */
  color: #334155;
}

.hw-comparison .hw-copy strong {
  font-weight: 700;
  color: #0f172a;
}

.hw-comparison .hw-side-positive .hw-copy strong {
  color: #065f46;
}

.hw-comparison .hw-arrow {
  display: grid;
  place-items: center;
  color: #64748b;
  background: #f1f5f9;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.hw-comparison .hw-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #bbf7d0;
  color: #065f46;
  background: #ecfdf5;
}

.hw-comparison .hw-result-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #059669;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hw-comparison .hw-result p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.hw-comparison .hw-result strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
  color: #064e3b;
}

@media (max-width: 768px) {
  .hw-comparison .hw-top {
    display: none;
  }

  .hw-comparison .hw-shell {
    border-radius: 16px;
  }

  .hw-comparison .hw-row {
    grid-template-columns: 1fr;
    padding: 12px 14px;
    gap: 8px;
    background: #ffffff;
  }

  .hw-comparison .hw-side {
    padding: 10px 12px;
    border-radius: 10px;
    gap: 10px;
  }

  .hw-comparison .hw-side-negative {
    background: #fef2f2;
  }

  .hw-comparison .hw-side-positive {
    background: #ecfdf5;
  }

  .hw-comparison .hw-arrow {
    justify-self: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    transform: rotate(90deg);
  }

  .hw-comparison .hw-result {
    padding: 14px 16px;
  }
}


