/* Estilos Generales */
body {
  font-family: 'Century Gothic', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

p {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Lazy Load */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}



/* === HEADER GENERAL === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background: linear-gradient(135deg, #000000e5 220px, #ffffffcb 220px);
  position: relative;
  flex-wrap: nowrap; /* evita que el logo salte de línea */
  min-height: 90px;  /* altura mínima estable */
}

/* === LOGO === */
.logo {
  flex: 0 0 auto; /* no se encoge ni crece */
}
.logo img {
  height: 80px; /* tamaño fijo */
  max-height: 15vh; /* límite proporcional */
  width: auto;
  padding-left: 5px;
  object-fit: contain; /* mantiene proporción sin recorte */
}

/* === IMÁGENES GENERALES === */
img {
  max-width: 100%;
  height: auto;
}

/* === NAVEGACIÓN PRINCIPAL === */
.header nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* permite salto solo si es necesario */
  justify-content: center;
}
.header nav ul li {
  position: relative; /* necesario para el pseudo-elemento */
}
.header nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 18px;
  padding: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

/* === SUBRAYADO ANIMADO === */
.header nav ul li a::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -5px;
  width: calc(100% - 40px);
  height: 2px;
  background-color: #F0C000;
  transform-origin: left;
  transition: width 0.3s ease;
  width: 0;
}
.header nav ul li a:hover {
  color: #F0C000;
}
.header nav ul li a:hover::after {
  width: 70%;
}

/* === AJUSTES RESPONSIVE === */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 20px;
  }

  .logo {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  .header nav ul li a {
    font-size: 16px;
    padding: 8px 20px;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: center;
    min-height: 120px;
  }

  .logo img {
    height: 70px; /* un poco más pequeño pero estable */
  }

  .header nav ul {
    gap: 10px;
  }

  .header nav ul li a {
    font-size: 16px;
    padding: 5px 15px;
  }
}


/* Section Portada de la web */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  background-color: transparent;
}

.background-container {
  position: relative;
  /* Necesario para posicionar el pseudo-elemento */
  overflow: hidden;
  /* Evita que el fondo se desborde */
}

.background-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 115%;
  /* Aumenta el ancho para evitar espacios vacíos */
  height: 100%;
  background: url('/IMG/fondo-portada.webp') no-repeat center center/cover;
  z-index: -1;
  transition: transform 0.5s ease;
}

.background-container.move-right::before {
  transform: translateX(-10%);
  /* Ajusta el porcentaje para mover el fondo */
}


/* Contenido Principal */
.hero-content {
  margin-bottom: 100px;
  width: 50%;
  position: absolute;
  left: 10%;
  text-align: left;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 500;
}

.hero-content p {
  font-size: 20px;
}


/* ocultar la info */
.hero-content,
.subscribe {
  opacity: 0;
  /* Ocultar inicialmente */
  transform: translateX(-50px);
  /* Mover ligeramente a la izquierda */
  transition: opacity 1s ease, transform 1s ease;
  /* Transición suave */
}

.hero-content {
  transform: translateX(50px);
  /* Mover ligeramente a la derecha */
}

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

/* Pie de la sección Hero */
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Espacio entre la flecha y el formulario */
  width: 90%;
  max-width: 1000px;
  position: absolute;
  bottom: 50px;
}

/* .arrow-down img {
  width: 40px;
  animation: bounce 2s infinite;
} */

.divider {
  width: 2px;
  height: 80px;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 20px;
}

/* Modulo para Subscribe */
.subscribe {
  text-align: left;
  margin-right: 20px;
  /* Alinea el formulario hacia la derecha */
}

.subscribe h3 {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 500;
}

.subscribe p {
  font-size: 14px;
  color: #ddd;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.subscribe-form input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  width: 250px;
  outline: none;
}

.subscribe-form button {
  background: #F0C000;
  border: none;
  padding: 10px 15px;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.subscribe-form button:hover {
  background: #F0C000;
}





/* Section de About  */
.about-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('/IMG/fondo-about.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.about-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 2rem;
  color: white;
  text-align: center;
}

.about-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .about-title {
    font-size: 2rem;
  }

  .about-text {
    font-size: 1rem;
  }
}





