/**
* Template Name: Scaffold - v4.3.0
* Template URL: https://bootstrapmade.com/scaffold-bootstrap-metro-style-template/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  background: #e9ecef;
  min-height: 100vh;
  padding-top: 90px !important;
}

/* Base de colores profesional AUTOLINK SOLUTIONS */
:root {
  --primary-color: #009cea;
  --primary-dark: #0078b3;
  --primary-light: #1eb4ff;
  --secondary-color: #2c3e50;
  --accent-color: #009cea;
  --accent-light: #1eb4ff;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  color: #009cea;
  /* unificar títulos en celeste */
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--primary-light);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Back to top button TEST
--------------------------------------------------------------*/
.back-to-top-w {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  height: 90px;
  transition: all 0.5s;
  z-index: 997;
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0px;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.06) !important;
}

#header::before {
  display: none !important;
}

#header .container,
#header .logo-container,
#header .navbar,
#header .header-logo,
#header .header-social-links {
  position: relative;
  z-index: 999;
  pointer-events: auto;
}

#header .header-social-links a {
  position: relative;
  z-index: 1000;
  pointer-events: auto;
  cursor: pointer;
}

/* Alinear logo y navegación al centro vertical */
#header .container {
  align-items: center !important;
  justify-content: space-between !important;
}

#header .navbar {
  margin-top: 0;
}

#header.header-scrolled {
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para el contenedor del logo del header */
#header .header-logo {
  flex-shrink: 0;
  margin-right: 0;
  margin-left: 0px;
  height: 60px !important;
  display: flex;
  align-items: center;
  overflow: visible;
  position: relative;
  z-index: 1;
  width: 200px !important;
}

#header .logo-container {
  margin-bottom: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  position: relative !important;
  height: 60px !important;
  width: 200px !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin-left: 0 !important;
}

#header .logo-img {
  height: 65px !important;
  width: auto !important;
  max-width: 180px !important;
  transform: none !important;
  transform-origin: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
}

/* Eliminar fondo blanco del SVG */
#header .logo-img svg {
  background: transparent !important;
  fill: currentColor !important;
}

/* Forzar transparencia en el logo */
#header .logo-img * {
  background: transparent !important;
  background-color: transparent !important;
}

/* Eliminar cualquier rectángulo blanco del SVG */
#header .logo-img rect,
#header .logo-img path[fill="white"],
#header .logo-img path[fill="#ffffff"] {
  fill: transparent !important;
  background: transparent !important;
}

#header .logo-img:hover {
  transform: scale(1.25);
  border: none;
  outline: none;
  box-shadow: none;
}

/* Animación sutil de pulso */
@keyframes logoPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

#header .logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin-left: -5px !important;
}

#header .logo-text h1 {
  font-size: 64px;
  margin: 0;
  font-weight: 900;
  letter-spacing: 48px !important;
  font-family: "Raleway", sans-serif;
  color: #009cea;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
  background: transparent;
  background-color: transparent;
  transform: scale(1.5);
  transform-origin: left center;
  border: none;
  outline: none;
  box-shadow: none;
  border-width: 0;
  border-style: none;
  border-color: transparent;
}

#header .logo-text span {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 48px !important;
  font-family: "Open Sans", sans-serif;
  color: #009cea;
  text-transform: uppercase;
  margin-top: -3px;
  opacity: 1;
  background: transparent;
  background-color: transparent;
  transform: scale(1.5);
  transform-origin: left center;
  border: none;
  outline: none;
  box-shadow: none;
  border-width: 0;
  border-style: none;
  border-color: transparent;
}

#header .logo h1 a,
#header .logo h1 a:hover {
  color: #576971;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Header Social Links
--------------------------------------------------------------*/
/* Estilos para las redes sociales del header */
.header-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  /* compactar iconos */
  flex-shrink: 0;
  margin-left: 10px;
  /* más cerca de la navegación */
  margin-right: 18px;
  /* leve separación del borde */
}



#navbar.navbar ul li a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #333 !important;
  padding: 10px 12px !important;
  border-radius: 20px;
  transition: all 0.3s ease;
}


#navbar.navbar ul li a:hover {
  background: #009cea;
  color: white;
}


.header-social-links a {
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0px;
  transition: 0.3s;
  padding: 6px 4px;
  font-size: 18px;
}

/* Adaptación automática para pantallas ~1366px a 1280px (100% zoom) */
@media (max-width: 1360px) {
  #header .container {
    max-width: 1180px;
    padding-right: 8px !important;
  }

  #header .header-logo {
    width: 200px;
  }

  #header .logo-container {
    width: 200px !important;
  }

  #navbar.navbar {
    margin-right: 0;
  }

  .navbar ul {
    gap: 2px;
    flex-wrap: nowrap;
  }

  .navbar a,
  .navbar a:focus {
    padding: 6px 4px;
    font-size: 11px;
  }

  .header-social-links {
    gap: 6px;
    margin-right: 8px;
  }

  .header-social-links a {
    padding: 6px 2px;
  }
}

@media (max-width: 1280px) {
  #header .container {
    max-width: 1120px;
    padding-right: 6px !important;
  }

  #header .header-logo {
    width: 190px;
  }

  #header .logo-container {
    width: 190px !important;
  }



  .navbar a,
  .navbar a:focus {
    padding: 7px 5px;
    font-size: 12.5px;
  }

  .header-social-links {
    gap: 5px;
    margin-right: 6px;
  }

  .header-social-links a {
    padding: 6px 2px;
  }
}

.header-social-links a:hover {
  color: #009cea;
}

/* Estilos para enlaces desactivados */
.header-social-links a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.header-social-links a.disabled:hover {
  color: #6c757d;
  transform: none;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
/* Forzar layout del header */
#header .container {
  max-width: 1280px;
  margin: 0 auto;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 12px 0 8px !important;
  /* leve padding a ambos lados */
  box-sizing: border-box;
}

#header .logo {
  margin-right: 20px !important;
  flex-shrink: 0 !important;
  width: auto !important;
}

/* Estilos para la navegación del header */
#navbar.navbar {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
  transform: none;
}

.navbar {
  padding: 0;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px !important;
  /* Reducido de 10px para ganar espacio */
  font-size: 13px !important;
  /* Un punto menos para que entre en zoom */
  font-family: "Poppins", sans-serif;
  color: #000000;
  white-space: nowrap;
  transition: 0.3s;
  height: 100%;
  margin: 0 1px;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #009cea;
}

/* Ajustes finos para pantallas medianas o con mucho zoom */
@media (min-width: 992px) and (max-width: 1250px) {
  .navbar a {
    padding: 6px 4px !important;
    font-size: 11px !important;
  }

  .navbar ul {
    gap: 4px;
  }

  .header-social-links {
    gap: 5px;
  }

  .header-social-links a {
    padding-left: 5px !important;
  }
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  color: #009cea;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #009cea;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #364146;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 1200px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none !important;
  }
}




