:root {
  /* Colores principales */
  --color-fondo: #334b35;
  --color-acento: #f7c35f;
  --color-texto-claro: #fafafa;
  --color-texto-oscuro: #1c1c1c;
  --color-secundario: #1c1c1c32;
  --color-texto-secundario: #dcdcdc;
  --color-hover-dark: #1c1c1c;
  --color-hover-light: #fafafa;

  /* Tipografía */
  --fuente-principal: "Roboto", sans-serif;

  /* Sombra de texto */
  --sombra-texto: 1px 1px 4px rgba(0, 0, 0, 0.5);

  /* Bordes y radios */
  --radio-borde: 8px;
  --radio-pequeño: 5px;

  /* Espaciados */
  --espaciado-chico: 0.5rem;
  --espaciado-mediano: 1rem;
  --espaciado-grande: 2rem;

  /* Anchos */
  --ancho-maximo: 1500px;
  --ancho-contenido: 1200px;

  /* Transiciones */
  --transicion-rapida: 0.3s ease;
  --transicion-media: 0.4s ease;

  /* Weights */
  --gruesa: 400;
  --mediano: 300;
  --fina: 200;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--fuente-principal);
}
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #dcdcdc;
}
body {
  background-color: var(--color-fondo);
  overflow-x: hidden;
}

/* CSS para header */
header {
  background-color: var(--color-fondo);
  width: 100%;
}
.container {
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: clamp(100px, 15vw, 220px);
  height: auto;
}

.nav-list {
  display: flex;
  gap: clamp(var(--espaciado-mediano), 3vw, var(--espaciado-grande));
  padding-right: var(--espaciado-mediano);
}
.nav-list > li {
  list-style-type: none;
}
.nav-list > li > a {
  position: relative;
  color: var(--color-hover-light);
  text-decoration: none;
  font-weight: var(--mediano);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  transition: color var(--transicion-rapida);
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-texto-claro);
  transition: width var(--transicion-rapida);
}
.nav-list > li > a:hover::after {
  width: 100%;
}
.img-menu-burger,
.btn-cerrar {
  width: clamp(24px, 6vw, 40px);
  height: auto;
  display: none;
  cursor: pointer;
}

