/* -------------------------
   GLOBAL STYLES
-------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* -------------------------
   NAVBAR
-------------------------- */
header {
  background-color: #222;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 20px 0 1px;
  height: 70px;
}

.Logo img {
  max-height: 140px;
  width: auto;
  display: flex;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: #2ca44f;
  transform: scale(1.05);
}

nav a.active {
  color: #2ca44f;
}

/* -------------------------
   HERO SECTION
-------------------------- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 290px 50px;
  position: relative;
  overflow: hidden;
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 40px;
  color: #176d2d;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 24px;
  color: #333;
}

.hero-image {
  position: absolute;
  top: -100px;    
  right: -330px;
  width: 1000px;
  height: 1000px;
  background-color: #baf2c8;
  border-radius: 50%;
  z-index: 0; 
}

.hero-image img {
  position: relative;
  z-index: 1; 
  width: 850px;
  right: 100px;
  top: 15px;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  filter: drop-shadow(20px 25px 35px rgba(0, 0, 0, 0.4));
}

.hero-image img:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* -------------------------
   ABOUT SECTION
-------------------------- */
.about {
  position: relative;
  background: #212121;
  color: #d2f5dc;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden; 
}

.about::before {
  content: "";
  position: absolute;
  top: 87%;             
  left: -300px;         
  width: 700px;         
  height: 700px;        
  background-color: #a7f5c8; 
  border-radius: 50%;  
  transform: translateY(-50%);
  z-index: 0;           
}

.about h2 {
  font-size: 35px;
  color: #a7f5c8;
  margin-bottom: 20px;
  padding-left: 190px;
  position: relative; 
  z-index: 1;
}

.about p {
  font-size: 23px;
  max-width: 600px;
  color: #ffffff;
  padding-left: 200px;
  margin: 0 auto 10px auto;
  position: relative; 
  z-index: 1;
}

/* -------------------------
   CULTURE SECTION
-------------------------- */
.culture {
  padding: 100px 20px;
  text-align: center;
}

.culture h2 {
  font-size: 32px;
  margin-bottom: 35px;
  color: #176d2d;
}

.culture-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.culture-items div {
  background: #100f0f;
  padding: 25px 20px;
  border-radius: 14px;
  width: 250px;             
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
}

.culture-block {
  background: #100f0f;
  padding: 25px 20px;
  border-radius: 14px;
  width: 250px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* icono */
.culture-block .culture-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}


/* -------------------------
   SERVICES SECTION
-------------------------- */
.services {
  padding: 100px 100px;
  background-color: #212121;
  overflow: hidden;
  position: relative;
}

/* Círculo verde */
.services::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -250px;
  width: 650px;
  height: 650px;
  background-color: #a7f5c8;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

/* Título */
.services h2 {
  font-size: 34px;
  margin-bottom: 50px;
  color: #a7f5c8;
  position: relative;
  z-index: 1;
  right: 200px;
  text-align: center;
}

/* Contenedor de tarjetas */
.service-items {
  display: flex;
  flex-direction: row;  /* ← AHORA ESTÁN EN FILA */
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Cada tarjeta */
.service-items div {
  background: #484848;
  color: white;
  width: 260px;     /* tamaño uniforme */
  height: 150px;    /* tamaño uniforme */
  padding: 20px;
  border-radius: 12px;

  display: flex;          /* para centrar contenido */
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  box-shadow: 0px 2px 5px rgba(45, 45, 45, 0.2);
}

/* Iconos */
.culture-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* -------------------------
   TEAM SECTION 
-------------------------- */
.team {
  background: #ffffff;
  text-align: center;
  padding: 140px 20px;
  position: relative;
  overflow: hidden;
}

.team h2 {
  color: #176d2d;
  font-size: 38px;
  margin-bottom: 60px;
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
  width: 700px;
  height: 350px;
  margin: 0 auto;
  perspective: 1000px;
}

/* Slides */
.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 0;
  text-align: center;
}

.carousel-slide img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  
  object-position: 60% 50%;
  transition: all 0.5s ease;
}

.carousel-slide h3 {
  margin: 10px 0 5px;
  color: #176d2d;
}

.carousel-slide .role {
  font-weight: bold;
  color: #a7f5c8;
}