/* Section Our Commitment */
/* === Sección Our Commitment === */
.commitment {
  background: #1e1e1e;
  padding: 30px 20px;
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Mitad derecha blanca */
@media (min-width: 768px) {
  .commitment {
    background: linear-gradient(to right, #1e1e1e 50%, #ffffff 50%);
    padding: 50px 0;
  }
}

/* Contenedor principal */
.commitment-content {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Sección izquierda */
.left-section {
  width: 100%;
  padding: 20px;
  margin-top: 0;
  box-sizing: border-box;
}

.left-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
}

.left-section p {
  font-size: 16px;
  color: #fff;
}

/* Sección derecha */
.right-section {
  width: 100%;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.right-section p {
  transition: all 0.3s ease;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #000;
  padding: 20px;
  background: transparent;
  border-radius: 5px;
  font-size: 16px;
  text-align: left;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Estadísticas */
.stats {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.stat-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.stat-item {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 600;
  color: #F0C000;
  font-family: Arial, sans-serif;
  font-feature-settings: "lnum";
  font-variant-numeric: lining-nums;
}

.stat-label {
  font-size: 16px;
  color: #ddd;
}

/* Animaciones */
.left-section,
.right-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* === RESPONSIVE === */
@media (max-width: 767px) {
  .commitment {
    background: #1e1e1e;
  }

  .right-section p {
    background: white;
    text-align: center;
    margin: 2px 5vh;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
}

/* === DESKTOP: 50/50 REALES === */
@media (min-width: 768px) {
  .commitment-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .left-section {
    width: 50%;
    padding: 50px;
    margin-top: 0;
  }

  .left-section h2 {
    font-size: 40px;
    text-align: left;
  }

  .right-section {
    width: 50%;
    padding: 50px;
    text-align: left;
  }

  .right-section p {
    font-size: 20px;
    padding: 24px 40px;
    margin: 0;
    background: transparent;
    color: #000;
    box-sizing: border-box;
    max-width: 100%;
  }

  .stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-row {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 30px;
    width: 100%;
  }

  .stat-item {
    width: 48%;
    margin-bottom: 0;
  }

  .stat-value {
    font-size: 50px;
  }

  .stat-label {
    font-size: 18px;
  }

  /* Mantiene tus animaciones originales */
  .left-section {
    transform: translateX(-50px);
  }

  .right-section {
    transform: translateX(50px);
  }

  .visible {
    transform: translateX(0);
  }
}
/* === Parche anti-salto entre 992px y 768px === */
@media (min-width: 768px) and (max-width: 991.98px){
  .commitment-content{
    display: grid !important;
    grid-template-columns: 1fr 1fr;   /* 50/50 real */
    gap: 0;                           /* sin huecos que sumen ancho */
    align-items: start;
  }

  .left-section,
  .right-section{
    width: auto !important;           /* anula width:50% previos en flex */
    padding: 24px 24px !important;    /* padding contenido para que quepa */
    box-sizing: border-box;
    min-width: 0;                     /* evita que el texto empuje la columna */
  }

  .right-section p{
    font-size: 18px !important;
    line-height: 1.6;
    margin: 0 !important;
    padding: 16px 20px !important;    /* acolchado más chico en este rango */
    max-width: 100% !important;
    background: transparent;          /* usa el blanco del lado derecho */
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
  }

  .left-section h2{
    font-size: 32px !important;
    margin: 0 0 16px;
    text-align: left;
  }

  /* Mantén el fondo partido */
  .commitment{
    background: linear-gradient(to right, #1e1e1e 50%, #fff 50%) !important;
    padding: 40px 0 !important;
  }
}

/* Refuerzo general (aplica en todos los anchos) */
.left-section, .right-section{
  box-sizing: border-box;
  min-width: 0;
}















/* ===== SECTION Our Values -  ===== */


.values {
  padding: 100px 20px;
  background-color: #f5f5f3;
  color: #333;
  text-align: center;
}

.values-content {
  max-width: 1200px;
  margin: 0 auto;
}

.values h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #222;
}

.values .subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.values-grid {
  display: flex;
  justify-content: center;
  /* Centra las tarjetas */
  gap: 20px;
  /* Espacio entre las tarjetas */
  padding: 0 20px;
  /* Espacio a los lados */
  max-width: 1200px;
  /* Ancho máximo del contenedor */
  margin: 0 auto;
  /* Centra el contenedor */
}

.value-card {
  flex: 1;
  /* Las tarjetas se expanden para ocupar el espacio disponible */
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 200px;
  /* Ancho máximo de cada tarjeta */
}

.value-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #222;
}

.value-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
  .values-grid {
    flex-wrap: wrap;
    /* Envuelve las tarjetas en pantallas pequeñas */
    justify-content: center;
    /* Centra las tarjetas */
  }

  .value-card {
    flex: 1 1 45%;
    /* Dos tarjetas por fila en pantallas pequeñas */
    max-width: 45%;
    /* Ancho máximo para dos tarjetas por fila */
    margin-bottom: 20px;
    /* Espacio entre filas */
  }
}

@media (max-width: 480px) {
  .value-card {
    flex: 1 1 100%;
    /* Una tarjeta por fila en pantallas muy pequeñas */
    max-width: 100%;
    /* Ancho máximo para una tarjeta por fila */
  }
}











/* Section 3 de productos */

/* Estilos para la sección de productos */
.products {
  background: url('/IMG/fondo-products.webp') no-repeat center center/cover;
  /* Cambia la ruta de la imagen */
  padding: 80px 20px;
  /* Ajusta el padding según sea necesario */
  color: #000;
  /* Color del texto */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Pseudo-elemento para el overlay oscuro (opcional) */
.products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.3);
  /* Fondo semi-transparente para mejorar la legibilidad */

}

/* Contenedor principal */
.products-content {
  max-width: 1200px;
  /* Ajusta el ancho máximo según sea necesario */
  margin: 0 auto;
  text-align: center;
  /* Centra el contenido */
  position: relative;
  z-index: 2;
}

/* Ocultar la info */

.products-content {
  opacity: 0;
  /* Ocultar inicialmente */
  transform: translateX(-50px);
  /* Mover ligeramente a la izquierda */
  transition: opacity 1s ease, transform 1s ease;
  /* Transición suave */
}

.products-content {
  transform: translateX(50px);
  /* Mover ligeramente a la derecha */
}

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

/* Título y párrafo */
.products h2 {
  font-size: 40px;
  /* Tamaño del título */
  margin-bottom: 10px;
  animation: fadeInDown 1s ease-in-out;
  /* Animación para el título */
  color: #fff;
}

.products p {
  font-size: 20px;
  /* Tamaño del párrafo */
  color: #fff;
  /* Color del texto */
  margin-bottom: 55px;
  animation: fadeInUp 1s ease-in-out;
  /* Animación para el párrafo */
}

/* Grid de productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 50px 0;
  justify-items: center;
}


/* Estilos para cada producto */
.product {
  background: rgba(255, 255, 255, 0.1);
  /* Fondo semi-transparente */
  border-radius: 5px;
  border: 1px solid #f9f9f9;
  padding: 20px;
  background-color: #ffffffe2;
  /* background: url('/IMG/Fondo-product.png') no-repeat center center/cover; */
  text-align: center;
  width: 250px;
  /* Ancho de cada producto */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Transición suave */
  animation: fadeIn 1s ease-in-out;
  /* Animación para los productos */
}

.product:hover {
  transform: translateY(-10px);
  /* Efecto de levantar al pasar el mouse */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  /* Sombra al pasar el mouse */
}

.product img {
  width: 100%;
  /* Ajusta el tamaño de la imagen */
  border-radius: 10px;
  margin-bottom: 15px;
}

.product h3 {
  font-size: 24px;
  /* Tamaño del título del producto */
  margin-bottom: 10px;
}

/* Estilos para el botón "View Details" */
.btn-view {
  background: #CCA000;
  /* Color de fondo */
  border: none;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  border-radius: 2px;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-view:hover {
  background: #F0C000;
  /* Color de fondo al pasar el mouse */
}

button,
.btn-view {
  min-width: 48px;
  min-height: 48px;
  padding: 12px 24px;
}

/* Animaciones */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/* Modal de los productos */

/* Estilos para el modal */
.modal {
  display: none;
  /* Ocultar el modal por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  /* Fondo oscuro semi-transparente */
}

.modal-content {
  background-color: #fff;
  border: 2px solid #F0C000;
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.close-modal:hover {
  color: #F0C000;
  background-color: rgba(0, 0, 0, 0.8);
  /* Fondo más oscuro al pasar el mouse */

}

#modalImage {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin-bottom: 15px;
}

#modalTitle {
  font-size: 24px;
  margin-bottom: 10px;
  color: #000;
}

#modalDescription {
  font-size: 18px;
  color: #878787;
  margin-bottom: 10px;
}

#modalPrice {
  font-size: 20px;
  color: #F0C000;
  font-weight: bold;
}





/* Fondo que se mueve con el scroll */
.products::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  /* Aumenta el ancho para evitar espacios vacíos */
  height: 100%;
  background: url('/IMG/fondo-products.png') no-repeat center center/cover;
  z-index: -2;
  transition: transform 0.5s ease;
}

