/* GRID WRAPPER */
.descargas-wrap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* ITEM */
.item-grid {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.item-grid:hover {
  transform: translateY(-4px);
}

/* IMAGEN */
.item-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
}

/* CONTENIDO */
.item-grid .info {
  padding: 15px;
  text-align: center;
}

.item-grid h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.item-grid h4 a {
  color: #222;
  text-decoration: none;
}

.item-grid h4 a:hover {
  text-decoration: underline;
}

.item-grid .precio {
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

/* BOTÓN */
.item-grid .btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.item-grid .btn:hover {
  background-color: #1d4ed8;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .descargas-wrap-grid {
    grid-template-columns: 1fr;
  }
}


.edd-relacionadas {
    margin-top: 40px;
}

.edd-relacionadas h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #222;
}

/* GRID */
.descargas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.item-grid {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.item-grid img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.item-grid .precio {
    font-weight: bold;
    color: #2563eb;
    margin: 10px 0;
}

/* LISTA */
.descargas-lista {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.item-lista {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.item-lista img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.item-lista .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-lista .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.item-lista h4 {
    font-size: 1.2rem;
    color: #111;
}

.item-lista .extracto {
    font-size: 0.95rem;
    color: #444;
}

.item-lista .categoria {
    font-size: 0.8rem;
    background: #f97316;
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 10px;
    display: inline-block;
}

/* Botón */
.edd-relacionadas .btn {
    background: #2563eb;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.edd-relacionadas .btn:hover {
    background-color: #1d4ed8;
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .item-lista {
        flex-direction: column;
        text-align: center;
    }

    .item-lista img {
        width: 100%;
    }

    .item-lista .info {
        align-items: center;
    }
}


/* Lista */
.item-lista {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

.item-lista img {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.item-lista .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0;
}

.item-lista .meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.item-lista h4 {
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 2px;
    margin-top: 2px;
}

.item-lista .extracto {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}

.item-lista .categoria {
    display: inline-block;
    background-color: #f97316;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.85rem;
    border-radius: 30px;
    font-weight: bold;
    width: fit-content;
}

.item-lista .ventas {
    color: #f97316;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-lista .btn {
    background: #2563eb;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.item-lista .btn:hover {
    background: #1d4ed8;
     color: #fff !important;
}

@media (max-width: 768px) {
    .item-lista {
        flex-direction: column;
        text-align: center;
    }

    .item-lista img {
        width: 100%;
    }

    .item-lista .info {
        align-items: center;
    }

    .item-lista .meta {
        justify-content: center;
    }
}

/* Título con enlace */
.item-lista h4 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-lista h4 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Título en modo grid */
.item-grid h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.item-grid h4 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-grid h4 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Botón blanco en modo grid */
.item-grid .btn {
    background-color: #2563eb;
    color: white !important;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.item-grid .btn:hover {
    background-color: #1d4ed8;
    color: white !important;
}
