
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}
header {
    background: #005bac;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Contenedor general para secciones */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contenedor específico del header */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo + texto */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    color: white;
    text-decoration: none;
}

.logo img {
    height: 120px; /* Puedes subir a 80px o bajarlo si lo ves muy grande */
    width: auto;
}

.logo span {
    font-weight: bold;
    color: #ffe600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px; /* aumentamos el tamaño */
    padding: 10px 0; /* espaciado vertical */
}
.banner {
    position: relative;
}
.swiper-container, .swiper-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.swiper-slide .text {
    position: absolute;
    bottom: 50px;
    left: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
}
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        padding-left: 0;
        margin-top: 10px;
    }

    .swiper-container, .swiper-slide img {
        height: 300px;
    }

    .swiper-slide .text {
        bottom: 20px;
        left: 15px;
        padding: 15px;
        font-size: 14px;
    }
}

/* Sección Nosotros */
.nosotros-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.nosotros-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

/* .nosotros-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
} */

.nosotros-section .intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center;
}

.nosotros-section .bloque {
  margin-bottom: 40px;
}

.nosotros-section h2 {
  font-size: 1.8rem;
  color: #2980b9;
  margin-bottom: 10px;
  border-left: 5px solid #2980b9;
  padding-left: 10px;
}

.nosotros-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.valores-lista {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.valores-lista li {
  font-size: 1rem;
  line-height: 1.8;
  color: #2c3e50;
  position: relative;
  padding-left: 24px;
}

.valores-lista li::before {
  content: "✔";
  color: #27ae60;
  position: absolute;
  left: 0;
}

/* Seccion Prodcutos */
.productos h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.categoria {
  margin-bottom: 3rem;
  border-top: 1px solid #ccc;
  padding-top: 1.5rem;
}

.categoria h2 {
  color: #004085;
  margin-bottom: 1rem;
}

.producto {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.producto img {
  width: 250px;
  border-radius: 8px;
}

.producto .info {
  flex: 1;
}

.producto .info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.producto .info button {
  background-color: #004085;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.producto .ficha {
  display: none;
  margin-top: 0.5rem;
  background-color: #f1f1f1;
  padding: 1rem;
  border-radius: 4px;
}

.catalogo-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #0069d9;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Uniformar productos dentro del grid */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch; /* fuerza que todos los elementos tengan misma altura de celda */
}

.producto {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.producto img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.producto .info {
  margin-top: auto; /* empuja el botón hacia abajo para alinear mejor */
}

.producto .info h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

/* Contacto */
.contacto-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.contacto-section h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #2c3e50;
}

.contacto-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 50px;
}

.contacto-info .datos {
  flex: 1 1 300px;
}

.contacto-info .datos p,
.contacto-info .datos a {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  text-decoration: none;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #25D366;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.redes {
  margin-top: 1.5rem;
  display: flex;
  gap: 20px;
}

.redes img {
  width: 32px;
  height: 32px;
}

.contacto-info .mapa {
  flex: 1 1 400px;
}

.mapa iframe {
  width: 100%;
  max-width: 500px; /* tamaño máximo */
  height: 300px;    /* altura */
  border-radius: 12px; /* esquinas redondeadas */
  display: block;
  margin: 0 auto; /* centrado */
}

/* Servicios */
.servicios-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.titulo-seccion {
  text-align: center;
  font-size: 2.5rem !important;
  margin-bottom: 10px;
  color: #004085 !important;
}

.descripcion-seccion {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.servicio {
  background: white;
  padding: 30px 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
}

.servicio img {
  height: 64px;
  margin-bottom: 15px;
}

.servicio h3 {
  color: #005bac;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.servicio p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* === ESTILOS PARA CATÁLOGO INTERACTIVO === */

.catalogo-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.catalogo-section h2.titulo-seccion {
  text-align: center;
  font-size: 2.5rem;
  color: #004085;
  margin-bottom: 10px;
}

.catalogo-section .descripcion {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555;
}

.linea-productos {
  margin-bottom: 50px;
}

.linea-productos h3 {
  font-size: 2rem;
  color: #005bac;
  border-left: 5px solid #005bac;
  padding-left: 10px;
  margin-bottom: 20px;
}

.subcategoria {
  margin-bottom: 30px;
}

.subcategoria h4 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.catalogo-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.catalogo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.catalogo-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.catalogo-item h5 {
  margin: 10px 0;
  font-size: 1rem;
  color: #333;
}

/* Modal (opcional si luego se desea ampliar imagen) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
}

.modal-close {
  position: absolute;
  top: 50px;
  right: 80px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .catalogo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Telefonos */
.telefonos ul {
  list-style: none;
  padding: 0;
  margin: 5px 0 20px;
}

.telefonos li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.telefonos img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.telefonos a {
  color: #005bac;
  font-weight: 600;
  text-decoration: none;
}

.telefonos a:hover {
  text-decoration: underline;
}

.nosotros-section,
.contacto-section,
.catalogo-section,
.servicios-section {
  padding-top: 20px; /* antes era 60px */
}