.products.move-background::after {
  transform: translateX(-10%);
  /* Mueve el fondo al hacer scroll */
}




/* Información para recomendar la compañía */
/* Estilos generales */
.why-choose {
  text-align: center;
  padding: 50px;
  margin-bottom: 100px;
  background-color: #fff;
  /* Fondo claro */
}

.why-choose h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
  /* Color del título */
}

/* Contenedor de las tarjetas */
.card-container {
  display: flex;
  justify-content: center;
  /* Centra las tarjetas horizontalmente */
  gap: 30px;
  /* Espacio entre las tarjetas */
  flex-wrap: wrap;
  /* Para que sea responsive */
}

/* Estilos para todas las tarjetas */
.card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Sombra suave */
  overflow: hidden;
  width: 300px;
  /* Ancho de cada tarjeta */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  /* Efecto de levantar al pasar el mouse */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* Sombra más pronunciada */
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.card h3 {
  font-size: 24px;
  margin: 20px 0 10px;
  color: #333;
  /* Color del título */
}

.card p {
  font-size: 14px;
  color: #666;
  /* Color del texto */
  padding: 0 20px 20px;
  line-height: 1.6;
  /* Mejora la legibilidad */
  text-align: justify;
}

/* fin de las card */




/* Estilos generales */
.team-section {
  padding: 50px 20px;
  background-color: #f5f5f3;
  /* Fondo claro */
  text-align: center;
}


