@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,600');
:root {
  --verde-aiconic: #22383D;   /* Verde Aiconic */
  --green-tech: #C4CF39;      /* Green Tech */
  --lavanda: #B8B0D5;         /* Lavanda */
  --menta: #87BDA7;           /* Menta */
  --baby-green: #D7E2B2;      /* Baby Green */
}

/* ==========================
   BASE
========================== */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #22383D; /* Verde Aiconic */
  overflow-x: hidden; /* evita scroll horizontal */
}

/* ==========================
   HEADER
========================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #22383D; /* Verde Aiconic */
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 15px 5%; /* porcentaje para evitar desbordes */
  z-index: 1000;
}

header .logo img {
  height: 60px;
}



header nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #C4CF39; /* Green Tech */
}



/* ==========================
   HERO SLIDER
========================== */
.fade-slider {
  margin-top: 80px; /* compensa header fijo */
  position: relative;
  width: 100%;
  height: 70vh; /* más compacto */
  max-height: 700px;
  overflow: hidden;
}

/* Slide contenedor */
.fade-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.fade-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

/* Imagen dentro del slide */
.fade-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

/* Caption */
.fade-slider .caption {  
  position: absolute;
  bottom: 5%;
  left: 10%;
  /*background: rgba(34, 56, 61, 0.6);*/
  padding: 6px 12px;
  border-radius: 8px;
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  max-width: 250px;        /* limita el ancho del recuadro */
  height: 60px;       /* altura fija del rectángulo */
  min-height: 40px;   /* altura mínima */
  max-height: 80px;   /* altura máxima */


}

.fade-slider .slide.active .caption {
  opacity: 1;
  transform: translateY(0);
}

.fade-slider .caption h2 {
  margin:50;
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 600;
  color: #B8B0D5; /* Lavanda */
}

/* Texto fijo del hero */
.hero-text {
  position: absolute;
  top:70%;
  left: 50%;
  transform: translate(-50%, -50%); /* lo centra exactamente */
  color: #C4CF39;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  z-index: 2;
}

.hero-text h1 {
  ffont-size: clamp(24px, 5vw, 60px);
  font-weight: bold;
  margin: 0;
}

.hero-text p {
  font-size: clamp(14px, 2.5vw, 22px);
  margin-top: 10px;
}

/* ==========================
   FLECHAS
========================== */
.fade-slider .prev,
.fade-slider .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  color: #fff;
  font-size: 32px; /* tamaño del ícono */
  transition: color 0.3s ease;
  user-select: none;
  z-index: 10; /* asegura que estén encima de la imagen */
}

.fade-slider .prev { left: 20px; }
.fade-slider .next { right: 100px; }

.fade-slider .prev:hover,
.fade-slider .next:hover {
  color: #C4CF39; /* Green Tech */
}

/* ==========================
   PUNTOS
========================== */
.fade-slider .dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.fade-slider .dots span {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.fade-slider .dots span.active {
  background-color: #22383D;
}

/* ==========================
   SECCIONES
========================== */
section {
  padding: 100px 40px;
  text-align: center;
}

section h2 {
  font-size: 20px;
  margin-bottom: 40px;
  color: #22383D;
}

/* Servicios */
#services {
  background: #D7E2B2; /* Baby Green */
}

