/* ==========================================================================
   STYLE SHEET: OBRAS HERGON S.A. - INDUSTRIAL PREMIUM DESIGN SYSTEM
   VANILLA CSS3 - COMPATIBLE CON LIGHTHOUSE Y ACCESIBILIDAD WCAG AA
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- TOKENS DE DISEÑO --- */
:root {
  --primary: #0F2A4A;
  --primary-rgb: 15, 42, 74;
  --accent: #F2A71B;
  --accent-rgb: 242, 167, 27;
  --neutral-light: #F5F7FA;
  --neutral-light-rgb: 245, 247, 250;
  --neutral-dark: #1F242D;
  --neutral-dark-rgb: 31, 36, 45;
  --secondary-gray: #8A94A6;
  --secondary-gray-rgb: 138, 148, 166;
  --white: #FFFFFF;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  
  /* Fuentes */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Espaciado de 8dp */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Efectos */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 20px rgba(242, 167, 27, 0.3);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET Y ESTILOS GENERALES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--neutral-dark);
  color: var(--neutral-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--neutral-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border: 2px solid var(--neutral-dark);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- CLASES DE UTILIDAD Y DISEÑO ASIMÉTRICO --- */
.section-padding {
  padding: var(--space-4xl) 0;
}

.text-accent {
  color: var(--accent);
}

.section-header {
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  position: relative;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-xl);
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 2px;
  background-color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-gray);
  line-height: 1.7;
}

/* Botones Premium */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--neutral-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--white);
  background-color: rgba(15, 42, 74, 0.2);
}

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

/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: var(--space-md) 0;
}

.header.scrolled {
  background-color: rgba(31, 36, 45, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.nav-container .logo-img {
  height: 75px;
  transition: var(--transition-normal);
}

.header.scrolled .nav-container .logo-img {
  height: 55px;
}


.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-gray);
  position: relative;
  padding: var(--space-xs) 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-dark);
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(31, 36, 45, 0.95) 40%, rgba(15, 42, 74, 0.6) 100%), url('assets/img/fondo.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: rgba(242, 167, 27, 0.1);
  border: 1px solid rgba(242, 167, 27, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-badge-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: var(--space-xl);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--secondary-gray);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-2xl);
}

.hero-stat-item h4 {
  font-size: 2rem;
  color: var(--accent);
}

.hero-stat-item p {
  font-size: 0.85rem;
  color: var(--secondary-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}

/* --- SECCIÓN 2: FORMULARIO DE CAPTACIÓN TEMPRANA (OBLIGATORIA) --- */
.lead-capture {
  background-color: transparent;
  position: relative;
  overflow: hidden;
  z-index: 10;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.lead-capture-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/img/fondo.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.lead-capture-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.lead-info-header h3 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.lead-info-header p {
  color: var(--secondary-gray);
  font-size: 1.1rem;
  margin-bottom: var(--space-2xl);
}

.lead-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lead-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.lead-bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(242, 167, 27, 0.1);
  border: 1px solid rgba(242, 167, 27, 0.3);
  border-radius: 50%;
  color: var(--accent);
  flex-shrink: 0;
}

.lead-bullet-text h5 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.lead-bullet-text p {
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

/* Contenedor del Formulario */
.lead-form-card {
  background-color: var(--neutral-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.lead-form-header {
  margin-bottom: var(--space-xl);
}

.lead-form-header h4 {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.lead-form-header p {
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-gray);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px var(--space-md);
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  min-height: 48px;
}

.form-input:focus {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(242, 167, 27, 0.15);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: var(--space-2xl);
}

/* Validaciones y Errores */
.form-input.error {
  border-color: #E53E3E;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.error-message {
  font-size: 0.75rem;
  color: #E53E3E;
  margin-top: var(--space-xs);
  display: none;
  font-weight: 500;
  align-items: center;
  gap: var(--space-xs);
}

/* Mensajes de Éxito Inline */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--neutral-dark);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  z-index: 5;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon-box {
  width: 72px;
  height: 72px;
  background-color: rgba(242, 167, 27, 0.1);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  font-size: 2rem;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- SECCIÓN 3: PROPUESTA DE VALOR --- */
.value-proposal {
  background-color: var(--neutral-dark);
}

.proposal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.proposal-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl) var(--space-xl);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.proposal-card::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

.proposal-card:hover {
  transform: translateY(-8px);
  background-color: rgba(15, 42, 74, 0.15);
  border-color: rgba(242, 167, 27, 0.2);
}

.proposal-card:hover::before {
  background-color: var(--accent);
}

.proposal-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: var(--space-xl);
}

.proposal-card h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  letter-spacing: -0.5px;
}

.proposal-card p {
  font-size: 0.9rem;
  color: var(--secondary-gray);
  line-height: 1.6;
}

/* --- SECCIÓN 4: SERVICIOS CON HOVER REVEAL --- */
.services {
  background-color: rgba(15, 42, 74, 0.25);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.service-card {
  background-color: var(--neutral-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-3xl);
  transition: var(--transition-slow);
  z-index: 1;
}

.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  transition: var(--transition-slow);
  z-index: -1;
}

.service-card:hover {
  transform: scale(1.02);
  border-color: rgba(242, 167, 27, 0.3);
  box-shadow: var(--shadow-lg);
}

.service-card:hover .service-card-bg {
  opacity: 0.15;
  transform: scale(1.05);
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background-color: rgba(242, 167, 27, 0.1);
  border: 1px solid rgba(242, 167, 27, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-2xl);
}

.service-content h4 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.service-content p {
  color: var(--secondary-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
}

.service-feature-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-feature-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* --- SECCIÓN 5: PORTAFOLIO DE PROYECTOS (BENTO ASIMÉTRICO) --- */
.portfolio {
  background-color: var(--neutral-dark);
}

/* --- PORTFOLIO CAROUSEL --- */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  overflow: visible;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(15, 42, 74, 0.95) 0%, rgba(15, 42, 74, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl);
  pointer-events: none;
}

.slide-content {
  color: var(--white);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
}

.carousel-slide.active-slide .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: var(--space-xs);
  letter-spacing: 1px;
}

