/* EQUIVENCA V3 - DESIGN SYSTEM  AND STYLESHEET */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-cyan: #00c2e0;
  
  --cyan-primary: #00c2e0;
  --cyan-dark: #008ba3;
  --cyan-light: #e0f7fa;
  --cyan-glow: rgba(0, 194, 224, 0.15);
  
  --blue-brand: #0284c7;
  --navy-dark: #0f172a;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1eaa53;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --grid-pattern: radial-gradient(#cbd5e1 1px, transparent 1px);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* RESET AND BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: var(--grid-pattern);
  background-size: 24px 24px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--cyan-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--cyan-primary);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--cyan-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 194, 224, 0.3);
  display: inline-block;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER AND NAVBAR */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.03em;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-badge {
  background: var(--cyan-primary);
  color: #fff;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cyan-primary);
  transition: width 0.25s ease;
}

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

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--whatsapp-green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
  transition: all 0.25s ease;
}

.btn-whatsapp-header:hover {
  background: var(--whatsapp-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--navy-dark);
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--cyan-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 194, 224, 0.3);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--cyan-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 194, 224, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg-card);
  color: var(--navy-dark);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--cyan-primary);
  color: var(--cyan-dark);
  background: var(--bg-subtle);
  transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
  padding: 4rem 0 5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--cyan-dark);
  background: linear-gradient(135deg, #00c2e0 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-medium);
  max-width: 580px;
}

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

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.hero-blueprint-frame {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.blueprint-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-dark);
  z-index: 2;
}

.hero-blueprint-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--border-light);
  background: #fff;
}

/* SECTION COMMONS */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

.section-header p {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  background: var(--cyan-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 194, 224, 0.3);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  color: var(--navy-dark);
}

.catalog-search-box {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ABOUT US AND WORK SPACES */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card-tech {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-tech::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--border-light);
  transition: background 0.3s ease;
}

.card-tech:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card-tech:hover::before {
  background: var(--cyan-primary);
}

.card-tech-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-card-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-dark);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.card-tech h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* GALPONES LIST */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.facility-box {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.facility-box:hover {
  border-color: var(--cyan-dark);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.facility-box h4 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CATALOG MOBILE SELECT DROPDOWN */
.catalog-select-wrapper {
  display: none;
  max-width: 580px;
  margin-bottom: 1.5rem;
}

.catalog-select-mobile {
  width: 100%;
  padding: 0.8rem 3rem 0.8rem 1.25rem;
  border: 1.5px solid var(--border-medium);
  border-radius: 8px;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 1.25rem center;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.catalog-select-mobile:focus {
  outline: none;
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* CATALOG TAB NAV (DOBLE LÍNEA / WRAPPED ROWS) */
.catalog-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 0.25rem 0;
}

.catalog-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 0.6rem 1.15rem;
  border-radius: 25px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.catalog-tab:hover {
  border-color: var(--cyan-dark);
  color: var(--cyan-dark);
}

.catalog-tab.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
}

@media (max-width: 768px) {
  .catalog-select-wrapper {
    display: block;
  }
  .catalog-nav {
    display: none !important;
  }
}

.catalog-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.legend-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.legend-chip strong {
  background: var(--cyan-light);
  color: var(--cyan-dark);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* AMAZON SWIPE CAROUSEL CONTAINER */
.catalog-carousel-wrapper {
  position: relative;
}

.catalog-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  scrollbar-width: none;
}

.catalog-carousel::-webkit-scrollbar {
  display: none;
}

/* PERSISTENT SCROLL INDICATOR FOR ALL DEVICES & MOBILE EMULATORS */
.catalog-scroll-track {
  width: 100%;
  max-width: 380px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 0.75rem auto 0 auto;
  position: relative;
  overflow: hidden;
}

.catalog-scroll-thumb {
  height: 100%;
  width: 30%;
  background: var(--cyan-primary);
  border-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 1px 3px rgba(0, 194, 224, 0.4);
}

.product-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  border-top: 4px solid var(--cyan-dark);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  transition: all 0.3s ease;
  position: relative;
  animation: cardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.product-card:hover {
  border-color: var(--cyan-dark);
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.18);
  transform: translateY(-5px);
}

@keyframes cardPopIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-dark);
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.type-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.type-tag.active {
  background: var(--cyan-light);
  color: var(--cyan-dark);
  border-color: var(--cyan-primary);
}

