/* =========================================
   ARCOSA — Style System
   Black / White / Red Industrial Identity
   Manufact-inspired layout
   ========================================= */

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

:root {
  --red: #CC1111;
  --red-dark: #AA0000;
  --black: #0A0A0A;
  --gray-dark: #1A1A1A;
  --gray: #2C2C2C;
  --gray-mid: #555;
  --gray-light: #999;
  --bg: #EDECEA;
  --bg-card: #E4E2DF;
  --white: #FFFFFF;
  --border: rgba(0,0,0,0.1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.5;
}

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

/* ── SEO / Accessibility: Screen Reader Only ── */
/* Hides content visually but keeps it accessible to search engines & screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals for grids */
.ventajas-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.ventajas-grid .reveal:nth-child(2) { transition-delay: 0.2s; }
.ventajas-grid .reveal:nth-child(3) { transition-delay: 0.3s; }
.ventajas-grid .reveal:nth-child(4) { transition-delay: 0.4s; }
.ventajas-grid .reveal:nth-child(5) { transition-delay: 0.5s; }
.ventajas-grid .reveal:nth-child(6) { transition-delay: 0.6s; }

.dark-stats .reveal:nth-child(1) { transition-delay: 0.1s; }
.dark-stats .reveal:nth-child(2) { transition-delay: 0.2s; }
.dark-stats .reveal:nth-child(3) { transition-delay: 0.3s; }
.dark-stats .reveal:nth-child(4) { transition-delay: 0.4s; }

/* ── Buttons ── */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(204,17,17,0.35); }
.btn-cta .arrow { transition: transform 0.2s; }
.btn-cta:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: 16px;
}
.btn-outline-white:hover { border-color: var(--red); color: var(--red); }

.btn-cta-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--black);
  font-size: 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  border: none; cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.btn-cta-sm:hover { background: var(--red-dark); transform: translateX(3px); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.badge-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
.badge-dot.red { background: var(--red); }

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: #FFFFFF;
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 32px;
  height: var(--nav-h);
  gap: 16px;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  margin-right: 32px;
}
.nav-logo-img { height: 60px; width: auto; }
.nav-logo sup { font-size: 0.55rem; vertical-align: super; color: var(--red); }
.nav-links {
  display: flex; gap: 4px; list-style: none;
  margin-left: auto;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--gray-mid);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--black); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { font-weight: 700; }

.nav-cta { margin-left: 20px; font-size: 0.9rem; padding: 10px 20px; }
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--black);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  flex-direction: column; gap: 8px;
  padding: 16px 24px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 0;
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-menu.open { display: flex; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* NO padding-top: el video corre desde la cima absoluta del viewport */
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroPan 20s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.05) translateX(-1.5%); }
}
#heroVideo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.70) 100%
  );
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  /* padding-top empuja el texto para que no quede detrás del navbar */
  padding: calc(var(--nav-h) + 60px) 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 20px 0 24px;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
}
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 8px;
}
.hero-bottom {
  position: absolute; bottom: 32px; left: 0; right: 0;
  z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 48px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.video-toggle {
  position: absolute; bottom: 32px; right: 48px;
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  display: none;
}
.video-toggle:hover { background: rgba(255,255,255,0.25); }

/* ── Stats Circles ── */
.stats-section {
  padding: 100px 32px;
  max-width: 1400px; margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}
.stat-circle {
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.stat-circle:hover { transform: scale(1.03); }
.stat-light {
  background: var(--white);
  border: 2px solid var(--border);
}
.stat-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.photo-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  background: rgba(10, 10, 10, 0.7);
  padding: 12px;
  border-radius: 8px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.stat-red { background: var(--red); color: var(--black); }
.stat-brand { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; color: var(--gray-mid); margin-bottom: 8px; }
.stat-number {
  font-size: 4rem; font-weight: 900; letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--gray-mid); margin: 12px 0; line-height: 1.4; max-width: 200px; }
.stat-rating { font-size: 0.8rem; font-weight: 700; }
.stat-red .stat-label { color: rgba(0,0,0,0.6); }
.stat-red .stat-tag { color: rgba(0,0,0,0.65); }
.stat-red .stat-number-sm { color: var(--black); }
.stat-rating { font-size: 0.8rem; font-weight: 700; }
.stat-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 8px; }
.stat-number-sm { font-size: 1.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.stat-icon { font-size: 2.5rem; margin-top: 16px; }

/* ── Section Shared ── */
.section-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--black);
}
.section-title.light { color: var(--white); }
.section-body { font-size: 1rem; color: var(--gray-mid); line-height: 1.75; margin-bottom: 16px; }
.section-body.light { color: rgba(255,255,255,0.7); }
.section-header {
  text-align: center;
  max-width: 700px; margin: 0 auto 64px;
  padding: 0 32px;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-header p { color: var(--gray-mid); font-size: 1.05rem; }

/* ── Nosotros ── */
.nosotros { padding: 100px 0; }
.nosotros .section-inner {
  grid-template-columns: minmax(auto, 280px) 1fr;
  gap: 40px;
}
.team-badge {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.team-avatars { display: flex; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-left: -10px;
  color: var(--white);
}
.av1 { background: var(--black); margin-left: 0; }
.av2 { background: var(--red); }
.av3 { background: var(--gray); }
.av4 {
  background: var(--gray-dark);
  font-size: 0.7rem;
}
.team-badge p { font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
.team-label { font-size: 0.8rem; color: var(--gray-light); margin-top: 8px; }
.nosotros-visual {
  position: relative;
  max-width: 1400px; margin: 64px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.nosotros-img {
  width: 100%; height: 400px;
  object-fit: cover;
  border-radius: 8px;
}
.nosotros-quote {
  background: var(--black);
  border-radius: 8px;
  padding: 48px;
  border-left: 4px solid var(--red);
}
.nosotros-quote p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  font-style: italic;
}

/* ── Arcotecho (dark) ── */
.dark-section {
  background: var(--black);
  color: var(--white);
  padding: 100px 0;
}
.arcotecho-section .section-inner { padding: 0 32px 80px; }
.stat-big { margin: 32px 0; }
.stat-mega {
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.stat-mega span { font-size: 3rem; }
.stat-big p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-top: 8px; }

/* Proceso timeline */
.proceso-timeline {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px 80px;
}
.proceso-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}
.proceso-steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.proceso-steps::-webkit-scrollbar { height: 3px; }
.proceso-steps::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
.proceso-steps::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
.paso {
  background: var(--gray-dark);
  border-radius: 8px;
  padding: 24px;
  flex: 1; min-width: 160px;
  border-top: 3px solid var(--red);
  transition: transform 0.2s;
}
.paso:hover { transform: translateY(-4px); }
.paso-num { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--red); margin-bottom: 8px; }
.paso-icon { font-size: 1.8rem; margin-bottom: 12px; }
.paso h4 { font-size: 0.9rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.paso p { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.paso-arrow { font-size: 1.5rem; color: var(--red); align-self: center; flex-shrink: 0; }

/* Ventajas grid */
.ventajas-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ventaja-card {
  background: var(--gray-dark);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.ventaja-card:hover {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(204,17,17,0.1);
}
.ventaja-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s var(--ease);
}
.ventaja-card:hover::after {
  left: 100%;
}
.ventaja-card:hover .ventaja-icon svg {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(204,17,17,0.6));
}
.ventaja-icon svg { transition: transform 0.3s var(--ease), filter 0.3s; }

/* Staggered card entrance */
.ventaja-card:nth-child(1) { animation-delay: 0.05s; }
.ventaja-card:nth-child(2) { animation-delay: 0.15s; }
.ventaja-card:nth-child(3) { animation-delay: 0.25s; }
.ventaja-card:nth-child(4) { animation-delay: 0.35s; }
.ventaja-card:nth-child(5) { animation-delay: 0.45s; }
.ventaja-card:nth-child(6) { animation-delay: 0.55s; }

@keyframes cardFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.ventaja-icon { font-size: 2rem; margin-bottom: 16px; }
.ventaja-card h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.ventaja-card p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* Materiales table */
.materiales-section {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
}
.materiales-section h3 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 24px; text-align: center; }

.mat-card {
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.mat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-color: var(--red);
}
.mat-card.premium {
  background: #0A0A0A;
  border: 2px solid #CC1111;
  border-radius: 12px;
  padding: 50px 30px;
  box-shadow: 0 15px 40px rgba(204,17,17,0.2);
  transform: scale(1.03);
  z-index: 2;
}
.mat-card.premium:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 20px 50px rgba(204,17,17,0.4);
}
.materiales-table { border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.mat-header, .mat-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr 1.5fr;
  padding: 16px 24px;
}
.mat-header {
  background: rgba(255,255,255,0.05);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.mat-row {
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s;
}
.mat-row:hover { background: rgba(255,255,255,0.03); }
.mat-highlight { background: rgba(204,17,17,0.08); border-top-color: rgba(204,17,17,0.3) !important; }
.mat-name { font-weight: 700; color: var(--white); }

/* ── Diferenciadores ── */
.diferenciadores { padding: 100px 0; }
.dif-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dif-card {
  background: var(--white);
  border-radius: 8px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  overflow: hidden;
}
.dif-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.dif-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.dif-card:hover::before { transform: scaleX(1); }
.dif-num { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--red); margin-bottom: 16px; }
.dif-icon { font-size: 2rem; margin-bottom: 16px; }
.dif-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; color: var(--black); }
.dif-card p { font-size: 0.875rem; color: var(--gray-mid); line-height: 1.65; }