/* Active and side slides */
.carousel-slide.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 2;
}

.carousel-slide.prev {
  transform: translate(-150%, -50%) scale(0.85);
  opacity: 0.6;
  filter: brightness(0.6);
  z-index: 1;
}

.carousel-slide.next {
  transform: translate(50%, -50%) scale(0.85);
  opacity: 0.6;
  filter: brightness(0.6);
  z-index: 1;
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #176d2d;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn.prev { left: -25px; }
.carousel-btn.next { right: -25px; }

.carousel-btn:hover {
  background: #2ca44f;
  transform: translateY(-50%) scale(1.1);
}

/* Indicators */
.carousel-indicators {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #a7f5c8;
  opacity: 0.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator.active {
  background-color: #176d2d;
  opacity: 1;
}


/* -------------------------
   CUSTOMERS SECTION
-------------------------- */
.customers {
  padding: 60px 20px;
  background-color: #2c2b2b;
}

.customers-section-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  padding: 80px 0;
}

.customers-text {
  flex: 1;
  max-width: left;
}

.customers-text h2 {
  font-size: 36px;
  color: #a7f5c8;
  margin-bottom: 20px;
}

.customers-text p {
  font-size: 18px;
  color: #ffffff;
}

.customers-mockup {
  position: relative;
  width: 350px; 
}
.customers-mockup img {
  width: 110%;
  display: block;
}

.customers-mockup .customers-logos {
  position: absolute;
  top: 11%;   
  left: 17%;
  width: 74%;
  height: 78%;
  overflow: hidden;
}

.customers-logos { 
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, 1fr);
  column-gap: 25px;
  row-gap: 10px;
  justify-content: start;
}

.customers-logos img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

/* -------------------------
   CONTACT SECTION
-------------------------- */
.contact-top {
  background-color: #176d2d; 
  color: white;
  text-align: left;
  padding: 30px 50px;
  font-family: 'Arial', sans-serif; 
}

.contact-top h2 {
  font-size: 19px;
  margin-bottom: 5px;
  text-align: center;
}

.contact-top p {
  font-size: 23px;
  text-align: center;
}

/* Ayuda + formulario */
.contact-main {
  background-color: #baf2c8;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 140px;
  margin: 0 auto;
}

.help-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.help-text h3 {
  font-size: 50px;
  color: #176d2d; /* verde principal */
  line-height: 1.2;
  margin: 0;
  left: 40px;
}

/* Formulario */
.contact-main form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-main input,
.contact-main textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  width: 100%;
}

.contact-main button {
  padding: 12px;
  background-color: #000000;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-main button:hover {
  background-color: #2ca44f;
  transform: scale(1.05);
}


#backToTop {
  display: none; 
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: #060606; 
  color: white;
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
  background-color: #2ca44f; 
  transform: scale(1.1);
}

/* -------------------------
   FOOTER
-------------------------- */
footer {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center;
  background-color: #222;
  color: white;
  padding: 10px 20px;
  text-align: center;
}

footer img {
  width: 300px;   
  height: auto;
  margin-bottom: 1px; 
}

footer p {
  margin: 5px 0;
  padding-bottom: 50px;
}


.scroll-element {
  opacity: 0;
  transform: translateY(30px); /* empieza desplazado hacia abajo */
  transition: all 0.7s ease-out;
}

.scroll-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-element.flip {
  transform: rotateY(90deg) translateY(30px);
  opacity: 0;
  transition: all 0.7s ease-out;
}

.scroll-element.flip.visible {
  transform: rotateY(0deg) translateY(0);
  opacity: 1;
}

.scroll-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-element.visible {
  opacity: 1;
  transform: translateY(0); /* se mueve a su posición original */
}
.scroll-element.delay-1 { transition-delay: 0.1s; }
.scroll-element.delay-2 { transition-delay: 0.2s; }
.scroll-element.delay-3 { transition-delay: 0.3s; }
.scroll-element.delay-4 { transition-delay: 0.4s; }

/*Hamburger en telefono*/

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

/* Menú móvil oculto */
#nav-menu ul {
  transition: all .3s ease;
}

#nav-menu ul.show {
  display: flex !important;
}

