body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    /*background-color: #fff;*/
   /* box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
}

.logo { font-weight: 600; font-size: 1.5rem; color: #8b4513; }

.menu { display: flex; list-style: none; gap: 20px; margin: 0; }
.menu a { text-decoration: none; color: #333; font-weight: 600; }
.menu a.active { color: #8b4513; font-weight: 600; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }
.recursos-header {
    text-align: center;
    padding: 3rem 1rem;
   /* background-color: #8b4513;*/
   background-color: #e58dd8;;
    color: white;
}
.recursos-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.search-container input {
    width: 90%;
    max-width: 500px;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    outline: none;
}
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.recurso-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    transition: transform 0.2s;
}
.recurso-card:hover { transform: translateY(-5px); }
.recurso-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #fdf2e9;
    color: #e67e22;
    padding: 5px 10px;
    border-radius: 5px;
    width: fit-content;
    margin-bottom: 15px;
}
.recurso-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #2c3e50;
    min-height: 50px;
}
.autora {
    font-size: 0.85rem;
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 10px;
}
.descripcion {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.btn-leer {
    text-align: center;
    background:#bd54ab;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-leer:hover { background: #f0b3e6; }
@media (max-width: 768px) {
    .menu { display: none; flex-direction: column; width: 100%; position: absolute; top: 60px; left: 0; background: white; padding: 20px; }
    .menu.active { display: flex; }
    .menu-toggle { display: block; }
}

footer {
     text-align: left; padding-top: 40px; color: #777; font-size: 0.9rem; }

.capa-recurso {
    width: 100%;            
    height: 180px;           
    object-fit: cover;     
    border-radius: 8px;   
    margin: 10px 0 15px 0; 
    display: block;
}
.recurso-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;         
}
.capa-recurso:hover {
    opacity: 0.9;
    transition: 0.3s;
}
p {
    letter-spacing: normal;
    word-spacing: normal;
    text-align: justify;
    hyphens: auto;
}