/* ── Servicios ── */
.servicios { padding: 100px 0; border-top: 1px solid var(--border); }
.servicio-row {
  max-width: 1400px; margin: 0 auto;
  padding: 32px 32px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 60px 260px 1fr 1.5fr 60px;
  gap: 32px;
  align-items: center;
  transition: background 0.2s;
}
.servicio-row:hover { background: var(--bg-card); }
.srv-icon-wrap { display: flex; align-items: center; }
.srv-icon { font-size: 1.8rem; }
.srv-img-wrap { border-radius: 6px; overflow: hidden; height: 140px; }
.srv-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.servicio-row:hover .srv-img-wrap img { transform: scale(1.05); }
.srv-title h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.srv-features .feat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-light); margin-bottom: 10px; }
.srv-features ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.srv-features li { font-size: 0.875rem; color: var(--gray-mid); }
.srv-features li::first-letter { color: var(--red); }

.servicios-extra {
  max-width: 1400px; margin: 48px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.extra-card {
  background: var(--black);
  border-radius: 8px;
  padding: 36px;
  color: var(--white);
  transition: transform 0.2s;
}
.extra-card:hover { transform: translateY(-4px); }
.extra-icon { font-size: 2rem; margin-bottom: 16px; }
.extra-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.extra-card p { font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* ── Proyectos (dark) ── */
.proyectos { padding: 100px 0; }
.proyectos-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
}
.proyecto-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
}
.proyecto-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.proyecto-card:hover img { transform: scale(1.06); }
.proy-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: background 0.3s;
}
.proy-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.proy-overlay h3 { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 8px; line-height: 1.3; }
.proy-overlay p { font-size: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 16px; }

.dark-stats {
  max-width: 1400px; margin: 64px auto 0;
  padding: 48px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.dark-stat {
  padding: 32px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.dark-stat:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(204,17,17,0.2);
  background: rgba(255,255,255,0.04);
}
.ds-num {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.4s var(--ease), text-shadow 0.4s var(--ease);
}
.dark-stat:hover .ds-num {
  color: var(--white);
  text-shadow: 0 0 20px var(--red);
}
.ds-label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 8px; }

/* ── Calculadora ── */
.calculadora { padding: 100px 0; }
.calc-container {
  max-width: 1100px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.calc-form, .calc-result {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  border: 1px solid var(--border);
}
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.calc-field label { font-size: 0.8rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; }
.calc-field input, .calc-field select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.calc-field input:focus, .calc-field select:focus { border-color: var(--red); }
.calc-btn { width: 100%; justify-content: center; margin-top: 8px; }
.calc-result { display: flex; align-items: center; justify-content: center; }
.result-placeholder { text-align: center; color: var(--gray-light); }
.result-placeholder p:first-child { font-size: 3rem; margin-bottom: 16px; }
.result-placeholder p { font-size: 0.95rem; line-height: 1.6; }
.result-content { width: 100%; }
.result-content h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 24px; color: var(--black); }
.result-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.result-row:last-child { border-bottom: none; }
.result-row span:first-child { color: var(--gray-mid); }
.result-row span:last-child { font-weight: 700; color: var(--black); }
.result-total { background: var(--black); color: var(--white); padding: 16px; border-radius: 4px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.result-total span:last-child { font-size: 1.2rem; font-weight: 900; color: var(--red); }
.result-disclaimer { font-size: 0.75rem; color: var(--gray-light); margin-top: 12px; line-height: 1.5; }

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  background: var(--black);
  padding: 80px 32px;
  overflow: hidden;
  text-align: center;
}
.cta-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(204,17,17,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 32px; line-height: 1.2; }
.cta-main-btn { font-size: 1.05rem; padding: 18px 36px; }

/* ── Contacto ── */
.contacto { padding: 100px 0; }
.contact-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
}
.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 48px;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field label { font-size: 0.78rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; }
.form-field input, .form-field select {
  height: 50px;
  box-sizing: border-box;
}
.form-field input, .form-field select, .form-field textarea {
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-field textarea {
  padding: 16px;
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--red); }
.form-privacy { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 0.85rem; }
.form-privacy input[type="checkbox"] { accent-color: var(--red); width: 16px; height: 16px; }
.form-privacy a { color: var(--red); text-decoration: underline; }
.form-submit { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }
.form-success { display: none; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 16px; border-radius: 4px; margin-top: 16px; font-size: 0.9rem; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.info-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red); }
.info-card p { font-size: 0.9rem; color: var(--gray-mid); line-height: 1.6; }
.info-card a { color: var(--black); text-decoration: none; font-weight: 600; }
.info-card a:hover { color: var(--red); }
.whatsapp-btn { width: 100%; justify-content: center; }

/* ── Footer ── */
.footer { background: var(--black); color: var(--white); }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 80px 32px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-logo {
  font-size: 2rem; font-weight: 900; letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.footer-logo sup { font-size: 0.5rem; color: var(--red); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.75rem; font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--red); color: var(--black); border-color: var(--red); }
