.elementor-204 .elementor-element.elementor-element-4d9dea9f{--display:flex;--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--align-items:stretch;--gap:50px 50px;--row-gap:50px;--column-gap:50px;--margin-top:5%;--margin-bottom:0%;--margin-left:0%;--margin-right:0%;--padding-top:0%;--padding-bottom:0%;--padding-left:5%;--padding-right:5%;}.elementor-204 .elementor-element.elementor-element-65e17194{--display:flex;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );text-transform:var( --e-global-typography-primary-text-transform );font-style:var( --e-global-typography-primary-font-style );text-decoration:var( --e-global-typography-primary-text-decoration );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );color:var( --e-global-color-primary );}.elementor-204 .elementor-element.elementor-element-7ce8bd7b{text-align:center;}.elementor-204 .elementor-element.elementor-element-7ce8bd7b .elementor-heading-title{font-family:var( --e-global-typography-628465a-font-family ), Sans-serif;font-size:var( --e-global-typography-628465a-font-size );font-weight:var( --e-global-typography-628465a-font-weight );text-transform:var( --e-global-typography-628465a-text-transform );font-style:var( --e-global-typography-628465a-font-style );text-decoration:var( --e-global-typography-628465a-text-decoration );line-height:var( --e-global-typography-628465a-line-height );letter-spacing:var( --e-global-typography-628465a-letter-spacing );}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-size:var( --e-global-typography-text-font-size );font-weight:var( --e-global-typography-text-font-weight );text-transform:var( --e-global-typography-text-text-transform );font-style:var( --e-global-typography-text-font-style );text-decoration:var( --e-global-typography-text-text-decoration );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-204 .elementor-element.elementor-element-5cde8d14{text-align:center;font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-size:var( --e-global-typography-text-font-size );font-weight:var( --e-global-typography-text-font-weight );text-transform:var( --e-global-typography-text-text-transform );font-style:var( --e-global-typography-text-font-style );text-decoration:var( --e-global-typography-text-text-decoration );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-204 .elementor-element.elementor-element-2b896e9{--display:flex;--flex-direction:column;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--align-items:stretch;--gap:50px 50px;--row-gap:50px;--column-gap:50px;--margin-top:5%;--margin-bottom:0%;--margin-left:0%;--margin-right:0%;--padding-top:0%;--padding-bottom:0%;--padding-left:5%;--padding-right:5%;}@media(max-width:1024px){.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-204 .elementor-element.elementor-element-7ce8bd7b .elementor-heading-title{font-size:var( --e-global-typography-628465a-font-size );line-height:var( --e-global-typography-628465a-line-height );letter-spacing:var( --e-global-typography-628465a-letter-spacing );}.elementor-widget-text-editor{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-204 .elementor-element.elementor-element-5cde8d14{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}}@media(max-width:767px){.elementor-204 .elementor-element.elementor-element-4d9dea9f{--margin-top:10%;--margin-bottom:0%;--margin-left:0%;--margin-right:0%;}.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );letter-spacing:var( --e-global-typography-primary-letter-spacing );word-spacing:var( --e-global-typography-primary-word-spacing );}.elementor-204 .elementor-element.elementor-element-7ce8bd7b .elementor-heading-title{font-size:var( --e-global-typography-628465a-font-size );line-height:var( --e-global-typography-628465a-line-height );letter-spacing:var( --e-global-typography-628465a-letter-spacing );}.elementor-widget-text-editor{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-204 .elementor-element.elementor-element-5cde8d14{font-size:var( --e-global-typography-text-font-size );line-height:var( --e-global-typography-text-line-height );letter-spacing:var( --e-global-typography-text-letter-spacing );word-spacing:var( --e-global-typography-text-word-spacing );}.elementor-204 .elementor-element.elementor-element-2b896e9{--margin-top:10%;--margin-bottom:0%;--margin-left:0%;--margin-right:0%;}}@media(min-width:768px){.elementor-204 .elementor-element.elementor-element-65e17194{--width:100%;}}/* Start custom CSS for shortcode, class: .elementor-element-e744ae7 *//* Contenedor grid */
.lista-libros {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .lista-libros {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tarjeta libro */
.libro-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.libro-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Imagen */
.libro-img img {
    border-radius: 8px;
    max-height: 220px;
    object-fit: cover;
    width: auto;
    margin: 0 auto 15px;
    display: block;
}

/* Título */
.libro-titulo {
    font-size: 2.1rem;
    font-weight: 600;
    margin: 10px 0;
    color: #222;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.libro-titulo a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.libro-titulo a:hover {
    color: #c62828; /* rojo elegante */
}

/* Autor */
.libro-autor {
    font-size: 0.9rem;
    color: #555;
    margin-top: 8px;
}

/* Bloques por año */
.titulo-ano {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1a1a1a;
    border-left: 5px solid #c62828;
    padding-left: 10px;
}

/* Buscador */
#libros-search-form {
    margin: 25px 0 40px;
    text-align: center;
}

#libros-search-form input[type="text"] {
    padding: 14px 15px;
    width: 300px;
    max-width: 90%;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

#libros-search-form input[type="text"]:focus {
    border-color: #c62828;
    outline: none;
    box-shadow: 0 0 6px rgba(198, 40, 40, 0.2);
}

#libros-search-form button {
    padding: 20px 18px;
    margin-left: 10px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#libros-search-form button:hover {
    background: #a61b1b;
}/* End custom CSS */