.service-item {
  background: #ffffff;
  border-radius: 5px;
  padding: 30px;
  margin: 15px auto;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

.service-item:hover {
  background: #87BDA7; /* Menta */
  color: #ffffff;
  transform: translateY(-5px);
}

/* ==========================
   ACERCA DE NOSOTROS
========================== */
.about-section {
  background: #ffffff;
  padding: 100px 40px;
  text-align: center;
}

.about-section h2 {
  font-size: 35px;
  margin-bottom: 40px;
  color: #22383D;
}

.about-description {
  max-width: 800px;
  margin: 0 auto 60px auto;
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-items: center;
}

.team-member {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #C4CF39;
}

.team-member h3 {
  font-size: 20px;
  margin: 10px 0 5px;
  color: #22383D;
  font-weight: 600;
}

.team-member p {
  font-size: 15px;
  color: #777;
  margin: 0;
}


/* ==========================
   TRABAJOS
========================== */

.work-section {
  background: #b8b0d5;
  padding: 100px 40px;
  text-align: center;
  /*min-height: 100vh;        /* altura mínima: toda la ventana */
  /*display: flex;
  flex-direction: column;
  justify-content: center;  /* centra verticalmente */
}

.work-section h2 {
  font-size: 35px;
  margin-bottom: 60px;
  color: #22383D;
}

/* Grid flexible y responsivo */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Tarjeta de proyecto */
.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
}

.work-item::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* proporción 16:9 */
}

.work-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}

.work-item:hover img {
  transform: scale(1.06);
}

/* Panel informativo */
.work-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(34, 56, 61, 0.82);
  color: #fff;
  padding: 18px 16px;
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.work-item:hover .work-info {
  transform: translateY(0);
}

.work-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.work-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* Breakpoints */
@media (max-width: 992px) {
  .work-section { padding: 80px 30px; }
  .work-section h2 { font-size: 32px; margin-bottom: 40px; }
}

@media (max-width: 768px) {
  .work-section { padding: 60px 24px; }
  .work-grid { gap: 18px; }
  .work-info { padding: 16px 14px; }
  .work-info h3 { font-size: 17px; }
  .work-info p { font-size: 13px; }
}

@media (max-width: 480px) {
  .work-section { padding: 48px 18px; }
  .work-section h2 { font-size: 28px; }
  .work-grid { grid-template-columns: 1fr; }
}

/* ==========================
   CONTACTO
========================== */

#contact {
  background: #f9f9f9;
}

#contact p {
  font-size: 16px;
  color: #22383D;
  margin: 10px 0;
}

#contact a {
  color: #C4CF39;
  text-decoration: none;
}

#contact a:hover {
  color: #000000;
}

.contact-section {
  padding: 60px 20px;
  text-align: center;
  background: #f4f6f8;
}

.contact-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.contact-section p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}

.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #27ae60; /* Verde Aiconic */
  outline: none;
}

.btn-submit {
  background: var(--green-tech); /* Usa Verde Aiconic */
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: var(--lavanda); /* Cambia a Lavanda en hover */
}

/* ==========================
   FOOTER
========================== */
footer {
  background: #22383D;
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
}

footer p {
  margin-bottom: 20px;
}

.social-icon {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
}

.social-icon li a {
  background: #ffffff;
  border-radius: 100%;
  color: #22383D;
  font-size: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  transition: all 0.4s ease;
}

.social-icon li a:hover {
  background: #C4CF39;
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================
   SECCIONES
========================== */

/* Servicios estilo Kalay */
.services-section {
  background: #f9f9f9;
  padding: 100px 40px;
  text-align: center;
}

.services-section h2 {
  font-size: 35px;
  margin-bottom: 60px;
  color: #22383D;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.service-box {
  background: #ffffff;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-box .icon {
  font-size: 40px;
  color: #C4CF39; /* Green Tech */
  margin-bottom: 20px;
}

.service-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #22383D;
}

.service-box p {
  font-size: 15px;
  color: #555;
}


/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .fade-slider {
    height: 50vh;
    max-height: 400px;
  }
  .fade-slider .slide img {
    object-fit: contain;
  }
  .hero-text h1 {
    font-size: 30px;
  }
}

/* Botón hamburguesa oculto en escritorio */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #ffffff;
  cursor: pointer;
}

/* Responsive: en pantallas pequeñas */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  /* Ocultar menú por defecto */
  header nav {
    display: none;
    width: 100%;
    background: #22383D;
  }

  header nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  header nav ul li a {
    font-size: 18px;
  }

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* Cuando el menú está activo */
  header nav.active {
    display: flex;
    justify-content: center;
  }
}