/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 85vh;
  background: #000;
  overflow: hidden;
  position: relative;
}

@media (max-height: 500px) {
  #hero {
    height: 150vh;
  }
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item,
#hero .carousel-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#hero .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero .carousel-item::before {
  content: '';
  background-color: rgba(0, 0, 0, 0.7);
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 70px;
  left: 50px;
  right: 50px;
}

/* Sombra celeste para el texto del carrusel */
#hero .carousel-container h2 {
  text-shadow: 2px 2px 4px rgba(0, 156, 234, 0.8) !important;
}

#hero .carousel-container p {
  text-shadow: 1px 1px 2px rgba(0, 156, 234, 0.8) !important;
}


#hero .container {
  text-align: center;
}

#hero h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: 700;
}

@media (max-width: 768px) {
  #hero h2 {
    font-size: 28px;
  }
}

#hero p {
  width: 80%;
  margin: 0 auto 30px auto;
  color: #fff;
  font-size: 18px;
}

@media (min-width: 1024px) {
  #hero p {
    width: 60%;
  }
}

#hero .carousel-fade {
  overflow: hidden;
}

#hero .carousel-fade .carousel-inner .carousel-item {
  transition-property: opacity;
}

#hero .carousel-fade .carousel-inner .carousel-item,
#hero .carousel-fade .carousel-inner .active.carousel-item-start,
#hero .carousel-fade .carousel-inner .active.carousel-item-end {
  opacity: 0;
}

#hero .carousel-fade .carousel-inner .active,
#hero .carousel-fade .carousel-inner .carousel-item-next.carousel-item-start,
#hero .carousel-fade .carousel-inner .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition: 0.5s;
}

#hero .carousel-fade .carousel-inner .carousel-item-next,
#hero .carousel-fade .carousel-inner .carousel-item-prev,
#hero .carousel-fade .carousel-inner .active.carousel-item-start,
#hero .carousel-fade .carousel-inner .active.carousel-item-end {
  left: 0;
  transform: translate3d(0, 0, 0);
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 10%;
}

@media (min-width: 1024px) {

  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    width: 5%;
  }
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

#hero .carousel-indicators li {
  cursor: pointer;
}

#hero .btn-get-started {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
  background: #18d26e;
}

#hero .btn-get-started:hover {
  background: #fff;
  color: #18d26e;
}






/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------
#hero {
  width: 100%;
  height: 60vh;
  position: relative;
  background: url("../img/hero-carousel/1_1.jpeg") no-repeat;
  background-size: cover;
  padding: 0;
}

#hero .hero-content {
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

#hero .hero-content h2 {
  color: #0c2e8a;
  margin-bottom: 30px;
  font-size: 64px;
  font-weight: 700;
}

#hero .hero-content h2 span {
  color: #50d8af;
  text-decoration: underline;
}

@media (max-width: 767px) {
  #hero .hero-content h2 {
    font-size: 34px;
  }
}

#hero .hero-content .btn-get-started, #hero .hero-content .btn-projects {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 32px;
  border-radius: 2px;
  transition: 0.5s;
  margin: 10px;
  color: #fff;
}

#hero .hero-content .btn-get-started {
  background: #0c2e8a;
  border: 2px solid #0c2e8a;
}

#hero .hero-content .btn-get-started:hover {
  background: none;
  color: #0c2e8a;
}

#hero .hero-content .btn-projects {
  background: #50d8af;
  border: 2px solid #50d8af;
}

#hero .hero-content .btn-projects:hover {
  background: none;
  color: #50d8af;
}

#hero .hero-slider {
  z-index: 8;
  height: 60vh;
}

#hero .hero-slider::before {
  content: '';
  background-color: rgba(255, 255, 255, 0.7);
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 7;
}

#hero .hero-slider .swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition-property: opacity;
}

/* Clientes - Quitar fondo blanco de logos */
.clients-slider .swiper-slide img {
  max-height: 120px !important;
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  mix-blend-mode: multiply;
  border-radius: 15px;
  object-fit: contain !important;
}

/* Clientes - Posición de puntos de navegación */
.clients-slider .swiper-pagination {
  position: relative !important;
  margin-top: 40px !important;
  bottom: auto !important;
}

/* Clientes - Espaciado del slider */
.clients-slider .swiper-wrapper {
  align-items: center;
  padding: 30px 0;
}

.clients-slider .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px !important;
  min-height: 150px !important;
  padding: 10px !important;
}

/* Clientes - Contenedor principal del slider */
.clients-slider {
  height: auto !important;
  min-height: 200px !important;
  padding: 20px 0 !important;
}

/* Clientes - Fondo transparente */
#clients,
.clients {
  background: transparent !important;
  height: auto !important;
  min-height: auto !important;
}

#clients .container,
.clients .container {
  background: transparent !important;
  max-width: 100% !important;
  padding: 0 15px !important;
}

*/

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background-color: transparent;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 0;
  font-family: "Poppins", sans-serif;
  color: #009cea;
  /* celeste para títulos de sección */
}

.section-title p {
  margin-bottom: 0;
}

/* About Us Section
--------------------------------
#about {
  background: transparent;
  padding: 60px 0 40px 0;
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: transparent;
  z-index: 9;
}

#about .container {
  position: relative;
  z-index: 10;
}

#about .about-col {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 0 4px 4px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

#about .about-col .img {
  position: relative;
}

#about .about-col .img img {
  border-radius: 4px 4px 0 0;
}

#about .about-col .icon {
  width: 64px;
  height: 64px;
  text-align: center;
  position: absolute;
  background-color: #18d26e;
  border-radius: 50%;
  border: 4px solid #fff;
  left: calc( 50% - 32px);
  bottom: -30px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#about .about-col i {
  font-size: 28px;
  line-height: 0;
  color: #fff;
  transition: 0.3s;
}

#about .about-col:hover .icon {
  background-color: #fff;
}

#about .about-col:hover i {
  color: #18d26e;
}

#about .about-col h2 {
  color: #009cea;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  padding: 0;
  margin: 40px 0 12px 0;
}

#about .about-col h2 a {
  color: #009cea;
}

#about .about-col h2 a:hover {
  color: #18d26e;
}

#about .about-col p {
  font-size: 14px;
  line-height: 24px;
  color: #333;
  margin-bottom: 0;
  padding: 0 20px 20px 20px;
}

*/

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  padding: 140px 0 80px 0 !important;
  margin-top: 0 !important;
  /* Eliminado el margen superior */
}

.about .container {
  background-color: transparent;
  padding: 40px 50px;
  /* Reducido un poco para que no 'apriete' */
}

@media (max-width: 992px) {
  .about .container {
    padding: 30px 20px;
  }
}

.about .content h3 {
  font-weight: 400;
  font-size: 32px;
  color: #364146;
  font-family: "Poppins", sans-serif;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 20px;
  padding-right: 4px;
  color: #28a745;
}