.footer-col h5 {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col li a:hover { color: var(--red); }
.footer-col li { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── Floating Social Icons ── */
.floating-socials {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.float-icon {
  position: relative;
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--black);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(204,17,17,0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
  animation: floatIn 0.5s var(--ease) both;
}
.float-icon:nth-child(1) { animation-delay: 0.1s; }
.float-icon:nth-child(2) { animation-delay: 0.2s; }
.float-icon:nth-child(3) { animation-delay: 0.3s; }
.float-icon:nth-child(4) { animation-delay: 0.4s; }

@keyframes floatIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.float-icon:hover {
  transform: translateX(-4px) scale(1.08);
  box-shadow: 0 8px 28px rgba(204,17,17,0.55);
  background: var(--red-dark);
}
.float-icon svg {
  width: 22px; height: 22px;
  stroke: var(--black);
  flex-shrink: 0;
}
.float-whatsapp {
  width: 52px; height: 52px;
  margin-left: -2px;
}
.float-whatsapp svg { width: 24px; height: 24px; }

/* Tooltip */
.float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%; transform: translateY(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(-50%) translateX(6px);
}
.float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--black);
}
.float-icon:hover .float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
  .floating-socials {
    right: 12px;
    gap: 8px;
  }
  .float-icon { width: 42px; height: 42px; border-radius: 6px; }
  .float-tooltip { display: none; }
}

/* ── Nav Logo Image ── */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ── Footer Logo Image ── */
.footer-logo-link {
  display: block;
  text-decoration: none;
  margin-bottom: 16px;
}
.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(1);
}

/* ── Infografia Blocks ── */
.infografia-block {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 32px;
}
.infografia-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}
.infografia-fullwidth {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 60px;
}
.infografia-fullwidth img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

/* ── Nosotros Full Infografia ── */
.nosotros-img.full-infografia {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}
.nosotros-visual {
  display: block;
  max-width: 1400px;
  margin: 48px auto 0;
  padding: 0 32px;
}

/* ── Seguridad Section ── */
.seguridad-section {
  padding: 60px 0;
}

/* ── Calidad Section ── */
.calidad-section {
  padding: 100px 0;
}
.calidad-section .section-header {
  color: var(--white);
}
.calidad-section .section-header p {
  color: rgba(255,255,255,0.6);
}

