/* === ESTILOS GENERALES === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}
/* === HEADER === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px; /* FIJO */
  background-color: #2c3e50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

nav.menu-inferior {
   position: fixed;
  top: 70px; /* misma altura del header */
  width: 100%;
  background-color: #aaaaaa;
  z-index: 999;
}

html {
  scroll-behavior: smooth;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor:pointer;
}

.logo-container img {
  max-width: 60px;
  margin-right: 10px;
}

.logo-container h1 {
  margin: 0;
  font-size: 1.5em;
}

.logo-container:hover {
  opacity: 0.8;
}
/* === NAVEGACIÓN === */
nav{
    background-color: #aaaaaa; /*ENCABEZADO DE LOS BOTONES*/
    padding: 10px 50px; 
    margin-top: 0px;
}
.nav-bar {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}
.nav-bar li {
    display: flex;
    align-items: center;
    position: relative; /* necesario para que el submenu se acomode */
}
.nav-bar button {
    background-color: #aaaaaa; /* mismo color que el header */
    border: none;
    color: white;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.nav-bar button:hover {
    background-color: #34495e; /* azul un poco más claro */
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Estilo general del submenú */
.submenu {
  display: none;
  position: absolute;
  background-color: #2c3e50;
  padding: 0px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  top: 100%;
  left: 0;
  min-width: 220px;
  z-index: 100;
}

/* Mostrar el submenú cuando se activa */
  .dropdown:hover .submenu {
    display: block;
}

/* Botones del submenú */
.submenu li {
  display: block;
  margin: 5px 0;
  color: white;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.submenu li:hover {
    background-color: #34495e;
}
.submenu {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    box-shadow: 0px 4px 6px #2c3e50;
    text-align: left;
    z-index: auto; /* Asegura que esté por encima de otros elementos */
    outline: 2px solid #2c3e50;
}

.submenu button {
  width: 100%;
  padding: 6px 10px;
  background-color: #2c3e50;
  border: none;
  border-radius: 6px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submenu button:hover {
  background-color: #ddd;
}

/* === SECCIÓN HOME === */
#home {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
   margin-top: 0px;
}

#home p {
    max-width: 900px;
    margin: 10px auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

#home h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

/* VIDEO */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.15);
}

/* SECCIÓN MERCADOS */
.market-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
    gap: 40px;
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.map-image {
    width: 350px;
    height: auto;
}

/* Lista de países */
.market-section ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.market-section li {
    margin-bottom: 8px;
}


/* === SECCIÓN CONÓCENOS === */
.conocenos {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-bottom: 50px;
}

.vision, .mision {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    max-width: 400px;
    width: 30%;
}
.logo-conocenos {
    flex: 1;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.logo-conocenos img{
width: 150%;
height: auto;
border-radius: 12px;
}
/* Imagen inferior */
.bottom-image {
    display: flex;
    justify-content: center; /* Centra la imagen horizontalmente */
    margin-top: 20px; /* Espacio entre la imagen y la sección superior */
}
.bottom-image img {
        width: 100%;
        max-width: 500px;
        height: auto;
        border-radius: 10px;
    }
/* Reducción de la imagen de historia */
.history {
    max-width: 1000px;
    margin: 0 auto;
}
.history h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.history-content {
    text-align: justify;
    line-height: 1.6;
    padding: 0 15px;
}
.historia-imagen {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 40px auto 60px;
    border-radius: 10px;
}

/* === SECCIÓN EMPRESAS === */
.empresas img {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* === FOOTER === */
/* === VIDEO RESPONSIVO === */
.video-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.video-container video {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === FOOTER RESPONSIVO === */
.footer {
  background-color: #00416A;
  color: white;
  padding: 20px 15px;
  font-family: Arial, sans-serif;
}

/* Logo centrado arriba */
.footer-logo {
  text-align: center;
  margin-bottom: 15px;
}

.footer-logo img {
  max-width: 120px;
  display: inline-block;
}

/* Contenedor de columnas */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 20px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Alineación específica por sección */
.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

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

/* Texto descripción */
.footer-left p {
  line-height: 1.4;
  margin: 0;
}

/* Listas */
.footer-center ul,
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}

.footer-center h4 {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-center a {
  color: white;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
}

/* Pie inferior */
.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 0.9em;
  border-top: 1px solid #ffffff50;
  margin-top: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  .footer-left p,
  .footer-right ul {
    text-align: center;
  }
}

/* Estilos para la galería de productos */
.swecomex-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 30px;
    justify-items: center;
}

.producto {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.producto-img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.producto-img:hover {
    transform: scale(1.05);
}

.nombre-producto {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
#agroindustriasswecomex-productos {
    padding: 40px 60px; /* arriba/abajo 40px, izquierda/derecha 60px */
  }
  
/* Estilos para el modal */
.modal {
    display: none; /* oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .modal-contenido {
    background: white;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
  }
  /* Para darle animación */
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }
  .modal.mostrar {
    display: flex; /* Al mostrarse, lo centramos */
  }
  /* Esto centra el contenido perfectamente */
  .modal.mostrar {
    display: flex; /* Se agrega esta clase al mostrar el modal */
  }
  
/* Animación de entrada del modal */
@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}
/* 🔹 Botón para cerrar el modal */
.cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ff3030;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .cerrar:hover {
    color: red;
  }
/* 🔹 Estilos para la imagen en el modal */
.modal-contenido img {
    width: 70%;
    max-width: 250px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.modal-contenido img:hover {
    transform: scale(1.05);
}

/* 🔹 Estilos para la tabla */
table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}
/* 🔹 Estilos para los enlaces a PDFs */
p a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    text-decoration: none;
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}
p a:hover {
    background-color: #0056b3;
}
/* 🔹 Estilos responsivos */
@media (max-width: 768px) {
    .modal-contenido {
        width: 95%;
    }
    table {
        font-size: 14px;
    }
}
#company-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .logo-empresa {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 20px auto;
}
  .empresa-descripcion {
    text-align: justify;
    font-size: 16px;
    margin-top: 10px;
  }
 /* Contenedor general */
