html {
	scroll-behavior: smooth;
}

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

body {
	background: #f2f2f2;
	font-family: 'Roboto', sans-serif;
  height: 100%;
}

a {
	text-decoration: none;
}

.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: calc(100vh - 80px); /* cambiar por 100vh si quiero que ocupe la totalidad de la pantalla */
	background-color:#ffffffce ;
	overflow: hidden;
}

.background-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.background-slider .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1) translateX(0);
  transition: opacity 2s ease-in-out, transform 10s ease-in-out;
  z-index: 0;
  opacity: 0;
}

.background-slider .bg.active {
  opacity: 0.6; /* o el valor que prefieras */
  transform: scale(1.1) translateX(-30px); /* zoom + desplazamiento */
}

.logo {
  position: relative;
  z-index: 1;
  max-width: 500px;
  height: auto;
}

.hero img {
  position: absolute;
  max-width: 100%;
  height: auto;
}

.hero .fondo {
  z-index: 0;
  opacity: 0.3; /* opcional: para que se vea como fondo */
}

.hero .logo {
  z-index: 1;
}

nav {
	background: #fff;
	height: 80px;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
	display: flex;
	position: sticky;
	top: 0;
	overflow: hidden;
	z-index: 9999; /* Aseguramos que quede por encima */
}

nav a {
	flex: 1;
	height: 100%;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #000;
	transition: .2s ease-in-out all;
	font-weight: 500;
}

.logo-menu {
	height: 50px;
	width: auto;
	object-fit: contain;
	margin-left: 20px;
	margin-right: 10px;
  transform: scale(4.0);
}

@media screen and (max-width: 768px) {
	.logo-menu {
		display: none;
	}
}

nav a:hover {
	background: #f0f0f0;
}

nav .indicador {
	width: 0px;
	height: 7px;
	background: #0c9041;
	position: absolute;
	bottom: 0;
	transition: .3s ease-out all;
	transform: translate(-500px); 
}

.seccion {
	min-height: 100vh;
	max-width: 800px;
	width: 90%;
	margin: auto;

	padding-top: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

}

.seccion .card {
	background: #fff;
	height: 90%;
	padding: 40px;
	border-radius: 5px;
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.seccion h1 {
	font-size: 48px;
	margin-bottom: 20px;
}

.seccion p {
	line-height: 38px;
	margin-bottom: 40px;
	color: #494949;
	font-size: 20px;
}

.seccion img {
	width: 100%;
	vertical-align: top;
	margin-bottom: 20px;
}

#maquinasEnStock h1 {
  color: black;
  text-decoration: none;
}

#maquinasEnStock a:hover h1 {
  color: #5e5a5a; /* o el color que prefieras para el hover */
}

#contacto h1 {
  color: black;
  text-decoration: none;
}

#contacto a:hover h1 {
  color: #5e5a5a; /* o el color que prefieras para el hover */
}

.carrousel {
  display: flex;
  scroll-behavior: smooth;
  gap: 0px;
  padding: 20px;
  background-color:#fff;
  scroll-snap-type: x mandatory;
  height: 400px; /* ajustá según el diseño que buscás */
  width: 100%;
  overflow: hidden;
  width: 100%;
  max-width: 800px; 
  margin: 0 auto;
}

.carrousel::-webkit-scrollbar {
  display: none;
}

.carrousel-contenedor {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.carrousel a {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  scroll-snap-align: start;
}

.carrousel img {
  height: 2000px;   /* cambiar esto para modificar el tamanio de los logos dentro del carrouselS */
  width: auto;      /* Mantiene proporción natural */
  max-width: 90%;
  object-fit: contain; /* mantiene la proporción sin recortar */
  display: block;
  border-radius: 6px;
  transition: transform 0.4s ease;
  margin-left: 30px; /* para mover la imagen a la derecha */
}

.carrousel-texto p {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/*texto en mobile*/
@media screen and (max-width: 768px) {
  #nosotros .card p {
    font-size: 16px;
    line-height: 28px;
  }

  #representaciones .carrousel-texto p {
    font-size: 15px;
    line-height: 26px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-150%); /*esto es para cambiar la posicion de las flechas sobre el eje y */
  background: #006400;
  color:#fff;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.arrow.left { 
 left: 1px; 
}

