/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #222;
  padding: 0;
  margin: 0;
}

/* Header */
header {
  background-color: #007b5e;
  color: white;
  padding: 1rem 0;
}

header img {
  height: 50px;
  margin:0;
}


header .logo {
    display: flex;
    align-items: center;
}


header h1 {
  color: white;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.5rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* Layout */
.layout {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
  gap: 2rem;
}

main {
  flex: 1;
  min-width: 300px;
}

.sidebar {
  width: 280px;
  background-color: #fff;
  padding: 1.5rem;
  border-left: 2px solid #e0e0e0;
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.sidebar-nav ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-nav li {
  margin-bottom: 0.6rem;
}

.sidebar-nav a {
  text-decoration: none;
  color: #007b5e;
}

.sidebar-nav a:hover {
  text-decoration: underline;
}

/* Tipografía general */
h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #007b5e;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: #444;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  color: #333;
}

p, ul {
  margin-bottom: 1rem;
}

ul {
  padding-left: 1.5rem;
}

img {
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background-color: #f1f1f1;
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
}

footer h2 {
  display: none;
}

footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

footer a {
  text-decoration: none;
  color: #007b5e;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 2px solid #e0e0e0;
    margin-top: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Estilos para la sección cluster-navigation */

.cluster-navigation {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 2rem;
}

.cluster-navigation h2 {
  color: #007b5e;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cluster-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-left: 0;
  justify-content: space-between;
}

.cluster-navigation ul li {
  flex: 1 1 calc(33% - 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cluster-navigation ul li:hover {
  transform: translateY(-5px);
}

.cluster-navigation ul li a {
  color: #007b5e;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.cluster-navigation ul li a:hover {
  text-decoration: underline;
}

.cluster-navigation ul li img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Responsive para cluster-navigation */
@media (max-width: 768px) {
  .cluster-navigation ul li {
    flex: 1 1 100%;
  }
}