.about .content p:last-child {
  margin-bottom: 0;
}



/*--------------------------------------------------------------
# Features
--------------------------------------------------------------*/
.features {
  padding-bottom: 40px;
}

.features .nav-tabs {
  border: 0;
}

.features .nav-link {
  border: 0;
  padding: 20px;
  transition: 0.3s;
  color: #364146;
  transition: 0.3s ease-in-out;
  border-radius: 0;
  border-left: 4px solid #fafbfb;
}

.features .nav-link h4 {
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  color: #576971;
}

.features .nav-link p {
  font-size: 14px;
  margin-bottom: 0;
}

.features .nav-link:hover {
  background: transparent;
}

.features .nav-link:hover h4 {
  color: #364146;
}

.features .nav-link.active {
  border-radius: 0;
  border: 0;
  border-left: 4px solid #009cea;
  background: transparent;
}

.features .nav-link.active h4 {
  color: #009cea;
}

.features .tab-pane.active {
  -webkit-animation: slide-down 0.5s ease-out;
  animation: slide-down 0.5s ease-out;
}

.features .tab-content {
  text-align: right;
}

@-webkit-keyframes slide-down {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slide-down {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}



/*--------------------------------------------------------------
# Energías Renovables
--------------------------------------------------------------*/
/* Energías Renovables Section */
.energias-renovables {
  padding: 80px 0;
  background: transparent;
}

.energias-background-section {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 156, 234, 0.25);
  margin: 40px 0;
  min-height: 500px;
  border: 2px solid rgba(0, 156, 234, 0.15);
  transition: all ease-in-out 0.3s;
}

.energias-background-section:hover {
  box-shadow: 0 35px 100px rgba(0, 156, 234, 0.35);
  transform: translateY(-5px);
  border-color: rgba(0, 156, 234, 0.25);
}

.energias-background-section:hover {
  box-shadow: 0 35px 100px rgba(0, 156, 234, 0.35);
  transform: translateY(-5px);
  border-color: rgba(0, 156, 234, 0.25);
}

.energias-background-section:hover {
  box-shadow: 0 35px 100px rgba(0, 156, 234, 0.35);
  transform: translateY(-5px);
  border-color: rgba(0, 156, 234, 0.25);
}

.energias-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.energias-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: grayscale(20%);
}

.energias-content-overlay {
  position: relative;
  z-index: 2;
  padding: 60px;
  background: rgba(255, 255, 255, 0.4);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.energias-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.energias-logo {
  max-height: 60px;
  /* Aumentado de 40px a 60px */
  width: auto;
  filter: none;
  /* Sin filtro para mostrar colores originales */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.energias-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.energias-header h3 {
  color: #000000 !important;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-shadow: none;
}

.energias-content-overlay p {
  color: #000000 !important;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: none;
}

.energias-content-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.energias-content-overlay ul li {
  padding: 10px 0;
  color: #000000 !important;
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 600;
  text-shadow: none;
}

.energias-content-overlay ul li i {
  color: #28a745;
  position: absolute;
  left: 0;
  top: 10px;
}

.energias-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(34, 139, 58, 0.9) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 10px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.stat-item h4 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #fff;
}

.stat-item p {
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .energias-content-overlay {
    padding: 40px 30px;
    min-height: 400px;
  }

  .energias-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .energias-header h3 {
    font-size: 24px;
  }

  .energias-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    min-width: 100px;
    padding: 15px 10px;
  }

  .stat-item h4 {
    font-size: 28px;
  }
}

/* Estadísticas Section */
.estadisticas {
  padding: 80px 0;
  background: transparent;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.estadisticas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/logosintitulo.png') center center no-repeat;
  background-size: 500px auto;
  opacity: 0.1;
  z-index: 1;
}

/* Estadísticas Inline (dentro de Energías Renovables) */
.estadisticas-inline {
  padding: 30px 0;
  margin: 20px 0;
  background: transparent;
  color: var(--text-dark);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 156, 234, 0.12);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 156, 234, 0.06);
  transition: all ease-in-out 0.3s;
}

.estadisticas-inline:hover {
  box-shadow: 0 15px 50px rgba(0, 156, 234, 0.2);
  transform: translateY(-2px);
}

/* Nuevo branding AUTOLINK SOLUTIONS */
.autolink-branding {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Alinear a la derecha */
  gap: 15px;
  margin: 10px 0;
  /* Reducido de 15px a 10px */
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 80px;
  /* Reducido de 100px a 80px */
  height: 80px;
  /* Reducido de 100px a 80px */
  object-fit: contain;
  filter: none;
  /* Sin filtro */
  transition: all 0.3s ease;
  box-shadow: none;
  /* Eliminar cualquier sombra */
  border-radius: 0;
  /* Eliminar bordes redondeados */
  border: none;
  /* Eliminar cualquier borde */
}

.brand-logo:hover {
  transform: scale(1.05);
  filter: none;
}

.brand-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.autolink-text {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}

.solutions-text {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.estadisticas .section-title,
.estadisticas-inline .section-title {
  color: var(--text-dark);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
  /* Reducido de 10px a 5px */
  position: relative;
  z-index: 2;
}

.estadisticas .section-subtitle,
.estadisticas-inline .section-subtitle {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 25px;
  /* Reducido de 40px a 25px */
  position: relative;
  z-index: 2;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 156, 234, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0, 156, 234, 0.1);
}

.stat-card:hover {
  box-shadow: 0 12px 35px rgba(0, 156, 234, 0.2);
  transform: translateY(-3px);
  border: 2px solid rgba(0, 156, 234, 0.3);
}

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  margin-bottom: 20px;
}

.stat-icon i {
  font-size: 48px;
  color: var(--primary-color);
  background: rgba(0, 156, 234, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.stat-content h3 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-dark);
}

.stat-content p {
  font-size: 16px;
  margin: 0;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Empresas Trabajadas */
.empresas-trabajadas {
  margin-top: 60px;
  padding: 40px 0;
  background: transparent;
  border-radius: 15px;
}

.empresa-logo {
  text-align: center;
  padding: 20px;
  background: transparent !important;
  border-radius: 10px;
  box-shadow: none !important;
  transition: all 0.3s ease;
  height: 100%;
}

.empresa-logo:hover {
  transform: translateY(-5px);
  box-shadow: none !important;
}

.empresa-logo img {
  max-height: 80px;
  width: auto;
  margin-bottom: 15px;
  filter: none;
  transition: all 0.3s ease;
}

.empresa-logo:hover img {
  filter: none;
}

.empresa-info h6 {
  color: #000000;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 16px;
}

.empresa-info p {
  color: #6c757d;
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Testimonios de Clientes */
.testimonios-clientes {
  margin-top: 60px;
  padding: 40px 0;
}

.testimonio-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0px 5px 20px 0px rgba(0, 156, 234, 0.1);
  transition: all ease-in-out 0.3s;
  height: 100%;
  position: relative;
  border: 1px solid rgba(0, 156, 234, 0.05);
}

.testimonio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 35px 0px rgba(0, 156, 234, 0.2);
  border: 2px solid rgba(0, 156, 234, 0.3);
}

