/* ================ VARIABLES Y RESET - PALETA COHERENTE ================ */
:root {
  /* Colores Primarios */
  --primary-color: #00897b;
  --primary-light: #4db6ac;
  --primary-dark: #004d40;
  --secondary-color: #26a69a;
  --secondary-dark: #00695c;

  /* Colores de Texto */
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-white: #ffffff;
  --text-white-soft: #f8fafc;

  /* Colores de Fondo */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-accent: #edf2f7;
  --bg-dark: #1a202c;
  --bg-overlay: rgba(26, 32, 44, 0.8);

  /* Gradientes Coherentes */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary-color) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--secondary-dark) 100%
  );
  --gradient-text: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );

  /* Sombras Coherentes */
  --shadow-sm: 0 2px 8px rgba(0, 137, 123, 0.08);
  --shadow-md: 0 8px 25px rgba(0, 137, 123, 0.15);
  --shadow-lg: 0 15px 40px rgba(0, 137, 123, 0.2);
  --shadow-xl: 0 25px 60px rgba(0, 137, 123, 0.25);

  /* Bordes */
  --border-light: rgba(0, 137, 123, 0.08);
  --border-medium: rgba(0, 137, 123, 0.2);
  --border-strong: rgba(0, 137, 123, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-primary);
  padding-top: 100px;
  background-color: var(--bg-primary);
}

/* ================ HEADER Y NAVEGACIÓN MEJORADO ================ */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.8px;
  transition: all 0.3s ease;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
}

.logo:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 0;
  position: relative;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 0;
  height: 0;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translateY(-50%);
}

.nav-links li a:hover::before {
  width: 6px;
  height: 6px;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--gradient-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links li a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* ================ BOTÓN DE CONTACTO MEJORADO ================ */
.contact-btn {
  background: var(--gradient-primary);
  color: var(--text-white) !important;
  padding: 0.75rem 1.8rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 120px;
  justify-content: center;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.contact-btn::after {
  display: none;
}

.contact-btn i {
  font-size: 0.75rem;
  color: var(--text-white);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  transition: 0.4s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ================ HERO SECTION  ================ */
.hero {
  position: relative;
  height: 100vh;
  background: url("./imagenes/fondo_verde.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

/* Overlay principal más fuerte para mejor contraste */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 77, 64, 0.75) 0%,
    rgba(0, 137, 123, 0.65) 50%,
    rgba(0, 77, 64, 0.8) 100%
  );
  z-index: 1;
}

/* Overlay curvo simplificado */
.curved-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 77, 64, 0.3) 70%,
    rgba(0, 77, 64, 0.6) 100%
  );
  clip-path: ellipse(100% 60% at 50% 100%);
  z-index: 2;
}

.hero-content {
  max-width: 1000px;
  padding: 3rem;
  color: var(--text-white);
  text-align: center;
  position: relative;
  z-index: 3;
  animation: fadeInUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  opacity: 0;
  /* Agregamos un fondo sutil detrás del contenido */
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Título con mejor contraste */
.hero h1 {
  font-size: 4.8rem;
  margin-bottom: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 137, 123, 0.6), 0 0 40px rgba(0, 137, 123, 0.4),
    2px 2px 8px rgba(0, 0, 0, 0.8);
  position: relative;
  text-transform: uppercase;
}

/* Línea decorativa bajo el título */
.hero h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(76, 175, 80, 1),
    rgba(129, 199, 132, 1),
    rgba(76, 175, 80, 1),
    transparent
  );
  border-radius: 2px;
  animation: expandLine 1.5s ease-out 0.8s forwards;
  transform-origin: center;
  scale: 0;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

@keyframes expandLine {
  to {
    scale: 1;
  }
}

/* Párrafo con mejor legibilidad */
.hero p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  margin-top: 2rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 400;
  color: #f5f5f5;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
  animation: fadeInUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s forwards;
  opacity: 0;
}

/* ================ CTA BUTTON CON MEJOR CONTRASTE ================ */
.cta-button {
  display: inline-block;
  padding: 1.4rem 3.5rem;
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 1) 0%,
    rgba(129, 199, 132, 1) 50%,
    rgba(76, 175, 80, 1) 100%
  );
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(76, 175, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s forwards;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(
    135deg,
    rgba(67, 160, 71, 1) 0%,
    rgba(102, 187, 106, 1) 50%,
    rgba(67, 160, 71, 1) 100%
  );
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(76, 175, 80, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ================ ELEMENTOS DECORATIVOS OPTIMIZADOS ================ */
.hero-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

/* Elementos decorativos más sutiles para no interferir */
.hero-decoration::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(129, 199, 132, 0.08) 0%,
    transparent 60%
  );
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero-decoration::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(76, 175, 80, 0.06) 0%,
    transparent 60%
  );
  border-radius: 50%;
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

