/* =====================================================
  VARIABLES Y RESET
===================================================== */
:root {
  --primary-blue: rgba(35, 58, 110, 1);
  --primary-red: rgba(217, 65, 42, 1);
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
  UTILIDADES COMPARTIDAS
===================================================== */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
  ZONA HOVER PARA NAVBAR
===================================================== */
.top-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  z-index: 999;
  cursor: default;
}

/* =====================================================
  NAVBAR CON MENÚ HAMBURGUESA
===================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  padding: 15px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar.visible {
  transform: translateY(0);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled.visible {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.logo-text .ingelci {
  color: var(--primary-blue);
}

.logo-text .peru {
  color: var(--primary-red);
}

.navbar.visible .logo-text {
  transform: scale(1.02);
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-red);
  transform: translateY(-1px);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* =====================================================
  HERO SECTION
===================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
  padding: 20px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(35, 58, 110, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 1.1s forwards;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(35, 58, 110, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 15px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 12px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(10px);
  }
  60% {
    transform: translateX(-50%) translateY(5px);
  }
}

/* =====================================================
  EXCELENCIA SECTION - CORREGIDO RESPONSIVE
===================================================== */
.excelencia-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--primary-blue);
  overflow: hidden;
}

.excelencia-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 55%;
  background: var(--primary-blue);
  clip-path: polygon(0 0, 80% 0, 55% 100%, 0 100%);
  animation: slideInLeft 1s ease-out;
  z-index: 1;
}

.excelencia-content {
  position: relative;
  max-width: 500px;
  margin-left: clamp(3rem, 8vw, 8rem);
  z-index: 2;
  animation: fadeInRight 1s ease-out 0.3s both;
  padding: 4rem 0;
}

.excelencia-content h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.excelencia-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.excelencia-content strong {
  color: var(--white);
  font-weight: 700;
}

.btn-excelencia {
  display: inline-block;
  background: var(--white);
  color: var(--primary-blue);
  font-weight: 700;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.btn-excelencia:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-excelencia::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-excelencia:hover::before {
  left: 100%;
}

.excelencia-imagen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background: url("../IMAGENES/LOGOS/LOGO_1.svg") center right/cover no-repeat;
  z-index: 0;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  transition: transform 0.5s ease;
}

.excelencia-imagen:hover {
  transform: scale(1.05);
}

/* Animaciones para la sección */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =====================================================
  SERVICIOS SECTION
===================================================== */
.servicios-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  color: #e8edf2;
  padding: 100px 0;
  overflow: hidden;
}

.servicios-section .section-header h2 {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 700;
}

.service-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto 120px;
  padding: 0 40px;
}

.service-block.alt-2 {
  flex-direction: row-reverse;
}

.service-image img {
  width: 100%;
  max-width: 650px;
  height: 700px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.service-content {
  flex: 1;
  max-width: 600px;
}

.service-content h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 15px;
}

.service-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.service-features li i {
  color: var(--primary-red);
  background: rgba(217, 65, 42, 0.15);
  border-radius: 50%;
  padding: 6px;
  font-size: 0.8rem;
}

/* =====================================================
  CARRUSEL SECTION - CORREGIDO RESPONSIVE
===================================================== */
.carrusel-section {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

.carrusel-container {
  position: relative;
  height: 100%;
}

.carrusel-slide {
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.carrusel-slide.active {
  display: block;
  opacity: 1;
  animation: fade 1.5s ease;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.slide-content {
  position: absolute;
  bottom: 15%;
  right: 10%;
  color: #fff;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.carrusel-slide.active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  line-height: 1.2;
  text-align: right;
}

.slide-content p {
  font-size: 1.1rem;
  color: #f1f1f1;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: right;
}

.slide-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-end;
}

.slide-features span {
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

.slide-features i {
  color: var(--primary-red);
}

.carrusel-prev, .carrusel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.carrusel-prev:hover, .carrusel-next:hover {
  background: rgba(0,0,0,0.8);
}

.carrusel-prev { left: 20px; }
.carrusel-next { right: 20px; }

/* =====================================================
  PROCESO SECTION
===================================================== */
.proceso-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2c56 100%);
  color: #e8edf2;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.proceso-section .section-header {
  margin-bottom: 70px;
}

.proceso-section .section-header h2 {
  font-size: 2.4rem;
  color: var(--white);
  font-weight: 700;
}

.proceso-section .section-header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 15px auto 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

.proceso-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

/* Línea central */
.proceso-timeline::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: calc(100% - 120px);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  z-index: 0;
}

