/* ============================================
   ACEROTECH — Design System
   Industrial-Vanguardista & Tecnológico
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Base Colors */
  --bg-deep: #001233;
  --bg-primary: #001845;
  --bg-secondary: #33415c;
  --bg-card: rgba(0, 24, 69, 0.45);
  --bg-glass: rgba(0, 18, 51, 0.65);

  /* Accent Colors (Updated to palette) */
  --accent-orange: #0466c8;
  --accent-orange-light: #0353a4;
  --accent-orange-glow: rgba(4, 102, 200, 0.25);
  --accent-cyan: #0353a4;
  --accent-cyan-light: #ffffff;
  --accent-cyan-glow: rgba(3, 83, 164, 0.2);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #e0e1dd;
  --text-muted: rgba(224, 225, 221, 0.7);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(4, 102, 200, 0.2);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1200px;

  /* Effects */
  --glass-blur: blur(16px);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-deep: 0 25px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow-orange: 0 0 30px var(--accent-orange-glow);
  --shadow-glow-cyan: 0 0 25px var(--accent-cyan-glow);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }

h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent-orange);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  padding: 4px 0;
}
.nav-logo-img {
  height: clamp(52px, 8vw, 110px);
  width: auto;
  max-width: 360px;
  object-fit: contain;
  filter: drop-shadow(0px 2px 10px rgba(255, 255, 255, 0.45));
  transition: transform var(--transition-smooth);
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-smooth);
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-smooth);
}
.nav-links a:hover::after { width: 100%; }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* --- CTA Button --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #415a77);
  color: #fff;
  box-shadow: var(--shadow-glow-orange);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px var(--accent-orange-glow);
}
.btn-primary .btn-arrow {
  transition: transform var(--transition-smooth);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-outline {
  border: 1px solid rgba(4, 102, 200, 0.4);
  color: var(--accent-orange-light);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent-orange-glow);
  border-color: var(--accent-orange);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 20px 0 32px;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-orange);
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-canvas-container {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 0.85;
  position: relative;
}
#hero-3d-canvas {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* --- Sections Common --- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* --- Alternating Light Theme --- */
.section-light {
  --bg-deep: #ffffff;
  --bg-primary: #f8f9fa;
  --bg-secondary: #e2e8f0;
  --bg-card: #f8f9fa;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --text-primary: #001233;
  --text-secondary: #33415c;
  --text-muted: rgba(0, 18, 51, 0.6);
  
  --border-subtle: rgba(0, 18, 51, 0.1);
  --border-glow: rgba(4, 102, 200, 0.2);
  
  --shadow-deep: 0 20px 50px rgba(0, 18, 51, 0.06);

  background: var(--bg-deep);
  color: var(--text-primary);
}

.configurator-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-secondary) 50%, var(--bg-deep) 100%);
}

/* --- About / Ventajas --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.advantage-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.advantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-deep);
}
.advantage-card:hover::before { opacity: 1; }
.advantage-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.advantage-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.advantage-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* --- Products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
  border-color: var(--border-glow);
}
.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.product-body {
  padding: 28px;
}
.product-body h3 { margin-bottom: 12px; }
.product-body p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-features li::before {
  content: '✓';
  color: var(--accent-orange);
  font-weight: 700;
}

/* --- Interactive Explorer --- */
.interactive-explorer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ie-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.ie-tabs::-webkit-scrollbar { height: 4px; }
.ie-tabs::-webkit-scrollbar-thumb { background: var(--accent-orange); border-radius: 4px; }

.ie-tab {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition-smooth);
}
.ie-tab.active, .ie-tab:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-glow-orange);
}

.ie-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) {
  .ie-content {
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
  }
}

.ie-map-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px 20px;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Abstract Building Diagram (CSS shapes) */
.ie-building-diagram {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 250px;
}

.ie-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: background-image 0.4s ease-in-out;
}

