* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
background-image: url(../imagenes/fondo.jpg);
background-attachment: fixed;
background-repeat: no-repeat;
  color: #ffffff;
}

.menu {
  background: #000;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titulo {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

.menu ul {

  list-style: none;
  display: flex;
  gap: 25px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.menu a:hover {
  color: crimson;
}
   header a {
       font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
  }
  .titulo{
           font-family: 'Luckiest Guy', cursive;
    color: #fff;
    text-shadow: 3px 3px 0 #000;
         letter-spacing: 1.5px;
  }
/* Grid */

.grid {

  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  align-items: stretch; 

}

/* Card */

.card {

  background-color: #141c24;
  border-radius: 10px;
  overflow: hidden;
  display: flex;              /* 🔥 importante */
  flex-direction: column;     /* 🔥 importante */
  height: 100%;               /* 🔥 importante */
  transition: transform 0.3s ease;

}

.card:hover {
  transform: translateY(-6px);
}

.cover {
  position: relative;
}

.cover img {
  width: 100%;
  display: block;
}

.chapter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #007bff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 5px;
}

.card h3 {

  padding: 15px;
  font-size: 16px;
  display:-webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
  overflow: hidden;

}

.rating {
  padding: 0 15px;
  color: #ffc107;
  font-size: 14px;
}

.rating span {
  color: #ffffff;
  margin-left: 8px;
}

.meta {
   margin-top: auto;   /* 🔥 esto alinea todas las cards */
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #9aa4af;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;   
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
}
 footer {
    background-image: url(../imagenes/imagen.jpeg);
  color: #ccc;
  text-align: center;
  font-size: 15px;
  margin-top: auto;  
   padding: 25px 15px;
   border-top: 4px solid crimson;
     overflow: hidden;
       background-repeat: repeat-x;
       position: relative;
    }
    footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
footer * {
  position: relative;
  z-index: 2;
}
   .redes{
    font-family: "Bangers";
  color: rgb(255, 255, 255);
  text-shadow: 3px 3px 0 #000;
  margin-bottom: 30px;
  font-size: 4em;
  letter-spacing: 2px;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
     
}
.sigue{
         color: #fff;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  font-family: "Bangers", cursive;
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 10px;
 
  
}
