html{
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 16px;
}

*,
*:after,
*:before{
  box-sizing: inherit;
}

body{
  margin:0;
  overflow-x: hidden;
}

a{
  color:#01579b;
  transition:color 0.3s ease;
}

a:hover{
  color:#00b0ff;
}

h1{
  text-align: center;
}

img{
  max-width: 100%;
  height: auto;
}

.error{
  padding: 1rem;
  font-size: 150%;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background-color: #dc3545;
}

.error mark{
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: inline-block;
  color: #fff;
  background-color: #01579b;

}

.form-search{
  margin: auto;
  text-align: center;
}

.form-search input{
  display: block;
  margin: auto;
  padding: 0.25rem;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.grid-fluid{
  margin: 1rem auto;
  max-width: 90%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.header{
  padding: 0.5rem;
  position: sticky;
  top: 0;
  text-align: center;
  background-color: #fff;
}

.header > *{
  margin: 1rem auto;
}

/* .loader{
  margin: 1rem auto;
  display: block;
  width: 4rem;
  height: 4rem;
} */

.loader-background {
  width: 100%;
  height: 100%;
  position: relative; /* Cambiamos de absolute a relative */
  background-color: #eaeaea4a;
  z-index: 9999;
}

.loader{
  border: 16px solid #d4d4d4;
  border-top: 16px solid #3498db;
  border-bottom: 16px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
  position: absolute; /* cambiamos de fixed a absolute */
  /* Ponemos el valor de left, bottom, right y top en 0 */
  left: 0;
  bottom: 0; 
  right: 0; 
  top: 0; 
  margin: auto; /* Centramos vertical y horizontalmente */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.post-card{
  margin: 1rem auto;
  padding: 1rem auto;
  width: 80%;
  background-color: #eceff1;
}

.post-card p{
  display: flex;
  justify-content: space-between;
}

.post-page{
  margin: 1rem auto;
  padding: 1rem;
  width: 80%;
  background-color: #eceff1;
}

.post-page > aside{
  margin: auto;
  width: 60%;
  text-align: center;
}

.post-page > hr{
  border: thin solid #cfd8dc;
  margin: 2rem auto;
  width: 80%;
}

.post-page time{
  margin: 1rem auto;
  display: block;
}

.post-page > article{
  padding: 0 2rem;
}

.post-page img,
.post-page audio,
.post-page iframe,
.post-page video{
  margin: auto;
  display: block;
  max-width: 100%;
}