
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #222;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

h3 {
  height: 35px;
}

p {
  line-height: 1.8em;
  margin-bottom: 20px;
}

ul, ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

ul li,
ol li {
  margin-bottom: 0.5rem;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

ul li::marker,
ol li::marker {
  color: #0057b7; /* azul corporativo */
  font-weight: bold;
}


.logo-wrap {
  flex: 1;
}

.logo {
  height: 60px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar a {
  text-decoration: none;
  color: #0057b7;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #003f91;
}

.hero {
  background: #e9f2fc;
  text-align: center;
  padding: 5rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: #003f91;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #444;
}

.about {
  max-width: 1024px;
  margin: auto;
  padding: 3rem 2rem;
}

.about h2 {
  color: #0057b7;
  margin-bottom: 1rem;
}

.blogs {
  background: #f7f9fc;
  padding: 3rem 2rem;
}

.blogs h2 {
  color: #0057b7;
  text-align: center;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1024px;
  margin: auto;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card h3 {
  height: 35px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.blog-card img.favicon {
  /*position: absolute;*/
  float: left;
  margin-right: 10px;
  width: 20px;
  height: 20px;
}


footer {
  background: #003f91;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

footer a {
  color: #cce0ff;
  text-decoration: none;
  margin: 0 10px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}



.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #003f91;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner a {
  color: #cce0ff;
  text-decoration: underline;
}

.cookie-banner button {
  background: #ffcc00;
  border: none;
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s;
}

.cookie-banner button:hover {
  background: #e6b800;
}





/* NAV MENU */

    .menu-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
    }

    .menu-toggle span {
      width: 25px;
      height: 3px;
      background: #0057b7;
      display: block;
    }

    @media (max-width: 768px) {
      .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background: white;
        border: 1px solid #ddd;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 999;
      }

      .navbar ul.active {
        display: flex;
      }

      .menu-toggle {
        display: flex;
      }
    }

    .menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0057b7;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .navbar {
    position: absolute;
    top: 80px;
    right: 0;
    background: white;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #ddd;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .navbar.active {
    display: flex;
  }
}

/* Botón hamburguesa visible solo en móvil */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #0057b7;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    width: 200px;
    padding: 1rem;
    display: none;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar.active ul {
    display: flex;
  }
}