.testimonio-item::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 60px;
  color: #ea5455;
  font-family: serif;
  line-height: 1;
  opacity: 0.3;
}

.testimonio-content {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonio-content p {
  color: #495057;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  font-size: 15px;
}

.testimonio-autor {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.autor-info h6 {
  color: #000000;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 16px;
}

.autor-info span {
  color: #6c757d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for testimonios */
@media (max-width: 768px) {
  .testimonio-item {
    padding: 20px;
  }

  .testimonio-item::before {
    font-size: 40px;
    top: 15px;
    left: 20px;
  }

  .testimonio-content p {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services .icon-box {
  text-align: center;
  padding: 50px 20px 60px 20px;
  transition: all ease-in-out 0.3s;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0px 5px 20px 0px rgba(0, 156, 234, 0.1);
  border-radius: 10px;
  height: 100%;
  border: 1px solid rgba(0, 156, 234, 0.05);
}

.services .icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 35px 0px rgba(0, 156, 234, 0.2);
  border-color: rgba(0, 156, 234, 0.15);
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
  background: rgba(0, 156, 234, 0.12) !important;
  border-radius: 50%;
  transform: scale(1);
}

.services .icon-box .icon i {
  transition: 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  line-height: 1;
  font-weight: bold;
  color: #fff;
}

.services .icon-box .icon .service-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  transition: 0.5s;
  filter: none;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 156, 234, 0.3);
}

.services .icon-box:hover .icon {
  transform: scale(1.1);
}

.services .icon-box:hover .icon i {
  color: #fff;
}

.services .icon-box:hover .icon .service-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 156, 234, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

.services .icon-box h4 {
  font-weight: 600;
  margin: 10px 0 15px 0;
  font-size: 18px;
}

/*--------------------------------------------------------------
# Portfolio/Projects Carousel Spacing - AUTOMÁTICO CSS DESACTIVADO
--------------------------------------------------------------*/
/* DESACTIVADO: Ahora se usa JavaScript para animación automática */

#portfolio .portfolio-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  padding: 20px !important;
  height: 280px !important;
  align-items: flex-start !important;

  /* Ancho normal para JavaScript */
  width: auto !important;
}

#portfolio .portfolio-item {
  min-width: 300px !important;
  width: 300px !important;
  height: 240px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  float: none !important;
}

#portfolio .portfolio-item:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(0, 156, 234, 0.2) !important;
}

#portfolio .portfolio-wrap {
  position: relative !important;
  overflow: hidden !important;
}

#portfolio .portfolio-wrap img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border: 2px solid #009cea !important;
  border-radius: 10px !important;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
  #portfolio .portfolio-container {
    gap: 20px !important;
    width: calc(200% + 40px) !important;
    /* Animación eliminada - controlada por JavaScript */
  }

  #portfolio .portfolio-item {
    min-width: 250px !important;
    width: 250px !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  #portfolio .portfolio-container {
    gap: 15px !important;
    width: calc(200% + 30px) !important;
    /* Animación eliminada - controlada por JavaScript */
  }

  #portfolio .portfolio-item {
    min-width: 200px !important;
    width: 200px !important;
    margin: 0 !important;
  }
}

.services .icon-box h4 a {
  color: #493c3e;
  transition: ease-in-out 0.3s;
}

.services .icon-box p {
  line-height: 22px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .icon-box:hover {
  border-color: #009cea;
  box-shadow: 0px 10px 30px 0px rgba(0, 156, 234, 0.2);
  transform: translateY(-5px);
}

.services .icon-box:hover h4 a {
  color: #ea5455;
}

.services .icon-box-pink .icon {
  background: rgba(234, 84, 85, 0.08) !important;
}

.services .icon-box-pink:hover h4 a {
  color: #009cea;
}

.services .icon-box-cyan .icon {
  background: rgba(0, 156, 234, 0.12) !important;
}

.services .icon-box-cyan:hover h4 a {
  color: #009cea;
}

.services .icon-box-green .icon {
  background: rgba(40, 167, 69, 0.08) !important;
}

.services .icon-box-green:hover h4 a {
  color: #009cea;
}

.services .icon-box-blue .icon {
  background: rgba(13, 110, 253, 0.12) !important;
}

.services .icon-box-blue:hover h4 a {
  color: #009cea;
}

.services .icon-box-orange .icon {
  background: rgba(253, 126, 20, 0.08) !important;
}

.services .icon-box-orange:hover h4 a {
  color: #009cea;
}

.services .icon-box-purple .icon {
  background: rgba(111, 66, 193, 0.08) !important;
}

.services .icon-box-purple:hover h4 a {
  color: #009cea;
}

/* Efecto hover para Casos de Uso - cambia al mismo color que el título principal */
.services .icon-box:hover .service-details h6 {
  color: #493c3e !important;
}

/* Reducir espaciado entre servicios */
.services .row .col-md-6.col-lg-4 {
  margin-bottom: 20px !important;
}

@media (min-width: 992px) {
  .services .row .col-md-6.col-lg-4 {
    margin-bottom: 30px !important;
  }
}

/* Service Details */
.services .service-details {
  margin-top: 20px;
  text-align: left;
}

.services .service-details h6 {
  color: #009cea;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  transition: ease-in-out 0.3s;
}

.services .service-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services .service-details ul li {
  padding: 5px 0;
  font-size: 13px;
  color: #6c757d;
  position: relative;
  padding-left: 20px;
}

.services .service-details ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #444444;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
  font-family: "Poppins", sans-serif;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #009cea;
}

.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

.portfolio .portfolio-wrap {
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 3px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px var(--shadow-light);
}

/*--------------------------------------------------------------
# Portfolio - Carrusel de Proyectos CORREGIDO
--------------------------------------------------------------*/
.portfolio {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.portfolio-container-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 156, 234, 0.1);
  height: 320px;
  /* Asegurar que la animación sea visible */
  transform: translateZ(0);
  will-change: transform;
}

#projectsCarousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 40px !important;
  padding: 20px !important;
  height: 280px !important;
  align-items: flex-start !important;

  /* Ancho suficiente para contener todos los elementos duplicados */
  width: calc(340px * 20) !important;
  /* 20 elementos * (300px + 40px gap) */

  /* Animación automática */
  animation: slideProjects 30s linear infinite !important;
  will-change: transform !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}

/* Animación del carrusel de proyectos */
@keyframes slideProjects {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pausar animación en hover */
#projectsCarousel:hover {
  animation-play-state: paused !important;
}