.proceso-step {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 25px;
  width: 260px;
  position: relative;
  z-index: 1;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.proceso-step:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.step-icon {
  background: rgba(217, 65, 42, 0.15);
  color: var(--primary-red);
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px solid rgba(217, 65, 42, 0.3);
  transition: all 0.3s ease;
}

.proceso-step:hover .step-icon {
  background: var(--primary-red);
  color: var(--white);
  transform: scale(1.1);
}

.proceso-step h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.proceso-step p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =====================================================
  PORTAFOLIO SECTION - CORREGIDO RESPONSIVE
===================================================== */
.portafolio {
  padding: 100px 0;
  background: #f8fafc;
  text-align: center;
}

.portafolio .section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.portafolio .section-header p {
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

/* GRID DE PROYECTOS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 40px;
  margin-bottom: 60px;
}

/* TARJETA DE PROYECTO */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  height: 300px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* EFECTO HOVER */
.project-card:hover img {
  transform: scale(1.1);
}

.project-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* CAPA DE INFORMACIÓN */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 58, 110, 0.9);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: opacity 0.4s ease;
}

.project-card:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--white);
}

.overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.project-desc {
  font-size: 0.85rem !important;
  font-style: italic;
  margin-bottom: 15px !important;
}

/* BOTÓN INTERNO */
.btn-proyecto {
  margin-top: 15px;
  display: inline-block;
  background: var(--white);
  color: var(--primary-blue);
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 0.9rem;
}

.btn-proyecto:hover {
  background: var(--primary-red);
  color: var(--white);
}

/* LISTA COMPLETA DE PROYECTOS */
.proyectos-completos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.proyectos-completos h3 {
  color: var(--primary-blue);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.proyectos-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.proyecto-item h4 {
  color: var(--primary-red);
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 5px;
}

.proyecto-item ul {
  list-style: none;
  padding: 0;
}

.proyecto-item li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: var(--text-dark);
  line-height: 1.5;
}

.proyecto-item li:before {
  content: "•";
  color: var(--primary-red);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.proyecto-item strong {
  color: var(--primary-blue);
}

/* =====================================================
  CLIENTES SECTION - LOGOS EXTRA GRANDES
===================================================== */
.clientes-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 100px 20px;
  text-align: center;
  color: white;
}

.clientes-section .section-title {
  color: var(--white);
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 15px;
}

.clientes-section .section-subtitle {
  color: #cbd5e1;
  font-size: 1.2em;
  margin-bottom: 70px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  align-items: center;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.cliente-logo {
  padding: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: none;
}

/* Línea inferior minimalista */
.cliente-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: var(--primary-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.cliente-logo:hover::after {
  width: 90%;
}

.cliente-logo img {
  max-width: 100%;
  max-height: 130px; /* EXTRA GRANDE */
  width: auto;
  height: auto;
  filter: brightness(0.9);
  transition: all 0.3s ease;
  object-fit: contain;
}

.cliente-logo:hover img {
  filter: brightness(1);
  transform: scale(1.2);
}

.cliente-logo:hover {
  transform: translateY(-8px);
}

/* Tooltip para nombres de empresas - MÁS GRANDE */
.cliente-logo::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-red);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cliente-logo:hover::before {
  opacity: 1;
}

/* =====================================================
  WHY CHOOSE SECTION - CORREGIDO RESPONSIVE
===================================================== */
.why-choose-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../IMAGENES/ELECTRICA/ELECTRICA_05.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.why-choose-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: -1;
}

