/* General */
body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #000000;
  scroll-behavior: smooth;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.logo {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 30px;
  background-color: #4dbc39;
  transition: background-color 0.3s, transform 0.3s;
}

nav a:hover {
  background-color: #e5e5e5;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.contacto-hover {
  background-color: #4dbc39;
}

.contacto {
  margin-right: 50px;
}

.hero {
  height: 100vh;
  background-image: url(imagenes/herofondo.jpg);
  background-size: contain;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 8rem;
  color: #000000;
}

.hero-content p {
  color: #000000;
  font-size: 7rem;
}

.verde {
  color: #4dbc39;
}

.gris {
  color: #717171;
}

.glass-text {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: solid 2px #71717110;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}

.section {
  /* padding-top: 120px !important; */
  padding-bottom: 120px !important;
  background-color: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  margin: 60px auto !important;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  justify-content: center;
  align-items: center;
  backdrop-filter: none;
}

#nosotros {
  height: 100dvh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

#nosotros h2 {
  color: #4dbc39;
  margin-top: 30px;
}

#nosotros p {

  text-align: center;
  padding: 30px;
  font-size: 1.2rem;
}


.section.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

#porque {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  margin: 60px auto !important;
  max-width: 1200px;
  text-align: left;
  overflow: hidden;
  height: 650px;
}

#porque.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#porque.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.diagonal-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  width: 127%;
  height: 100%;
  background: linear-gradient(225deg, transparent 70%, #ffffff 50%);
  z-index: 2;
}

.gray-triangle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 90%;
  background-color: #717171;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  z-index: 1;
}

.content {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50px;
  left: 50px;
  z-index: 2;
  color: #000;
}

.content h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #4dbc39;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  max-width: 600px;
}

.reason {
  display: flex;
  justify-content: space-around;
  margin-bottom: 70px;
  height: 20%;
}


.reason:nth-child(2) {
  margin-left: -20px;
}

.reason:nth-child(3) {
  margin-left: 70px;
}

.reason:nth-child(4) {
  margin-left: 165px;
}

.reason:nth-child(5) {
  margin-left: 250px;
}

.number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  background-color: #4dbc39;
  color: #fff;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  padding: 2px;
  overflow: hidden;
}

.icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: #4dbc39;
  font-size: 1.5em;
}

.icon img {
  width: 40px;
  height: 100%;
}

.text-reason {
  flex: 1;
  min-width: 0;
}

.text-reason h3 {
  font-size: 1.1em;
  margin: 0 0 5px 0;
  line-height: 1.3;
  white-space: normal;
}

.text-reason p {
  font-size: 1rem;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #000;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.image-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;

}

.image-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
}

#servicios h2 {
  color: #4dbc39;
  text-align: center;
}

.service-parrafo {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  color: #000000;
  box-sizing: border-box;
  transform: translateX(-20px);
}

.service-parrafo h3 {
  text-align: center;
  justify-content: center;
  max-width: 600px;
  margin: 30px;
  padding: 20px;
  color: #4dbc39;
}

.service-parrafo p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.services-cont {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0;
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  background-color: #fff;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(100% 100%));
  gap: 10px;
  margin-top: 100px;
  width: 100%;
  overflow-x: auto;
}

.service-card {
  margin-left: 60px;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #ddd;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
  width: 80%;
  height: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#service-texto {
  text-align: center;
  margin-right: 30px;
}

#service-list {
  text-align: justify;
  margin-right: 30px;
}

.service-card:hover:not(.active) {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-card.active {
  background-color: #4dbc39;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-card.active h3 {
  color: white;
}

.service-card h3 {
  margin: 0;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#como-trabajamos h1 {
  color: #4dbc39;
}

#como-trabajamos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100dvh;
}

#como-trabajamos img {
  max-width: 80%; /* Nunca excede el ancho del contenedor */
  height: auto;    /* Mantiene proporción */
  margin-top: 40px;
  display: block;  /* Elimina espacio extra */
}

#empresas h2 {
  color: #4dbc39;
}

