:root {
  --primary: #006B43;
  --dark: #0a0a0a;
  --light: #f4f4f4;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
  color: var(--dark);
  background-color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff00;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: top 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

#navbar.scrolled {
  background-color: #006B43;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#navbar.hide {
  top: -100px;
}

.logo {
  width: 100px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--primary);
}

.nav-links.show {
  background-color: #006b4400;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
  text-align: center;
}

.carousel-container1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow:hidden;
  z-index: 0;
}

.carousel-track1 {
  display: flex;
  width: calc 100%; 
  animation: scrollCarousel 30s linear infinite;
}

.carousel-track1 img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.filtro {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color:#06271ac3;
  z-index: 1;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-200%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0); /* fondo opcional para contraste */
  padding: 2rem;
  border-radius: 1rem;
  text-shadow: 0 0 10px black;
}


.hero h1 {
  font-size: 5rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* From Uiverse.io by SelfMadeSystem */ 
.button {
  position: relative;
  width: 10rem;
  height: 3rem;
  cursor: pointer;
  border: none;
  background: none;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.button svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.border {
  width: 100%;
  height: 100%;
  stroke: rgb(255, 255, 255);
  stroke-width: 2px;
  fill: #ffffff00;
  rx: 1em;
  ry: 1em;
  stroke-dasharray: 25;
  transition: fill 0.25s;
  animation: 4s linear infinite stroke-animation;
}

.button:hover .border {
  fill: #0001;
}

.button:focus .border {
  transition: fill 0.25s 7.75s;
  fill: #0000;
}

@keyframes stroke-animation {
  0% {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.txt-upload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
   text-shadow: 0 0 10px black;
}

.txt-upload::after {
  content: "";
}

.button:focus .rect {
  stroke-dasharray: 50;
}
.button:focus .border {
  stroke: #ffffff00;
}

.button:focus .txt-upload {
  opacity: 0;
  transition: opacity 0.25s 8s;
}

.button:focus .txt-upload::after {
  animation: 0.66666s anim step-end forwards,
    1.33333s 0.6666s anim2 linear infinite alternate;
}

@keyframes anim {
  0% {
    content: "i";
  }
  50% {
    content: "in";
  }
  to {
    content: "ing";
  }
}

@keyframes anim2 {
  0% {
    content: "ing";
  }
  33% {
    content: "ing.";
  }
  66% {
    content: "ing..";
  }
  to {
    content: "ing...";
  }
}

.loading {
  width: 100%;
  height: 100%;
  stroke: #0055d4;
  stroke-width: 2px;
  fill: none;
  rx: 1em;
  ry: 1em;
  stroke-dasharray: 0 100;
}

.button:focus .loading {
  transition: stroke 0.5s 7.5s, stroke-dasharray 8s 0.5s ease-out;
  stroke: #08ca08;
  stroke-dasharray: 100 0;
}

.done {
  fill: none;
  stroke: #000;
  stroke-dasharray: 0 100;
}

.button:focus .done-cloud {
  transition: stroke-dasharray 0.75s 8.5s ease-out;
  stroke-dasharray: 100 0;
}

.button:focus .done-check {
  transition: stroke-dasharray 0.5s 9.2s ease-out;
  stroke: #08ca08;
  stroke-dasharray: 100 0;
}


.section {
  padding: 2rem 2rem;
  text-align: center;
  background-color: #e1e1e1;
  
}

#mg{
  margin-bottom: 30px;
}

.und {
  text-align: center;
  margin-bottom: 40px;
}

.bg-light {
  background-color: #a1a0a0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: white;
  border: 1px solid #eee;
  padding: 2rem;
  width: 300px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}


h3 {
  margin-bottom: 20px;
}

footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 15px;
}

.contact-item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
  gap: 10px;
  font-weight: bold;
}

.sp {
  text-align: left;
}

.sp1 {
  margin-bottom: 15px;
}

.sep {
  font-weight: 300;
  margin: 10px;
  text-align: left;
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  margin-left: auto;
}
.seccion-galeria {
  background-color: #e1e1e1;
  padding: 2rem;
  text-align: center;
}

.titulo-galeria {
  margin-bottom: 1.5rem;
}

.galeria-externa {
  display: flex;
  flex-direction: column;
  align-items: left;
  width: 100%;
  overflow: hidden;
}

.galeria-listado {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.producto {
  background: #f1f1f100;
  border-radius: 10px;
  width: 320px;
  flex-shrink: 0;
  padding: 0.5rem;
}


.producto-descripcion {
  margin: 0.3rem 0 0;
}

.imagen-cuadrada {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e0e0e0;
  overflow: hidden;
  border-radius: 8px;
}

.imagen-cuadrada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagen-cuadrada:active {
  transform: scale(1.1);
  z-index: 2;
}

.galeria-controles {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.flecha {
  font-size: 1.8rem;
  border: none;
  background: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
  }

  #nav-menu {
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    margin-top: 1rem;
    padding: 1rem;
    border-top: none;
    animation: fadeIn 0.3s ease-in-out;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }
}

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

#clientes-carousel {
  padding: 20px 0;
  overflow: hidden;
  padding-bottom: 40px;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.cliente {
  display: inline-block;
  width: 180px;
  text-align: center;
  margin: 0 20px;
  margin-left: 75px;
  margin-right: 75px;
}

.cliente img {
  width: 200px;
  height: auto;

  transition: filter 0.3s ease;
}

.cliente:hover img {
  filter: blur(100%)
}

.cliente p {
  font-size: 14px;
  margin-top: 8px;
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  width: 100%;
}

.contact-item img {
  width: 32px;
  height: 32px;
}

.contact-item p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.modal-imagen {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-imagen.abierto {
  display: flex;
}

.imagen-ampliada {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.cerrar-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffffff88;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  z-index: 3;
  cursor: pointer;
  color: black;
}

.modal-fondo {
  position: absolute;
  inset: 0;
  z-index: 1;
}


footer {
  background-color: #061C14;
  color: white;
  padding: 2rem;
}

.ftund {
  font-weight: 600;
  text-decoration: underline;
}

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

.footer-left, .footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-right p {
  margin-bottom: 0.5rem;
}

.footer-right a {
  display: block;
  color: #006B43;
  text-decoration: none;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.footer-right a:hover {
  color: rgb(62, 62, 62);
}

.galeria-listado {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.galeria-listado::-webkit-scrollbar {
  display: none; /* Chrome, Safari y Opera */
}

.imglogo {
  width: 375px;
  margin-bottom: 10px;
}
