/* ==========================================================================
   Waqanki Construcción - index.css
   Base del Sistema de Diseño y Estilos de Interfaz
   ========================================================================== */

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

/* 2. VARIABLES DE DISEÑO (Basadas en DESIGN.md) */
:root {
  /* Paleta de Colores */
  --color-bg-base: hsl(220, 13%, 5%);
  --color-bg-surface: hsl(220, 14%, 8%);
  --color-bg-surface-glass: rgba(22, 26, 33, 0.65);
  --color-bg-card-hover: rgba(30, 35, 45, 0.85);
  --color-primary: hsl(35, 100%, 55%);
  --color-primary-hover: hsl(35, 100%, 44%);
  --color-primary-glow: rgba(255, 159, 28, 0.25);
  --color-secondary: hsl(45, 64%, 52%);
  --color-text-main: hsl(210, 17%, 98%);
  --color-text-muted: hsl(214, 12%, 69%);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-active: rgba(255, 159, 28, 0.4);
  
  /* Fuentes */
  --font-headings: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 3. RESETS & ESTILOS GENERALES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: hsl(220, 14%, 15%);
  border-radius: 5px;
  border: 2px solid var(--color-bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

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

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

ul {
  list-style: none;
}

/* 4. CLASES DE UTILIDAD & ANIMACIONES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-text-muted); }

/* Animaciones del Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 5. LOADER (Pantalla de carga con GIF) */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-base);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader-gif {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.loader-bar {
  width: 150px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background-color: var(--color-primary);
  border-radius: 3px;
  animation: load 1.5s infinite ease-in-out;
}

@keyframes load {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* 6. HEADER & NAVEGACIÓN - NEGRO INTENSO */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: height var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

header.scrolled {
  height: 80px;
  background-color: #000000;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

header .container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo más grande y con PNG */
.logo-main-png {
  height: 85px;
  width: auto;
  transition: height var(--transition-normal), transform var(--transition-normal);
  filter: drop-shadow(0 0 5px rgba(255, 159, 28, 0.15));
}

.logo-main-png:hover {
  transform: scale(1.03);
}

header.scrolled .logo-main-png {
  height: 68px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
  color: var(--color-text-main);
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Menú Móvil hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: var(--transition-normal);
}

/* 7. HERO SECTION CON VIDEO ALTAMENTE VISIBLE */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay más claro (0.35 opacity) para mayor visibilidad del video */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    var(--color-bg-base) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

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

.hero-tagline {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  color: var(--color-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Letras con ribete blanco para resaltar la visibilidad */
.hero-title {
  font-family: var(--font-headings);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #ffffff;
  /* Ribete / Outline Blanco */
  text-shadow: 
    -1px -1px 0 #ffffff,  
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff,
     0px  4px 10px rgba(0, 0, 0, 0.9);
}

.hero-outline-text {
  color: var(--color-primary);
  /* Ribete / Outline Blanco */
  text-shadow: 
    -1.5px -1.5px 0 #ffffff,  
     1.5px -1.5px 0 #ffffff,
    -1.5px  1.5px 0 #ffffff,
     1.5px  1.5px 0 #ffffff,
     0px  4px 12px rgba(255, 159, 28, 0.6);
}

.hero-desc {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 32px;
  max-width: 600px;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background-color: var(--color-primary);
  color: hsl(220, 13%, 5%);
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--color-text-main);
  border: 1.5px solid #ffffff;
  margin-left: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,159,28,0.2);
}

/* 8. SECCIONES GENERALES */
section.py-sect {
  padding: 100px 0;
  position: relative;
}

.sect-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 64px auto;
}

.sect-subtitle {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: 12px;
  display: block;
}

.sect-title {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.sect-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* 9. SECCIÓN NOSOTROS */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.nosotros-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.nosotros-highlight {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 24px;
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
}

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

.val-card {
  background-color: var(--color-bg-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.val-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-active);
  background-color: var(--color-bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.val-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.val-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.val-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 10. SECCIÓN LÍNEAS DE NEGOCIO (CON SLIDERS EN CARD) */
.negocio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.negocio-grid-bottom {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.negocio-grid-bottom .negocio-card {
  width: calc(33.333% - 21.3px);
}

.negocio-card {
  position: relative;
  background-color: var(--color-bg-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px; /* Ajustado para dar espacio al slider */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.negocio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  z-index: 10;
}

.negocio-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-active);
  background-color: var(--color-bg-card-hover);
  box-shadow: 0 15px 35px rgba(255, 159, 28, 0.15);
}

.negocio-card:hover::before {
  transform: scaleX(1);
}

/* Estilo del Slider Interno en la Tarjeta de Negocios */
.negocio-card-slider {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.negocio-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.negocio-slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.negocio-slider-img.active {
  opacity: 1;
  z-index: 2;
}

.negocio-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.negocio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.negocio-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.25);
}

.negocio-info-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.negocio-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: rgba(255, 159, 28, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  transition: var(--transition-normal);
}

.negocio-card:hover .negocio-icon {
  background-color: var(--color-primary);
  color: hsl(220, 13%, 5%);
}

.negocio-info h3 {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.negocio-info p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.negocio-action {
  font-family: var(--font-headings);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.negocio-action i {
  transition: transform var(--transition-fast);
}

.negocio-card:hover .negocio-action i {
  transform: translateX(5px);
}

/* 11. SLIDERS EN MODALES DE SERVICIOS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-body {
  padding: 48px;
}

.modal-header-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-tag {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.1em;
}

.modal-title {
  font-family: var(--font-headings);
  font-size: 1.85rem;
  font-weight: 800;
}

/* Estilo del Slider del Modal */
.image-slider {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  z-index: 1;
}

.slider-img.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 5;
  pointer-events: none;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background-color: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal-list-title {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.modal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

.modal-item i {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* 12. SECCIÓN PROCESO CONSTRUCTIVO */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-border) 10%,
    var(--color-border) 90%,
    transparent 100%
  );
}

.timeline-step {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 50%;
  padding-right: 48px;
  margin-bottom: 64px;
}

.timeline-step:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 48px;
  padding-right: 0;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  right: -8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-bg-base);
  border: 3px solid var(--color-border);
  z-index: 5;
  transition: var(--transition-normal);
}

.timeline-step:nth-child(even) .timeline-dot {
  left: -8px;
  right: auto;
}

.timeline-step:hover .timeline-dot {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.timeline-content {
  background-color: var(--color-bg-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-normal);
}

.timeline-step:hover .timeline-content {
  border-color: var(--color-border-active);
  background-color: var(--color-bg-card-hover);
}

.step-num {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}

.step-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 13. SECCIÓN ALQUILER DE MAQUINARIA CON CARD-SLIDER */
.maq-categories {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.maq-tab {
  background-color: var(--color-bg-surface);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.maq-tab.active, .maq-tab:hover {
  background-color: var(--color-primary);
  color: hsl(220, 13%, 5%);
  border-color: var(--color-primary);
}

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

.maq-card {
  background-color: var(--color-bg-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.maq-card:hover {
  border-color: var(--color-border-active);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.05);
}

/* Slider Interno de Maquinaria */
.maq-card-slider {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.maq-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.maq-slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.maq-slider-img.active {
  opacity: 1;
  z-index: 2;
}

.maq-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.maq-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.maq-dot.active {
  background-color: var(--color-primary);
  transform: scale(1.25);
}

.maq-info-content {
  padding: 8px;
}

.maq-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.maq-name {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.maq-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* 14. SECCIÓN CONTACTO (ALINEACIÓN Y CAPTCHA) */
.contacto-grid {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 64px;
  align-items: stretch;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
  height: 100%;
  padding: 10px 0;
}

.contacto-item {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contacto-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(255, 159, 28, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
  border: 1px solid rgba(255, 159, 28, 0.15);
}

.contacto-details h4 {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contacto-details p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Formulario glassmorphic */
.contacto-form {
  background-color: var(--color-bg-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 100%;
}

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

.form-label {
  display: block;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  background-color: rgba(10, 11, 13, 0.5);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--color-text-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.15);
  background-color: rgba(10, 11, 13, 0.7);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.contacto-form button {
  width: 100%;
  margin-top: 12px;
}

/* Mensaje de Feedback de Formulario */
.form-feedback {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
  font-weight: 500;
}

.form-feedback.success {
  display: block;
  background-color: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.form-feedback.error {
  display: block;
  background-color: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}

/* 15. FOOTER CON LOGO PREMIUM */
footer {
  background-color: #000000;
  /* Technical blueprint drafting grid pattern */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  background-position: center;
  border-top: 1px solid var(--color-border);
  padding: 60px 0 30px 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Subtle diagonal CAD structural lines */
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.005) 25%, transparent 25%) -40px 0,
    linear-gradient(225deg, rgba(255, 255, 255, 0.005) 25%, transparent 25%) -40px 0,
    linear-gradient(45deg, rgba(255, 255, 255, 0.005) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.005) 25%, transparent 25%);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

footer .container {
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Logo más grande, brillo y efecto ease */
.footer-logo-gif {
  height: 80px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 0px rgba(255, 159, 28, 0));
  transition: filter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-logo-gif:hover {
  filter: drop-shadow(0 0 15px rgba(255, 159, 28, 0.7));
  transform: translateY(-2px) scale(1.04);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 320px;
}

.footer-links h4 {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.footer-links ul li i {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.designer-credit {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.designer-credit a {
  color: var(--color-primary);
  font-weight: 600;
}

.designer-credit a:hover {
  color: var(--color-secondary);
}

/* ==========================================================================
   ELEMENTOS FLOTANTES (WHATSAPP Y REDES SOCIALES - LADO IZQUIERDO)
   ========================================================================== */
/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  left: 30px;
  bottom: 30px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 1.4rem;
}

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

.whatsapp-float::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse-whatsapp 2s infinite;
  z-index: -1;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Barra Lateral de Redes Sociales (Centrada verticalmente a la izquierda) */
.social-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.social-side-link {
  width: 44px;
  height: 44px;
  background-color: var(--color-bg-surface-glass);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.social-side-link:hover {
  transform: scale(1.1) translateX(3px);
  color: #000000;
  border-color: transparent;
}

.social-side-link.facebook:hover {
  background-color: #1877f2;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-side-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

/* Ocultar barra lateral en móviles pequeños para evitar colisión de elementos UX */
@media (max-width: 480px) {
  .social-sidebar {
    left: 10px;
  }
  .social-side-link {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
  .whatsapp-float {
    left: 20px;
    bottom: 20px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* 16. RESPONSIVE / MEDIA QUERIES */

/* Tablets (1024px e inferior) */
@media (max-width: 1024px) {
  header {
    height: 90px;
  }
  .logo-main-png {
    height: 75px;
  }
  header.scrolled .logo-main-png {
    height: 60px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .nosotros-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .valores-cards {
    grid-template-columns: 1fr 1fr;
  }
  .valores-cards .val-card:last-child {
    grid-column: span 2;
  }
  .negocio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .negocio-grid-bottom {
    justify-content: flex-start;
  }
  .negocio-grid-bottom .negocio-card {
    width: calc(50% - 16px);
  }
  .maq-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contacto-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .contacto-item {
    width: calc(50% - 12px);
  }
}

/* Pantallas Medianas (768px e inferior) */
@media (max-width: 768px) {
  header {
    height: 80px;
  }
  .logo-main-png {
    height: 68px;
  }
  header.scrolled .logo-main-png {
    height: 55px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-bg-base);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.4s ease;
    z-index: 999;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  /* Animación hamburguesa */
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  #hero {
    padding-top: 80px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .hero-content {
    padding: 0 16px;
  }
  
  .btn {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .btn-secondary {
    margin-top: 16px;
  }
  
  section.py-sect {
    padding: 60px 0;
  }
  
  .sect-title {
    font-size: 1.85rem;
  }
  
  .valores-cards {
    grid-template-columns: 1fr;
  }
  
  .valores-cards .val-card:last-child {
    grid-column: span 1;
  }
  
  .negocio-grid {
    grid-template-columns: 1fr;
  }
  
  .negocio-grid-bottom {
    flex-direction: column;
    gap: 32px;
  }
  
  .negocio-grid-bottom .negocio-card {
    width: 100%;
  }
  
  .modal-body {
    padding: 32px 24px;
  }
  
  .image-slider {
    height: 220px;
  }
  
  .modal-list {
    grid-template-columns: 1fr;
  }
  
  .process-timeline::before {
    left: 20px;
  }
  
  .timeline-step {
    width: 100%;
    padding-left: 48px;
    padding-right: 0;
    margin-left: 0;
    justify-content: flex-start;
  }
  
  .timeline-step:nth-child(even) {
    margin-left: 0;
    padding-left: 48px;
  }
  
  .timeline-dot {
    left: 12px;
    right: auto;
  }
  
  .timeline-step:nth-child(even) .timeline-dot {
    left: 12px;
  }
  
  .maq-grid {
    grid-template-columns: 1fr;
  }
  
  .contacto-info {
    flex-direction: column;
    gap: 24px;
  }
  
  .contacto-item {
    width: 100%;
  }
  
  .contacto-form {
    padding: 32px 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