.why-choose-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-choose-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 35px 25px;
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: var(--primary-red);
  transition: height 0.5s ease;
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
  transition: var(--transition);
  display: inline-block;
}

.feature-card:hover .feature-icon {
  color: var(--primary-red);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--white);
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.feature-card h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.feature-card:hover h3::after {
  width: 100%;
}

/* =====================================================
  CONTACTO SECTION
===================================================== */
.contacto-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  color: white;
}

.contacto-header {
  text-align: center;
  margin-bottom: 60px;
}

.contacto-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
  font-weight: 700;
}

.contacto-header p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.contacto-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.contacto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
}

.contacto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contacto-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), #1a2c56);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: white;
}

.contacto-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: white;
  font-weight: 600;
}

.contacto-card > p {
  color: #cbd5e1;
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.contacto-info {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  text-align: left;
}

.info-item i {
  width: 24px;
  height: 24px;
  background: rgba(217, 65, 42, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--primary-red);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.info-content {
  min-width: 0;
  flex: 1;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 2px;
  white-space: nowrap;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  color: white;
  font-weight: 500;
  word-break: break-word;
  line-height: 1.4;
}

.redes-sociales {
  text-align: center;
  margin-top: 50px;
}

.redes-sociales h3 {
  margin-bottom: 25px;
  color: white;
  font-weight: 600;
}

.redes-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.red-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #cbd5e1;
  transition: var(--transition);
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  width: 100px;
}

.red-social:hover {
  color: white;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.red-social i {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.red-social span {
  font-size: 0.85rem;
  font-weight: 500;
}

/* =====================================================
  FOOTER
===================================================== */
.footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2c56 100%);
  color: #e8edf2;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--white);
  font-weight: 700;
}

.footer-logo h3 .ingelci {
  color: var(--primary-blue);
}

.footer-logo h3 .peru {
  color: var(--primary-red);
}

.footer-logo > p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1rem;
}

.footer-ruc {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  color: var(--white);
  border-left: 3px solid var(--primary-red);
  margin-top: 10px;
}

.footer-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.footer-info p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.footer-info p:last-child {
  margin-bottom: 0;
}

.footer-info strong {
  color: var(--primary-red);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 20px;
}

.footer-info strong::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 0.8rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 25px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-bottom p:first-child {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
  BOTONES FLOTANTES
===================================================== */

/* BOTÓN WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-link i {
  font-size: 28px;
}

.whatsapp-link:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-bg);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--dark-bg);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

@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);
  }
}

/* BOTÓN BROCHURE */
.brochure-float {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.brochure-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(35, 58, 110, 0.4);
  transition: all 0.3s ease;
  position: relative;
  animation: pulse-brochure 3s infinite;
}

.brochure-link i {
  font-size: 24px;
}

.brochure-link:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(35, 58, 110, 0.6);
}

.brochure-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-bg);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brochure-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--dark-bg);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.brochure-float:hover .brochure-tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse-brochure {
  0% {
    box-shadow: 0 0 0 0 rgba(35, 58, 110, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(35, 58, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(35, 58, 110, 0);
  }
}

/* =====================================================
  ANIMACIONES GLOBALES
===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes navbarSlideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes navbarSlideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.navbar.visible {
  animation: navbarSlideIn 0.3s ease-out;
}

.navbar.hidden {
  animation: navbarSlideOut 0.3s ease-out;
}

/* =====================================================
  RESPONSIVE DESIGN MEJORADO
===================================================== */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
  }
  
  .contacto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .proceso-timeline {
    flex-direction: column;
    align-items: center;
  }
  
  .proceso-timeline::before {
    display: none;
  }
  
  .proceso-step {
    width: 85%;
  }
  
  .service-block {
    flex-direction: column;
    text-align: center;
    margin-bottom: 80px;
  }
  
  .service-block.alt-2 {
    flex-direction: column;
  }
  
  .service-image img {
    max-width: 90%;
    height: auto;
  }
}

