/**
 * GRUPO RIVASA — INDUSTRIAL PRECISION DESIGN SYSTEM
 * Corporate Brand & UI Stylesheet
 * Colors:
 *   Graphite: #151B23
 *   Steel Blue: #263746
 *   Silver: #D6DEE5
 *   Off White: #F4F5F3
 *   Safety Orange: #E5A12A
 * Fonts: Manrope (Headings), Inter (Body & UI)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --color-graphite: #151B23;
  --color-graphite-dark: #0D1117;
  --color-graphite-light: #1E2732;
  --color-steel-blue: #263746;
  --color-steel-blue-light: #354B5E;
  --color-steel-blue-dark: #18232C;
  --color-silver: #D6DEE5;
  --color-silver-light: #EDF2F7;
  --color-off-white: #F4F5F3;
  --color-white: #FFFFFF;
  --color-safety-orange: #E5A12A;
  --color-safety-orange-hover: #D4911F;
  --color-safety-orange-glow: rgba(229, 161, 42, 0.25);
  
  --color-text-main: #151B23;
  --color-text-muted: #5A6A7E;
  --color-text-inverse: #F4F5F3;
  --color-text-inverse-muted: #94A3B8;
  
  --color-border: #E2E8F0;
  --color-border-dark: #263746;
  --color-border-subtle: rgba(214, 222, 229, 0.2);
  
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(21, 27, 35, 0.12), 0 2px 4px rgba(21, 27, 35, 0.08);
  --shadow-lg: 0 12px 28px rgba(21, 27, 35, 0.18), 0 4px 10px rgba(21, 27, 35, 0.1);
  --shadow-orange: 0 8px 20px rgba(229, 161, 42, 0.35);
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-graphite);
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

a {
  color: var(--color-steel-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-safety-orange);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-safety-orange);
  color: var(--color-graphite);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* Focus Outline for WCAG 2.2 */
:focus-visible {
  outline: 2px solid var(--color-safety-orange);
  outline-offset: 3px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-padding-sm {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ==========================================================================
   TOPBAR CORPORATIVA
   ========================================================================== */
.corp-topbar {
  background-color: var(--color-graphite-dark);
  border-bottom: 1px solid rgba(214, 222, 229, 0.08);
  font-size: 0.85rem;
  color: var(--color-silver);
  padding: 0.45rem 0;
}

.corp-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-silver);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.topbar-item:hover {
  color: var(--color-safety-orange);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.topbar-badge {
  background: rgba(229, 161, 42, 0.15);
  color: var(--color-safety-orange);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(229, 161, 42, 0.3);
}

/* ==========================================================================
   NAVBAR PRINCIPAL
   ========================================================================== */
.corp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(21, 27, 35, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-dark);
  transition: all var(--transition-normal);
}

.corp-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-safety-orange);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  cursor: pointer;
}

.dropdown-menu-list {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 260px;
  background: var(--color-graphite-light);
  border: 1px solid var(--color-steel-blue);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0;
  list-style: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 1010;
}

.nav-dropdown:hover .dropdown-menu-list,
.nav-dropdown:focus-within .dropdown-menu-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
  color: var(--color-silver);
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  color: var(--color-white);
  background-color: rgba(229, 161, 42, 0.1);
  border-left-color: var(--color-safety-orange);
}

/* Nav Actions (CTA Button) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-cta-quote {
  background: linear-gradient(135deg, var(--color-safety-orange) 0%, #D88F1E 100%);
  color: var(--color-graphite);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition-fast);
}

.btn-cta-quote:hover {
  background: #ECAE3C;
  color: var(--color-graphite);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(229, 161, 42, 0.45);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-steel-blue);
  color: var(--color-silver);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   HERO PRINCIPAL
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-graphite-dark);
  color: var(--color-white);
  padding: 6.5rem 0 5.5rem;
  overflow: hidden;
  border-bottom: 2px solid var(--color-steel-blue);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: contrast(1.15) brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(21, 27, 35, 0.96) 0%, 
    rgba(21, 27, 35, 0.88) 45%, 
    rgba(38, 55, 70, 0.65) 100%);
  pointer-events: none;
}

/* Blueprint Grid Pattern */
.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(214, 222, 229, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 222, 229, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(38, 55, 70, 0.7);
  border: 1px solid var(--color-steel-blue);
  color: var(--color-safety-orange);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-safety-orange);
  box-shadow: 0 0 8px var(--color-safety-orange);
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title .text-accent {
  color: var(--color-safety-orange);
  display: block;
}