.slider {
  width: 95%;
  height: auto;
  margin: auto;
  overflow: hidden;
}

.slider .slide-track {
  margin-top: 50px;
  display: flex;
  animation: scroll 40s linear infinite;
  -webkit-animation: scroll 40s linear infinite;
  width: calc(200px * 14);
}

.slider .slide {
  width: 200px;
}

.slider .slide img {
  width: 100%;
}

@keyframes scroll {
  0% {
    webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    webkit-transform: translateX(calc(-200px * 7));
    transform: translateX(calc(-200px * 7));
  }
}

#contacto-cont h2 {
  color: #4dbc39;
}

#contacto-cont p {
  font-size: 1.2rem;
}


.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px;
  padding: 15px 30px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;

}

.iconos-contacto a img {
  height: 25px;
  width: 25px;
}

.iconos-contacto {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  background-attachment: fixed;
  background-size: cover;
}

.anim-card {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.1s ease-out, transform 0.4s ease-out;
}

.anim-card.visible {
  opacity: 1;
  transform: scale(1);
}


.service-mobile-text {
  display: none;
  padding: 10px;
  font-size: 0.95rem;
  color: #333;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #717171;
  color: #ffffff;
  text-align: center;
  padding: 30px;
}

.footer-title {
  display: flex;
}

.footer-text {
  font-size: 1.5rem;
}

.footer-links li a {
  color: #4dbc39;
  text-decoration: none;
  font-size: 1.5rem;
}

.footer-links li a:hover {
  color: #ddd;
}

.footer-links ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0;
}

.footer-list {
  width: 400px;
}

.footer-content p {
  margin: 0;
}

@media (max-width: 1190px) {
  .reason {
    max-width: 650px;
  }

  .reason p {
    font-size: 13px;
  }

  .diagonal-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 105%;
    height: 100%;
    background: linear-gradient(240deg, transparent 70%, #ffffff 50%);
    z-index: 2;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    width: 100%;
    text-align: center;
  }
}

/* Responsive para tablets: reemplazo visual de la sección #porque */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 5rem;
  }

  #nosotros p {
    margin-right: 100px;
  }

  #porque {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin: 60px auto !important;
    max-width: 1200px;
    text-align: left;
    overflow: hidden;
    height: 650px;
  }

  #porque.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  #porque.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .diagonal-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 127%;
    height: 100%;
    background: linear-gradient(240deg, transparent 70%, #ffffff 50%);
    z-index: 2;
  }

  .gray-triangle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 90%;
    background-color: #717171;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
    z-index: 1;
  }

  .content {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 50px;
    left: 50px;
    z-index: 2;
    color: #000;
  }

  .content h2 {
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: #4dbc39;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    max-width: 600px;
  }

  .reason {
    display: flex;
    justify-content: space-around;
    margin-bottom: 70px;
    height: 20%;
  }

  .reason:nth-child(2) {
    margin-left: -45px;
  }

  .reason:nth-child(3) {
    margin-left: 8px;
  }

  .reason:nth-child(4) {
    margin-left: 58px;
  }

  .reason:nth-child(5) {
    margin-left: 105px;
  }

  .number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-color: #4dbc39;
    color: #fff;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    padding: 2px;
    overflow: hidden;
  }

  .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #4dbc39;
    font-size: 1.5em;
  }

  .icon img {
    width: 40px;
    height: 100%;
  }

  .text-reason {
    flex: 1;
    min-width: 0;
  }

  .text-reason h3 {
    font-size: 0.9em;
    margin: 0 0 5px 0;
    line-height: 1.3;
    white-space: normal;
  }

  .text-reason p {
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #000;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    max-width: 380px
  }

  .image-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;

  }

  .image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
  }

}