/* FORZAR animación incluso con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #projectsCarousel {
    animation: slideProjects 30s linear infinite !important;
  }
}

#projectsCarousel .portfolio-item {
  min-width: 300px !important;
  width: 300px !important;
  height: 240px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
}

#projectsCarousel .portfolio-item:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(0, 156, 234, 0.2) !important;
}

#projectsCarousel .portfolio-wrap {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 20px rgba(0, 156, 234, 0.1) !important;
  transition: all 0.3s ease !important;
  border: 1px solid rgba(0, 156, 234, 0.1) !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  background: transparent !important;
}

#projectsCarousel .portfolio-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
  filter: none !important;
  border: 2px solid #009cea !important;
  border-radius: 10px !important;
}

/*--------------------------------------------------------------
# Casos de Éxito - Carrusel Automático (Mismo método que proyectos)
--------------------------------------------------------------*/
.casos-exito {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.casos-exito-container-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden !important;
  /* VUELTO A HIDDEN para contener el carrusel */
  margin: 0 auto;
  max-width: 1200px;
  height: auto;
  min-height: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 156, 234, 0.1);
}

/* Contenedor principal del carrusel de casos de éxito */
.casos-exito-container {
  display: flex !important;
  gap: 20px !important;
  transition: none !important;
  transform: translateX(0) !important;
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  overflow: visible !important;
  position: relative !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
}

/* Items de casos de éxito */
.caso-exito-item {
  flex: 0 0 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  border-radius: 15px !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  transition: none !important;
  border: none !important;
  height: 400px !important;
  overflow: hidden;
  position: relative;
}

/* Items de casos de éxito con background-image - NO sobrescribir el fondo */
.caso-exito-item[style*="background-image"] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.caso-exito-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(1.1) contrast(1.1) saturate(1.1);
  transition: filter 0.3s ease;
  z-index: 1;
  border: 2px solid #009cea !important;
}

/* Overlay semi-transparente para mejorar legibilidad del texto */
.caso-exito-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  z-index: 2;
  pointer-events: none;
  border-radius: 15px;
  border: 2px solid #009cea;
}

.caso-exito-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 15px 35px 0px rgba(0, 156, 234, 0.2);
  border: 2px solid rgba(0, 156, 234, 0.3);
  border-radius: 0px;
}

.caso-exito-item:hover img {
  filter: brightness(1.15) contrast(1.15) saturate(1.15);
}


/* Contenido de casos de éxito */
.caso-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  color: white;
  padding: 20px 0px 0px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
  border-radius: 15px;
}

.caso-header h3 {
  color: #000000;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  display: none;
}

.caso-header .ubicacion {
  color: #000000;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  padding: 0 20px;
}

.caso-content p {
  color: #000000;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  padding: 0 20px;
}

.caso-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  padding-left: 15px;
  padding-right: 20px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.caso-content li {
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.tecnologias {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  background: #e9ecef !important;
  padding: 15px 20px;
  border-radius: 15px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  border: 2px solid #009cea !important;
}

.tecnologias .tag {
  background: #009cea;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 400;
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive para casos de éxito */
@media (max-width: 768px) {
  .caso-exito-item {
    flex: 0 0 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 350px !important;
  }

  .caso-content {
    padding: 15px;
  }

  .caso-header {
    margin-top: 25%;
  }

  .caso-content p {
    font-size: 0.9rem;
  }

}

/* Casos de éxito - elementos con img tags (no background-image) */
.caso-exito-item:not([style*="background-image"]) {
  background: #e9ecef !important;
  border-radius: 15px !important;
  border: none !important;
  position: relative !important;
  overflow: hidden;
}

.caso-exito-item:not([style*="background-image"]) img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
  border-radius: 15px !important;
  border: 2px solid #009cea !important;
}

.caso-exito-item:not([style*="background-image"]):hover {
  border-radius: 0px !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.caso-exito-item[style*="background-image"]:hover {
  border-radius: 0px !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contenido para elementos con background-image */
.caso-exito-item[style*="background-image"] .caso-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10 !important;
  color: white !important;
  padding: 20px 0px 0px 0px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  background: transparent !important;
  border-radius: 15px !important;
}

/* Header para elementos con background-image */
.caso-exito-item[style*="background-image"] .caso-header {
  margin-top: 50%;
  padding: 0 20px;
}

.caso-exito-item[style*="background-image"] .caso-header h3 {
  color: #000000 !important;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  display: none;
}

.caso-exito-item[style*="background-image"] .ubicacion {
  color: #000000 !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
}

/* Contenido de texto para elementos con background-image */
.caso-exito-item[style*="background-image"] .caso-content p {
  color: #000000 !important;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  background: transparent !important;
  padding: 0 20px;
}

.caso-exito-item[style*="background-image"] .caso-content ul {
  color: #000000 !important;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  background: transparent !important;
  padding-left: 15px;
  padding-right: 20px;
}

.caso-exito-item[style*="background-image"] .caso-content ul li {
  color: #000000 !important;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
}

/* Tecnologías para elementos con background-image */
.caso-exito-item[style*="background-image"] .tecnologias {
  background: #e9ecef !important;
  padding: 15px 20px !important;
  border-radius: 15px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  border: 2px solid #009cea !important;
}

.caso-exito-item[style*="background-image"] .tecnologias .tag {
  background: #009cea;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  margin-right: 8px;
  margin-bottom: 4px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive para elementos con background-image */
@media (max-width: 768px) {
  .caso-exito-item[style*="background-image"] .caso-header {
    margin-top: 40%;
  }
}

/* Estilos para elementos de portfolio sin imágenes de fondo */
.portfolio-item {
  background: #e9ecef !important;
  border-radius: 0px !important;
  border: none !important;
  position: relative !important;
  overflow: hidden;
}

.portfolio-item:hover {
  border-radius: 0px !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-item .portfolio-wrap {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-item .portfolio-wrap img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 1 !important;
  border-radius: 0px !important;
}

.portfolio-item .portfolio-info {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10 !important;
  color: white !important;
  padding: 20px 0px 0px 0px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  background: transparent !important;
  border-radius: 15px !important;
}

.portfolio-item .portfolio-info h4 {
  color: #000000 !important;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: none;
  display: none;
}

.portfolio-item .portfolio-info p {
  color: #000000 !important;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  text-shadow: none;
  background: transparent !important;
  padding: 0 20px;
}

/* Tecnologías para portfolio (simulando el contenedor de tecnologías) - DESACTIVADO */
/* .portfolio-item .portfolio-info::after {
  content: "";
  background: #000000 !important;
  padding: 15px 20px !important;
  border-radius: 10px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  height: 60px;
  margin-top: auto;
} */

/* Responsive para portfolio */
@media (max-width: 768px) {
  .portfolio-item .portfolio-info {
    padding: 15px 0px 0px 0px !important;
  }

  .portfolio-item .portfolio-info p {
    font-size: 0.9rem;
    padding: 0 15px;
  }
}

/* Estilos para el contenido de casos de éxito */
.caso-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  padding: 15px;
  border-radius: 10px;
  margin-top: 30%;
}

.caso-header h3 {
  color: #000000;
  font-size: 18px;
  font-weight: 800;
  /* "Proyecto" en negrita más marcada */
  margin-bottom: 6px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  display: none;
}

.ubicacion {
  color: #000000;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.ubicacion i {
  color: var(--accent-color);
}

.caso-content p {
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.5;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.6), 1px 1px 2px rgba(255, 255, 255, 0.6);
  font-size: 14px;
  background: transparent;
  padding: 15px;
  border-radius: 10px;
  font-weight: 700;
  /* textos de descripción en negrita */
}

.caso-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  background: transparent;
  padding: 15px;
  border-radius: 10px;
}

.caso-content ul li {
  padding: 6px 0;
  color: #000000;
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  text-shadow: none;
  font-weight: 700;
  /* ítems en negrita */
}

.caso-content ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Lista de valores (Nosotros) */
.valores-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: 6px;
}

