:root {
  --bg: #161a1d;
  --pill: #4c4a4f;
  --text: #e9e9e9;
  --muted: #bdbcc0;
  --accent: #49c34b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}

/* Barra de navegación */
.navbar {
  position: sticky;
  top: 0;
  z-index: 0;
  padding: 40px 60px;
  
}

.nav-pill {
 display: flex;
 justify-content: space-between;
 align-items: center;
 background-color: #2c2c2c42;
 padding: 8px 30px;
 border-radius: 30px;
 position: relative;
}


/* Logo */
.brand {
  display: flex;
  gap: 10px;
  height: 20px;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
}
.brand .logo {
  font-weight: 700;
   height: 19px;
  font-size: 14px;
  color: forestgreen; }
.brand .region {
  color: forestgreen; 
  font-weight: 600; 
  height: 19px;
  font-size: 14px; }

/* Cara + bandera */
.face-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  margin: 0 auto;
}
.face-wrapper img.bandera {
  position: absolute;
  width: 300px;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.face-link {
  top:60%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  z-index: 2;
}
.face-link img.cara {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform .3s ease, filter .3s ease;
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.35));
}
.face-link:hover img.cara {
  transform: translateY(-5px) rotate(-5deg) scale(1.05);
  filter: brightness(1.1);
}

/* Menú */
.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}
.menu li {
  border-left: 1.5px solid rgb(255, 255, 255);
  padding-left: 15px;
   
}
.menu a {
  color: #ffffff;
  text-decoration: none;
  text-align: center ;
  font-weight: 60;
  padding: 10px 0px;
  border-radius: 1px; 
}


/* Botón hamburguesa */
.hamburger { 
  display: none; }
.hamburger button {
  background: none;
  color: var(--text);
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

/* Panel móvil */
.mobile-panel {
  display: none;
  background: var(--pill);
  margin-top: 10px;
  border-radius: 16px;
}
.mobile-panel.open { display: block; }
.mobile-menu {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 12px;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;

}

/* --- Sección Soluciones --- */
.soluciones {
  padding: 40px 20px;
}
.soluciones h2 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 30px;
}
.soluciones-content {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.categoria, .descripcion {
  flex: 1 1 300px;
}
h3 {
  border-bottom: 1px solid #555;
  margin-bottom: 10px;
  padding-bottom: 5px;
}
ul { list-style: none; padding: 0; }
li { margin-bottom: 8px; }

/* Footer */
footer {
  text-align: center;
  padding: 12px;
  background: #2c2c2c;
  color: #fff;
  margin-top: 40px;
}

/* --- Responsive menu--- */
@media (max-width: 786px) {
  .nav-pill { grid-template-columns: auto auto 40px; }
  .brand .pipe, .brand .region { display: none; }
}
@media (max-width: 1300px) {
  .menu { 
    display: none;
   }
  .navbar {
  padding: 30px 20px;
  }
  .nav-pill {
 padding:0px 0px;
}
  .hamburger { 
    display: block; 
  }
  .face-wrapper img.bandera {
     width: 60px; 
     height: 60px;
      top: 60%;
     }
     .face-link {
  top:10%;}
  .face-link img.cara { 
    width: 60px; 
    height: 60px; 
  }
}



  /* Slider */
.slider {
  position: relative;
  width: 90%;
  max-width: 1100px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px auto 40px;   /*se mueve de arriba para abajo */
  z-index: -1;
}

.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 50px;
  padding: 20xp 60px;
  transition: all 1s ease-in-out;
}

.content.left {
      flex-direction: row;
      text-align: right;
    }
.content.right {
      flex-direction: row-reverse ;
      text-align: left;
    }
.image-box {
  width: 550px;
  height: 550px;
  border-radius: 20px;
  background: url("../img/sli/ima-1.jpg") center/cover no-repeat;
  margin: 50px;

}

.text-box {
  display: flex;
  flex-direction: column;   
  justify-content: flex-start;
  max-width: 500px;
  font-weight: bold;
  line-height: 1.2;
  text-align: justify;
  animation: fadeInUp 1.2s ease;
  position: relative;
}
    
 /*alineacion del texto cuando cambia de posision*/
.content.left .text-box {
  text-align: left;
}

/* Títulos y subtítulos */
.content.right .text-box {
  text-align: right;
}

/*texto small*/
.content.left .text-box small {
  text-align: right;
  margin-left: auto;  /* empuja el texto al lado contrario */
  margin-right: 0;
}

/* small dentro de content.right (el resto del texto va a la derecha, este a la izquierda) */
.content.right .text-box small {
  text-align: left;
  margin-right: auto;
  margin-left: 0;
}
.text-box h2 {
  font-size: 1.5rem;
  animation: fadeInUp 1.2s ease;
}

.text-box .highlight {
  font-size: 2.5rem;
  font-weight: 900;
  animation: fadeInUp 1.2s ease;
}

.text-box .parra {
  animation: fadeInUp 1.2s ease;
}

    /* Títulos y subtítulos */
.text-box h2,
.text-box .highlight,
.text-box p {margin: 0 0 5px 0;
}

.text-box small {
  position: relative;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: inherit;
  animation: fadeInUp 1.2s ease; 
  margin-top: 100px;
}

/*Cabeza*/
.head {
  position: absolute;
  bottom: -100px;
  width: 300px;
  transition: transform 1s ease; 
}
/*rotacuion*/
.content.left ~ .head {
  transform: scaleX(1);
}
.content.right ~ .head {
  transform: scalex(-1);
}

/*animacion*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px){
 .slider {
    flex-direction: column;
    gap: 25px;
    width: 95%;
    margin: 30px auto 30px;
    margin-top: 1px;
  }
  .image-box {
    width: 90%;
    height: 240px;
  }
  .text-box {
    max-width: 90%;
  }
  .text-box h2 {
    font-size: 1.2rem;
  }
 .text-box .highlight {
    font-size: 1.6rem;
  }

  .head {
    position: absolute;
    top:300px;    
    width: 220px;
    margin: 0 auto;
  }
}
/*organismos*/
 .contenido {
  position: relative;
  width: 100%;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5);
}

/* Slider de logos */
.slider2 {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  margin: 0 auto;
  z-index: -1;
}

.slide2-track2 {
  display: flex;
  width: (250px * 22);
  animation: scroll 40s linear infinite;
  margin-top: 20px;
 
}

.logo {
 
  margin: 0 30px;
  border-radius: 50%;
  width: 80px;
  height: 90px;
}

/* Animación del slider */
@keyframes scroll {
  0% { transform: translateX(0); }
  100%{transform: translateX(calc(-50px * 14));}
}

@media (max-width: 1000px) {
  .logo {
    height: 60px;
    margin: 0 15px;
  }
}
