body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f5f9;
  margin: 0;
  padding: 0;
  color: #1f1f1f;
}

h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 2rem;
  font-size: 2rem;
}

h2 {
  color: #1c1c1c;
  margin-top: 3rem;
  font-size: 1.6rem;
  border-left: 4px solid #4285f4;
  padding-left: 0.75rem;
}

.grid {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  max-width: 1200px;
  margin: auto;
  margin-top: 1rem;
}

.card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
   height: 120px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.card-content {
   padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card a {
  text-decoration: none;
  background-color: #4285f4;
  color: white;
      font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;

}

.card a:hover {
  background-color: #3367d6;
  transform: scale(1.05);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100vw; /* Fuerza a usar todo el ancho visible */
  box-sizing: border-box;
    margin: 0;
  padding: 0;
}


.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 42px;
  height: 42px;
}

.titulo {
  font-weight: bold;
  font-size: 1.25rem;
  color: #2b2b2b;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.buscador {
  padding: 0.45rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: #fafafa;
}

.nav-th {
  text-align: center;
  padding: 1rem 0;
  background-color: #f0f2f5;
  border-bottom: 1px solid #ddd;
}

.nav-th a {
  margin: 0 1rem;
  color: #4285f4;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.nav-th a:hover {
  text-decoration: underline;
}

.section {
  scroll-margin-top: 100px;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .card img {
    height: 140px;
  }

  .card-content {
    padding: 1rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .buttons {
    flex-direction: column;
  }
  
}
.footer {
  background-color: #1c1c1c;
  color: #eee;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  width: 100%;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #bbb;
  text-decoration: none;
}

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

.social-icons a {
  margin-right: 0.5rem;
}

.social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  color: #999;
}
  .accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f1f1;
    padding: 1rem;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    border-left: 6px solid #4285f4; /* Línea azul izquierda */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .accordion-toggle:hover {
    background-color: #e4e4e4;
  }

  .th-title {
    font-weight: bold;
  }

  .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }

  .accordion-content {
    display: none;
    padding-top: 1rem;
  }

  .accordion-content.open {
    display: block;
  }

  .accordion-toggle.open .arrow {
    transform: rotate(90deg); /* flecha apunta hacia abajo */
  }
.hero-header {
  background-image: url('images/portada.webp'); /* <- reemplaza con tu imagen subida */
  background-size: cover;
  background-position: center;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 2rem;
  border-bottom: 6px solid #4285f4;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.hero-header .overlay {
  background: rgba(0, 0, 0, 0.45); /* sombra oscura para contraste */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.titulo-principal {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
 .enlace-novedades {
      margin: 3rem auto;
      padding: 1.2rem 2rem;
      text-align: center;
      background-color: #222;
      color: #fff;
      max-width: 400px;
      border-radius: 12px;
      font-size: 1.1rem;
      font-weight: bold;
      text-decoration: none;
      display: block;
      box-shadow: 0 4px 14px rgba(0,0,0,0.3);
      transition: background-color 0.3s;
    }
    .enlace-novedades:hover {
      background-color: #444;
    }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #1c2a3a; /* Azul oscuro elegante */
  color: white;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar .novedades-link {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.topbar .novedades-link:hover {
  text-decoration: underline;
}
.topbar .titulo {
  color: #ffffff; /* blanco puro */
  font-weight: bold;
  font-size: 1.2rem;
}