/* Ocultar la info */

.team-header {
  opacity: 0;
  /* Ocultar inicialmente */
  transform: translateX(-50px);
  /* Mover ligeramente a la izquierda */
  transition: opacity 1s ease, transform 1s ease;
  /* Transición suave */
}

.team-header {
  transform: translateX(50px);
  /* Mover ligeramente a la derecha */
}

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

.team-header h2 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #303030;
  /* Color del título */
}

.team-header p {
  font-size: 18px;
  color: #303030;
  /* Color del texto */
  margin-bottom: 40px;
}

.team-description {
  font-size: 16px;
  color: #303030;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Grid de tarjetas */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  /* Espacio entre las tarjetas */
}

.team-member img {
  width: 120px;
  border-radius: 50%;
}


/* Estilos para cada tarjeta */
.team-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Sombra suave */
  display: flex;
  align-items: center;
  text-align: left;
  width: 45%;
  /* Ancho para 2 tarjetas por fila */
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  /* Efecto de levantar al pasar el mouse */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* Sombra más pronunciada */
}

.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  /* Foto circular */
  margin-right: 20px;
  object-fit: cover;
}

.team-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: #333;
}

.team-info .role {
  font-size: 16px;
  color: #777;
  margin-bottom: 5px;
}

.team-info .team-name {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #F0C000;
  /* Color al pasar el mouse */
}

/* Responsividad */
@media (max-width: 768px) {
  .team-card {
    width: 100%;
    /* Una tarjeta por fila en móviles */
  }
}




/* Section de Contact  */


/* Estilos para la sección "contact" */
.contact {
  margin-top: -10vh;
  position: relative;
  padding: 50px 10px;
  /* Más padding para mayor espacio */
  color: #000;
  overflow: hidden;
  background-color: #f5f5f5;
}

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

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}



.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 600;
  /* Más formal */
}

.contact-subtitle {
  font-size: 20px;
  margin-bottom: 50px;
  /* Más espacio debajo del subtítulo */
  color: #303030;
  font-weight: 400;
  /* Más formal */
}

.contact-form {
  background: #CCA000;
  padding: 40px;
  /* Más padding para mayor espacio */
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Borde sutil */
}

.form-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  /* Más espacio entre grupos de campos */
  gap: 30px;
  /* Más espacio entre campos */
}

.form-field {
  width: 100%;
  text-align: left;
}

