/*
Theme Name: Laborum Test
Description: Adaptación del tema GeneratePress para Ediciones Laborum.
Template: generatepress
Version: 1.0.0
*/

@import url("../generatepress/style.css");

/* Fondo de libros revisados */
.libro-revisado {
    background-color: #ffffff; /* blanco */
}

/* Fondo de libros no revisados */
.libro-no-revisado {
    background-color: #fff3e0; /* naranja muy suave */
}

/* Ajustes visuales */
.libro-card {
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    transition: background 0.3s;
}

/* ============================= */
/* BOTONES GENERALES */
/* ============================= */

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 5px 20px;
    align-content
}


/* ============================= */
/* RSS AGREGATOR */
/* ============================= */

ul.rss-agregator {
    list-style-type: none;
}

li.feed-item > a {
    padding: 2px;
    font-size: 16px;
    color: #006428;
}

li.feed-item > a:hover {
    color: #ffffff;
    background-color: #006428;
    border-radius: 6px;
}

li.feed-item {
    border-bottom: 1px solid #aaaaaa;
    /*
    padding: 20px 0;
    list-style-image: url("http://laborum.es/wp-content/uploads/2018/03/asterisco-e1521024286406.png");
    */
}


/* ============================= */
/* WOOCOMMERCE PRODUCTOS */
/* ============================= */

.woocommerce ul.products li.product a img {
    margin: 0px 10px 1em;
    box-shadow: none;
    height: auto;
    display: block;
    width: 20%;
    float: left;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    margin: 0px 3.8% 2.992em 0px;
    padding: 0px;
    position: relative;
    float: left;
    width: 100%;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    border: 1px solid #000;
    border-radius: 8px;
    padding: 10px 0px;
}

.woocommerce ul.products li.product h3 {
    font-size: 1.5em;
}

.woocommerce ul.products li.product .price {
    color: #000;
    font-weight: 400;
    margin: 0 14px 14px 14px;
    font-size: 20px;
    float: left;
}

.woocommerce ul.products li.product .button {
    margin: 0 14px 14px 14px;
    background: #a38342;
    color: #fff;
}

.woocommerce ul.products li.product .button:hover {
    background: #a31c15;
}

.woocommerce table.shop_attributes {
    border:0;
    border-top:1px dotted rgba(0,0,0,.1);
    margin-bottom:1.618em;
    width:75%;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color:#E6A622;
    color:#fff
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color:#5C070B;
    color:#fff
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    color:#FFF;
    background-color:#696969;
}


/* ============================= */
/* TEXTOS GENERALES */
/* ============================= */

.wpb_area_title {
    margin: 0 0 36px 0;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
}

mark,
ins {
    text-decoration: none;
    background: #fff;
}

ins {
    background: #f00;
}

.widget ul li {
    list-style: circle;
}


/* ============================= */
/* COOKIES */
/* ============================= */

#cookie-law-info-again {
    border-radius: 10px 10px 0px 0px;
    right: 5px;
}


/* ============================= */
/* CONTENEDOR LIBRO */
/* ============================= */

.contenedor-libro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bloque-superior {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.bloque-superior {
    margin-bottom: 40px;
}

.bloque-superior,
.bloque-superior .col-izquierda,
.bloque-superior .col-derecha {
    position: relative;
}

.col-izquierda {
    width: 35%;
}

.col-izquierda img {
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
//    box-shadow: 10px 10px 20px #E7A723;
}

.col-derecha {
    width: 65%;
}

.col-derecha p {
    margin-bottom: 6px;
}


/* ============================= */
/* SUBTITULOS LIBRO */
/* ============================= */

.libro-subtitulo {
    font-size: 1.8rem;
    font-weight: 200;
    margin-bottom: 5px;
}

.libro-edicion {
    font-size: 1.05rem;
    font-weight: 100;
    color: #555;
    margin-top: 0;
    margin-bottom: 20px;
}


/* ============================= */
/* BOTONES */
/* ============================= */

.boton {
    display: inline-block;
    padding: 12px 20px;
    background: #111;
    color: #fff;
    text-decoration: none;
    margin-top: 20px;
}

.boton-pod {
    display:inline-block;
    background:#2d6cdf;
    color:white;
    padding:10px 16px;
    border-radius:4px;
    text-decoration:none;
    margin-top:6px;
}

.sin-stock {
    color:#a00;
    font-size:0.95em;
    margin-top:8px;
}


/* ============================= */
/* BOTONES OPEN ACCESS */
/* ============================= */

.boton-oa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 5px 5px 0 0;
    padding: 6px 12px;
    background: #fff;
    color: #f79c3c;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.boton-oa:hover {
    background: #000;
    color: #fff;
}