/* Hotspots (Elegant & Minimalist) */
.ie-hotspot {
  position: absolute;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.ie-hotspot::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.ie-hotspot.pulse {
  animation: hotspotPulseElegant 2.5s infinite;
}
.ie-hotspot:hover, .ie-hotspot.active {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.95);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
}
.ie-hotspot:hover::after, .ie-hotspot.active::after {
  background: var(--accent-orange);
  box-shadow: none;
  transform: scale(1.2);
}
.ie-hotspot-icon {
  display: none; /* Hide emojis on the image for a cleaner look */
}

@keyframes hotspotPulseElegant {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0), 0 4px 12px rgba(0, 0, 0, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 12px rgba(0, 0, 0, 0.2); }
}

.ie-details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.ie-icon-placeholder {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* --- Configurator --- */
.configurator-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-secondary) 50%, var(--bg-deep) 100%);
}
.configurator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.config-controls {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
}
.config-slider-group {
  margin-bottom: 28px;
}
.config-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.config-slider-group label span {
  color: var(--accent-orange);
  font-weight: 700;
  font-family: var(--font-heading);
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-secondary);
  outline: none;
  transition: var(--transition-smooth);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-orange);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-orange-glow);
  transition: var(--transition-smooth);
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-orange-glow);
}
.config-area-display {
  text-align: center;
  padding: 24px;
  background: rgba(4, 102, 200, 0.06);
  border: 1px solid rgba(4, 102, 200, 0.15);
  border-radius: 12px;
  margin: 28px 0;
}
.config-area-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-orange);
}
.config-area-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.config-visual-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
#config-canvas {
  width: 100%;
  height: 420px;
}

/* --- Logo Marquee (Clientes) --- */
.logo-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 20px 0;
}
.logo-marquee-container::before,
.logo-marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}
.logo-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deep, #ffffff) 0%, transparent 100%);
}
.logo-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deep, #ffffff) 0%, transparent 100%);
}
.logo-marquee {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scrollMarquee 30s linear infinite;
  white-space: nowrap;
}
.logo-marquee:hover {
  animation-play-state: paused;
}
.logo-item {
  flex-shrink: 0;
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}
.logo-item:hover {
  transform: scale(1.1);
}
.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-150px * 6 - 60px * 6)); }
}

/* --- Project Slider (Casos de Éxito) --- */
.project-slider {
  width: 100%;
  max-width: 1000px;
  margin: 48px auto 0;
}

.ps-stage {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.ps-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.ps-slide.active { opacity: 1; }

.ps-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 12, 40, 0.88) 0%,
    rgba(0, 12, 40, 0.30) 42%,
    rgba(0, 0, 0, 0.04) 72%
  );
  z-index: 2;
  pointer-events: none;
}

.ps-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  pointer-events: auto !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  line-height: 1;
}
.ps-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.ps-prev { left: 18px; }
.ps-next { right: 18px; }

.ps-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 36px 36px 32px;
  transition: opacity 0.3s ease;
}

.ps-info-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #fff;
  background: var(--accent-orange);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.ps-info-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.ps-info-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  line-height: 1.65;
}

.ps-counter {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 10;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}


@media (max-width: 768px) {
  .ps-stage { height: 380px; }
  .ps-info-desc { display: none; }
  .ps-info { padding: 24px; }
}
@media (max-width: 480px) {
  .ps-stage { height: 280px; border-radius: 14px; }
  .ps-thumbs { gap: 6px; }
  .ps-arrow { width: 38px; height: 38px; font-size: 1rem; }
}