.valores-list li {
  padding: 2px 0;
  line-height: 1.25;
  position: relative;
  padding-left: 16px;
}

.valores-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

@media (min-width: 992px) {
  .valores-list {
    grid-template-columns: repeat(3, 1fr);
    /* Tres columnas para evitar compresión */
    grid-column-gap: 30px;
    grid-row-gap: 12px;
  }
}

.tecnologias {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #e9ecef !important;
  padding: 15px 20px;
  border-radius: 15px;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  border: 2px solid #009cea !important;
}

.tag {
  background: rgba(0, 156, 234, 0.6);
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Override final para carousel de proyectos horizontal
--------------------------------------------------------------*/
/* Asegurar que el carousel de proyectos se mantenga horizontal */
#portfolio .portfolio-container,
.portfolio .portfolio-container,
.portfolio-container,
.portfolio-container-wrapper .portfolio-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 40px !important;
  margin: 0 !important;
  padding: 20px !important;
  width: 3400px !important;
  height: 280px !important;
  overflow: visible !important;
  position: relative !important;
  transition: transform 0.5s ease-in-out !important;
  box-sizing: border-box !important;
  will-change: transform !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
}

#portfolio .portfolio-item,
.portfolio .portfolio-item,
.portfolio-container .portfolio-item,
.portfolio-container-wrapper .portfolio-item {
  flex: 0 0 300px !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: 240px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  float: none !important;
}

/* Override de cualquier regla de Bootstrap que pueda afectar */
.portfolio-container *,
.portfolio-container-wrapper * {
  flex-wrap: nowrap !important;
}

/* Asegurar que no haya wrap en ningún elemento del carousel */
.portfolio-container,
.portfolio-container .portfolio-item,
.portfolio-container .portfolio-wrap,
.portfolio-container-wrapper,
.portfolio-container-wrapper .portfolio-item,
.portfolio-container-wrapper .portfolio-wrap {
  flex-wrap: nowrap !important;
  flex-direction: row !important;
}

/* Estilos para el carrusel de proyectos - VERSIÓN CSS */
#projectsCarousel .portfolio-info {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  padding: 20px !important;
  z-index: 5 !important;
  /* por debajo de los links */
  pointer-events: none !important;
  /* nunca bloquea clics */
  visibility: hidden !important;
}

#projectsCarousel .portfolio-item:hover .portfolio-info {
  opacity: 1 !important;
  visibility: visible !important;
}

#projectsCarousel .portfolio-info h4 {
  color: white !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  font-family: "Poppins", sans-serif !important;
  display: block !important;
  visibility: visible !important;
}

#projectsCarousel .portfolio-info p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin-bottom: 20px !important;
  font-family: "Poppins", sans-serif !important;
  display: block !important;
  visibility: visible !important;
}

#projectsCarousel .portfolio-links {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
  align-items: center !important;
  pointer-events: auto !important;
  /* clickable siempre */
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 12 !important;
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

#projectsCarousel .portfolio-item:hover .portfolio-links {
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Badges para Proyectos LIVE */
.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #28a745;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 15;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-ia {
  background: linear-gradient(135deg, #6f42c1, #a445b2) !important;
}

.badge-biogas {
  background: linear-gradient(135deg, #198754, #20c997) !important;
}

.badge-solar {
  background: linear-gradient(135deg, #fd7e14, #ffc107) !important;
  color: #000 !important;
}

#projectsCarousel .portfolio-links a i {
  font-size: 24px;
  transition: 0.3s;
}

#projectsCarousel .portfolio-links a:hover i {
  color: #00f3ff;
  transform: scale(1.2);
}

#projectsCarousel .portfolio-links a {
  width: 40px !important;
  height: 40px !important;
  background: rgba(0, 156, 234, 0.8) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-size: 18px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  z-index: 13 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  pointer-events: auto !important;
}

#projectsCarousel .portfolio-item:hover .portfolio-links a {
  background: rgba(0, 156, 234, 0.9) !important;
}

#projectsCarousel .portfolio-links a:hover {
  background: rgba(0, 156, 234, 1) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 5px 15px rgba(0, 156, 234, 0.4) !important;
}

#projectsCarousel .portfolio-links i {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: white !important;
  font-size: 18px !important;
}

/* Footer mejorado - VERSIÓN SIMPLIFICADA */
/* Footer Refactorizado */
.footer-top {
  background: #fdfdfd;
  padding: 40px 0 !important;
  border-top: 1px solid #eee;
}

.footer-logo {
  display: flex !important;
  justify-content: center !important;
  /* Centrado en móviles */
  align-items: center !important;
  width: 100% !important;
  padding: 10px 0;
}

@media (min-width: 992px) {
  .footer-logo {
    justify-content: flex-start !important;
    padding-left: 0 !important;
  }
}

/* Logo del footer unificado con el del header */
.footer-logo .logo-img {
  height: 70px !important;
  max-width: 210px !important;
}

.footer-links {
  text-align: left;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px !important;
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links i {
  color: #009cea;
  font-size: 18px;
}

.footer-links a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #009cea;
  padding-left: 5px;
}

.social-links {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 15px !important;
}

.social-links a {
  width: 40px !important;
  height: 40px !important;
  background: #fff;
  border: 1px solid #009cea;
  color: #009cea;
  border-radius: 50%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: 0.3s;
  font-size: 18px !important;
}

.social-links a:hover {
  background: #009cea;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 156, 234, 0.3);
}

.copyright {
  padding: 20px 0 !important;
  background: #f8f9fa;
  color: #777;
  font-size: 14px !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .footer-links ul {
    flex-direction: column;
    gap: 15px;
  }

  .social-links a {
    margin: 0 5px;
  }
}

/* Achicar altura de la sección de contacto */
.contact {
  padding: 30px 0 !important;
}

.contact .container {
  max-width: 1000px !important;
}