#wildcat-productos {
  background-color: #f7f7f7;
  padding: 40px 0;
}
#wildcat-productos h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #333;
}
/* Galería: 2 filas de 6 productos */
.wildcat-galeria {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  justify-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}
/* Cada producto centrado */
.producto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Imagen del producto */
.producto img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.producto img:hover {
  transform: scale(1.1);
}
/* Nombre del producto */
.nombre-producto {
  margin-top: 8px;
  font-weight: 600;
  color: #333;
}
/* Ocultar la clase antigua para evitar conflictos */
.wildcatS-galeria {
  display: none;
}
@media (max-width: 900px) {
  .wildcat-galeria {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .wildcat-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}
  .verification-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}
.requirements-title {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}
.requirements-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}
.requirements {
    flex: 1;
    min-width: 300px;
    max-width: 500px; /* Evita que se extienda mucho */
    padding: 0 20px;  /* Agrega espacio a los lados */
}
.requirements ul {
    padding-left: 20px;
    font-size: 1rem;
}
.requirements ul li {
    margin-bottom: 10px;
}
.requirements strong {
    font-size: 1.1rem;
}
.location-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px; /* MÁS espacio entre mapa y lista */
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
    flex-wrap: wrap;
}
.map {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}
.map iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
}
.locations-list {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 0 20px;
}
.locations-list ul {
    list-style: none;
    padding-left: 0;
}
.locations-list li {
    font-size: 1rem;
    margin-bottom: 10px;
}
.location-title {
    text-align: center;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
  .logo-container h1 {
    font-size: 1em;
  }
  .nav-bar {
    flex-direction: column;
    align-items: center;
  }
  .nav-bar li {
    margin: 5px 0;
  }

  header, .menu-inferior {
    text-align: center;
  }
}
/* Para pantallas pequeñas */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap; /* permite que se ajusten si no caben en una línea */
    padding: 10px 0;
    margin: 0;
  }

  .nav-bar li {
    margin: 5px;
  }

  .nav-bar button {
    font-size: 0.9rem;
    padding: 8px 14px;
  }

  nav.menu-inferior {
    padding: 0; /* elimina espacio innecesario */
  }
}
.boton-pdf {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin: 5px 0;
}

.boton-pdf:hover {
  background-color: #0056b3;
}

/*UBICAION GRUPO AMN*/
.amn-ubicaciones {
  padding: 60px 8%;
  background: #f4f6f8;
}

.amn-ubicaciones h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #1f2d3d;
}

.ubicaciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 en una sola fila */
  gap: 25px;
}

.ubicacion-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.ubicacion-card h3 {
  margin-bottom: 8px;
  color: #0d3b66;
}

.ubicacion-card p {
  font-size: 14px;
  margin-bottom: 15px;
  color: #555;
}

.ubicacion-card iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 8px;
}
@media (max-width: 1200px) {
  .ubicaciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.empresa-slider {
  width: 100%;
  height: 480px;
  position: relative;
  overflow: hidden;
  display: none; /* JS decide cuál mostrar */
}

.empresa-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       
  object-position: center; 
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}
#sliders-empresas {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

#company-details {
  padding: 0;
}
#company-description {
  padding: 60px 80px;
}
.empresa-slider img.active {
  opacity: 1;
}
:root {
  --header-total: 120px; /* 70 header + ~50 nav */
}

main {
  padding-top: var(--header-total);
}

@media (max-width: 768px) {
  .empresa-slider {
    height: 300px;
  }
}