/* --- Contact / Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-smooth);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}
.contact-info-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}
.contact-info-item:hover {
  transform: translateX(6px);
  opacity: 0.8;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}


/* --- Catálogo de Servicios --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.catalog-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.catalog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(4, 102, 200, 0.06) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-glow);
}

.catalog-card:hover::before { opacity: 1; }
.catalog-card:hover::after { opacity: 1; }


.catalog-card-img {
  width: calc(100% + 64px);
  margin: -32px -32px 16px -32px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
  position: relative;
  border-bottom: 3px solid var(--accent-orange);
  overflow: hidden;
}

.catalog-card-img .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.catalog-card-img .slide.active {
  opacity: 1;
}

.catalog-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.2), rgba(3, 83, 164, 0.1));
  border: 1px solid rgba(4, 102, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.catalog-card:hover .catalog-icon-badge {
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.35), rgba(3, 83, 164, 0.2));
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 0 20px rgba(4, 102, 200, 0.3);
}

.catalog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  background: rgba(4, 102, 200, 0.12);
  border: 1px solid rgba(4, 102, 200, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 4px;
}

.catalog-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.catalog-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.catalog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.catalog-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.catalog-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-cyan));
  margin-top: 5px;
}

/* CTA card variant */
.catalog-cta-card {
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.15) 0%, rgba(0, 18, 51, 0.6) 100%);
  border-color: rgba(4, 102, 200, 0.3);
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 280px;
}

.catalog-cta-card::before {
  opacity: 1;
}

.catalog-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.catalog-cta-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 4px;
}

.catalog-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.catalog-cta-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 280px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- UI Helpers --- */
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-subtitle {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.radio-group-container {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}
.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.floating-wa.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-wa:hover {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .floating-wa {
    bottom: 20px;
    right: 20px;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-cta-group { justify-content: center; }
  .hero-visual { margin-top: 32px; }
  .configurator-wrapper { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  
  /* Navbar */
  .nav-links { display: none; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
  }
}

@media (max-width: 768px) {
  .hero-has-canvas .hero-visual { display: none; }
  .hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
  
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .catalog-card { padding: 24px; }
  .catalog-card-img { margin: -24px -24px 16px -24px; width: calc(100% + 48px); }
  
  .ps-stage { height: 380px; }
  .ps-info-desc { display: none; }
  .ps-info { padding: 24px; }
  
  .ie-content { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  :root { --section-padding: 60px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn-cta { width: 100%; justify-content: center; }
  
  .form-grid-3 { grid-template-columns: 1fr; }
  .radio-group-container { flex-direction: column; gap: 10px; }
  
  .config-visual-panel { min-height: 280px; }
  #config-canvas { height: 280px; }
  
  .ps-stage { height: 300px; border-radius: 14px; }
  .ps-arrow { width: 44px; height: 44px; font-size: 1.1rem; }
  
  .ie-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .ie-map-container { min-height: 300px; padding: 20px 10px; }
  .ie-details { min-height: auto; padding: 24px; }
  .ie-hotspot { width: 44px; height: 44px; } /* larger touch targets */
}

/* --- Visual Options Configurator --- */
.config-visual-options {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}
.cvo-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}
.cvo-group {
  margin-bottom: 8px;
}
.cvo-group:last-child {
  margin-bottom: 0;
}
.cvo-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.cvo-radio-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
.cvo-checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
@media (max-width: 500px) {
  .cvo-checkbox-group { grid-template-columns: 1fr; }
}
.cvo-radio, .cvo-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 2px 0;
}
.cvo-radio input, .cvo-checkbox input {
  accent-color: var(--accent-orange);
  cursor: pointer;
  width: 14px;
  height: 14px;
}

/* --- Config Preset Buttons --- */
.config-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}
.config-preset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.config-preset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.config-preset.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-color: var(--accent-orange);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.15);
}
.preset-icon {
  font-size: 1.2rem;
}
.preset-label {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .config-presets { gap: 8px; }
  .config-preset { padding: 8px 12px; font-size: 0.78rem; }
  .preset-icon { font-size: 1rem; }
}

/* --- Config Inline Options (Techo + Material) --- */
.config-inline-options {
  display: flex;
  gap: 10px;
  margin: 4px 0 12px;
}
.cio-item { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cio-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cio-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.3s;
}
.cio-select:focus {
  outline: none;
  border-color: var(--accent-orange);
}
.cio-select option {
  background: #1a1f2e;
  color: #e0e1dd;
}
/* --- Drag Hint --- */
.config-visual-panel { position: relative; cursor: grab; }
.config-visual-panel:active { cursor: grabbing; }
.config-drag-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.5);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  pointer-events: none;
  transition: opacity 0.5s;
}