.contact .info {
  height: auto !important;
  min-height: auto !important;
}

.contact .php-email-form {
  height: auto !important;
  min-height: auto !important;
}

.contact .php-email-form textarea {
  height: 80px !important;
  min-height: 80px !important;
}

/*--------------------------------------------------------------
# Seccion Clientes - Mejoras Antigravity
--------------------------------------------------------------*/
.clients-marquee {
  background: white !important;
  padding: 30px 0 !important;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.02);
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.client-logo {
  max-height: 45px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .clients-logos {
    gap: 20px;
  }

  .client-logo {
    max-height: 35px;
  }
}

/*--------------------------------------------------------------
# Modal de Galería de Proyectos
--------------------------------------------------------------*/
.project-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-gallery-modal.active {
  opacity: 1;
}

.project-gallery-content {
  background: transparent;
  border-radius: 15px;
  max-width: 90%;
  max-height: 90%;
  width: 800px;
  height: 600px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: white;
}

.project-gallery-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.close-gallery-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-gallery-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.project-gallery-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(100% - 140px);
  padding: 0 20px;
}

.gallery-image-container {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#galleryImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.gallery-nav-btn {
  background: rgba(0, 156, 234, 0.8);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.gallery-nav-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.gallery-nav-btn:active {
  transform: scale(0.95);
}

.gallery-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .project-gallery-content {
    width: 95%;
    height: 80%;
  }

  .project-gallery-header h2 {
    font-size: 18px;
  }

  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .project-gallery-container {
    padding: 0 10px;
  }
}

/* ===== ROBOT WHATSAPP FLOTANTE ===== */
#robot-whatsapp {
  position: fixed;
  width: 92px;
  height: 92px;
  z-index: 9999;
  cursor: pointer;
  transition: none;
  bottom: 80px;
  /* subir un poco sobre el control de navegación */
  right: 20px;
  animation: none !important;
  /* sin animación - completamente quieto */
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#robot-whatsapp:hover {
  transform: none;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

#robot-whatsapp img,
#robot-whatsapp svg,
#robot-whatsapp video {
  width: 86px;
  height: 86px;
  transition: none;
  border-radius: 50%;
  object-fit: cover;
}

#robot-whatsapp:hover img,
#robot-whatsapp:hover svg,
#robot-whatsapp:hover video {
  transform: none;
}

/* Animación de movimiento por la pantalla */
@keyframes robotFloat {
  0% {
    bottom: 20px;
    right: 20px;
    transform: rotate(0deg);
  }

  10% {
    bottom: 30%;
    right: 15%;
    transform: rotate(5deg);
  }

  20% {
    bottom: 60%;
    right: 25%;
    transform: rotate(-3deg);
  }

  30% {
    bottom: 40%;
    right: 60%;
    transform: rotate(8deg);
  }

  40% {
    bottom: 70%;
    right: 80%;
    transform: rotate(-5deg);
  }

  50% {
    bottom: 50%;
    right: 70%;
    transform: rotate(3deg);
  }

  60% {
    bottom: 25%;
    right: 50%;
    transform: rotate(-8deg);
  }

  70% {
    bottom: 15%;
    right: 30%;
    transform: rotate(6deg);
  }

  80% {
    bottom: 45%;
    right: 10%;
    transform: rotate(-4deg);
  }

  90% {
    bottom: 65%;
    right: 40%;
    transform: rotate(7deg);
  }

  100% {
    bottom: 20px;
    right: 20px;
    transform: rotate(0deg);
  }
}

/* Animación de pulso con ondas múltiples */
@keyframes robotPulse {
  0% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 0 rgba(37, 211, 102, 0.8),
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  25% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 15px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 30px rgba(37, 211, 102, 0.2),
      0 0 0 15px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  75% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 45px rgba(37, 211, 102, 0),
      0 0 0 30px rgba(37, 211, 102, 0.2),
      0 0 0 15px rgba(37, 211, 102, 0.4);
  }

  100% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 60px rgba(37, 211, 102, 0),
      0 0 0 45px rgba(37, 211, 102, 0),
      0 0 0 30px rgba(37, 211, 102, 0);
  }
}

/* Aplicar pulso cada 3 segundos */
#robot-whatsapp {
  animation: none;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  #robot-whatsapp {
    width: 84px;
    height: 84px;
  }

  #robot-whatsapp img,
  #robot-whatsapp svg,
  #robot-whatsapp video {
    width: 76px;
    height: 76px;
  }

  /* Movimiento más suave en móviles */
  @keyframes robotFloat {
    0% {
      bottom: 15px;
      right: 15px;
      transform: rotate(0deg);
    }

    25% {
      bottom: 40%;
      right: 20%;
      transform: rotate(3deg);
    }

    50% {
      bottom: 20%;
      right: 60%;
      transform: rotate(-3deg);
    }

    75% {
      bottom: 50%;
      right: 80%;
      transform: rotate(2deg);
    }

    100% {
      bottom: 15px;
      right: 15px;
      transform: rotate(0deg);
    }
  }
}

/* Robot message removed to fix split-green issue */

/* Animación más intensa cuando el usuario está inactivo */
@keyframes robotPulseIntense {
  0% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 0 rgba(37, 211, 102, 1),
      0 0 0 0 rgba(37, 211, 102, 0.8),
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  20% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 20px rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.8),
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  40% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 40px rgba(37, 211, 102, 0.3),
      0 0 0 20px rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  60% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 60px rgba(37, 211, 102, 0.1),
      0 0 0 40px rgba(37, 211, 102, 0.3),
      0 0 0 20px rgba(37, 211, 102, 0.6),
      0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  80% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 80px rgba(37, 211, 102, 0),
      0 0 0 60px rgba(37, 211, 102, 0.1),
      0 0 0 40px rgba(37, 211, 102, 0.3),
      0 0 0 20px rgba(37, 211, 102, 0.6);
  }

  100% {
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      0 0 0 100px rgba(37, 211, 102, 0),
      0 0 0 80px rgba(37, 211, 102, 0),
      0 0 0 60px rgba(37, 211, 102, 0),
      0 0 0 40px rgba(37, 211, 102, 0);
  }
}

/* ======= Estilos específicos para logos de clientes ======= */
.clients {
  overflow: visible !important;
  height: auto !important;
  min-height: auto !important;
}

.clients-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  overflow-x: auto !important;
}

.clients-row .col-lg-1 {
  flex: 0 0 auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 120px !important;
  text-align: center !important;
}

.clients img {
  max-height: 60px !important;
  max-width: 100px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  transition: all 0.4s ease-in-out !important;
  filter: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 auto !important;
}

.clients img:hover {
  transform: scale(1.1) !important;
}

/* Asegurar que los logos SVG se vean correctamente */
.clients svg {
  max-height: 80px !important;
  max-width: 100% !important;
  background: transparent !important;
}