@media (max-width: 768px) {
  /* NAVBAR HAMBURGUESA */
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .nav-menu a {
    padding: 1rem;
    display: block;
    font-size: 1.1rem;
  }

  /* HERO SECTION */
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* EXCELENCIA SECTION - CORREGIDO */
  .excelencia-section {
    min-height: 70vh;
    flex-direction: column;
  }
  
  .excelencia-section::before {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  }
  
  .excelencia-content {
    margin-left: 0;
    padding: 2rem;
    text-align: center;
    max-width: 100%;
  }
  
  .excelencia-imagen {
    position: relative;
    width: 100%;
    height: 300px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    order: -1;
  }
  
  .excelencia-content h1 {
    font-size: 2rem;
  }
  
  .excelencia-content p {
    font-size: 1rem;
  }
  
  .btn-excelencia {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* FEATURES GRID */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 500px;
  }
  
  /* CONTACTO GRID */
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* CARRUSEL MEJORADO */
  .slide-content {
    bottom: 10%;
    right: 5%;
    left: 5%;
    max-width: 90%;
    text-align: center;
    align-items: center;
  }
  
  .slide-content h2 {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .slide-content p {
    font-size: 1rem;
    text-align: center;
  }
  
  .slide-features {
    justify-content: center;
    gap: 10px;
  }
  
  .slide-features span {
    font-size: 0.8rem;
    padding: 6px 12px;
    flex-direction: row;
  }
  
  /* PORTAFOLIO GRID */
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  /* CLIENTES GRID */
  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .cliente-logo {
    height: 100px;
    padding: 10px;
  }
  
  .cliente-logo img {
    max-height: 60px;
  }

  /* BOTONES FLOTANTES RESPONSIVE */
  .whatsapp-float, .brochure-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .brochure-float {
    bottom: 90px;
  }
  
  .whatsapp-link i, .brochure-link i {
    font-size: 24px;
  }
  
  .whatsapp-tooltip, .brochure-tooltip {
    display: none; /* Ocultar tooltips en móviles */
  }
}

@media (max-width: 480px) {
  .excelencia-section {
    min-height: 80vh;
  }
  
  .excelencia-content {
    padding: 1.5rem;
  }
  
  .excelencia-content h1 {
    font-size: 1.8rem;
  }
  
  .excelencia-imagen {
    height: 250px;
  }
  
  .carrusel-section {
    height: 70vh;
  }
  
  .slide-content h2 {
    font-size: 1.5rem;
  }
  
  .slide-content p {
    font-size: 0.9rem;
  }
  
  .slide-features {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .slide-features span {
    width: auto;
    justify-content: center;
  }
  
  .carrusel-prev, .carrusel-next {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
  
  .carrusel-prev { left: 10px; }
  .carrusel-next { right: 10px; }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-image img {
    height: auto;
  }
  
  .projects-grid {
    gap: 15px;
  }
  
  .project-card {
    height: 250px;
  }
  
  .clientes-grid {
    grid-template-columns: 1fr;
  }
  
  .proyectos-lista {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .overlay h3 {
    font-size: 1.1rem;
  }
  
  .proyectos-completos h3 {
    font-size: 1.5rem;
  }
  
  .proyecto-item h4 {
    font-size: 1.1rem;
  }

  /* BOTONES FLOTANTES MÓVIL */
  .whatsapp-float, .brochure-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .brochure-float {
    bottom: 80px;
  }
  
  .whatsapp-link i, .brochure-link i {
    font-size: 22px;
  }
}

/* Para tablets en orientación vertical */
@media (max-width: 1024px) and (orientation: portrait) {
  .carrusel-section {
    height: 60vh;
  }
  
  .slide-content {
    bottom: 8%;
    right: 5%;
    max-width: 90%;
  }
  
  .excelencia-section {
    min-height: 70vh;
  }
}