/* ── Proceso Section ── */
.proceso-section {
  padding: 60px 0;
  background: #0d0d0d;
}
.proceso-section .section-header { padding: 0 5%; }
.proceso-section .section-header h2 { color: #fff; }
.proceso-section .section-header p {
  color: rgba(255,255,255,0.55);
}
.proceso-section .badge { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.proceso-section .badge-dot { background: #CC1111; }

/* ── Mantenimiento Section ── */
.mantenimiento-section {
  padding: 80px 0;
  background: #0a0a0a;
}
.mantenimiento-section .section-header h2 { color: #fff; }
.mantenimiento-section .section-header p { color: rgba(255,255,255,0.55); }
.mantenimiento-section .badge { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.mantenimiento-section .badge-dot { background: #CC1111; }

@media (max-width: 900px) {
  .infografia-block { padding: 0 16px; margin-bottom: 28px; }
  .infografia-fullwidth { padding: 0 16px 40px; }
  .nav-logo-img { height: 36px; }
  .footer-logo-img { height: 48px; }
}

/* ── Nav Logo Image ── */
.nav-logo-img { height:64px; width:auto; object-fit:contain; }

/* ── Footer Logo Image ── */
.footer-logo-link { display:block; text-decoration:none; margin-bottom:16px; }
.footer-logo-img { height:60px; width:auto; object-fit:contain; }

/* ════ NO SOMOS UNA CUADRILLA — PROBLEMA ════ */
.problema-section {
  max-width:1400px; margin:80px auto 0; padding:0 32px;
}
.problema-inner {
  display:grid; grid-template-columns:1fr 2fr; gap:64px; align-items:center;
  background:var(--black); border-radius:12px; padding:60px;
  border-left:6px solid var(--red);
}
.problema-left .problema-tag {
  font-size:0.7rem; font-weight:800; letter-spacing:0.15em; color:var(--red);
  text-transform:uppercase; margin-bottom:16px;
}
.problema-left p { color:rgba(255,255,255,0.6); font-size:0.95rem; line-height:1.7; }
.problema-right h3 { font-size:clamp(1.4rem,2.5vw,2rem); font-weight:900; color:var(--white); line-height:1.2; margin-bottom:32px; }
.identidad-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.identidad-card {
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  border-radius:8px; padding:28px;
}
.identidad-card .ic-title {
  font-size:0.7rem; font-weight:800; letter-spacing:0.12em; color:var(--red);
  text-transform:uppercase; margin-bottom:12px;
}
.identidad-card p { font-size:0.875rem; color:rgba(255,255,255,0.65); line-height:1.65; }

/* ════ ADN INDUSTRIAL ════ */
.adn-section { max-width:1400px; margin:80px auto 0; padding:0 32px; }
.adn-header { text-align:center; margin-bottom:48px; }
.adn-header h2 { font-size:clamp(1.8rem,3vw,2.8rem); font-weight:900; letter-spacing:-0.03em; }
.adn-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.adn-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
  padding:40px 36px; position:relative; overflow:hidden;
  transition:transform 0.3s var(--ease), box-shadow 0.3s;
}
.adn-card:hover { transform:translateY(-6px); box-shadow:0 24px 48px rgba(0,0,0,0.1); }
.adn-card.adn-mid { background:var(--black); color:var(--white); }
.adn-card.adn-mid h3 { color:var(--white); }
.adn-card.adn-mid p { color:rgba(255,255,255,0.65); }
.adn-num { font-size:0.7rem; font-weight:800; letter-spacing:0.1em; color:var(--red); margin-bottom:16px; }
.adn-card h3 { font-size:1.2rem; font-weight:800; margin-bottom:12px; }
.adn-card p { font-size:0.9rem; color:var(--gray-mid); line-height:1.7; }
.adn-quote {
  margin-top:20px; padding:16px; background:rgba(204,17,17,0.08);
  border-left:3px solid var(--red); border-radius:4px;
  font-size:0.85rem; font-style:italic; color:var(--gray-mid); line-height:1.6;
}

/* ════ SEGURIDAD STATEMENT ════ */
.seguridad-statement {
  max-width:1400px; margin:80px auto 0; padding:0 32px;
}
.seg-inner {
  background:var(--black); border-radius:12px; padding:60px;
  text-align:center;
}
.seg-headline {
  font-size:clamp(1.5rem,2.5vw,2.2rem); font-weight:900; color:var(--white);
  line-height:1.3; margin-bottom:48px; font-style:italic;
  border-bottom:1px solid rgba(255,255,255,0.1); padding-bottom:48px;
}
.seg-pillars { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; text-align:left; }
.seg-pillar { display:flex; flex-direction:column; }
.seg-label { font-size:0.7rem; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; margin-bottom:12px; display:block; }
.seg-pillar p { font-size:0.875rem; color:rgba(255,255,255,0.6); line-height:1.7; }

/* ════ 7 LÍNEAS ════ */
.lineas-section { max-width:1400px; margin:0 auto; padding:80px 32px 0; }
.lineas-header { text-align:center; margin-bottom:48px; }
.lineas-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.linea-card {
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
  border-radius:10px; padding:28px 24px; position:relative;
  transition:background 0.3s, transform 0.3s;
}
.linea-card:hover { background:rgba(204,17,17,0.12); transform:translateY(-4px); }
.linea-num {
  display:inline-block; width:36px; height:36px; background:var(--red);
  color:var(--black); font-size:0.75rem; font-weight:900;
  border-radius:50%; text-align:center; line-height:36px; margin-bottom:16px;
}
.linea-card h4 { font-size:0.9rem; font-weight:800; color:var(--white); margin-bottom:10px; line-height:1.3; }
.linea-card p { font-size:0.8rem; color:rgba(255,255,255,0.5); line-height:1.6; }

/* ════ FORMULA — INVERSIÓN BLINDADA ════ */
.formula-section {
  max-width:1400px; margin:0 auto 64px; padding:0 32px;
}
.formula-inner {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:60px; text-align:center;
}
.formula-title { font-size:clamp(1.4rem,2.5vw,2rem); font-weight:900; margin-bottom:40px; }
.formula-eq {
  display:flex; align-items:center; justify-content:center; gap:20px;
  flex-wrap:wrap; margin-bottom:32px;
}
.formula-box {
  background:var(--black); color:var(--white); border-radius:8px;
  padding:20px 28px; font-size:0.9rem; font-weight:700; line-height:1.4; text-align:center;
  min-width:120px;
}
.formula-op { font-size:2rem; font-weight:900; color:var(--red); }
.formula-result {
  background:var(--red); color:var(--black); border-radius:8px;
  padding:20px 28px; font-size:1rem; font-weight:900; text-align:center; line-height:1.4;
}
.formula-result small { font-size:0.65rem; font-weight:700; letter-spacing:0.1em; display:block; }
.formula-sub { font-size:0.9rem; color:var(--gray-mid); line-height:1.75; max-width:720px; margin:0 auto; }

/* ════ CICLO GRID (reemplaza dif-grid) ════ */
.ciclo-grid {
  max-width:1400px; margin:0 auto 0; padding:0 32px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
}
.ciclo-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:10px; padding:36px 28px; position:relative; overflow:hidden;
  transition:transform 0.3s var(--ease), box-shadow 0.3s;
}
.ciclo-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:var(--red); transform:scaleX(0); transform-origin:left;
  transition:transform 0.3s var(--ease);
}
.ciclo-card:hover { transform:translateY(-6px); box-shadow:0 20px 50px rgba(0,0,0,0.1); }
.ciclo-card:hover::before { transform:scaleX(1); }
.ciclo-icon { font-size:2rem; margin-bottom:12px; }
.ciclo-num { font-size:0.7rem; font-weight:800; letter-spacing:0.1em; color:var(--red); margin-bottom:14px; }
.ciclo-card h3 { font-size:1rem; font-weight:800; margin-bottom:12px; color:var(--black); }
.ciclo-card p { font-size:0.875rem; color:var(--gray-mid); line-height:1.65; }

/* ════ EMBUDO CALIDAD ════ */
.embudo-section { max-width:1400px; margin:0 auto; padding:0 32px 60px; }
.embudo-title { font-size:clamp(1.4rem,2.5vw,2rem); font-weight:900; color:var(--white); text-align:center; margin-bottom:40px; }
.embudo-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.embudo-card {
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  border-radius:10px; padding:32px 24px;
  position:relative; transition:background 0.3s, transform 0.3s;
}
.embudo-card:hover { background:rgba(204,17,17,0.12); transform:translateY(-4px); }
.embudo-level {
  display:inline-block; background:var(--red); color:var(--black);
  font-size:0.7rem; font-weight:900; padding:4px 12px; border-radius:100px;
  letter-spacing:0.08em; margin-bottom:16px;
}
.embudo-card h4 { font-size:1rem; font-weight:800; color:var(--white); margin-bottom:10px; }
.embudo-card p { font-size:0.85rem; color:rgba(255,255,255,0.55); line-height:1.6; margin-bottom:16px; }
.embudo-filtro {
  font-size:0.78rem; color:rgba(255,255,255,0.4); border-top:1px solid rgba(255,255,255,0.1);
  padding-top:12px; line-height:1.5;
}
.embudo-filtro strong { color:var(--red); }

/* ════ ARQUITECTURA CALIDAD ════ */
.arq-calidad { max-width:1400px; margin:0 auto; padding:0 32px 60px; }
.arq-title { font-size:clamp(1.4rem,2.5vw,2rem); font-weight:900; text-align:center; margin-bottom:40px; }
.arq-beam { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border:1px solid rgba(255,255,255,0.1); border-radius:10px; overflow:hidden; }
.arq-level { padding:32px 24px; border-right:1px solid rgba(255,255,255,0.1); }
.arq-level:last-child { border-right:none; }
.arq-1 { background:rgba(204,17,17,0.25); }
.arq-2 { background:rgba(204,17,17,0.18); }
.arq-3 { background:rgba(204,17,17,0.12); }
.arq-4 { background:rgba(204,17,17,0.06); }
.arq-lnum { font-size:0.75rem; font-weight:800; color:var(--red); letter-spacing:0.05em; margin-bottom:12px; text-transform:uppercase; }
.arq-level p { font-size:0.85rem; color:rgba(255,255,255,0.65); line-height:1.6; }

/* ════ SEGURIDAD PRIMERO ════ */
.seg-primero { max-width:1400px; margin:0 auto; padding:0 32px 60px; }
.seg-p-title { font-size:clamp(1.5rem,2.5vw,2rem); font-weight:900; color:var(--white); text-align:center; margin-bottom:24px; }
.seg-p-center {
  background:var(--red); color:var(--black); text-align:center;
  padding:28px; border-radius:10px; font-size:clamp(1.2rem,2vw,1.8rem);
  font-weight:900; margin:0 auto 32px; max-width:500px; letter-spacing:-0.02em;
}
.seg-p-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.seg-p-card {
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1);
  border-radius:10px; padding:28px;
}
.seg-p-card h4 { font-size:0.95rem; font-weight:800; color:var(--white); margin-bottom:12px; }
.seg-p-card p { font-size:0.85rem; color:rgba(255,255,255,0.55); line-height:1.65; }

/* Fases macro */
.fases-macro {
  max-width:1400px; margin:0 auto 60px; padding:0 32px;
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr; gap:16px; align-items:center;
}
.fase-macro {
  background: #181818;
  border:1px solid rgba(255,255,255,0.1);
  border-top:4px solid var(--red); border-radius:10px; padding:32px;
}
.fm-num { font-size:0.7rem; font-weight:800; color:var(--red); letter-spacing:0.1em; margin-bottom:8px; }
.fm-title { font-size:1rem; font-weight:800; margin-bottom:12px; color:#fff; }
.fase-macro p { font-size:0.85rem; color:rgba(255,255,255,0.55); line-height:1.6; }
.fm-arrow { font-size:1.5rem; color:var(--red); font-weight:900; flex-shrink:0; }

/* Fase desglose */
.fase-desglose { max-width:1400px; margin:0 auto 60px; padding:0 32px; }
.fade-desglose-dark { background:transparent; }
.fd-title { font-size:clamp(1.2rem,2vw,1.6rem); font-weight:900; margin-bottom:32px; color:#fff; }
.fd-steps {
  display:grid; grid-template-columns:repeat(8,1fr); gap:8px; overflow-x:auto;
}
.fd-step {
  background: #181818;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px; padding:20px 16px;
  border-top:3px solid var(--red);
}
.fase-dark .fd-step { background:var(--black); border-color:rgba(255,255,255,0.1); }
.fase-dark .fds-name { color:var(--white); }
.fase-dark .fd-step p { color:rgba(255,255,255,0.5); }
.step-icon-bp {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; border-bottom: 1px solid rgba(204,17,17,0.2); padding-bottom: 8px;
}
.step-icon-bp svg { width: 40px; height: 40px; opacity: 0.9; }
.fds-num { font-size: 1.5rem; font-weight: 900; color: rgba(204,17,17,0.4); margin-bottom: 0; }
.fds-name { font-size:0.85rem; font-weight:700; color:#fff; margin-bottom:8px; }
.fd-step p { font-size:0.78rem; color:rgba(255,255,255,0.55); line-height:1.5; }

/* ════ LICITACIONES ════ */
.licitaciones-section {
  max-width:1400px; margin:0 auto 60px; padding:0 32px;
  display:grid; grid-template-columns:1fr 1.5fr; gap:64px; align-items:center;
}
.lic-left h2 { font-size:clamp(1.5rem,2.5vw,2.2rem); font-weight:900; line-height:1.15; margin-bottom:20px; }
.lic-left p { color:rgba(255,255,255,0.6); font-size:0.95rem; line-height:1.7; }
.lic-right { display:flex; flex-direction:column; gap:20px; }
.lic-item { display:flex; gap:16px; align-items:flex-start; }
.lic-check {
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%; background:var(--red);
  color:var(--black); font-weight:900; font-size:0.8rem; flex-shrink:0; margin-top:2px;
}
.lic-item div { font-size:0.9rem; color:rgba(255,255,255,0.75); line-height:1.6; }
.lic-item div strong { color:var(--white); }

/* ════ EJECUCIÓN PÚBLICA ════ */
.ejecucion-publica {
  max-width:1400px; margin:0 auto 60px; padding:0 32px;
  background:rgba(255,255,255,0.04); border-radius:12px; padding:48px;
}
.ejecucion-publica h3 { font-size:clamp(1.2rem,2vw,1.8rem); font-weight:900; margin-bottom:32px; }
.ep-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ep-card { display:flex; gap:16px; align-items:flex-start; }
.ep-dot {
  width:12px; height:12px; border-radius:50%; background:var(--red);
  flex-shrink:0; margin-top:6px;
}
.ep-card h4 { font-size:0.95rem; font-weight:800; color:var(--white); margin-bottom:8px; }
.ep-card p { font-size:0.85rem; color:rgba(255,255,255,0.55); line-height:1.65; }

/* ════ MANTENIMIENTO TABLE ════ */
.mant-table { max-width:1200px; margin:0 auto; padding:0 32px; border-radius:12px; overflow:hidden; }
.mant-header, .mant-row {
  display:grid; grid-template-columns:1.2fr 2fr 2.5fr;
  padding:16px 28px; gap:16px;
}
.mant-header {
  background:var(--black); font-size:0.75rem; font-weight:700;
  letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.5);
  border-radius:10px 10px 0 0;
}
.mant-row { border-top:1px solid var(--border); background:var(--white); align-items:start; }
.mant-row:last-child { border-radius:0 0 10px 10px; }
.mant-cat { font-size:0.85rem; font-weight:800; color:var(--black); }
.mant-bad { font-size:0.85rem; color:var(--gray-mid); line-height:1.6; padding-left:16px; border-left:3px solid #ccc; }
.mant-good { font-size:0.85rem; color:var(--gray-mid); line-height:1.6; padding-left:16px; border-left:3px solid var(--red); }
.mant-col-bad { color:rgba(255,255,255,0.4); }
.mant-col-good { color:var(--red); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .servicio-row { grid-template-columns: 50px 200px 1fr 1fr 50px; gap: 20px; }
  .proyectos-grid { grid-template-columns: 1fr 1fr; }
  .proyecto-card.big { grid-column: 1 / -1; height: 300px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
  .stat-circle { border-radius: 12px; aspect-ratio: auto; padding: 32px; }
  .stat-photo { height: 250px; border-radius: 12px; }
  .stat-photo img { border-radius: 12px; }
  .section-inner { grid-template-columns: 1fr; gap: 32px; }
  .ventajas-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-header, .mat-row { grid-template-columns: 1fr 1fr; }
  .mat-header span:nth-child(3), .mat-header span:nth-child(4),
  .mat-row span:nth-child(3), .mat-row span:nth-child(4) { display: none; }
  /* New sections responsive */
  .problema-inner { grid-template-columns: 1fr; gap:32px; padding:40px 28px; }
  .identidad-grid { grid-template-columns: 1fr; }
  .adn-grid { grid-template-columns: 1fr; }
  .seg-pillars { grid-template-columns: 1fr; gap:24px; }
  .lineas-grid { grid-template-columns: repeat(2,1fr); }
  .formula-eq { flex-direction:column; }
  .ciclo-grid { grid-template-columns: repeat(2,1fr); }
  .embudo-grid { grid-template-columns: repeat(2,1fr); }
  .arq-beam { grid-template-columns: 1fr; }
  .arq-level { border-right:none; border-bottom:1px solid rgba(255,255,255,0.1); }
  .seg-p-grid { grid-template-columns: 1fr; }
  .fases-macro { grid-template-columns:1fr; }
  .fm-arrow { transform:rotate(90deg); }
  .fd-steps { grid-template-columns: repeat(4,1fr); }
  .licitaciones-section { grid-template-columns: 1fr; gap:32px; }
  .ep-grid { grid-template-columns: 1fr; }
  .mant-header, .mant-row { grid-template-columns: 1fr 1fr; }
  .mant-row > span:first-child { display:none; }
  .servicio-row { grid-template-columns: 1fr; padding: 24px 16px; }
  .srv-img-wrap { height: 200px; }
  .servicios-extra { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .dark-stats { grid-template-columns: repeat(2, 1fr); }
  .calc-container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .dif-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.8rem; }
  .ventajas-grid { grid-template-columns: 1fr; }
  .dark-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
  .dark-stats .stat-item { padding: 15px 10px !important; }
  .dark-stats .stat-item h3 { font-size: 2.2rem !important; }
  .dark-stats .stat-item p { font-size: 0.85rem !important; margin: 0 !important; line-height: 1.2; }
  .proceso-steps { flex-direction: column; }
  .paso-arrow { align-self: auto; transform: rotate(90deg); }
  .hero-bottom { padding: 0 20px; }
}

@media (max-width: 768px) {
  .slider-mobile {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 15px !important;
    padding-bottom: 20px !important;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
    grid-template-columns: unset !important;
  }
  .slider-mobile > div {
    min-width: 85% !important;
    flex: 0 0 85% !important;
    scroll-snap-align: center;
    margin: 0 !important;
  }
  .swipe-indicator {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #CC1111;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    opacity: 0.8;
    text-transform: uppercase;
  }
  .swipe-white { color: #FFF; opacity: 0.7; }
  .mobile-menu a {
    font-size: 0.9rem !important;
    padding: 10px 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-menu .btn-cta {
    width: auto !important;
    min-width: 250px;
    margin: 10px auto !important;
    padding: 14px 24px !important;
    justify-content: center !important;
    white-space: normal;
  }
  .mobile-hide { display: none !important; }
  .hero-actions .btn-cta, .hero-actions .btn-ghost { padding: 8px 16px !important; font-size: 0.85rem !important; }
  .nav-inner { justify-content: center !important; position: relative; }
  .nav-logo { margin: 0 auto !important; }
  .hamburger { position: absolute; right: 20px; }
  .calc-container h2 { font-size: 1.45rem !important; }
  .footer-inner > div { justify-content: center !important; text-align: center !important; width: 100%; }
  .footer-bottom a { margin: 0 auto; display: inline-flex; justify-content: center; }
  .swipe-indicator { margin: 55px auto 25px auto !important; }
  .calidad-section, .proceso-section, .diferenciadores { padding-top: 0 !important; padding-bottom: 0 !important; }
  .full-infographic-section { padding: 0 !important; margin: 0 0 20px 0 !important; line-height: 0; font-size: 0; position: relative; z-index: 2; }
  #nosotros .full-infographic-section { margin-top: 0 !important; }
  .full-infographic-section img { display: block !important; margin: 0 !important; width: 100% !important; border-radius: 0 !important; outline: none !important; border: none !important; }
}
@media (min-width: 769px) { .swipe-indicator { display: none; } }

/* ═══════════════════════════════════════════════
   NUEVAS SECCIONES — REDISEÑO FIEL A IMÁGENES
   ═══════════════════════════════════════════════ */

/* ── ADN Industrial — Columnas de acero 3D + cards rojo bordeadas ── */
.adn-section { background: #0A0A0A; overflow: hidden; }
.adn-full { position: relative; min-height: 480px; }
.adn-title-block {
  position: absolute; top: 48px; left: 5%;
  z-index: 10;
}
.adn-main-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; color: #fff;
  line-height: 1.1; text-transform: none;
}
.blueprint-adn {
  position: relative;
  width: 100%;
  padding-top: 80px; /* Space for the absolute title */
}
.blueprint-bg {
  width: 100%;
  height: auto;
  min-height: 480px;
  display: block;
}
.adn-cards-overlay {
  position: absolute;
  top: 140px; /* Aligned with the bottom of the SVG headers */
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 5%;
  gap: 2%;
  pointer-events: none;
}
.adn-col-content {
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
  pointer-events: auto;
}
.adn-bp-card {
  border: 1px solid #CC1111;
  background: rgba(10, 15, 10, 0.85); /* Dark solid to stand out from wireframe */
  backdrop-filter: blur(4px);
  padding: 24px;
  width: 100%;
  position: relative;
}
.bp-n {
  position: absolute; top: -12px; right: 16px;
  background: #111;
  color: #CC1111;
  font-family: monospace;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 2px 8px;
  border: 1px solid #CC1111;
}
.adn-bp-card h3 {
  color: #CC1111; font-size: 1.1rem; font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.adn-bp-card p {
  color: rgba(255,255,255,0.75); font-size: 0.82rem; line-height: 1.6;
  margin-bottom: 8px;
}
.adn-quote-red {
  color: #CC1111 !important;
  font-style: italic; font-size: 0.78rem !important;
}

/* ── No somos una cuadrilla (Arvia Group) ── */
.nc-section {
  display: flex; flex-direction: row;
  background: #0A0A0A;
  color: #FFF;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 900px) {
  .nc-section { flex-direction: column; }
}

.nc-left {
  flex: 1; min-width: 300px;
  background: linear-gradient(135deg, #1f1f1f 0%, #111 60%, #050505 100%);
  position: relative;
  padding: 80px 8%;
  border-right: 2px solid rgba(204,17,17,0.3);
  display: flex; flex-direction: column; justify-content: center;
}
.nc-big-one {
  position: absolute; right: -5%; bottom: -5%; 
  font-size: clamp(15rem, 35vw, 40rem);
  font-weight: 900; line-height: 0.7;
  color: rgba(255,255,255,0.03);
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,1) 0%, rgba(100,100,100,0.8) 50%, rgba(20,20,20,0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: 1;
  text-shadow: 10px 10px 20px rgba(0,0,0,0.8);
}
.nc-left-content { position: relative; z-index: 2; max-width: 480px; }
.nc-left h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 24px;
}
.nc-left h2 span { color: #CC1111; font-weight: 900; display: block; }
.nc-left p {
  color: rgba(255,255,255,0.7); font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
}
.nc-sparks {
  position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  background: radial-gradient(ellipse at center bottom, rgba(204,17,17,0.2) 0%, transparent 60%);
  pointer-events: none; z-index: 1;
}

.nc-right {
  flex: 1.2;
  display: flex; flex-direction: column;
  padding: 60px 4% 60px;
  align-items: center; justify-content: center;
}
.nc-diagram-wrap { width: 100%; max-width: 500px; margin: 0 auto 40px; }
.nc-diagram-svg { width: 100%; height: auto; display: block; }

.nc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(204,17,17,0.3); border: 2px solid rgba(204,17,17,0.2);
  width: 100%; max-width: 600px;
}
@media (max-width: 600px) {
  .nc-grid { grid-template-columns: 1fr; }
}
.nc-card {
  background: #0A0A0A;
  padding: 24px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: background 0.3s;
}
.nc-card:hover { background: rgba(204,17,17,0.05); }
.nc-icon { width: 40px; height: 40px; flex-shrink: 0; margin-top: 4px; }
.nc-icon svg { width: 100%; height: 100%; }
.nc-text h4 { font-size: 0.95rem; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.nc-text p { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ── Ecosistema — 4 cuadrantes con textura metal y cruz central ── */
.ecosistema-section {
  background: #111;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.01) 20px, rgba(255,255,255,0.01) 21px);
  padding: 60px 5% 80px;
}
.eco-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900;
  color: #fff; text-align: left;
  margin-bottom: 40px; max-width: 600px;
}
.eco-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; position: relative;
}
.eco-card {
  padding: 44px 36px;
  position: relative; overflow: hidden;
}
.eco-tl { background: linear-gradient(135deg, #1c1c1c 0%, #141414 100%); border: 1px solid rgba(204,17,17,0.2); }
.eco-tr { background: linear-gradient(225deg, #1c1c1c 0%, #141414 100%); border: 1px solid rgba(204,17,17,0.2); }
.eco-bl { background: linear-gradient(45deg, #1c1c1c 0%, #141414 100%); border: 1px solid rgba(204,17,17,0.2); }
.eco-br { background: linear-gradient(315deg, #1c1c1c 0%, #141414 100%); border: 1px solid rgba(204,17,17,0.2); }
.eco-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at var(--ox,50%) var(--oy,50%), rgba(204,17,17,0.12) 0%, transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.eco-tl::before { --ox: 100%; --oy: 100%; }
.eco-tr::before { --ox: 0%; --oy: 100%; }
.eco-bl::before { --ox: 100%; --oy: 0%; }
.eco-br::before { --ox: 0%; --oy: 0%; }
.eco-card:hover::before { opacity: 1; }
.eco-icon-wrap { width: 64px; height: 64px; margin-bottom: 20px; }
.eco-icon-wrap svg { width: 100%; height: 100%; }
.eco-num { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: #CC1111; margin-bottom: 10px; text-transform: uppercase; }
.eco-card h3 { color: #fff; font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.eco-card p { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.7; }
.eco-cross-h {
  position: absolute; left: 0; right: 0;
  top: 50%; height: 4px; margin-top: -2px;
  background: linear-gradient(90deg, #CC1111 0%, #AA0000 50%, #CC1111 100%);
  box-shadow: 0 0 16px rgba(204,17,17,0.5);
  pointer-events: none; z-index: 10;
}
.eco-cross-v {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 4px; margin-left: -2px;
  background: linear-gradient(180deg, #CC1111 0%, #AA0000 50%, #CC1111 100%);
  box-shadow: 0 0 16px rgba(204,17,17,0.5);
  pointer-events: none; z-index: 10;
}

/* ── Embudo Calidad — Hangar Doors Grid ── */
.puertas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; width: 100%; margin: 0 auto;
}
@media (max-width: 900px) {
  .puertas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .puertas-grid { grid-template-columns: 1fr; }
}
.puerta-card {
  display: flex; flex-direction: column; gap: 20px;
}
.puerta-svg-wrap {
  width: 100%; padding: 12px;
  background: linear-gradient(180deg, #111 0%, #050505 100%);
  border-radius: 4px; border: 1px solid rgba(255,255,255,0.08);
}
.hangar-door { width: 100%; height: auto; display: block; }
.puerta-info { padding: 4px 12px; border-left: 2px solid rgba(204,17,17,0.4); }
.p-num {
  font-size: 1.2rem; font-weight: 900; color: #CC1111;
  margin-bottom: 8px; font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}
.puerta-info h4 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; font-weight: 800; }
.puerta-info p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 12px; }
.p-check { font-size: 0.75rem; font-weight: 700; color: #fff; background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.1); }
.check-icon { color: #CC1111; font-weight: 900; }

/* ── Blueprint Arquitectura Calidad ── */
.arq-calidad-section {
  padding: 80px 5%; background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}
.ibeam-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 900;
  color: #fff; margin-bottom: 60px;
}
.arq-blueprint-grid {
  position: relative; width: 100%; max-width: 1000px; margin: 0 auto;
}
.arq-bg-truss {
  position: absolute; top: 0; left: 0; width: 100%; height: 300px;
  z-index: 0; pointer-events: none;
}
.arq-truss-svg { width: 100%; height: 100%; display: block; }
.arq-gauge {
  position: relative; z-index: 2; width: 220px; height: 220px; margin: 0 auto 30px;
}
.gauge-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 20px rgba(204,17,17,0.2)); }
.arq-cards-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  position: relative; z-index: 2; margin-top: -40px;
}
.arq-card {
  background: rgba(10,10,10,0.8); border: 1px solid rgba(204,17,17,0.3);
  padding: 24px; border-radius: 6px; backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.ac-num { font-size: 1.5rem; font-weight: 900; color: #CC1111; margin-bottom: 12px; font-family: 'Inter', sans-serif; letter-spacing: -0.05em; }
.arq-card h4 { font-size: 1.1rem; color: #fff; font-weight: 800; margin-bottom: 10px; }
.arq-card p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

@media (max-width: 768px) {
  .arq-cards-row { grid-template-columns: 1fr; margin-top: 20px; }
  .arq-bg-truss { display: none; }
}

/* ── Seguridad Primero — Alarma industrial central ── */
.segprimero-section {
  padding: 80px 5%;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}
.segprimero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(204,17,17,0.06) 0%, transparent 60%);
}
.sp-main-title {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900;
  color: #fff; text-align: center; margin-bottom: 60px;
}
.sp-layout {
  display: flex; align-items: center;
  gap: 40px; justify-content: center;
}
.sp-side-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 28px 24px; max-width: 260px;
  position: relative;
}
.sp-side-card h4 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.sp-side-card p { color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.6; }
/* Blueprint industrial CSS */
.blueprint-sp {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 300px;
}
.sp-blueprint-svg {
  width: 100%; height: auto; display: block;
}
.blueprint-line {
  position: absolute; background: rgba(204,17,17,0.4);
  pointer-events: none;
}
.sp-line-l { width: 60px; height: 1px; right: 100%; top: 50%; }
.sp-line-r { width: 60px; height: 1px; left: 100%; top: 50%; }
.sp-line-b { width: 1px; height: 50px; left: 50%; bottom: -50px; }
.sp-connector { position: absolute; height: 1px; width: 40px; background: rgba(255,255,255,0.15); top: 50%; }
.sp-conn-right { right: -40px; }
.sp-conn-left { left: -40px; }
.sp-bottom-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 24px; max-width: 400px;
  margin: 30px auto 0;
  text-align: center;
}
.sp-bottom-card h4 { color: #fff; font-weight: 800; margin-bottom: 8px; }
.sp-bottom-card p { color: rgba(255,255,255,0.6); font-size: 0.82rem; line-height: 1.6; }

/* ── Fase 2 — Chispas/fuego ── */
.fase2-sparks {
  position: relative; background: #080808;
  overflow: hidden;
}
.sparks-bg {
  position: absolute; inset: 0; pointer-events: none;
}
/* Chispas animadas CSS */
.spark {
  position: absolute; bottom: 0; width: 3px; height: 3px;
  border-radius: 50%;
  background: #FF6600;
  box-shadow: 0 0 6px 2px rgba(255,100,0,0.6);
  animation: sparkRise linear infinite;
}
.s1 { left: 10%; animation-duration: 2.1s; animation-delay: 0s; }
.s2 { left: 22%; animation-duration: 1.7s; animation-delay: 0.3s; background: #FF8800; }
.s3 { left: 38%; animation-duration: 2.4s; animation-delay: 0.7s; background: #FFAA00; }
.s4 { left: 50%; animation-duration: 1.9s; animation-delay: 0.1s; }
.s5 { left: 63%; animation-duration: 2.2s; animation-delay: 0.5s; background: #FF5500; }
.s6 { left: 75%; animation-duration: 1.6s; animation-delay: 0.9s; background: #CC1111; }
.s7 { left: 86%; animation-duration: 2.0s; animation-delay: 0.2s; background: #FFAA00; }
.s8 { left: 94%; animation-duration: 1.8s; animation-delay: 0.6s; }
@keyframes sparkRise {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-400px) scale(0); opacity: 0; }
}
.fase2-inner { position: relative; z-index: 2; padding: 60px 5%; }
.fase2-header { margin-bottom: 48px; }
.fase2-header h3 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900; color: #fff; line-height: 1.3; }
.fase2-steps {
  display: grid; grid-template-columns: repeat(6,1fr);
  gap: 16px;
}
.f2-step {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px 16px;
}
.f2-num {
  font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 900;
  color: rgba(204,17,17,0.3); line-height: 1; margin-bottom: 0;
}
.f2-name { color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.f2-step p { color: rgba(255,255,255,0.55); font-size: 0.78rem; line-height: 1.5; }

/* ── Mantenimiento — Planchas de acero ── */
.mant-plates {
  display: grid; grid-template-columns: 180px 1fr 1fr;
  gap: 4px; max-width: 1200px; margin: 0 auto;
  padding: 0 5% 60px; align-items: start;
}
.mant-row-labels {
  display: flex; flex-direction: column; gap: 4px;
}
.mrl-spacer { height: 64px; }
.mrl-label {
  height: 100px; display: flex; align-items: center;
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  font-weight: 700; padding-right: 12px;
  border-right: 2px solid rgba(255,255,255,0.08);
}
.mant-plate {
  border-radius: 4px; overflow: hidden;
}
.mant-plate-std {
  background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
  border: 1px solid #3a3a3a;
}
.mant-plate-arc {
  background: linear-gradient(180deg, #1a0808 0%, #120404 100%);
  border: 1px solid rgba(204,17,17,0.3);
  box-shadow: 0 0 30px rgba(204,17,17,0.1);
}
.plate-header {
  padding: 18px 20px; display: flex; align-items: center; justify-content: center;
  position: relative; height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
}
.plate-rivet {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #555, #2a2a2a);
  border: 1px solid #666;
}
.plate-rivet.tl { top: 10px; left: 10px; }
.plate-rivet.tr { top: 10px; right: 10px; }
.plate-rivet.bl { bottom: 10px; left: 10px; }
.plate-rivet.br { bottom: 10px; right: 10px; }
.plate-title-std { color: rgba(255,255,255,0.7); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.plate-title-arc { color: #CC1111; font-weight: 900; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 0 12px rgba(204,17,17,0.4); }
.plate-cell {
  height: 100px; display: flex; align-items: center;
  padding: 12px 20px;
  color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pc-arc { color: rgba(255,255,255,0.8); }
.mant-plate-arc .plate-cell { border-top-color: rgba(204,17,17,0.15); }

@media (max-width: 900px) {
  .adn-columns { grid-template-columns: 0px 1fr 0px 1fr 0px 1fr; }
  .adn-steel-col { display: none; }
  .adn-title-block { position: static; padding: 40px 24px 20px; }
  .eco-grid { grid-template-columns: 1fr; }
  .eco-cross-h, .eco-cross-v { display: none; }
  .embudo-puertas { grid-template-columns: repeat(2,1fr); }
  .ibeam-annotations { grid-template-columns: repeat(2,1fr); }
  .fase2-steps { grid-template-columns: repeat(3,1fr); }
  .sp-layout { flex-direction: column; }
  .sp-line { display: none; }
  .sp-connector { display: none; }
  .mant-plates { grid-template-columns: 1fr 1fr; }
  .mant-row-labels { display: none; }
  .inversion-eq { gap: 4px; }
  .inversion-bracket { font-size: 2.5rem; }
}
@media (max-width: 600px) {
  .embudo-puertas { grid-template-columns: 1fr 1fr; }
  .fase2-steps { grid-template-columns: repeat(2,1fr); }
  .mant-plates { grid-template-columns: 1fr; }
  .ibeam-annotations { grid-template-columns: 1fr 1fr; }
}

/* ── 7 Líneas de Especialidad — Isométrico estructural ── */
.lineas7-section {
  padding: 60px 5%;
  background: #0e0e0e;
}
.lineas7-title {
  margin-bottom: 40px;
}
.lineas7-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff;
}
.lineas7-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.lineas7-iso {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 24px;
}
.iso-svg {
  width: 100%; height: auto; display: block;
}
.lineas7-cards {
  display: flex; flex-direction: column; gap: 12px;
}
.l7-card {
  display: flex; align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s;
}
.l7-card:hover {
  border-color: rgba(204,17,17,0.4);
  background: rgba(204,17,17,0.05);
}
.l7-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: #CC1111;
  color: #fff; font-weight: 900; font-size: 0.9rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.l7-card h4 { color: #fff; font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.l7-card p { color: rgba(255,255,255,0.5); font-size: 0.78rem; line-height: 1.5; }

@media (max-width: 900px) {
  .lineas7-layout { grid-template-columns: 1fr; }
  .lineas7-iso { display: none; }
}


/* ════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION DEEP PASS — ARCOSA
   Comprehensive responsive fixes for 320px–768px
   ════════════════════════════════════════════════════════ */

/* ── Base mobile resets ── */
@media (max-width: 768px) {

  /* NAVBAR */
  .nav-inner {
    padding: 0 16px !important;
    height: 70px !important;
  }
  .nav-logo-img { height: 55px !important; }

  /* HERO */
  .hero { min-height: 100svh; }
  .hero-inner {
    padding: 0 20px;
    align-items: flex-end;
    padding-bottom: 80px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
    line-height: 1.1 !important;
    text-align: left;
  }

  /* SECTION HEADERS */
  .section-header {
    padding: 0 20px !important;
    margin-bottom: 32px !important;
  }
  .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  .section-header p {
    font-size: 0.95rem !important;
  }

  /* STATS CIRCLES */
  .stats-section { padding: 40px 16px !important; }
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .stat-circle {
    border-radius: 16px !important;
    aspect-ratio: auto !important;
    padding: 36px 24px !important;
    min-height: 220px;
  }
  .stat-number { font-size: 3.5rem !important; }
  .stat-photo { height: 220px !important; }

  /* DARK STATS (300+, 40m, etc) */
  .dark-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 16px !important;
  }
  .dark-stat { padding: 20px 14px !important; }
  .ds-num { font-size: 2.8rem !important; }
  .ds-label { font-size: 0.75rem !important; }

  /* VENTAJAS CARDS */
  .ventajas-section { padding: 60px 16px !important; }
  .ventajas-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .ventaja-card { padding: 24px !important; }
  .ventaja-card h3 { font-size: 1.05rem !important; }
  .ventaja-card p { font-size: 0.9rem !important; }

  /* MAT CARDS (Galvanizada, Zintroalum, Pintro) */
  .slider-mobile > .mat-card {
    min-width: 82% !important;
  }
  .mat-card { padding: 32px 20px !important; }
  .mat-card.premium { padding: 36px 20px !important; }

  /* SERVICIOS */
  .servicios { padding: 60px 16px !important; }
  .servicio-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 20px !important;
  }
  .srv-features ul { padding-left: 0; }
  .srv-features li { font-size: 0.85rem !important; }

  /* DIFERENCIADORES */
  .diferenciadores { padding: 60px 0 !important; }
  .full-infographic-section img {
    width: 100% !important;
    height: auto !important;
  }

  /* CALCULADORA */
  .calculadora { padding: 60px 16px !important; }
  .calc-container { gap: 24px !important; }
  .calc-panel { padding: 24px 16px !important; }
  #calcResult { min-height: 200px !important; }
  .calc-btn-wrap .btn-cta { width: 100% !important; justify-content: center; }

  /* CONTACTO */
  .contacto { padding: 60px 16px !important; }
  .contact-grid { gap: 32px !important; }
  .contact-info h2 { font-size: 1.8rem !important; }
  .contact-info p { font-size: 0.9rem !important; }
  .form-panel { padding: 24px 16px !important; }
  .form-submit { width: 100% !important; }

  /* FOOTER */
  .footer-inner {
    padding: 48px 20px 32px !important;
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center;
  }
  .footer-logo-img { height: 50px !important; }
  .footer-socials { justify-content: center !important; }
  .footer-nav { align-items: center !important; }
  .footer-bottom {
    padding: 20px 16px !important;
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center;
    font-size: 0.75rem !important;
  }

  /* FLOATING SOCIAL BUTTONS */
  .floating-socials {
    right: 10px !important;
    bottom: 20px !important;
    gap: 8px !important;
  }
  .float-icon {
    width: 44px !important;
    height: 44px !important;
  }

  /* BADGES */
  .badge { font-size: 0.72rem !important; }

  /* PROCESS SECTION */
  .proceso-section { padding: 60px 16px !important; }

  /* PROYECTOS */
  .proyectos { padding: 60px 16px !important; }
  .proyecto-card { border-radius: 8px !important; }

  /* VIDEO TOGGLE */
  .video-toggle {
    bottom: 16px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
  }
}

/* ── Extra small screens (iPhone SE, etc) ── */
@media (max-width: 390px) {
  .hero-title { font-size: 2rem !important; }
  .section-header h2 { font-size: 1.5rem !important; }
  .stat-number { font-size: 3rem !important; }
  .ds-num { font-size: 2.4rem !important; }
  .dark-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .nav-logo-img { height: 48px !important; }
  .nav-inner { padding: 0 12px !important; }
}

/* ── Touch targets & scrolling ── */
@media (hover: none) and (pointer: coarse) {
  .btn-cta, .btn-ghost, .nav-link, .float-icon {
    min-height: 44px;
    min-width: 44px;
  }
  .ventaja-card:hover,
  .dark-stat:hover,
  .mat-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .ventaja-card:hover::after { display: none; }
}
