/* ═══════════════════════════════════════════════════════
   SIGMA FRAMING — Landing Page Styles
   Palette: Charcoal / Steel / Copper-Bronze accent
   Typography: Montserrat
═══════════════════════════════════════════════════════ */

/* ─── Variables — SIGMA Design System ─── */
:root {
  /* Primarios */
  --bg:          #1A1E24;   /* Acero profundo — hero / nav */
  --bg-2:        #2E3540;   /* Grafito — secciones oscuras */
  --bg-3:        #242B35;   /* Intermedio */
  --surface:     #323B47;   /* Cards sobre fondo oscuro */
  --border:      #3A4450;   /* Bordes sobre fondo oscuro */

  /* Secciones claras */
  --light-bg:    #F2F3F4;   /* Gris claro — proceso / contacto */
  --light-card:  #FFFFFF;   /* Cards sobre fondo claro */
  --light-border:#DDE0E4;   /* Bordes sobre fondo claro */

  /* Acento */
  --accent:      #C8961A;   /* Oro industrial — botones / highlights */
  --accent-dark: #A67A12;   /* Hover botón */
  --accent-light:#E8B030;   /* Variante hover */

  /* Texto */
  --white:       #FFFFFF;
  --text-1:      #F0F2F4;   /* Blanco suave — títulos sobre oscuro */
  --text-2:      #6B7280;   /* Gris medio — descriptivo / bajadas */
  --text-3:      #9CA3AF;   /* Gris claro — secundario */
  --text-dark:   #1A1E24;   /* Casi negro — títulos sobre claro */
  --text-dark-2: #4B5563;   /* Gris oscuro — body sobre claro */

  --font: 'Montserrat', sans-serif;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 80px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;   /* fix franja negra lateral */
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Utility: Accent text ─── */
.accent { color: var(--accent); }

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
  padding-left: 28px;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.section-tag.light { color: var(--accent-light); }
.section-tag.light::before { background: var(--accent-light); }

.section-title {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
}

.title-line {
  width: 40px; height: 3px;
  background: var(--accent);
  margin: 12px auto;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  border: 2px solid var(--accent);
  font-weight: 800;
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 150, 26, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── Scroll Reveal Animations ─── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}


/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
  /* Prevent any child from overflowing nav width */
  overflow: visible;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--light-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Links oscuros sobre nav blanca */
.navbar.scrolled .nav-link       { color: var(--text-dark); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--text-dark); }
.navbar.scrolled .nav-cta         { color: var(--accent); border-color: var(--accent); }
.navbar.scrolled .nav-cta:hover   { background: var(--accent); color: var(--text-dark) !important; }
.navbar.scrolled .nav-toggle span { background: var(--text-dark); }
/* Logo oscuro en nav blanca */
.navbar.scrolled .nav-logo-img    { filter: brightness(0); opacity: 0.85; }

.nav-container {
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-sigma {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--white);
}
.logo-framing {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--accent);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-logo-img {
  height: 64px;
  width: auto;
  opacity: 0.93;
  transition: opacity var(--transition), filter var(--transition);
}
.nav-logo:hover .nav-logo-img { opacity: 1; }

.footer-logo-img {
  height: 68px;
  width: auto;
  opacity: 0.75;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease, transform 8s ease;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(13,13,13,0.78) 0%,
    rgba(13,13,13,0.55) 60%,
    rgba(13,13,13,0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  padding-top: var(--nav-h);
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-left: 28px;
  position: relative;
}
.hero-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 18px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 900px;
}

.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 560px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: rgba(13,13,13,0.4);
  backdrop-filter: blur(4px);
}
.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.slider-prev { left: 40px; }
.slider-next { right: 40px; }

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.dot {
  width: 28px; height: 2px;
  background: rgba(255,255,255,0.3);
  transition: var(--transition);
  cursor: pointer;
}
.dot.active {
  background: var(--accent);
  width: 48px;
}

.scroll-indicator {
  position: absolute;
  right: 48px;
  bottom: 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}


/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  background: var(--light-card);
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
  padding: 0;
}

.stats-bar .container {
  display: flex;
  align-items: stretch;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 20px;
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

.stat-suffix {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-2);
}

.stat-divider {
  width: 1px;
  background: var(--light-border);
  align-self: stretch;
  margin: 20px 0;
}