/* ================ ABOUT SECTION ================ */
.about {
  padding: 7rem 2rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.05;
  transform: scale(1.5);
}

.about::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 80%;
  height: 80%;
  background: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.05;
  transform: scale(1.5);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  padding-right: 2rem;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 2rem;
  font-size: 2.8rem;
  position: relative;
}

.about-text .section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin-top: 1rem;
  border-radius: 2px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.about-features {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 137, 123, 0.05);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.feature-item p {
  margin: 0;
  font-weight: 500;
  font-size: 1rem;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/*------------- seccion servicios----------------------- */
.section-wrapper {
  padding: 3rem 0;
  position: relative;
}
.engineering-services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

.engineering-services-container::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -40%;
  width: 80%;
  height: 80%;
  background: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.04;
  transform: scale(1.3);
}

.engineering-services-container::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -30%;
  width: 70%;
  height: 70%;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.04;
  transform: scale(1.3);
}

.engineering-services-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0;
}

.engineering-services-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.engineering-services-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.engineering-services-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.engineering-tabs-container {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.engineering-tabs-nav {
  display: flex;
  background: var(--bg-accent);
  padding: 0;
}

.engineering-tab-button {
  flex: 1;
  padding: 25px 20px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.engineering-tab-button.active {
  color: var(--text-primary);
  background: var(--bg-primary);
}

.engineering-tab-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.engineering-tab-button.active::after {
  transform: scaleX(1);
}

.engineering-tab-button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.engineering-tab-content {
  padding: 4rem;
  display: none;
}

.engineering-tab-content.active {
  display: block;
  animation: engineeringFadeInUp 0.5s ease;
}

@keyframes engineeringFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.engineering-tab-service-header {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 40px;
}

.engineering-tab-service-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-white);
  transition: transform 0.3s ease;
}

.engineering-tab-service-icon:hover {
  transform: scale(1.05);
}

.engineering-tab-service-info h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.engineering-tab-service-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.engineering-tab-service-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 40px;
}

.engineering-detail-section h4 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.engineering-detail-section ul {
  list-style: none;
  padding: 0;
}

.engineering-detail-section li {
  padding: 8px 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 25px;
  transition: color 0.3s ease;
}

.engineering-detail-section li:hover {
  color: var(--text-primary);
}

.engineering-detail-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Estilos específicos para cada servicio */
.engineering-tab-arquitectura .engineering-tab-service-icon {
  background: var(--gradient-secondary);
}

.engineering-tab-ingenieria .engineering-tab-service-icon {
  background: var(--gradient-accent);
}

.engineering-tab-residuos .engineering-tab-service-icon {
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--secondary-color)
  );
}
/* Responsivo */
@media (max-width: 768px) {
  .engineering-services-title {
    font-size: 2rem;
  }

  .engineering-tabs-nav {
    flex-direction: column;
  }

  .engineering-tab-button {
    text-align: left;
    padding: 20px;
  }

  .engineering-tab-content {
    padding: 30px 20px;
  }

  .engineering-tab-service-header {
    flex-direction: column;
    text-align: center;
  }

  .engineering-tab-service-details {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .engineering-tab-service-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .engineering-services-container {
    padding: 20px 10px;
  }

  .engineering-services-title {
    font-size: 1.8rem;
  }

  .engineering-services-subtitle {
    font-size: 1rem;
  }

  .engineering-tab-content {
    padding: 20px 15px;
  }
}

/* ================ PROJECTS SECTION ================ */

.carousel-services-section {
  background: var(--bg-secondary);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.carousel-services-section::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -60%;
  width: 120%;
  height: 120%;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.03;
  transform: scale(1.2);
}

.carousel-services-section::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -40%;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.04;
  transform: scale(1.4);
}

.carousel-title-main {
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.carousel-title-main::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.services-carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.services-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
}

.services-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-service-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  padding: 4rem;
  gap: 4rem;
}

.service-content-left {
  flex: 1;
  padding-right: 2rem;
}

.service-content-right {
  flex: 1;
  position: relative;
}

.service-slide-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-slide-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.service-tags-carousel {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.service-tag-carousel {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 137, 123, 0.1) 0%,
    rgba(76, 175, 80, 0.1) 100%
  );
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(0, 137, 123, 0.2);
  transition: all 0.3s ease;
}