/* Solo mostrar imagen mobile en celulares, ocultar desktop y tablet */
@media (max-width: 767px) {

  .hero {
    background-image: url(imagenes/herofondo.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: scroll;
    height: auto;
    min-height: 60vh;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  #nosotros p {
    text-align: center;
    margin: 40px auto 0 auto;
    /* Centrado automático */
    max-width: 800px;
    /* Ajustá según tu gusto */
    font-size: 1.2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 60px 15px !important;
    margin: 30px auto !important;
  }

  #porque {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin: 60px auto !important;
    max-width: 1200px;
    text-align: left;
    overflow: hidden;
    height: 650px;
  }

  #porque.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  #porque.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .diagonal-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 127%;
    height: 100%;
    background: linear-gradient(250deg, transparent 70%, #ffffff 50%);
    z-index: 2;
  }

  .gray-triangle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 90%;
    background-color: #717171;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
    z-index: 1;
  }

  .content {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 50px;
    left: 50px;
    z-index: 2;
    color: #000;
  }

  .content h2 {
    font-size: 0.8rem;
    margin-bottom: 30px;
    color: #4dbc39;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    max-width: 200px;
  }

  .reason {
    display: flex;
    justify-content: space-around;
    margin-bottom: 70px;
    height: 20%;
  }


  .reason:nth-child(2) {
    margin-left: -48px;
  }

  .reason:nth-child(3) {
    margin-left: -15px;
  }

  .reason:nth-child(4) {
    margin-left: 15px;
  }

  .reason:nth-child(5) {
    margin-left: 45px;
  }

  .number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-color: #4dbc39;
    color: #fff;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    padding: 2px;
    overflow: hidden;
  }

  .icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #4dbc39;
    font-size: 1.5em;
  }

  .icon img {
    width: 40px;
    height: 100%;
  }

  .text-reason {
    flex: 1;
    min-width: 0;
  }

  .text-reason h3 {
    font-size: 0.8em;
    margin: 0 0 5px 0;
    line-height: 1.3;
    white-space: normal;
  }

  .text-reason p {
    font-size: 0.6rem;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #000;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    max-width: 220px
  }

  .image-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;

  }

  .image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
  }

  #service-texto {
    text-align: center;
    margin: 40px auto 0 auto;
    /* Centrado automático */
    margin-left: 20px;
    max-width: 800px;
    /* Ajustá según tu gusto */
    font-size: 1.2rem;
  }

  .service-card {
    margin: 10px auto;
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .services-cont {
    flex-direction: column;
    padding: 20px;
  }

  .service-parrafo h3,
  .service-parrafo p {
    font-size: 1.5rem;
    padding: 10px;
    margin-left: 70px;
  }

  .service-mobile-text h4 {
    color: #4dbc39;
  }

  .service-mobile-text {
    display: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    padding: 0 10px;
    font-size: 0.95rem;
    color: #333;
  }

  .service-mobile-text.open {
    max-height: 1000px;
    /* suficientemente grande para el contenido */
    opacity: 1;
    padding: 10px;
  }

  #service-parrafo {
    display: none;
    /* ocultar panel derecho en celular */
  }

  .service-mobile-text {
    display: block;
  }

#como-trabajamos img {
  width: 100%;
  height: auto;
}

.iconos-contacto {
  flex-direction: row;
}

.hero {
  background-attachment: scroll;
  /* Para mejorar performance en móviles */
  background-size: cover;
}



.footer-text {
  font-size: 0.8rem;
  justify-content: center;
}

.footer-links li a {
  color: #4dbc39;
  text-decoration: none;
  font-size: 0.8rem;
  margin-right: 30px;
}

.footer {
    flex-direction: column; /* Apila secciones del footer */
    gap: 20px; /* Espacio entre bloques */
  }

  .footer-links ul {
    flex-direction: column; /* Lista vertical */
    align-items: center;
    gap: 10px;
  }

  .footer-list {
    width: auto; /* Evita forzar ancho y causar scroll */
  }

}


@media (max-width: 480px) {
  .diagonal-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    width: 125%;
    height: 100%;
    background: linear-gradient(255deg, transparent 70%, #ffffff 50%);
    z-index: 2;
  }

  .text-reason p {
    max-width: 180px;
  }
}