/* Reset i font */
body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background-color: #f9f9f9;
  color: #222;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #F7B500; /* RAL 1023 groc */
  color: black;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .brand-container {
  display: flex;
  align-items: center;
}

.brand-icon {
  width: 80px; /* Doble de gran */
  margin-right: 10px;
}

.nav-brand {
  color: #245c2b; /* Verd corporatiu */
  font-weight: bold;
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #000;
  margin-top: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #faca46;
    width: 100%;
    position: absolute;
    top: 90px;
    left: 0;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }
  .nav-links.active a {
    display: flex;
    margin-left: 20px;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    margin-top: 20px;
  }
}

/* Hero */
.hero {
  height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 1rem;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #f1c40f;
  color: #000;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #d4ac0d;
}

/* Blog Carousel */
.blog-section {
  padding: 2rem;
  background-color: #fff;
}

.blog-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #245c2b;
}

.blog-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
}

.blog-card {
  max-width: 250px;
  background-color: #f0f0f0;
  padding: 1rem;
  border-radius: 1rem;
  scroll-snap-align: start;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.blog-card h3 {
  margin: 0.5rem 0 0.2rem;
}

.blog-card p {
  margin: 0;
}
    /* Estilos generales para el footer */
.footer {
  padding: 20px;
  text-align: center;
}

/* Estilos para la lista de imágenes */
.footer-link {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px; /* Espacio entre imágenes */
}

/* Dispositivos móviles: 2 columnas */
@media (max-width: 767px) {
  .footer-link {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  }
}

/* Ordenadores: 3 columnas */
@media (min-width: 768px) {
  .footer-link {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  }
}

/* Ajustar imágenes al tamaño de la pantalla */
.footer-link li img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* Asegura que la imagen se ajuste sin distorsionarse */
  max-width: 150px; /* Tamaño máximo para evitar que las imágenes sean demasiado grandes */
  margin: 0 auto; /* Centrar imágenes horizontalmente */
}

/* Estilos adicionales para otros elementos del footer */



.footer-links li {
  margin-bottom: 10px;
}

/* Footer */
.footer {
  background-color: #245c2b;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 1rem 0;
}

.footer-links li {
  list-style: none;
}

.footer-links img {
  width: 100%;
  max-width: 60px;
  height: auto;
}

.footer-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 1rem 0;
}

.footer-link li {
  list-style: none;
}

.footer-link img {
  width: 100%;
  max-height: 100px;
  height: auto;
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

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

.pla_alfa {
  padding: 2rem;
  background-color: #fff;
}

.pla_alfa h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #245c2b;
}
.footer-copyright {
  margin-top: 20px;
  font-size: 0.2rem;
  color: #666;
  border-top: 1px solid #ddd; /* Línea separadora opcional */
  padding-top: 10px;
}