.slide-content h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
}

/* Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(15, 42, 74, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.carousel-control:hover {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.carousel-control.prev {
  left: -25px;
}

.carousel-control.next {
  right: -25px;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .carousel-control.prev {
    left: var(--space-md);
  }
  .carousel-control.next {
    right: var(--space-md);
  }
}

@media (max-width: 768px) {
  .carousel-slide {
    aspect-ratio: 4 / 3;
  }
  .slide-overlay {
    padding: var(--space-lg);
  }
}

/* --- SECCIÓN 6: POR QUÉ ELEGIRNOS --- */
.why-us {
  background-color: var(--primary);
  position: relative;
  overflow: hidden;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.why-us-content h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: var(--space-md);
}

.why-us-desc {
  font-size: 1.1rem;
  color: var(--secondary-gray);
  margin-bottom: var(--space-2xl);
}

.why-us-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  text-align: center;
  transition: var(--transition-normal);
}

.stat-card:hover {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.05);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--secondary-gray);
  margin-top: 4px;
}

/* --- SECCIÓN 7: PROCESO DE TRABAJO (TIMELINE INTERACTIVO) --- */
.process {
  background-color: var(--neutral-dark);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-3xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-md) var(--space-3xl);
  margin-bottom: var(--space-xl);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: var(--neutral-dark);
  border: 4px solid var(--accent);
  border-radius: 50%;
  z-index: 5;
  transition: var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--accent);
  transform: scale(1.3);
  box-shadow: var(--shadow-accent);
}

.timeline-step {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
  background-color: rgba(242, 167, 27, 0.1);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-xs);
}

.timeline-content {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  transition: var(--transition-normal);
  position: relative;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(242, 167, 27, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

.timeline-content h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

/* --- SECCIÓN 8: CLIENTES Y SECTORES --- */
.clients {
  background-color: rgba(15, 42, 74, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.client-logo-box {
  background-color: var(--neutral-dark);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition-normal);
  min-height: 120px;
}

.client-logo-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.client-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.client-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.client-desc {
  font-size: 0.75rem;
  color: var(--secondary-gray);
  margin-top: 2px;
}

/* --- FOOTER & COMPLIANCE --- */
.footer {
  background-color: #12161E;
  border-top: 4px solid var(--accent);
  padding-top: var(--space-4xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand p {
  color: var(--secondary-gray);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
  color: var(--secondary-gray);
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--neutral-dark);
  border-color: var(--accent);
}

.footer-col h5 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-col h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--secondary-gray);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer-contact-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.map-placeholder {
  width: 100%;
  height: 160px;
  background-color: var(--neutral-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  color: var(--secondary-gray);
  margin-bottom: var(--space-md);
}

.map-placeholder svg {
  color: var(--accent);
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-sm);
}

.map-placeholder span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.footer-bottom {
  padding: var(--space-2xl) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--secondary-gray);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* Certificaciones e insignias */
.footer-badges {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-gray);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px var(--space-md);
  border-radius: 4px;
}

.badge-item svg {
  color: var(--accent);
}

/* --- ANIMACIONES --- */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(242, 167, 27, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(242, 167, 27, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(242, 167, 27, 0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- RESPONSIVIDAD (MOBILE FIRST) --- */

/* Tablets (1024px o menos) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .lead-capture-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .proposal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .project-card {
    grid-column: span 2;
  }
  
  .project-card.featured-wide {
    grid-column: span 4;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (768px o menos) */
@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-3xl) 0;
  }
  
  .nav-container .logo-img {
    height: 55px;
  }
  
  .header.scrolled .nav-container .logo-img {
    height: 45px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--neutral-dark);
    flex-direction: column;
    padding: var(--space-3xl) 0;
    transition: var(--transition-slow);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-cta {
    display: none;
  }
  
  .timeline::before {
    left: var(--space-xl);
  }
  
  .timeline-item {
    width: 100%;
    padding-left: var(--space-3xl);
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: calc(var(--space-xl) - 10px) !important;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card, .project-card.featured-wide, .project-card.featured-tall {
    grid-column: span 1;
    min-height: 350px;
  }
}

/* Small devices (480px o menos) */
@media (max-width: 480px) {
  .proposal-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .lead-form-card {
    padding: var(--space-xl);
  }
}

/* Floating WhatsApp Button styles */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
  background-color: #20ba5a;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  opacity: 0.4;
  z-index: -1;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