.hero-description {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-silver);
  max-width: 680px;
  margin-bottom: 2.2rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary-industrial {
  background-color: var(--color-safety-orange);
  color: var(--color-graphite);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition-fast);
}

.btn-primary-industrial:hover {
  background-color: #ECAE3C;
  color: var(--color-graphite);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(229, 161, 42, 0.45);
}

.btn-secondary-industrial {
  background-color: rgba(38, 55, 70, 0.6);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--color-steel-blue);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary-industrial:hover {
  background-color: var(--color-steel-blue);
  border-color: var(--color-silver);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(214, 222, 229, 0.12);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-silver);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-safety-orange);
  flex-shrink: 0;
}

/* ==========================================================================
   METRIC STATS STRIP
   ========================================================================== */
.stats-strip {
  background-color: var(--color-graphite);
  border-bottom: 1px solid var(--color-steel-blue);
  color: var(--color-white);
  padding: 2.2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  border-left: 2px solid var(--color-safety-orange);
  padding-left: 1.2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-number span {
  color: var(--color-safety-orange);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   SOLUCIONES PARA CADA PROYECTO (GRID)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel-blue);
  background: var(--color-silver-light);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.8rem;
  border: 1px solid var(--color-border);
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  color: var(--color-graphite);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.solution-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-steel-blue);
}

.solution-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-graphite);
}

.solution-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.solution-card:hover .solution-img {
  transform: scale(1.05);
}

.solution-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(21, 27, 35, 0.88);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  border-left: 2px solid var(--color-safety-orange);
}

.solution-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-graphite);
  margin-bottom: 0.7rem;
}

.solution-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-steel-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap var(--transition-fast);
}

.solution-card:hover .solution-link {
  color: var(--color-safety-orange);
  gap: 0.7rem;
}

/* ==========================================================================
   SECCIÓN INSTITUCIONAL (ABOUT HIGHLIGHT)
   ========================================================================== */
.about-split-section {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-visual {
  position: relative;
}

.split-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.split-badge-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: var(--color-graphite);
  color: var(--color-white);
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-safety-orange);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}

.split-badge-card .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-safety-orange);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.split-badge-card .label {
  font-size: 0.82rem;
  color: var(--color-silver);
  line-height: 1.4;
}

.split-content .lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-steel-blue);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.split-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2rem 0;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pillar-item svg {
  width: 20px;
  height: 20px;
  fill: var(--color-safety-orange);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pillar-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.pillar-text p {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   SECCIÓN DIFERENCIADORES TÉCNICOS
   ========================================================================== */
.diff-section {
  background-color: var(--color-graphite-light);
  color: var(--color-white);
  border-bottom: 1px solid var(--color-steel-blue);
}

.diff-section .section-title {
  color: var(--color-white);
}

.diff-section .section-subtitle {
  color: var(--color-silver);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.diff-card {
  background: var(--color-graphite);
  border: 1px solid var(--color-steel-blue);
  border-radius: var(--radius-sm);
  padding: 1.8rem 1.4rem;
  transition: all var(--transition-fast);
  position: relative;
}

.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-safety-orange);
  background: var(--color-graphite-dark);
}

.diff-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(38, 55, 70, 0.6);
  border: 1px solid var(--color-steel-blue);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--color-safety-orange);
}

.diff-icon-box svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.diff-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.diff-desc {
  font-size: 0.86rem;
  color: var(--color-silver);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   GALERÍA DE PROYECTOS REALES
   ========================================================================== */
.projects-section {
  background-color: var(--color-off-white);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-steel-blue);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-steel-blue);
  border-color: var(--color-steel-blue);
  color: var(--color-white);
}