.arrow.right { 
 right: 1px;
}

.dots {
  text-align: center;
  margin-top: 15px;
}
.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}
.dots .active {
  background-color: #006400;
}

.site-footer {
  background-color: #444;
  color: #eee;
  padding: 20px 20px;
  font-family: 'Segoe UI', sans-serif;
  /*border-top: 2px solid #444; /*linea de separacion del footer, revisar si entra en la version final*/
}

.card-servicio {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.servicio-items {
	display: flex;
	justify-content: space-between;
  flex-wrap: wrap;
	gap: 30px;
}

.servicio-item {
	flex: 0 0 calc(33.333% - 20px); /* 3 por fila con espacio entre ellos */
	box-sizing: border-box;
	text-align: center;
}

.servicio-item i {
	font-size: 40px;
	color: #0c9041;
	margin-bottom: 10px;
}

.servicio-item h3 {
	margin-bottom: 10px;
	font-size: 20px;
}

.servicio-item p {
	font-size: 16px;
	color: #494949;
	line-height: 1.6;
}

#servicioAlCliente {
  padding-bottom: 80px;
}

@media screen and (max-width: 768px) {
	.servicio-items {
		flex-direction: column;
	}

	.servicio-item {
		flex: 1 1 100%;
	}
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 auto;
}

.footer-logo img {
  width: auto; 
  height: 100px; /* ajustá según lo que necesites */
  transform: scale(2.5); /*cambiar el tamanio sin alterar ningun elemento del footer*/
  object-fit: contain;
  margin-left: 60px; /*para mover a la derecha el logo*/
}

.footer-contact {
  color: #eee;
  font-size: 16px;
  line-height: 1.8;
  margin-left: 0px; /*para mover los numero de contacto a la izquierda */
}

/* Contacto */
.footer-contact p {
  margin: 4px 0; /* Reduce espacio vertical entre líneas */
}

.footer-contact i {
  color: #0c9041; /* verde para los íconos */
  margin-right: 8px;
}

.footer-contact p {
  margin: 5px 0;
}

.footer-social a {
  color: #0c9041; /* verde personalizado para iconos */
  margin: 0 10px;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #eee; /* Cambia según la red social */
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 1px;
  margin-top: 20px;
  margin-bottom: 1px; /*esto es para solucionar la franja blanca que aparce cuando modifico el tamanio del logo del footer*/
  font-size: 12px;
  color: #aaa;
}

/*carrousel en mobile */
@media screen and (max-width: 768px) {
  .arrow {
		top: 35%; /* antes estaba en 35%, ajustá según para la posicion de las flechas*/
	}

  .carrousel {
    height: 250px;
  }
}

/* PAGINA DE STOCK ////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////*/

.grilla-stock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); /* con esto altero el tamaño de cada elemento de la grilla*/
  column-gap: 10rem; /* distancia horizontal */
  row-gap: 5rem;     /* distancia vertical */
  padding: 3rem 7rem;
}