.service-tag-carousel:nth-child(2) {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1) 0%,
    rgba(0, 137, 123, 0.1) 100%
  );
  color: var(--secondary-color);
  border-color: rgba(76, 175, 80, 0.2);
}

.service-tag-carousel:nth-child(3) {
  background: linear-gradient(
    135deg,
    rgba(0, 105, 92, 0.1) 0%,
    rgba(0, 137, 123, 0.1) 100%
  );
  color: var(--primary-dark);
  border-color: rgba(0, 105, 92, 0.2);
}

.service-extended-description {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 137, 123, 0.05) 0%,
    rgba(76, 175, 80, 0.05) 100%
  );
  border-radius: 20px;
  border-left: 4px solid var(--primary-color);
  font-style: italic;
}

.service-image-carousel {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-image-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 137, 123, 0.2) 0%,
    rgba(76, 175, 80, 0.2) 100%
  );
  z-index: 1;
  border-radius: 20px;
}

.service-image-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-service-slide:hover .service-image-carousel img {
  transform: scale(1.05);
}

/* Carousel Navigation */
.carousel-navigation-services {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 3;
}

.carousel-btn-services {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn-services:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.carousel-btn-services:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-indicators-services {
  display: flex;
  gap: 1rem;
}

.carousel-indicator-services {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 137, 123, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-indicator-services.active-indicator {
  background: var(--primary-color);
  transform: scale(1.2);
  border-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .carousel-service-slide {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .service-content-left {
    padding-right: 0;
  }

  .service-image-carousel {
    height: 300px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .carousel-title-main {
    font-size: 2.5rem;
  }

  .service-slide-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .carousel-services-section {
    padding: 4rem 1rem;
  }

  .carousel-service-slide {
    padding: 2rem 1rem;
  }

  .carousel-title-main {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .service-slide-title {
    font-size: 1.8rem;
  }

  .service-slide-description {
    font-size: 1.1rem;
  }

  .service-image-carousel {
    height: 250px;
  }
}

/* ================ STATS SECTION MEJORADO ================ */
.stats-section {
  padding: 8rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  opacity: 0.8;
}

.stats-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: backgroundMove 30s linear infinite;
  opacity: 0.4;
}

@keyframes backgroundMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-60px) translateY(-60px);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-item {
  background: rgba(255, 255, 255, 0.12);
  padding: 3rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.stat-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.6s;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-item i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.stat-item:hover i {
  transform: scale(1.1);
  color: white;
}

.stat-item h3 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.1;
}

.stat-item p {
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.stat-item::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.2)
  );
  margin: 1.5rem auto 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.stat-item:hover::after {
  width: 80px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4)
  );
}

/* ================ ANIMACIONES DE ENTRADA ================ */
.stat-item:nth-child(1) {
  transition-delay: 0.1s;
}

.stat-item:nth-child(2) {
  transition-delay: 0.2s;
}

.stat-item:nth-child(3) {
  transition-delay: 0.3s;
}

.stat-item:nth-child(4) {
  transition-delay: 0.4s;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials {
  padding: 7rem 2rem;
  background: white;
  overflow: hidden;
  position: relative;
}

/* Círculos decorativos específicos para testimonios */
#testimonials::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 60%;
  height: 60%;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.05;
  transform: scale(1.2);
  z-index: 0;
}

#testimonials::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 50%;
  height: 50%;
  background: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.05;
  transform: scale(1.2);
  z-index: 0;
}

#testimonials .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

#testimonials .section-title {
  text-align: center;
  margin-bottom: 4rem;
}

#testimonials .section-title h2 {
  font-size: 2.8rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

#testimonials .section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

#testimonials .section-title p {
  color: #666;
  font-size: 1.1rem;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Contenedor específico para testimonios */
#testimonials .testimonial-item {
  background: white;
  border: 1px solid #e8f4f3;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  margin: 1rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#testimonials .testimonial-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-100%);
  transition: all 0.3s ease;
}

#testimonials .testimonial-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 137, 123, 0.15);
}

#testimonials .testimonial-item:hover::before {
  transform: translateX(0);
}

#testimonials .testimonial-item .stars {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3px;
}

#testimonials .testimonial-item .stars i {
  color: #ffc107;
  font-size: 1.2rem;
}

#testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 2rem auto;
  color: var(--text-color);
  line-height: 1.7;
  flex-grow: 1;
  font-size: 1rem;
}