.form-field label {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
  /* Más espacio entre la etiqueta y el campo */
  color: #000;
  font-weight: 600;
  /* Más formal */
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px;
  /* Más padding para mayor comodidad */
  border: 1px solid rgb(211, 211, 211);
  /* Borde más sutil */
  border-radius: 3px;
  /* Bordes más redondeados */
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #F0C000;
  /* Cambia el color del borde al enfocar */
  box-shadow: 0 0 8px rgba(123, 66, 246, 0.3);
  /* Sombra sutil al enfocar */
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  /* Altura mínima para el área de texto */
}

.submit-button {
  background-color: #303030;
  color: #fff;
  padding: 14px 28px;
  /* Más padding para un botón más grande */
  border: none;
  border-radius: 8px;
  /* Bordes más redondeados */
  font-size: 16px;
  font-weight: 500;
  /* Más formal */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  /* Efecto de elevación al pasar el mouse */
}






/* Footer */
footer {
  font-size: 12px;
  text-align: center;
  padding: 20px;
  background: #fff;
  color: #000;
}


/* Estilos generales del footer */
.footer-section {
  background-color: #000000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

/* Estilos para el logo - Tamaño aumentado para móviles */
.footer-logo img {
  width: 220px;
  /* Aumenté el tamaño para móviles */
  height: auto;
  transition: width 0.3s ease;
  /* Transición suave al cambiar tamaño */
}

/* Estilos para la información */
.footer-info {
  text-align: center;
  width: 100%;
}

/* Media queries para pantallas más grandes */
@media (min-width: 768px) {
  .footer-section {
    padding: 40px 100px;
    /* Reduje el padding lateral para mejor adaptación */
  }

  .footer-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
    max-width: 1200px;
    /* Aumenté el ancho máximo */
  }

  .footer-logo img {
    width: 280px;
    /* Tamaño aumentado para desktop */
    min-width: 250px;
    /* Ancho mínimo garantizado */
  }

  .footer-info {
    text-align: left;
  }
}

/* Media query extra para pantallas muy grandes */
@media (min-width: 1200px) {
  .footer-section {
    padding: 40px 350px;
    /* Solo aplica el padding grande en pantallas XL */
  }
}


/* Ocultar la info */

.footer-info {
  opacity: 0;
  /* Ocultar inicialmente */
  transform: translateX(-50px);
  /* Mover ligeramente a la izquierda */
  transition: opacity 1s ease, transform 1s ease;
  /* Transición suave */
}

.footer-info {
  transform: translateX(50px);
  /* Mover ligeramente a la derecha */
}

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

.footer-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-info h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ddd;
}

.contact-info,
.address-info,
.follow-info {
  margin-bottom: 20px;
}

.contact-info strong,
.address-info strong,
.follow-info strong {
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
}

.contact-info p,
.address-info p {
  font-size: 16px;
  margin: 5px 0;
}

.follow-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.follow-info ul li {
  font-size: 16px;
  margin: 5px 0;
}

.follow-info a,
.follow-info a:visited,
.follow-info a:hover,
.follow-info a:active {
  color: inherit;
  text-decoration: none;
}


/* Estilos para la flecha de subir */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #CCA000;
  /* Color de fondo */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /* Forma circular */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scroll-top:hover {
  background-color: #F0C000;
  /* Color al pasar el mouse */
}

.scroll-top i {
  color: #fff;
  font-size: 24px;
}




/* Scroll */
/* Estilos para navegadores basados en WebKit */
::-webkit-scrollbar {
  width: 12px;
  /* Ancho del scrollbar vertical */
  height: 12px;
  /* Altura del scrollbar horizontal */
}

::-webkit-scrollbar-track {
  background: #e5e8e5;
  /* Color de fondo del track */
  border-radius: 5px;
  /* Bordes redondeados */
}

::-webkit-scrollbar-thumb {
  background: #e5e8e5;
  /* Color de la barra */
  border-radius: 5px;
  /* Bordes redondeados */
}

::-webkit-scrollbar-thumb:hover {
  background: #e5e8e5;
  /* Color de la barra al hacer hover */
}

/* Estilos para Firefox */
html {
  scrollbar-width: thin;
  /* Ancho del scrollbar */
  scrollbar-color: #F0C000 #e5e8e5;
  /* Color del thumb y del track */
}