/* CSS PARA BODY */
/* CSS desktop para main */
main {
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* CSS desktop para hero */

.hero-container {
  background-image: url("./img/vineyard_1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  padding: clamp(0.1rem, 2vw, var(--espaciado-grande));
}
.hero-container {
  background-color: #1c1c1c;
}
.hero {
  height: 100%;
  color: var(--color-texto-claro);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  width: 100%;
  padding: clamp(0.5rem, 2vw, var(--espaciado-grande));
  border-radius: 5px;
}
.hero-titles {
  display: flex;
  flex-direction: column;
  line-height: 3rem;
  /* mask-image: linear-gradient(black 80%, transparent); */
  backdrop-filter: blur(1px);
}
.title-principal {
  font-size: clamp(2.5rem, 8vw, 7rem);
  /* color: #f7c35f; */
  color: #fafafa;
  letter-spacing: 0.25rem;
  cursor: default;
  /* backdrop-filter: blur(1.5px); */
  padding: 2rem;
}
.title-secondary {
  font-size: clamp(1.2rem, 4vw, var(--espaciado-grande));
  font-weight: var(--mediano);
  cursor: default;
}
.title-secondary-2 {
  font-size: clamp(0.8rem, 4vw, var(--espaciado-mediano));
  font-weight: var(--mediano);
  cursor: default;
}

.text-hero,
.mision-p {
  font-size: clamp(var(--espaciado-mediano), 2vw, 1.2rem);
  line-height: 1.6;
  font-weight: var(--mediano);
  max-width: 500px;
}
.hero-div-button {
  display: flex;
  justify-content: center;
  padding-top: clamp(0.5rem, 2vw, var(--espaciado-grande));
}
.btn-hero,
.btn-enviar {
  border: none;
  padding: clamp(0.5rem, 1vw, 0.8rem);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.btn-hero {
  background-color: var(--color-fondo);
  color: var(--color-texto-secundario);
}
.btn-enviar {
  background-color: var(--color-acento);
  color: var(--color-texto-oscuro);
}
.btn-enviar {
  width: 50%;
}

.btn-hero:hover {
  background-color: #52743b;
  color: var(--color-hover-dark);
}
.btn-enviar:hover {
  background-color: var(--color-texto-oscuro);
  color: var(--color-acento);
}
.btn-hero:active,
.btn-enviar:active {
  scale: 0.95;
}

.hero-titles h4,
.text-hero {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* CSS desktop para section mision */
.mision-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
}
.mision-img-container {
  width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--espaciado-grande);
}
.mision-primary-title {
  font-size: clamp(2rem, 2vw, 3rem);
  line-height: 1.6;
  font-weight: 500;
  max-width: 350px;
  color: #f7c35f;
}
.mision-secondary-title {
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 2px;
}
.mision-text {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: baseline;
  color: #fafafa;
  gap: 0.5rem;
}

.mision-list {
  list-style-type: none;
  line-height: 2;
}

/* CSS desktop section clientes */

.clientes-container {
  min-height: 100vh;
  color: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem;
  gap: 2rem;
}
.clientes-container-titles {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}
.clientes-secondary-title {
  font-weight: 200;
  letter-spacing: 2px;
}
.clientes-primary-title {
  font-weight: 800;
  font-size: 3rem;
  text-align: center;
}
.clientes-container-cliente {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  max-width: 1200px;
  padding-top: 5rem;
  gap: 2rem;
  align-items: stretch;
}
.info-cliente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  padding: 1rem;
  background-color: #1c1c1c32;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-cliente:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cliente-p {
  max-width: 500px;
  text-align: left;
  line-height: 1.5;
}
.datos-cliente {
  width: 100%;
  text-align: left;
}
.nombre-cliente {
  font-weight: 300;
  font-size: 1rem;
}
.empresa-cliente {
  color: #dcdcdc;
  font-size: 0.9rem;
  font-weight: 200;
}
.img-cliente {
  width: 150px;
  height: 150px;
  margin-top: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

/* CSS section contacto */

.container-contacto {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: #fafafa;
  background-color: #1c1c1c32;
  border-radius: 10px;
  padding: 8rem 5rem;
  gap: 3rem;
}

.container-text-contacto {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
}

.primary-title-contacto {
  font-size: 2rem;
}
.mini-title {
  text-transform: uppercase;
  color: #dcdcdc;
  font-weight: 300;
}
.logo-insta {
  cursor: pointer;
}

.container-numero > a {
  color: #fafafa;
  display: flex;
}
.container-form,
.success-message {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 2rem;
}
.container-form-contacto {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 1rem;
}
.container-form-contacto > input {
  border-radius: 5px;
  padding: 0.8rem;
  border: none;
  outline: none;
  background-color: #fafafa3e;
  color: #fafafa;
}
textarea.bigger {
  border-radius: 5px;
  padding: 0.8rem;
  border: none;
  outline: none;
  background-color: #fafafa3e;
  color: #fafafa;
  resize: none;
  height: 200px;
  font-family: inherit;
  font-size: 1rem;
}
.container-form-contacto > input::placeholder,
.bigger::placeholder {
  font-size: 1rem;
  color: #fafafa;
  font-weight: 500;
}

/* CSS section lideres */
.lideres {
  background-image: url("./img/last-image.png");
  width: 100%;
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #f7c25fc2;
  text-align: center;
  padding: 4rem 2rem;
}
.title-primary-lideres {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 2px;
  color: #334b35;
}
.btn-lideres {
  background-color: #334b35;
  color: #fafafa;
  border: none;
  padding: clamp(0.5rem, 1vw, 0.8rem);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.btn-lideres:hover {
  background-color: #fafafa;
  color: #334b35;
}
.btn-lideres:active {
  scale: 0.95;
}

/* CSS desktop para section nosotros */
.primary-title-nosotros,
.primary-title-servicios {
  font-size: clamp(1rem, 5vw, 2.5rem);
  padding-bottom: 3rem;
  letter-spacing: 2px;
}
.container-nosotros {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #fafafa;
  width: 100%;
  padding-bottom: 10rem;
}
.container-grupo {
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding: 0 1rem;
}

.integrante {
  perspective: 1000px;
  width: 100%;
  max-width: 500px;
  height: 200px;
  margin: 1rem auto;
}

.tarjeta {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}
.integrante:hover .tarjeta {
  transform: rotateY(180deg);
}
.frente,
.dorso {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}

.frente {
  display: flex;
  justify-content: center;
}
.foto-integrante {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dorso {
  background-color: #52743b;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  padding: 1rem;
  text-align: center;
}
.nombre-integrante {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.dato-integrante {
  font-size: 1rem;
}

/* css desktop servicios */
.servicios {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fafafa;
  padding: 1rem;
}
.container-servicios {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-items: center;
  padding: 1rem;
}
.tarjeta-servicio {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 500px;
}
.foto-servicio {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  border-radius: 5px;
}
.tarjeta-servicio .texto-hover {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  transform: translateY(10px);
  color: #fafafa;
  font-size: 1rem;
  text-align: left;
  opacity: 0; /* Comienza invisible */
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
}
.foto-servicio:hover {
  filter: brightness(10%);
  border-radius: 5px;
}
.texto-hover {
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 1rem;
  max-height: 100%;
  overflow-y: auto;
  line-height: 1rem;
}
.tarjeta-servicio-hover .foto-servicio {
  filter: brightness(40%);
  transform: scale(1.05);
  border-radius: 5px;
}
.tarjeta-servicio:hover .texto-hover {
  opacity: 1; /* Muestra el texto */
  transform: translateY(0);
  border-radius: 5px;
}
.title-texto-hover {
  color: #fafafa;
  font-size: 1.1rem;
  font-weight: 300;
  padding-bottom: 0.3rem;
}
.parrafo-texto-hover {
  color: #dcdcdc;
  font-size: 0.9rem;
  font-weight: 200;
  padding-bottom: 1rem;
}

.texto-mobile {
  display: none;
}
/* CSS FOOTER */
footer {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fafafa;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}

.linkedin-facu {
  position: relative;
  color: #dcdcdc;
  text-decoration: none;
  font-weight: 300;

  transition: color 0.3s ease;
  cursor: pointer;
}
.linkedin-facu::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: #fafafa;
  transition: width 0.3s ease;
}
.linkedin-facu:hover::after {
  width: 100%;
}

.whatsapp-link {
  gap: 0.5rem;
}

/* Responsive mobile */
@media (max-width: 930px) {
  .mision-container {
    flex-direction: column-reverse;
  }
  .container-servicios {
    grid-template-columns: 1fr;
  }
}
@media only screen and (max-width: 550px) {
  /* CSS mobile para Header */
  header {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  .img-menu-burger,
  .btn-cerrar {
    display: block;
  }
  .nav-header.visible {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
  }
  .nav-header {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: end;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #1c1c1c;
    padding: 2rem;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    gap: 1rem;
  }
  .nav-list {
    flex-direction: column;
    align-items: end;
  }

  /* CSS mobile para hero */
  .hero {
    justify-content: center;
    height: 75%;
  }
  .hero-div {
    gap: 10px;
  }

  /* Optimización del título principal para móvil */
  .title-principal {
    font-size: clamp(1.8rem, 10vw, 3.5rem);
    padding: 1rem;
    letter-spacing: 0.15rem;
    line-height: 1.2;
  }

  .hero-titles {
    line-height: 2rem;
  }

  /* CSS mobile para mision */
  .mision-container {
    width: 100%;
    padding: 1rem;
  }
  .mision-text {
    width: 100%;
  }
  .mision-img-container {
    width: 100%;
  }
  /* .mision-img-container{
        display: none;
    } */

  /* CSS mobile section clientes */
  .clientes-container-cliente {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cliente-p {
    width: 90%;
  }
}

/* Responsive mobile */
@media (max-width: 1140px) and (min-width: 770px) {
  .container-grupo {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .container-contacto {
    flex-direction: column;
    align-items: center;
    padding: 5rem 2rem;
    gap: 4rem;
  }

  .container-text-contacto,
  .container-form {
    width: 100%;
  }

  .container-contacto + section {
    margin-top: 5rem; /* por si hace falta separar */
  }

  .lideres {
    flex-direction: column;
  }
  .integrante {
    perspective: none; /* ya no necesitamos perspectiva */
    height: auto; /* dejamos que crezca según el contenido */
  }
  .integrante:hover .tarjeta {
    transform: none;
  }
  .tarjeta {
    transform: none; /* desactivamos rotación */
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .frente,
  .dorso {
    position: static; /* para que no se superpongan */
    width: 100%;
    height: auto;
    backface-visibility: visible;
    transform: none;
  }

  .frente {
    display: block;
  }

  .dorso {
    background-color: transparent;
    padding-top: 0.5rem;
  }
  .dato-integrante {
    color: #dcdcdc;
    font-weight: 200;
  }
  .texto-hover {
    display: none;
    visibility: hidden;
  }

  .texto-mobile {
    display: block;
    margin-top: var(--espaciado-chico);
    color: var(--color-texto-claro);
    font-size: 1rem;
    text-align: center;
  }
  .title-texto-mobile {
    color: #fafafa;
    font-size: 1.1rem;
    font-weight: 300;
    padding-bottom: 0.3rem;
  }
  .parrafo-texto-mobile {
    color: #dcdcdc;
    font-size: 0.9rem;
    font-weight: 200;
    padding-bottom: 1rem;
  }
  .tarjeta-servicio .texto-hover {
    background-color: #fafafa00;
  }
  .foto-servicio:hover {
    filter: brightness(100%);
  }
}

/* Responsive tablets (>550px y <900px) */
@media only screen and (max-width: 900px) and (min-width: 551px) {
  .clientes-container-cliente {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }
  .clientes-container-cliente > article:nth-child(3) {
    grid-column: 1 / 3; /* ocupa ambas columnas */
    justify-self: center; /* y se centra dentro de esa fila */
    max-width: 500px; /* opcional, para que no se estire */
  }
}