#testimonials .testimonial-item .profile {
  margin-top: auto;
}

#testimonials .testimonial-item .testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  margin: 0 auto 1rem;
  object-fit: cover;
  transition: all 0.3s ease;
}

#testimonials .testimonial-item:hover .testimonial-img {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 137, 123, 0.3);
}

#testimonials .testimonial-item .profile h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--text-color);
}

#testimonials .testimonial-item .profile h4 {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Swiper específico para testimonios */
#testimonials .swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 60px !important;
  overflow: hidden;
}

#testimonials .swiper-wrapper {
  height: auto;
  padding-bottom: 20px;
}

#testimonials .swiper-slide {
  height: auto;
  opacity: 0.3;
  transform: scale(0.85);
  transition: all 0.5s ease;
}

#testimonials .swiper-slide-active {
  opacity: 1 !important;
  transform: scale(1) !important;
  z-index: 2;
}

#testimonials .swiper-slide-active .testimonial-item {
  box-shadow: 0 25px 50px rgba(0, 137, 123, 0.2);
  border-color: var(--primary-color);
}

#testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
  bottom: 0 !important;
}

#testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(0, 137, 123, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

#testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 137, 123, 0.5);
}

/* Responsive adjustments específicos */
@media (max-width: 1199px) {
  #testimonials .swiper-slide {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  #testimonials .testimonial-item {
    margin: 1rem 0.5rem;
  }
}

@media (min-width: 1200px) {
  #testimonials .swiper-slide-next,
  #testimonials .swiper-slide-prev {
    opacity: 0.3;
    transform: scale(0.85);
  }

  #testimonials .swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1.05) !important;
  }

  /* Asegurar que las tarjetas laterales estén visibles pero atenuadas */
  #testimonials .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.3;
    transform: scale(0.85);
  }
}

@media (max-width: 768px) {
  #testimonials {
    padding: 5rem 1rem;
  }

  #testimonials .section-title h2 {
    font-size: 2.2rem;
  }

  #testimonials .testimonial-item {
    min-height: 320px;
    margin: 1rem 0;
    padding: 2rem 1.5rem;
  }

  #testimonials .testimonial-item .testimonial-img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  #testimonials {
    padding: 4rem 1rem;
  }

  #testimonials .section-title h2 {
    font-size: 2rem;
  }

  #testimonials .testimonial-item {
    padding: 1.5rem 1rem;
    min-height: 300px;
  }

  #testimonials .section-title {
    margin-bottom: 3rem;
  }
}

/* ================ CONTACT SECTION ================ */
.contact {
  padding: 7rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--primary-color);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.03;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.contact-info-section {
  padding-right: 2rem;
}

.contact-info-section h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-info-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin-top: 1rem;
  border-radius: 2px;
}

.contact-info-text {
  margin-bottom: 2.5rem;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 137, 123, 0.3);
}

/* ================ FOOTER ================ */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 4rem 0 1rem 0;
  font-family: Arial, sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-section p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 0.5rem 0;
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 35px;
  height: 35px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: white;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 28px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
  color: white;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 24px;
    bottom: 15px;
    right: 15px;
  }
}

/* ================ MEDIA QUERIES ================ */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text {
    padding-right: 0;
  }

  .about-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info-section {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .contact-btn {
    display: inline-block;
    margin-top: 1rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
    padding: 0 1rem;
  }

  .hero-content {
    padding: 2rem;
    margin: 0 1rem;
  }

  .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }

  .stats-section {
    padding: 4rem 1.5rem;
  }

  .stats-grid {
    gap: 2rem;
  }

  .stat-item {
    padding: 2rem 1.5rem;
  }

  .stat-item h3 {
    font-size: 2.8rem;
  }

  .stat-item p {
    font-size: 1.1rem;
  }

  .services {
    padding: 4rem 1.5rem;
  }

  .services .section-title {
    font-size: 2.3rem;
  }

  .service-card {
    padding: 2.5rem 1.5rem;
  }

  .service-card i {
    font-size: 3rem;
  }

  .service-card h3 {
    font-size: 1.6rem;
  }

  .about {
    padding: 5rem 1.5rem;
  }

  .about-text .section-title {
    font-size: 2.3rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .projects {
    padding: 5rem 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-image {
    height: 250px;
  }

  .contact {
    padding: 5rem 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.3s ease-in-out;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .curved-overlay {
    height: 150px;
  }

  .stat-item h3 {
    font-size: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }

  .footer-section p {
    justify-content: center;
  }
}