/* ═══════════════════════════════════════════
   PROCESO
═══════════════════════════════════════════ */
.proceso {
  padding: 28px 0 72px;
  background: var(--light-bg);
}

/* Títulos de sección sobre fondo claro */
.proceso .section-tag {
  color: var(--accent);
}
.proceso .section-tag::before { background: var(--accent); }
.proceso .section-title { color: var(--text-dark); }
.proceso .title-line     { background: var(--accent); }
.proceso .section-subtitle { color: var(--text-dark-2); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

/* ── Card shell ── */
.process-step {
  position: relative;
  overflow: hidden;
  height: 210px;
  cursor: pointer;
  border: 1px solid var(--light-border);
}

/* ── Background image ── */
.step-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.process-step:hover .step-img {
  transform: scale(1.06);
}

/* Dark gradient always present at bottom */
.process-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.90) 0%,
    rgba(13,13,13,0.30) 55%,
    rgba(13,13,13,0.10) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}
.process-step:hover::after {
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.97) 0%,
    rgba(13,13,13,0.80) 100%
  );
}

/* ── Resting state: tag + title at bottom ── */
.step-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.process-step:hover .step-footer {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.step-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex-shrink: 0;
}
.step-tag.light { color: var(--accent-light); }

.step-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.3;
}

/* ── Hover overlay: slides up from bottom ── */
.step-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.process-step:hover .step-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Accent line top of hover panel */
.step-hover::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s ease 0.15s;
}
.process-step:hover .step-hover::before { width: 100%; }

.step-title-hover {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
  margin: 8px 0 12px;
  line-height: 1.3;
}

.step-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}


/* ═══════════════════════════════════════════
   VISION
═══════════════════════════════════════════ */
.vision {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.vision-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,13,0.70) 0%,
    rgba(13,13,13,0.45) 100%
  );
}

.vision-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.vision-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--white);
  margin: 16px 0 28px;
}

.vision-text {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 56px;
  font-weight: 400;
}

.vision-pillars {
  display: flex;
  align-items: center;
  gap: 0;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 36px;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  transition: var(--transition);
  min-width: 140px;
}
.pillar:hover {
  border-color: var(--accent);
  background: rgba(200, 131, 74, 0.08);
}

.pillar-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
}

.pillar span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
}

.pillar-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.15);
}


/* ═══════════════════════════════════════════
   STEEL 2.0
═══════════════════════════════════════════ */
.steel {
  padding: 40px 0 100px;
  background: var(--light-bg);
}

.steel .section-tag          { color: var(--accent); }
.steel .section-tag::before  { background: var(--accent); }
.steel .section-title        { color: var(--text-dark); }
.steel .title-line           { background: var(--accent); }
.steel .section-subtitle     { color: var(--text-dark-2); }
.steel .steel-dot            { background: var(--light-border); }
.steel .steel-dot.active     { background: var(--accent); }
.steel .steel-arrow          { border-color: var(--light-border); color: var(--text-dark-2); }
.steel .steel-arrow:hover    { background: var(--accent); border-color: var(--accent); color: var(--text-dark); }

/* ── Steel Slider ── */
.steel-slider-wrap {
  position: relative;
}

.steel-track-outer {
  overflow: hidden;
}

.steel-slider {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Card: image left | text right ── */
.steel-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex: 0 0 calc(50% - 12px);   /* 2 cards per view */
  min-width: 0;
  border: 1px solid var(--light-border);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: 0 2px 12px rgba(26,30,36,0.07);
}
.steel-card:hover {
  border-color: var(--accent);
}

.sc-image {
  background-size: cover;
  background-position: center;
  min-height: 220px;
  transition: transform 0.7s ease;
}
.steel-card:hover .sc-image {
  transform: scale(1.05);
}

.sc-body {
  background: var(--light-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sc-body::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.45s ease;
}
.steel-card:hover .sc-body::after { width: 100%; }

.sc-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 10px;
}

.sc-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.sc-title::after {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--accent);
  margin-top: 10px;
}

.sc-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dark-2);
}

/* ── Controls ── */
.steel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 0;
}

.steel-dots {
  display: flex;
  gap: 10px;
}