.btn-card-quote {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-card-alt);
  color: var(--navy-dark);
  border: 1px solid var(--border-medium);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-quote:hover {
  background: var(--whatsapp-green);
  color: #fff;
  border-color: var(--whatsapp-green);
}

/* QUOTE ARCHITECT WIZARD (CLEAN LIGHT THEME) */
.wizard-section {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.wizard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-light);
  z-index: 1;
  transform: translateY(-50%);
}

.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--cyan-primary);
  z-index: 1;
  transform: translateY(-50%);
  transition: width 0.3s ease;
  width: 0%;
}

.step-node {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-node.active {
  border-color: var(--cyan-primary);
  background: var(--cyan-primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--cyan-glow);
}

.step-node.completed {
  border-color: var(--cyan-primary);
  background: var(--navy-dark);
  color: #fff;
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.option-card {
  background: var(--bg-card-alt);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--cyan-primary);
  background: #fff;
  box-shadow: 0 4px 12px var(--cyan-glow);
}

.option-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
}

.option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* WIZARD SLIDERS */
.slider-group {
  margin-bottom: 2rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan-dark);
}

.wizard-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-medium);
  outline: none;
  accent-color: var(--cyan-primary);
  cursor: pointer;
}

.wizard-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

/* SUMMARY BOX STEP 4 */
.summary-box {
  background: var(--bg-card-alt);
  border: 1px dashed var(--cyan-primary);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy-dark);
}

/* NORMAS GRID */
.norms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.norm-badge-box {
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border-medium);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
}

.norm-badge-box:hover {
  background: #ffffff;
  border-color: var(--cyan-primary);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.norm-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-dark);
  margin-bottom: 0.25rem;
}

.norm-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: var(--whatsapp-hover);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* FOOTER COMPACT */
.footer {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 920px;
  }

  .hero-tagline {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.85rem;
    text-align: center;
    max-width: 860px;
  }

  .hero-lead {
    font-size: 1.2rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 780px;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Ocultar plano técnico en tablets y móviles para evitar scroll innecesario */
  .hero-blueprint-frame {
    display: none;
  }

  /* En tablets expandimos proporcionalmente las 3 columnas horizontales de métricas */
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
    max-width: 850px;
    padding-top: 2rem;
  }

  .metric-item {
    align-items: center;
    text-align: center;
  }

  .metric-val {
    font-size: 1.9rem;
  }

  .metric-lbl {
    font-size: 0.85rem;
  }

  /* Mantenemos 2 columnas de Misión y Visión a 1024px para evitar que sean muy anchas */
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Mantener grid 2x2 en opciones de Cotizador a 1024px */
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mantener grid 3x2 (3 columnas) en normas a 1024px */
  .norms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  /* Apilar Misión y Visión en una sola columna en pantallas móviles */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 0 2rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  /* En celulares las métricas se apilan verticalmente 1-a-1 y centradas */
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.25rem;
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }

  .metric-item {
    align-items: center;
    text-align: center;
  }

  .metric-val {
    font-size: 1.6rem;
  }

  .metric-lbl {
    font-size: 0.85rem;
  }

  /* Apilar opciones del Cotizador verticalmente en móviles */
  .options-grid {
    grid-template-columns: 1fr;
  }

  /* Mostrar rejilla de 2 columnas para normas en pantallas pequeñas */
  .norms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .wizard-section {
    padding: 1rem;
  }

  /* Optimizar ficha de especificación en móviles */
  .summary-box {
    padding: 1.15rem;
    margin-bottom: 1.5rem;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.55rem 0;
  }

  .summary-label {
    font-size: 0.8rem;
  }

  .summary-value {
    font-size: 0.85rem;
    text-align: left;
  }

  .product-card {
    flex: 0 0 280px;
  }

  .wizard-footer-actions {
    flex-direction: column-reverse;
  }

  .wizard-footer-actions .btn-primary,
  .wizard-footer-actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* Apilar normas en una única columna en pantallas ultra pequeñas */
  .norms-grid {
    grid-template-columns: 1fr;
  }
}

/* CATALOG SEARCH BAR */
.table-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.table-search-input:focus {
  outline: none;
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