/* Breakpoints Responsive */
@media (max-width: 1200px) {
  .footer-content {
    padding: 40px 100px;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .team-card {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .commitment-content {
    flex-direction: column;
  }

  .left-section,
  .right-section {
    width: 100%;
  }
}

@media (max-width: 768px) {

  /* Header Mobile */
  .header {
    flex-direction: column;
    padding: 10px;
  }

  .logo img {
    height: 15vh;
    padding-left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 5px;
  }

  /* Hero Mobile */
  .hero-content {
    width: 90%;
    left: 5%;
  }

  .hero-footer {
    flex-direction: column;
    gap: 30px;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .about-title {
    font-size: 1.8rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}


/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 0;
  }

  .header nav.active {
    display: flex;
  }

    .product-grid {
        display: grid;
        gap: 20px;
        grid-template-columns: repeat(5, 1fr);
    }

    /* Pantallas medianas: 3 en la primera fila, 2 en la segunda */
    @media (max-width: 1024px) {
        .product-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* Pantallas pequeñas: 1 por fila */
    @media (max-width: 600px) {
        .product-grid {
            grid-template-columns: 1fr;
        }
    }

}

/* --- Nuestro Grupo (AGDRY) --- */
.group-section {
  padding: 120px 20px;
  background: #f8f8f8;
}

.group-section h2 {
  text-align: center;
  margin: 0 0 24px;
  font-size: 2rem;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.group-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.group-card img {
  max-width: 100%;
  max-height: 140px;     /* ajusta altura máxima si necesitas más chico */
  padding-top: 15px;
  padding-bottom: 15px;
  width: auto;
  height: auto;
  object-fit: contain;   /* mantiene proporción, no corta */
  display: block;
  margin: 0 auto;
}

.group-info {
  padding: 16px 18px;
}

.group-info h3 {
  margin: 0 0 6px;
  color: #111;
  font-size: 1.25rem;
}

.group-info p {
  margin: 0;
  color: #555;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .group-grid {
    grid-template-columns: 1fr;
  }

  .group-card img {
    height: 200px;
  }
}

/* === Compactar Our Commitment (override) === */
.commitment { padding: 20px 16px; }

@media (min-width: 768px) {
  .commitment { padding: 24px 20px; }
  .commitment-content { align-items: center; }

  .left-section { padding: 16px 20px; margin-top: 0; }
  .left-section h2 { margin-bottom: 12px; }

  .right-section { padding-top: 0; }
  .right-section p {
    padding: 0;
    margin: 0;
    font-size: 18px;
    max-width: 520px;
  }

  .stats { margin-top: 8px; }
  .stat-row { margin-bottom: 16px; }
  .stat-item { margin-bottom: 0; }
}

/* === Products grid 3+2 / 1 === */
.products .product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: row dense;
  justify-content: center; /* centra las filas incompletas */
}

/* En pantallas pequeñas → 1 por fila */
@media (max-width: 1024px) {
  .products .product-grid {
    grid-template-columns: 1fr;
  }
}

/* === Language Button Group (mismos colores, responsive estable) === */
/* === Selector de idioma: fijo en desktop/tablet, sin encogerse === */
.lang--segmented{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd4da;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  white-space: nowrap;
  user-select: none;

  /* Fijo en desktop/tablet */
  width: 120px;           /* ← AJUSTA si quieres más/menos ancho total */
  flex: 0 0 120px;        /* no crecer, no encoger, ancho fijo */
  margin-left: auto;      /* se queda a la derecha en el header */
  font-size: .7rem;       /* tamaño estable (no escalar) */
}

.lang--segmented a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  color: #555;
  text-decoration: none;
  border-right: 1px solid #cfd4da;

  /* Cada botón ocupa la mitad EXACTA del contenedor fijo */
  flex: 0 0 50%;
  min-width: 0;           /* evita que se desborde al forzar 50% */
  line-height: 1.1;
}
.lang--segmented a:last-child{ border-right: 0; }

.lang--segmented a:hover{
  background:#F0C000;
  color:#333;
}
.lang--segmented .is-active{
  background:#CCA000;
  color:#fff;
  border-color:#1a2a6c;
}

/* === Móvil: recién aquí cambiamos el layout; ya no ancho fijo === */
@media (max-width: 768px){
  .lang--segmented{
    position: absolute;
    top: 20px;
    right: 50px;
    width: 120;          /* deja de ser fijo */
    flex: 0 0 120;       /* permite tamaño natural */
    font-size: .7rem;    /* opcional */
  }
  .lang--segmented a{
    padding: 6px 12px;
    flex: 0 0 auto;       /* ancho según contenido en móvil */
  }
}

/* Header en flex para que el selector quede a la derecha */
.header{ display:flex; align-items:center; gap:20px; }