.steel-dot {
  width: 28px; height: 2px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.steel-dot.active {
  width: 48px;
  background: var(--accent);
}

.steel-arrows {
  display: flex;
  gap: 8px;
}

.steel-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: transparent;
}
.steel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}


/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contacto {
  padding: 40px 0 100px;
  background: var(--light-bg);
  border-top: 1px solid var(--light-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: stretch;  /* ambas columnas misma altura */
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text-dark);
  margin: 16px 0 24px;
}

.contact-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark-2);
  margin-bottom: 20px;
}

.contact-details {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ci-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}

.ci-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 2px;
}
.ci-value {
  display: block;
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
}

/* Form */
.contact-form-wrap {
  background: var(--light-card);
  border: 1px solid var(--light-border);
  padding: 48px;
  box-shadow: 0 4px 24px rgba(26, 30, 36, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark-2);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  color: var(--text-dark);
  font-family: var(--font);
  font-size: 14px;
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
  border-radius: var(--radius);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-2);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(200, 131, 74, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
}
.form-success.show { display: flex; }
.form-success i { font-size: 20px; }


/* ── Contact map ── */
.contact-map {
  margin-top: 20px;
  flex: 1;              /* crece para igualar altura con el formulario */
  min-height: 220px;
  width: 100%;
  border: 1px solid var(--light-border);
  overflow: hidden;
  position: relative;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.footer-tagline {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent); }

