body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Portada con slider */
.cover {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

/* Capa oscura que cubre todo el fondo */
.cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Opacidad ajustable */
  z-index: 0;
}

.cover .background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.cover .background-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  animation: slideFade 20s infinite;
}

.cover .background-slider img:nth-child(1) { animation-delay: 0s; }
.cover .background-slider img:nth-child(2) { animation-delay: 5s; }
.cover .background-slider img:nth-child(3) { animation-delay: 10s; }
.cover .background-slider img:nth-child(4) { animation-delay: 15s; }

@keyframes slideFade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

.cover .content {
  position: relative;
  z-index: 1; /* Encima del overlay */
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  font-size: 2.5rem;
}

/* Espaciado entre secciones */
section {
  padding: 80px 15px 60px;
  margin-bottom: 100px;
  border-bottom: 6px solid transparent;
  position: relative;
  background-color: #fafafa;
  color: #333;
  font-size: 1rem;
}

/* Colores suaves en fondos de sección */
#nosotros {
  background-color: #ffffff;
  border-left: 6px solid #006633;
  padding-left: 20px;
}

#servicios {
  background-color: #f8f9fa;
  border-left: 6px solid #cc3333;
  padding-left: 20px;
}

#catalogo {
  background-color: #e9ecef;
  border-left: 6px solid #006633;
  padding-left: 20px;
}

#contacto {
  background-color: #fdfdfd;
  border-left: 6px solid #cc3333;
  padding-left: 20px;
}

/* Títulos con acentos */
h2 {
  color: #006633;
  font-weight: 700;
  margin-bottom: 40px;
  border-bottom: 3px solid #cc3333;
  padding-bottom: 10px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Cards con sombra ligera */
.card {
  transition: transform 0.3s;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 102, 51, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(204, 51, 51, 0.3);
}

/* Botones principales */
.btn-primary {
  background-color: #006633;
  border-color: #004d26;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #cc3333;
  border-color: #991f1f;
}

/* Footer */
footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Imágenes cuadradas con aspecto ancho */
.img-cuadrada {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  display: block;
}
/* NAVBAR PRINCIPAL */
.navbar {
  background-color: #002b5c; /* Azul oscuro */
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

.navbar .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #66ccff; /* Azul claro al pasar el mouse */
}

/* Menú móvil */
.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    color: white;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    background-color: #002b5c;
    padding: 10px 0;
  }

  .menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.cover .content h1 {
  font-size: 3.5rem; /* Puedes ajustar este valor a lo que te guste */
  font-weight: 700;  /* Opcional, para que sea más grueso */
  margin-bottom: 0.3em; /* Espacio debajo para que no se pegue */
}
.cover .content p {
  font-size: 1.5rem; /* Ajusta este tamaño según convenga */
}
#ubicacion {
  background-color: #ffffff;
  border-left: 6px solid #006633; /* verde */
  padding-left: 20px;
  padding-bottom: 60px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 102, 51, 0.15);
  max-width: 900px;
  margin: 0 auto;            /* Centra horizontalmente */
  display: flex;             /* Flexbox para centrar contenido */
  justify-content: center;   /* Centra horizontalmente */
}

.map-container iframe {
  width: 100%;               /* Ocupa todo el ancho del contenedor */
  max-width: 900px;          /* Máximo ancho del mapa */
  height: 400px;             /* Altura fija */
  border: 0;
  display: block;            /* Quita espacio extra abajo */
}