/* --------------- Telefono ---------------- */
@media (max-width: 1266px) {

  /* Mostrar hamburguesa */
  .hamburger {
    display: flex;
  }

  /* NAV ocultar menú normal */
  nav ul {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: #111;
    padding: 20px 0;
    position: absolute;
    top: 80px;
    right: 10px;
    width: 230px;
    border-radius: 10px;
    text-align: center;
    z-index: 500;
  }

  /* NAV cuando está abierto */
  nav ul.show {
    display: flex;
  }

  /* NAV container */
  header {
    padding: 0 15px;
    justify-content: space-between;
  }

  /* HERO GENERAL */
  .hero {
    padding: 40px 20px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
  }

  /* HERO TEXT */
  .hero-text {
    max-width: 100% !important;
  }

  .hero-text h1 {
    font-size: 30px;
    margin-bottom: 8px !important;
    color: #176d2d !important;
  }

  .hero-text p {
    font-size: 17px !important;
    margin-bottom: 15px !important;
  }

  /* HERO IMAGE CONTAINER – RESETEADO */
  .hero-image {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 260px !important;
    height: 260px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
  }

  /* CÍRCULO */
  .hero-image::before {
    content: "" !important;
    position: absolute !important;
    width: 260px !important;
    height: 260px !important;
    background: #baf2c8 !important;
    border-radius: 50% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
  }

  /* IMAGEN DE LA LAPTOP — RESETEADA */
  .hero-image img {
    width: 300px !important;
    height: auto !important;
    position: relative !important;
    right: auto ;
    left: auto !important;
    top: auto !important;
    margin: 0 auto !important;
    transform: none !important;
    z-index: 2 !important;
    filter: none !important;
  }


  /* ABOUT */
  .about::before {
    left: -150px;
    top: 95%;
    width: 450px;
    height: 450px;
  }

  .about h2 {
    justify-content: center;
    right: 90px;
    top: -40px;
  }
  .about p {
    background: rgba(0, 0, 0, 0.7);
    padding-left: 0 !important;
    text-align: center;
    border-radius: 10px;
  }

  /* CULTURE */

  .culture-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .culture-items div {
    width: 100% !important;     /* antes era 250px -> rompe */
    max-width: 170px;           /* tamaño ideal para teléfono */
    margin: 0 auto;             /* centra cada tarjeta */
  }

  /* SERVICES */
  .services {
    padding: 70px 20px;
  }

  .services h2 {
    right: 0;
  }

  .service-items {
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-items div {
    width: 90%;
    max-width: 280px;
  }

  .services::before {
    width: 500px;
    height: 500px;
    right: -200px;
  }

  /* TEAM */
  .team {
    overflow: visible !important;
  }

  .carousel-wrapper {
    width: 70%;
  }

  .carousel-slide img {
     width: 140px;
  }

  .carousel-btn {
     margin-top:60%;
  }

  .carousel-btn.prev {
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
  }

  .carousel-btn.next {
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%);
  }

  /* CUSTOMERS */
  .customers-section-wrapper p {
    margin-bottom: 30px;
    font-size: 20px;

  }
  .customers-section-wrapper {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .customers-phone {
    max-width: 140px; /* tamaño del teléfono en móvil */
    margin-top: 25px;
    position: relative;
  }

  .customers-mockup .customers-logos {
    position: absolute;
    top: 11%;   
    left: 16%;
    width: 74%;
    height: 78%;
    overflow: hidden;
  }

  .customers-logos img {
    width: 110px;
    height: auto;
  }
  
  /* CONTACT */ 
  .contact-main { 
    flex-direction: column; padding: 70px 30px; 
  }

  .help-text h3 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 10px;
  }
}

 /* FOOTER */ 
 .footer p {
padding: 30px;
 }

 @media (min-width: 768px) {
   
  .carousel-btn {
    margin-top:30%;
 }

  .customers-phone {
    max-width: 140px; /* tamaño del teléfono en móvil */
    margin-top: 25px;
    position: relative;
  }

  .customers-mockup .customers-logos {
    position: absolute;
    top: 11%;   
    left: 16%;
    width: 74%;
    height: 78%;
    overflow: hidden;
  }
}