.oa-icon {
    height: 20px;
    display: inline-block;
}


/* ============================= */
/* BOTONES WOOCOMMERCE */
/* ============================= */

.boton-woo-papel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 5px 5px 0 0;
    background: #0071a1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.boton-woo-papel:hover {
    background: #000;
    color: #fff;
}

.boton-woo-digital {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 5px 5px 0 0;
    background: #14a100;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.boton-woo-digital:hover {
    background: #000;
    color: #fff;
}

.precio-woo {
    font-weight: bold;
    margin-left: 6px;
    font-size: 0.95em;
}


/* ============================= */
/* BOTONES DISTRIBUCIÓN */
/* ============================= */

.botonera-paises {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.boton-pais {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #E7A723;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.boton-pais:hover {
    background: #444;
    transform: translateY(-2px);
}

.boton-pais .bandera {
    font-size: 18px;
}


/* ============================= */
/* ORCID */
/* ============================= */

.orcid-icon {
    width: 16px;
    height: 16px;
}

.orcid-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}


/* ============================= */
/* AUTORES */
/* ============================= */

.foto-autor {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #E7A723;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.contenedor-autor,
.contenedor-autores {
    margin: 6rem;
}

.contenedor-autor {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.autor-info {
    flex: 1;
}

.autor-libros {
    margin-top: 2rem;
}

.autor-libros h3 {
    color: #E7A723;
    font-size: 0.8em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.autor-libros ul {
    list-style: none;
    padding-left: 0;
}

.autor-libros li {
    margin-bottom: 0.5rem;
    font-size: 1em;
}

.autor-libros li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.autor-libros li a:hover {
    color: #E7A723;
}

.autor-cargo {
    font-style: italic;
    color: #666;
}


/* ============================= */
/* GRID LIBROS */
/* ============================= */

.libros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.libro-card {
//    width: 150px;
    border: 1px solid #E7A723;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s;
}

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

.libro-card a {
    text-decoration: none;
    color: inherit;
}

.libro-portada {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.libro-info {
    padding: 0.5rem;
}

.libro-info h4 {
    font-size: 1em;
    margin: 0 0 0.3rem 0;
    color: #333;
}

.libro-rol,
.libro-fecha,
.libro-editorial {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}


/* ============================= */
/* GRID AUTORES */
/* ============================= */

.grid-autores {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:30px;
    margin-top:30px;
}

.tarjeta-autor {
    text-align:center;
    text-decoration:none;
    color:#000;
}

.autor-foto img {
    width:110px;
    height:110px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #E7A723;
}

.autor-nombre {
    margin-top:10px;
    font-size:14px;
    line-height:1.2;
}

.paginacion-autores {
    margin-top:40px;
    text-align:center;
}


/* ============================= */
/* PESTAÑAS LIBRO */
/* ============================= */

.tabs-libro {
    margin-top: 30px;
    border-bottom: 2px solid #d9d9d9;
    padding-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
}

.tabs-libro .tab-btn {
    color: #fff;
    margin-right: 2px;
    padding: 10px 16px;
    padding-left: 16px;
    font-weight: 600;
    border-radius: 5px 30px 0 0;
    border: none;
    cursor: pointer;
    transition: 0.15s background;
}

.tabs-libro .tab-btn:hover {
    background: #333;
}

.tabs-libro .tab-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0px -2px 0px #1a1a1a inset;
    border-bottom: 2px solid #fff;
}


/* ============================= */
/* CONTENIDO PESTAÑAS */
/* ============================= */

.tab-contents {
    clear: both;
    overflow: hidden;
    margin-top: 20px;
}

.tab-content {
    border: 1px solid #d9d9d9;
    padding: 22px;
    margin-top: -2px;
    background: #fff;
    border-radius: 0 4px 4px 4px;
    width: 100%;
}

.tab-content p {
    margin: 0 0 12px 0;
}

.tab-content a {
    display: inline-block;
    margin-right: 10px;
}

.tab-btn {
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
}


/* ============================= */
/* ICONOS PESTAÑAS */
/* ============================= */

.tabs-libro .tab-btn {
    position: relative;
    padding-left: 28px;
}

.tabs-libro .tab-btn:nth-child(1)::before {
    content: "📖";
    position: initial;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.tabs-libro .tab-btn:nth-child(2)::before {
    content: "👥";
    position: initial;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.tabs-libro .tab-btn:nth-child(3)::before {
    content: "📑";
    position: initial;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.tabs-libro .tab-btn:nth-child(4)::before {
    content: "🌍";
    position: initial;
    left:48px;
    top: 50%;
    transform: translateY(-50%);
}


/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

    .bloque-superior {
        display: block;
    }

    .bloque-superior .col-izquierda,
    .bloque-superior .col-derecha {
        width: 100%;
        float: none;
    }

}


/* ============================= */
/* Catálogo Libros */
/* ============================= */

.catalogo-layout {
    display: flex;
    gap: 40px;
}

.catalogo-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.catalogo-sidebar ul {
    list-style: none;
    padding: 0;
}

.catalogo-sidebar li {
    margin-bottom: 6px;
}

.catalogo-libros {
    flex: 1;
}

.libros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.libro-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
}

.libro-imagen img {
    width: 140px;
    height: auto;
}

.libro-info {
    flex: 1;
}

.libro-titulo {
    font-weight: 700; /* negrita */
    color: #9C151A; /* color corporativo */
    font-size: 1.1rem; /* puedes ajustar tamaño si quieres */
    margin-bottom: 0.3rem; /* pequeño espacio debajo */
}
.libro-info .libro-titulo {
    font-weight: 700; /* negrita */
    color: #9C151A; /* color corporativo */
    font-size: 1.1rem; /* puedes ajustar tamaño si quieres */
    margin-bottom: 0.3rem; /* pequeño espacio debajo */
}
.libro-subtitulo {
    font-size: 15px;
    color: #666;
    margin-bottom: 6px;
}

.libro-autores,
.libro-coleccion,
.libro-materia,
.libro-anio {
    font-size: 14px;
    margin-bottom: 4px;
}

.libro-formatos {
    margin-top: 8px;
    font-size: 18px;
}

.icono-formato {
    margin-right: 6px;
}

/* Color corporativo */
:root {
    --rojo-portada: #9C151A;
}

/* Contenedor de libros */
.contenedor-autor .libros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Tarjeta de libro */
.contenedor-autor .libro-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    background: #fff;
    transition: transform 0.2s;
}

.contenedor-autor .libro-card:hover {
    transform: translateY(-3px);
}

/* Portadas */
.contenedor-autor .libro-card img.libro-portada {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Iconos (papel, digital, open access) */
.contenedor-autor .libro-card img.libro-icono {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-left: 3px;
}

/* Info de libro */
.contenedor-autor .libro-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Título */
.contenedor-autor .libro-titulo {
    color: var(--rojo-portada);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
}

/* Subtítulo */
.contenedor-autor .libro-subtitulo {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 0.3rem 0;
}

/* Colección y materia */
.contenedor-autor .libro-coleccion-materia {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.3rem 0;
}

/* Fecha y edición */
.contenedor-autor .libro-fecha-edicion {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.5rem 0;
}

/* Iconos */
.contenedor-autor .libro-iconos img {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

/* estilos.css o en el head de single-autor.php */
.autor-icono {
    height: 24px;      /* altura fija */
    width: auto;       /* ancho proporcional */
    margin-right: 5px; /* separación entre iconos */
    vertical-align: middle;
}

.libros-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.libro-item {
    flex: 0 0 calc(50% - 10px);
    display: flex;
    gap: 1rem;
    padding: 10px;
    border-radius: 4px;
}

.libro-revisado {
    background-color: #ffffff;
}

.libro-no-revisado {
    background-color: #FFE5B4; /* naranja muy suave */
}

/* Ajusta imágenes y títulos */
.libro-item img {
    max-width: 120px;
    height: auto;
}
.libro-titulo a {
    color: #9C151A;
    font-weight: 600;
}