.filter-btn.active {
  background: var(--color-graphite);
  border-color: var(--color-safety-orange);
  color: var(--color-safety-orange);
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.project-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: var(--color-graphite);
  cursor: pointer;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-item:hover .project-media img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 27, 35, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-zoom-btn {
  background: var(--color-safety-orange);
  color: var(--color-graphite);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.project-zoom-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.project-info {
  padding: 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  font-size: 0.78rem;
  color: var(--color-safety-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.project-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--color-graphite);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.project-details {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* ==========================================================================
   BANNER DE CONVERSIÓN CTA
   ========================================================================== */
.cta-banner-section {
  background: linear-gradient(135deg, var(--color-graphite) 0%, var(--color-steel-blue-dark) 100%);
  color: var(--color-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-steel-blue);
  border-bottom: 1px solid var(--color-steel-blue);
}

.cta-banner-section::before {
  content: '';
  position: absolute;
  right: -5%;
  bottom: -40%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(229, 161, 42, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.cta-text-side {
  max-width: 680px;
}

.cta-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--color-silver);
  margin: 0;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-whatsapp-direct {
  background-color: #25D366;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-direct:hover {
  background-color: #1EBE5D;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-direct svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.corp-footer {
  background-color: var(--color-graphite-dark);
  color: var(--color-silver);
  padding: 4.5rem 0 1.8rem;
  border-top: 2px solid var(--color-steel-blue);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-brand .brand-logo img {
  height: 48px;
  margin-bottom: 1.2rem;
}

.footer-brand-desc {
  color: var(--color-silver);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  max-width: 340px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-safety-orange);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-silver);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--color-safety-orange);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--color-silver);
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-safety-orange);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(214, 222, 229, 0.1);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-inverse-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  background-color: #25D366;
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-fast);
}

.whatsapp-floating:hover {
  background-color: #1EBE5D;
  color: #FFFFFF;
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   PÁGINAS INTERNAS & FORMULARIOS
   ========================================================================== */
.page-header-banner {
  background: linear-gradient(135deg, var(--color-graphite-dark) 0%, var(--color-steel-blue-dark) 100%);
  color: var(--color-white);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  border-bottom: 2px solid var(--color-steel-blue);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--color-silver);
  margin-bottom: 1rem;
}

.breadcrumb-nav a {
  color: var(--color-silver);
}

.breadcrumb-nav a:hover {
  color: var(--color-safety-orange);
}

.breadcrumb-separator {
  color: var(--color-steel-blue-light);
}

.page-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.8rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--color-silver);
  max-width: 650px;
  margin: 0;
}

/* Contact Page Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
}

.contact-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-graphite);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control-industrial {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-graphite);
  background: var(--color-off-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.form-control-industrial:focus {
  background: var(--color-white);
  border-color: var(--color-safety-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 161, 42, 0.2);
}

.contact-info-card {
  background: var(--color-graphite);
  color: var(--color-white);
  border: 1px solid var(--color-steel-blue);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-info-card .card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--color-safety-orange);
  padding-left: 0.8rem;
}

.schedule-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--color-steel-blue);
  border-bottom: 1px solid var(--color-steel-blue);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-silver);
}

.schedule-item strong {
  color: var(--color-white);
}

/* Modal Lightbox */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 17, 23, 0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-steel-blue);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-First Optimization)
   ========================================================================== */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .diff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .corp-topbar {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: var(--color-graphite-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--color-steel-blue);
    transform: translateY(-120%);
    transition: transform var(--transition-normal);
    visibility: hidden;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
  }
  
  .nav-dropdown {
    width: 100%;
  }
  
  .dropdown-menu-list {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: var(--color-graphite);
    margin-top: 0.5rem;
    padding-left: 1rem;
  }
  
  .nav-actions {
    display: none;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-masonry {
    grid-template-columns: 1fr;
  }
  
  .diff-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-section {
    padding: 4rem 0 3.5rem;
  }
  
  .cta-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .split-badge-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }
}
