/* Fuente */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #e0f7fa;
}
::-webkit-scrollbar-thumb {
  background-color: #81d4fa;
  border-radius: 5px;
}

/* Encabezado */
header {
  background-color: #eceff1;
  border-bottom: 1px solid #b0bec5;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.logo {
  height: 50px;
}
.social-icons a {
  color: #01579b;
  font-size: 26px;
  margin-left: 15px;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #0288d1;
}

/* Navegación */
.main-nav {
  background-color: #cfd8dc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #01579b;
}
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.menu li a {
  text-decoration: none;
  color: #01579b;
  font-weight: bold;
}
.menu li a i {
  margin-right: 5px;
}
.search-form {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.search-form input {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #90a4ae;
}
.search-form button {
  background-color: #81d4fa;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }
  .menu.active {
    display: flex;
  }
  .search-form {
    width: 100%;
    justify-content: center;
  }
  .content-wrapper {
    flex-direction: column;
  }
  .sidebar, .main-content {
    width: 100%;
  }
  .image-row img {
    width: 100%;
  }
}

/* Banner */
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Estructura de columnas */
.content-wrapper {
  display: flex;
  padding: 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.sidebar {
  width: 25%;
}
.adsense {
  background-color: #e3f2fd;
  padding: 20px;
  text-align: center;
  border: 1px dashed #90caf9;
}
.main-content {
  width: 75%;
}

/* Bloques de contenido */
.content-block {
  margin-bottom: 40px;
}
.content-block h2 {
  font-size: 22px;
  color: #0277bd;
  border-bottom: 1px solid #b3e5fc;
  padding-bottom: 5px;
}
.image-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.image-row img {
  width: calc(25% - 10px);
  height: auto;
  border-radius: 5px;
}

/* Footer */
footer {
  background-color: #cfd8dc;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: #455a64;
  border-top: 1px solid #b0bec5;
}

/* Tipografías */
h1, h2, h3 {
  font-size: 22px;
}
h4, h5, h6 {
  font-size: 20px;
}
p, li, blockquote {
  font-size: 16px;
}

/* Citas */
blockquote {
  font-style: italic;
  background-color: #eceff1;
  border-left: 4px solid #81d4fa;
  padding: 10px 20px;
  margin: 20px 0;
}

/* Resaltado */
.highlight-yellow {
  background-color: yellow;
  font-weight: bold;
}
.highlight-blue {
  background-color: #b3e5fc;
  font-weight: bold;
}

/* Formularios */
input, textarea, select {
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #90a4ae;
  border-radius: 4px;
  width: 100%;
}
button {
  background-color: #81d4fa;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Listas */
ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
ul li::marker {
  color: #0288d1;
}
ol li::marker {
  color: #0288d1;
  font-weight: bold;
}

/* Botón scroll-top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0288d1;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