.item-stock {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.item-stock h3 {
  text-align: center;
}

.item-stock {
  text-align: left;
}


.item-stock:hover {
  transform: scale(1.02);
}

.item-stock img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.item-stock h3{
  margin-top: 10px;
}

.item-stock .descripcion::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #28a745;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}


.item-stock .descripcion {
  font-size: 0.9rem;
  color: #555;
  margin: 0.1rem 0 1rem;
  line-height: 1.4;
}

.item-stock .descripcion i {
  margin-right: 6px;
  color: #0c9041;
} 

.btn-contacto {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #0c9041;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 1rem auto 0 auto; /* top: 1rem, left/right: auto, bottom: 0 */
  align-self: center;
}

.btn-contacto:hover {
  background-color: #28a702;
}

@media (max-width: 768px) {
  
	.item-stock {
		width: 350px;       /* Ajustá según tu diseño */
		height: auto;
		font-size: 12px;   /* Si tiene texto */
		padding: 20px;      /* Opcional */
    margin: 10px auto;
    box-shadow: rgba(0,0,0,0.1) 0px 2px 6px;  
	}

  	.item-stock img {
		width: 100%;
		height: auto;
		object-fit: contain;
	}

  .grilla-stock {
    margin-top: 5px;
    column-gap: 10rem; /* distancia horizontal */
    row-gap: 5rem;     /* distancia vertical */
    padding: 3rem;
  }

}


/* PAGINA DE CONTACTO ////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////*/

.contacto {
  min-height: calc(100vh - 80px - 100px); /* resta el alto del menú y el footer */
  padding-top: 1rem;
  padding-bottom: 4rem;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

.contacto h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

.card-contacto {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 2rem;
  position: relative;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 900px; 
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.logo-contacto {
  text-align: left;
  margin-bottom: 1rem;
}

.logo-contacto img {
  max-width: 30px;
  transform: scale(8.0);
  margin-left: 100px; /*para mover el logo hacia la izquierda*/
  height: auto;
  object-fit: contain;
}

.info-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px;
  max-width: 400px;
}

.datos-contacto {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.mapa {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  height: 250px;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.formulario-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
}

.formulario-contacto textarea {
  height: 200px;
}

.btn-enviar {
  background-color: #0c9041;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-enviar:hover {
  background-color: #28a702;
}

@media screen and (max-width: 768px) {
	.card-contacto {
		display: flex;
		flex-direction: column;
		gap: 30px;
		padding: 20px;
	}

	.card-contacto .info-contacto {
		order: 1;
	}

	.card-contacto .mapa {
		order: 2;
		height: 250px; /* ajustá según lo que se vea cómodo */
	}

	.card-contacto .formulario-contacto {
		order: 3;
	}

	.card-contacto .formulario-contacto input,
	.card-contacto .formulario-contacto textarea {
		font-size: 16px;
		padding: 10px;
		width: 100%;
		box-sizing: border-box;
	}

	.card-contacto .formulario-contacto label {
		font-size: 14px;
		margin-bottom: 5px;
		display: block;
	}

	.card-contacto .btn-enviar {
		margin-top: 10px;
		padding: 10px 20px;
		font-size: 16px;
		background-color: #0c9041;
		color: white;
		border: none;
		border-radius: 4px;
		cursor: pointer;
	}
}



/*//////////////////////////////////////////////////////////////////
///////////////// ===== MENÚ RESPONSIVE ===== /////////////////////
/////////////////////////////////////////////////////////////////*/

/* ===== FRANJA SUPERIOR MOBILE ===== */
.barra-mobile {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100000; /* mayor que el menú */
	background-color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 16px;
	box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
	height: 80px; /* altura fija para evitar que se achique */
}

.hamburguesa {
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #0c9041;
}

.logo-mini {
	width: 60px;
	height: auto;
	object-fit: contain;
	transform: scale(2.7);
	margin-right: 40px;
}

/* ===== MENÚ LATERAL MOBILE ===== */
#menu-mobile {
	position: fixed;
	top: 80px; /* debajo de la barra */
	left: 0;
	width: 50vw; /* mitad izquierda */
	height: calc(100vh - 80px); /* resto de la pantalla */
	background-color: #fff;
	z-index: 99999;
	flex-direction: column;
	overflow-y: auto;
	padding-top: 20px;
	box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
  visibility: hidden;
	opacity: 0;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#menu-mobile.active {
	visibility: visible;
	opacity: 1;
	transform: translateX(0);
	display: flex;
}

#menu-mobile a {
	padding: 1rem;
	border-bottom: 1px solid #eee;
	text-align: center;
	color: #0c9041;
}

/* Ocultar menú desktop en mobile */
@media screen and (max-width: 768px) {
	#menu {
		display: none;
	}

  	.footer-content {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

  .footer-contact{
    margin-left: 10px;
  }

	.footer-logo img {
    height: 50px;
		transform: scale(6.0);
    margin-left: 120px;
    margin-bottom: 20px;
	}

	.footer-social {
		justify-content: flex-start;
    margin-top: 25px;
	}



}

/* ocultar menu mobile */
@media screen and (min-width: 769px) {
	#menu-mobile,
	#menu-mobile.active,
	.barra-mobile {
		display: none !important;
	}
}

/*///////// Animacion para scroll reveal ///////////////////*/
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}