/* Responsive para logos de clientes */
@media (max-width: 768px) {
  .clients-row {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow-x: visible !important;
  }

  .clients-row .col-lg-1 {
    min-width: 100px !important;
    margin: 5px !important;
    flex: 0 0 calc(50% - 10px) !important;
  }

  .clients img {
    max-height: 50px !important;
    max-width: 80px !important;
  }

  .clients-slider {
    padding: 15px 0 !important;
  }

  .clients-slider .swiper-slide {
    height: 120px !important;
    min-height: 120px !important;
    padding: 5px !important;
  }

  .clients-slider .swiper-slide img {
    max-height: 80px !important;
    max-width: 120px !important;
  }
}

@media (max-width: 576px) {
  .clients-row .col-lg-1 {
    min-width: 80px !important;
    flex: 0 0 calc(33.333% - 10px) !important;
  }

  .clients img {
    max-height: 40px !important;
    max-width: 60px !important;
  }

  .clients-slider .swiper-slide {
    height: 100px !important;
    min-height: 100px !important;
  }

  .clients-slider .swiper-slide img {
    max-height: 60px !important;
    max-width: 100px !important;
  }

  .clients-slider .swiper-pagination {
    margin-top: 20px !important;
  }
}

/*--------------------------------------------------------------
# Download Section
--------------------------------------------------------------*/
.download {
  padding: 80px 0;
  background: var(--bg-light);
}

.download .section-title h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.download .section-title p {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 50px;
}

.download-card {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
  border-color: var(--primary-color);
}

.download-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  transition: all 0.3s ease;
}

.download-card:hover .download-icon {
  transform: scale(1.1);
}

.download-icon i {
  font-size: 36px;
  color: white;
}

.download-card h3 {
  color: var(--text-dark);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.download-card p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.download-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.download-features li {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.download-features li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 16px;
}

.download-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px 20px;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.file-size,
.version {
  font-size: 14px;
  font-weight: 500;
}

.file-size {
  color: var(--text-light);
}

.version {
  color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.btn-download {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.btn-download:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 156, 234, 0.3);
}

.btn-download:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-download i {
  font-size: 18px;
}

.btn-web {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.btn-web:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.download-requirements {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow-light);
  margin-top: 30px;
}

.download-requirements h4 {
  color: var(--text-dark);
  margin-bottom: 30px;
  font-size: 22px;
}

.download-requirements h5 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 18px;
}

.download-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-requirements ul li {
  padding: 8px 0;
  color: var(--text-dark);
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.download-requirements ul li:last-child {
  border-bottom: none;
}

/* Responsive para la sección de descarga */
@media (max-width: 768px) {
  .download {
    padding: 60px 0;
  }

  .download-card {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .download-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .download-icon i {
    font-size: 28px;
  }

  .download-card h3 {
    font-size: 20px;
  }

  .download-card p {
    font-size: 14px;
  }

  .download-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .download-requirements {
    padding: 30px 20px;
  }

  .download-requirements h4 {
    font-size: 20px;
  }

  .download-requirements h5 {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .download-card {
    padding: 25px 15px;
  }

  .btn-download {
    padding: 12px 25px;
    font-size: 14px;
  }

  .download-requirements {
    padding: 25px 15px;
  }
}

/*--------------------------------------------------------------
# Robot WhatsApp Proactivo
--------------------------------------------------------------*/
#robot-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100px;
  height: 100px;
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#robot-bubble {
  position: absolute;
  bottom: 40px;
  right: 120px;
  width: 300px;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 10001 !important;
  border-left: 6px solid #25d366;
  pointer-events: auto;
}

#robot-bubble.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) scale(1) !important;
}

#robot-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -12px;
  border-width: 12px 0 12px 12px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

.robot-message {
  display: none !important;
  /* Eliminamos el mensaje viejo para evitar el problema del 'verde' */
}

/* Botón Demo 4.0 - Neon Cyber Glow */
.navbar a.btn-demo-animate {
  background: transparent !important;
  color: #00f3ff !important;
  padding: 10px 20px !important;
  margin-left: 15px !important;
  border-radius: 4px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  font-size: 13.5px !important;
  letter-spacing: 1px;
  border: 2px solid #00f3ff !important;
  box-shadow:
    0 0 5px #00f3ff,
    inset 0 0 5px #00f3ff !important;
  text-shadow: 0 0 10px #00f3ff !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  animation: cyber-pulse 2s infinite !important;
}

@keyframes cyber-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px #00f3ff, inset 0 0 5px #00f3ff;
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00f3ff, inset 0 0 10px #00f3ff;
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 5px #00f3ff, inset 0 0 5px #00f3ff;
  }
}

.navbar a.btn-demo-animate:hover {
  background: #00f3ff !important;
  color: #000 !important;
  box-shadow: 0 0 40px #00f3ff !important;
  text-shadow: none !important;
}


/* Ajustes para móvil */
@media (max-width: 991px) {
  .navbar a.btn-demo-animate {
    margin: 15px auto !important;
    text-align: center !important;
    display: inline-block !important;
  }
}

/* =============================================================
   AJUSTES FINALES MENÚ MÓVIL V2.0 (MODAL FULLSCREEN)
   ============================================================= */
@media (max-width: 1200px) {
  .header-social-links {
    display: none !important;
  }

  #header {
    height: 75px !important;
    padding: 0 !important;
  }

  #header .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    justify-content: space-between !important;
  }

  #header .logo {
    margin-right: 0 !important;
    width: auto !important;
  }

  #header .logo-img {
    height: 42px !important;
  }

  #navbar {
    order: 2 !important;
  }

  .mobile-nav-toggle {
    display: block !important;
    color: #009cea !important;
    font-size: 32px !important;
    cursor: pointer !important;
    position: relative;
    z-index: 999999 !important;
  }
}

@media (max-width: 1200px) {
  #navbar.navbar ul {
    display: none !important;
  }

  #navbar.navbar-mobile {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    background: rgba(10, 15, 20, 0.98) !important;
    z-index: 999998 !important;
    backdrop-filter: blur(15px);
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #navbar.navbar-mobile ul {
    display: block !important;
    position: absolute !important;
    top: 80px !important;
    right: 20px !important;
    bottom: 20px !important;
    left: 20px !important;
    padding: 15px 0 !important;
    background-color: #ffffff !important;
    overflow-y: auto !important;
    transition: 0.3s;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
  }

  .navbar-mobile .mobile-nav-toggle {
    color: #fff !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
  }

  .navbar-mobile a {
    padding: 14px 25px !important;
    font-size: 16px !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600 !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active {
    color: #009cea !important;
    background: #f8f9fa;
  }

  .navbar-mobile .btn-demo-animate {
    background: #009cea !important;
    color: #ffffff !important;
    margin: 20px !important;
    border-radius: 50px !important;
    text-align: center;
    border: none !important;
    font-weight: 700 !important;
    display: flex !important;
  }
}