.footer-divider {
  width: 100%; height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }

  /* Process: 2 cols */
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { height: 240px; }

  /* Vision */
  .vision-pillars { flex-wrap: wrap; gap: 12px; }
  .pillar-line { display: none; }

  /* Steel: 1 card visible */
  .steel-card {
    flex: 0 0 100%;
    grid-template-columns: 260px 1fr;
  }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 20px; }

  /* ─ Nav: fondo oscuro en mobile antes de scroll ─ */
  .navbar {
    background: var(--bg);
    box-shadow: 0 1px 0 rgba(255,255,255,0.10);
    backdrop-filter: none;
  }
  /* Al hacer scroll: fondo blanco igual que desktop */
  .navbar.scrolled {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 1px 0 var(--light-border) !important;
  }
  .navbar.scrolled .nav-link         { color: var(--text-dark); }
  .navbar.scrolled .nav-link:hover,
  .navbar.scrolled .nav-link.active  { color: var(--text-dark); }
  .navbar.scrolled .nav-cta          { color: var(--accent); border-color: var(--accent); }
  .navbar.scrolled .nav-toggle span  { background: var(--text-dark); }
  .navbar.scrolled .nav-logo-img     { filter: brightness(0) !important; opacity: 0.85 !important; }
  /* El menú abierto sigue siendo oscuro */
  .navbar.scrolled .nav-links        { background: var(--light-card); }
  .navbar.scrolled .nav-link         { color: var(--text-dark); border-bottom-color: var(--light-border); }

  .nav-container {
    padding: 0 20px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;         /* evita que el logo desborde */
  }

  /* Logo: tamaño fijo, sin stretching del flex parent */
  .nav-logo {
    display: block;           /* override flex-column del base */
    flex-shrink: 0;
    line-height: 0;
  }
  .nav-logo-img {
    display: block !important;
    height: 44px !important;
    width: auto !important;
    max-height: 44px !important;
    object-fit: contain;
  }

  /* ─ Hamburger toggle ─ */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px 8px 12px;
    flex-shrink: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    display: block;
    border-radius: 1px;
  }

  /* ─ Mobile menu drawer ─ */
  .nav-links {
    position: fixed;
    /* Cuando cerrado: oculto completamente arriba del viewport */
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 0 0 16px;
    /* translateY(-100%) mueve la altura del menú hacia arriba desde top:nav-h
       → queda completamente fuera de la pantalla */
    transform: translateY(calc(-100% - var(--nav-h)));
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 998;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li   { width: 100%; }

  .nav-link {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-1);
  }
  .nav-link:hover,
  .nav-link.active { color: var(--white); }
  .nav-link::after { display: none; }

  .nav-cta {
    margin: 16px 20px 0;
    display: inline-flex;
    color: var(--accent);
    border-color: var(--accent);
    width: calc(100% - 40px);
    justify-content: center;
    padding: 12px 20px;
  }

  /* ─ Hero ─ */
  .hero { min-height: 100svh; min-height: 100vh; }
  .hero-content {
    padding: 0 20px;
    padding-top: calc(var(--nav-h) + 48px);
  }
  .hero-title    { font-size: clamp(26px, 7.5vw, 40px); }
  .hero-subtitle { font-size: 13px; line-height: 1.7; }
  .hero-subtitle br { display: none; }
  .hero-tag      { font-size: 10px; }
  .hero-actions  { flex-direction: column; gap: 12px; }
  .btn           { width: 100%; justify-content: center; }
  .slider-btn    { display: none; }
  .scroll-indicator { display: none; }

  /* ─ Process ─ */
  .proceso { padding: 32px 0 52px; }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .process-step { height: 185px; }
  .step-footer  { padding: 14px 16px; gap: 8px; }
  .step-title   { font-size: 11px; }
  .step-tag     { font-size: 10px; }

  /* Tap to reveal */
  .process-step.tapped .step-footer {
    opacity: 0; transform: translateY(10px); pointer-events: none;
  }
  .process-step.tapped .step-hover {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .process-step.tapped::after {
    background: linear-gradient(to top, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.80) 100%);
  }
  .process-step.tapped .step-hover::before { width: 100%; }
  .step-hover       { padding: 14px 16px; }
  .step-title-hover { font-size: 11px; margin: 5px 0 7px; }
  .step-desc        { font-size: 11px; line-height: 1.55; }

  /* ─ Vision ─ */
  .vision    { padding: 72px 0; min-height: 100svh; display: flex; align-items: center; }
  .vision-bg { background-attachment: scroll; }
  .vision-title { font-size: clamp(26px, 8vw, 40px); }
  .vision-text  { font-size: 14px; margin-bottom: 32px; }
  .vision-text br { display: none; }
  .vision-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }
  .pillar {
    padding: 20px 10px;
    min-width: 0;
    flex: none;
    text-align: center;
  }
  .pillar span {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .pillar-line { display: none; }

  /* ─ Steel: imagen arriba, texto abajo, card compacta ─ */
  .steel { padding: 32px 0 60px; }
  .steel-card {
    flex: 0 0 100%;
    grid-template-columns: 1fr;
    max-height: calc(100vh - var(--nav-h) - 130px);
  }
  .sc-image {
    height: 42%;
    min-height: 140px;
    max-height: 200px;
  }
  .sc-body {
    padding: 20px 20px;
    border-top: 1px solid var(--light-border);
    overflow-y: auto;
  }
  /* Encuadre personalizado por imagen */
  .sc-aislacion { background-position: center 40%; }
  .sc-hormigon  { background-position: center 40%; background-size: 150%; }

  .sc-num   { font-size: 28px; margin-bottom: 6px; }
  .sc-title { font-size: 13px; }
  .sc-title::after { margin-top: 8px; }
  .sc-desc  { font-size: 12px; line-height: 1.65; }
  .steel-controls { padding: 14px 0 0; }

  /* ─ Contact ─ */
  .contacto { padding: 32px 0 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-info { align-items: flex-start; text-align: left; }
  .contact-title { font-size: clamp(26px, 8vw, 38px); }
  .contact-text  { font-size: 14px; margin-bottom: 24px; }
  .contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }
  .contact-item:last-child { grid-column: 1 / -1; }
  .contact-item { align-items: center; gap: 8px; }
  .ci-icon { width: 28px; height: 28px; flex-shrink: 0; align-self: center; }
  .ci-value { white-space: normal; }
  .contact-form-wrap { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* ─ Map ─ */
  .contact-map { display: none; }

  /* ─ Footer ─ */
  .footer { padding: 40px 0; }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }
  .footer-logo-img { height: 48px; }
}

/* ─── Botones flotantes ─── */
.float-buttons {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-btn:hover {
  transform: scale(1.1);
}

.float-call {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(200, 150, 26, 0.45);
  font-size: 20px;
}
.float-call:hover {
  box-shadow: 0 8px 24px rgba(200, 150, 26, 0.55);
}

.float-whatsapp {
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}
.float-whatsapp:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { height: 200px; }
  .vision-pillars { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 26px; }
  .section-title { font-size: 22px; }
}
