/*bloques html configurables para ocultar dejar display none para mostrar comentar display none*/
.oculto{
display:none;
}

/*html contenido dinamico despues de materiales destacados*/
.destacado-dinamico__contenido {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: #f1f1f1;
    border-radius: 32px;
    padding: 2rem;
    overflow: hidden;
}

.destacado-dinamico__texto {
    flex: 1;
    padding: 1rem 2rem;
}

.destacado-dinamico__texto h2 {
    margin: 0 0 1.5rem;
    color: #1c4d8c;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1;
}

.destacado-dinamico__texto p {
    max-width: 420px;
    margin-bottom: 2rem;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.destacado-dinamico__boton {
    display: inline-block;
    padding: 0.9rem 3rem;
    background: #0ea5e9;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.destacado-dinamico__boton:hover {
    background: #0284c7;
}
.destacado-dinamico__media {
    flex: 1.2;
    position: relative;
}

.destacado-dinamico__media img,
.destacado-dinamico__video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
}

.destacado-dinamico__media img {
    display: block;
    object-fit: cover;
}

.destacado-dinamico__video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Líneas decorativas opcionales */

.destacado-dinamico__media::before,
.destacado-dinamico__media::after {
    content: "";
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
}

.destacado-dinamico__media::before {
    width: 65%;
    height: 110%;
    top: -5%;
    left: -10%;
}

.destacado-dinamico__media::after {
    width: 120%;
    height: 80%;
    top: 10%;
    right: -40%;
}

/* Responsive */

@media (max-width: 768px) {

    .destacado-dinamico__contenido {
        flex-direction: column;
        gap: 2rem;
    }

    .destacado-dinamico__texto {
        padding: 0;
    }

    .destacado-dinamico__texto p {
        max-width: 100%;
    }

    .destacado-dinamico__media {
        width: 100%;
    }
}

/*CSS ESPECIFICO BANCO IMAGENES FACETED BROWSE*/
/* Ocultar el nombre del recurso */
.resource-list .item.resource .resource-name,
.resource-list.grid .item.resource .resource-name,
.resource-list.list .item.resource .resource-name {
  display: none;
}

.faceted-browse-page .resource-list .resource {
    flex-wrap: wrap;
    padding:  0 !important;
}

/* Contenedor de la grilla */
ul.resource-list {
  justify-content: center; 
  display: grid!important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 140px));
  gap: 0 5px!important;
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Cada ítem de la grilla sin márgenes ni bordes */
li.item.resource {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
}

/* Estilos para las imágenes */
li.item.resource img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Si la imagen está dentro de un enlace, evitar estilos heredados */
li.item.resource a {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}
/* FIN CSS ESPECIFICO BANCO IMAGENES FACETED BROWSE*/
/* ===== BUSCADOR INICIAL (A.K.A LUPITA)  ======*/
/* Contenedor principal de la sección previa al buscador */
.frase-buscador-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2.5rem auto 1.5rem auto;
  margin-bottom:0;
  padding: 0 1rem;
  max-width: 800px;
}

/* Estilo del texto principal */
.frase-buscador-texto {
  font-size: 1.75rem;
  font-weight: 700;
  color: #003987; /* Azul oscuro institucional de MAMPA */
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

/* Destacado "primera búsqueda" acorde a la paleta */
.frase-buscador-texto span {
  /* Gradiente entre el celeste vibrante y el azul de la marca */
  color: #00b2e3;
  font-weight: 700;
}

/* Línea decorativa sutil con destello en los extremos */
.frase-buscador-decoracion {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  position: relative;
}

.frase-buscador-decoracion::before {
  content: '';
  width: 100%;
  height: 2px;
  /* Degradado suave que se desvanece en los bordes y resalta al centro */
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    #3aa5ed 30%, 
    #121e42 50%, 
    #3aa5ed 70%, 
    transparent 100%
  );
  border-radius: 2px;
  opacity: 0.75;
}

/* Rombo central sutil en lugar del punto simple */
.frase-buscador-decoracion .punto {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #3aa5ed;
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(58, 165, 237, 0.6);
}
/* Contenedor principal de la búsqueda */
.jumbotron-search {
  text-align: center; /* Centra el enlace 'Personalizá tu búsqueda' */
  display:flex;
  flex-direction:column;
   align-items:center;
}

/* Estilo para el <form> que actuará como la "caja" */
.jumbotron-search form {
  display: flex;             /* Activa Flexbox para alinear input y button */
  align-items: center;       /* Centra verticalmente el input y el botón */
  width: 100%;                /* Ancho deseado para la caja (ajusta!) */
  max-width: 600px;          /* Ancho máximo para evitar que sea demasiado largo */
  margin: 0 auto 15px auto;  /* Centra la caja horizontalmente (auto en izq/der), añade margen inferior de 15px */
  border: 1px solid #ccc;    /* Borde visible de la caja */
  border-radius: 20px;        /* Bordes redondeados (opcional) */
  padding: 0 10px;              /* Espacio interior de la caja */
  overflow: hidden;          /* Evita que el contenido se salga (útil con border-radius) */
  background-color: #f4f4f4;
  flex-direction: row-reverse; /* invierte el orden , lupa primero luego caja de busqueda*/
}

/* Estilo para el campo de búsqueda <input> */
.jumbotron-search form input[type="text"] { /* Selector específico para el input dentro del form */
  margin-bottom: 0px;
  flex-grow: 1;              /* Hace que el input ocupe el espacio disponible */
  border: none;              /* Quita el borde por defecto */
  outline: none;             /* Quita el contorno al hacer clic/focus */
  padding: 2px 10px;             /* Espaciado interno */
  font-size: 1rem;           /* Tamaño de letra */
  line-height: 1;      /* Fuerza la altura de línea a ser igual al font-size */
  min-width: 100px;          /* Ancho mínimo para que no se colapse */
  background-color: transparent; /* Fondo transparente para que se vea el del form si tuviera */
  height: 36px;
}

/*oculta placeholder en caja de busqueda*/
.jumbotron-search form input[type='text']::placeholder{
  color: transparent;
  opacity: 0;
}

/* Estilo para el botón de búsqueda <button> */
.jumbotron-search form button[type="submit"] { /* Selector específico para el botón dentro del form */
  border: none;              /* Sin borde */
  background-color: transparent; /* Sin fondo, para que se vea solo el icono */
  color: #555;               /* Color del icono (ajusta a tu diseño) */
  padding: 2px 15px;        /* Espaciado alrededor del icono */
  cursor: pointer;           /* Cursor de mano */
  font-size: 1rem;           /* Tamaño del icono (puede que necesites ajustarlo) */
  margin-left: 5px;          /* Pequeño margen a la izquierda del botón */
  line-height: 1;            /* Ayuda a alinear verticalmente el icono a veces */
}

/* Estilo para el icono dentro del botón (si necesitas ajustar su tamaño específicamente) */
.jumbotron-search form button .fa-search {
  display: block; /* Asegura que el icono se comporte bien */
}

/* Estilo para el enlace/botón 'Personalizá tu búsqueda' */
.jumbotron-search .btn_advanced-search {
  padding: 8px 15px;      /* Espaciado interno */
  background-color: #129bd8; /* Color de fondo (tomado de tu imagen, ajústalo) */
  color: white;           /* Color del texto */
  text-decoration: none;  /* Quita el subrayado del enlace */
  border-radius: 20px;     /* Bordes redondeados */
  border: none;           /* Sin borde */
  cursor: pointer;        /* Cursor de mano */
  font-size: 1rem;      /* Tamaño de fuente (ajusta) */
}

/* Efecto hover para el enlace 'Personalizá tu búsqueda' */
.jumbotron-search .btn_advanced-search:hover {
  background-color: #0a5d81; /* Un tono más oscuro para el hover */
}

/* Oculta el H2 si solo es para espacio (mejor usar márgenes/padding) */
.jumbotron-search h2 {
  /* Si el H2 con 'ㅤ' es solo un truco para espacio, considera eliminarlo del HTML */
  /* y ajustar el 'padding-top' de '.jumbotron-search' o el 'margin-top' de '.jumbotron-search form' */
   display: none; /* Descomenta esta línea para ocultarlo vía CSS */
   /* O alternativamente: */
   /* height: 0; */
   /* margin: 0; */
   /* padding: 0; */
   /* visibility: hidden; */

}


/* =======================================*/




*{
  font-family: "Raleway", system-ui!important;
  font-style: normal;
  font-optical-sizing: auto;
}
/*estilos aplicados a todos los titulos de las paginas de navegacion*/
.title{
 font-size:45px;
 font-weight: 700;
 color:#155180;
margin-top:25px;
}

.title::after{
height:0px;
}


.fa, [class*=o-icon-]:before, .fas {
    font-family: "Font Awesome 5 Free"!important;
    font-weight: 700;
}
#main-content {
     padding-top: 0;
}
.main-navigation {
  font-weight: 700;
}
.alignfull {
    margin-bottom: 0 ;
}
.banner__heading{
  font-weight: 700;
  font-size: 52px;
  margin-bottom:0px;
}
.banner__content{
  color:#155180
}
.banner__description{
 font-weight: 400;
 font-size: 30px;
}

.jumbotron-search h2{
 font-size:45px;
 font-weight: 700;
 color:#265058;
 margin-bottom:0;
}
.jumbotron-search button[type="submit"]:hover{
background-color:white;
}

.break.transparent{
margin: 25px;
}
/*a partir de aca css materiales destacados*/
.jardin-card{
    background:#f3f3f3;
    padding:38px 78px 48px 78px;
    border-radius:4px;
    width:100%;
    box-sizing:border-box;
}

.materiales-box{
    display:inline-flex;
    align-items:center;
    gap:12px;
    background:#ebe7df;
    padding:10px 18px 10px 14px;
    border-radius:10px;
    color:#004a99;
    font-family:"Raleway", sans-serif;
    font-size:22px;
    font-weight:700;
    line-height:1;
}

.materiales-box::before{
    content:"";
    width:18px;
    height:18px;
    border-radius:50%;
    background:#b34179;
    flex-shrink:0;
}

.jardin-texto{
    margin-top:34px;
    margin-left:60px;
    max-width:900px;
    color:#808080;
    font-family:"Raleway", sans-serif;
    font-size:20px;
    line-height:1.35;
}
/*banner materiales destacados*/
.image-banner .overlay-container {
    position: relative;
    min-height: 0;
    padding-block: 42px;
    padding-left:25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.banner img {
    z-index: 1;
}
.item-showcase{
display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    line-height: 1.5;
}
#item-showcase2{
}
.item-showcase__content{
justify-content: flex-start;
padding: 35px 20px;
border: 1px solid #cccccc;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
}

.item-showcase__text h3 {
min-height: 100px;
display: flex;
align-items: baseline;
gap: 5px;
}
.item-showcase__text h3 a {
font-weight:600;
font-size:30px;
line-height:1em;
color: #155180;
}

.item-showcase .resource.item {
     max-width: none;
     border: 0px solid #cccccc;
    padding: 35px 20px;
    border-radius:40px;
    border-radius:40px;
}
.item-showcase .resource.item img {
     display:none;
}

.item-showcase .resource.item .caption {
   //padding: 0 40px 15px;
}

.agregado-prueba {
    display: inline-block;
    width: 60px;
    height: 3px;
    background-color: #477974;
    margin-left: -2rem;
    flex-shrink: 0;
}
  
/*texto dentro del banner materiales destacados*/
.image-banner .overlay-container > h1 {
    font-weight: 700;
    margin: 0;
    color: #265058;
    font-size: 16px;
}
/*fin banner materiales destacados*/
.titulo_entrada_destacada{
font-weight:700;
font-size:36px;
line-height:1em;
}
.texto_entrada_destacada{
font-weight:400;
font-size:15px;
color:#3c3c3b
}

/*Pagina browse fichas*/
#tabla__copia-facet{
border-spacing: 0 15px;
}
#tabla__copia-facet  thead{
background-color: #ececec;
color: #333;
}
#tabla__copia-facet thead th {
    padding: .75rem;
    font-weight: 600;
    text-align: left;
}
#tabla__copia-facet  tr td{
padding:12px;
}
#tabla__copia-facet  tr td a{
display: flex;
align-items: center;
flex-wrap: wrap;
max-width: 20rem;
}

/* ════════════════════════════════════════
   METADATOS: VALORES HORIZONTALES AGRUPADOS
   Neutraliza los estilos de Freedom que
   desparraman los valores múltiples
   ════════════════════════════════════════ */

/* Contenedor de cada propiedad como flex */
.property {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: baseline;
}

/* Neutralizar el clearfix de Freedom */
.property::after {
  display: none !important;
  content: none !important;
}

/* Etiqueta: neutralizar float y darle un ancho fijo */
.property dt {
  float: none !important;
  flex: 0 0 auto;
  width: 170px; /* mantené el mismo ancho que Freedom */
  padding-right: 15px;
  margin-bottom: 0;
  font-weight: 700;
}

/* Cada valor: sin margin-left, en línea */
.property dd {
  float: none !important;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
  display: inline;
  word-break: break-word;
}

/* Separador ; entre valores (excepto el último) */
.property dd + dd::before {
  content: "ㅤㅤ";
  white-space: nowrap;
}

/* Si el valor es enlace, que herede el flujo inline */
.property dd a {
  display: inline;
}



/*A partir de aca css del footer*/
/* =========================================
   FOOTER TOP
   ========================================= */

.main-footer__top {
  background-color:#084986;
}

.main-footer__top-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    font-weight: 600;
    line-height: 1.5rem;
}

/* Evitar interferencias de estilos heredados */
.main-footer__top-container > div {
    position: relative;
    min-width: 0;
    margin-bottom: 0;
}


/* =========================================
   FILA 1: LOGO
   ========================================= */

.main-footer__logo-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    align-items: end;
    width: 100%;
    min-width: 0;

    margin-bottom: 10px;
}

.main-footer__logo-cell {
    grid-column: 1;
    width: 100%;
    min-width: 0;
}

.main-footer__logo-cell img {
    display: block;
    width: 100%;
    max-width: 300px;
    min-width: 200px;
    height: auto;
    box-sizing: border-box;
}


/* =========================================
   FILA 2: COLUMNAS DE TEXTO
   ========================================= */

.main-footer__content-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 24px;
    row-gap: 16px;
    width: 100%;
    justify-items:center;
}

.main-footer__content-row > div {
    width: auto;
    max-width: none !important;
    min-width: 0;

    margin-left: 0;
    margin-bottom: 1rem;

    flex: initial;
    box-sizing: border-box;
}

/* Evitar margen superior en el primer párrafo */
.main-footer__content-row p:first-child {
    margin-top: 0;
}


/* =========================================
   COMPATIBILIDAD CON .no-menu
   ========================================= */

.no-menu .main-footer__col1,
.no-menu .main-footer__col3 {
    width: auto;
    max-width: none !important;
    margin-left: 0;
}


/* =========================================
   ENLACES
   ========================================= */

.links_footer {
    color: rgba(153, 153, 153, 1) !important;
}

.mail-footer,
.mail-footer:hover {
    color: rgba(153, 153, 153, 1);
}

.link_accesoISEP {
    color: white !important;
}


/* =========================================
   FOOTER BOTTOM
   ========================================= */

.Footer_Bottom {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;

    margin-bottom: 40px;
}

.Footer_Bottom > div {
    position: relative;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.col_footer_logo {
    margin-top: 30px;
}

.col_footer_logo img {
    max-width: 250px;
    max-height: 50px;
}

.col_footer_logo_espacio {
    width: 40%;
}


/* =========================================
   TABLET
   1024px o menos
   ========================================= */

@media screen and (max-width: 1024px) {

    /* Logo en una sola columna */
    .main-footer__logo-row {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 16px;
    }

    .main-footer__logo-cell {
        grid-column: 1;
    }

    .main-footer__logo-cell img {
        min-width: 0;
    }

    /* Contenido apilado verticalmente */
    .main-footer__content-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .main-footer__content-row > div {
        width: 100%;
        margin-left: 0;
        margin-bottom: 0;
    }

    .no-menu .main-footer__col1,
    .no-menu .main-footer__col3 {
        width: 100%;
        margin-left: 0;
    }
}


/* =========================================
   MOBILE
   675px o menos
   ========================================= */

@media screen and (max-width: 675px) {

    /* Logo centrado */
    .main-footer__logo-cell {
        display: flex;
        justify-content: center;
    }

    /* Contenido centrado */
    .main-footer__content-row > div,
    .main-footer__col2s {
        text-align: center;
    }

    /* Logos institucionales inferiores */
    .col_footer_logo {
        display: flex;
        justify-content: center;
    }
}
.main-footer__top-container > div::before {
    content: none !important;
    display: none !important;
}

/*fin footer*/
.btn_advanced-search{
background-color: rgb(37, 122, 139);
    border: 2px solid;
    min-width: 222px !important;
    max-width: 250px;
    width:100%;
    height: 33px;
    display: flex;
    align-content: flex-start;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}
.advanced-search{
color: white!important;
}
a:has(span) {
  text-decoration: none;
}
/*busqueda facetada*/
.facets-container > legend{
font-size:36px!important;
 font-weight: 700!important;
 color:rgb(21,88,128)!important;
}
.faceted-browse-page #section-content .faceted-results img, .faceted-browse-page #section-content .resource-list img {
     max-height: 8rem!important; 
     max-width: 8rem; 
}
.faceted-browse-page #section-content table img + .resource-name {
    max-width: 90%;
}
#helper-text-expand-collapse{
background-color:#ececec;
cursor:default;
color:rgb(51, 51, 51);
font-weight:600;
}
#helper-text-expand-collapse:hover{
color:rgb(51, 51, 51);
background-color:#ececec;
}
#helper-text-expand-collapse:focus{
color:rgb(51, 51, 51);
}

/*Formulario de contacto pagina Contacto*/
.contact-form{
display: flex;
flex-direction: column;
align-items: center;
}
.field{
width: 50%;
box-shadow:none;
padding: 15px 25px;
 margin-bottom: 0;
}
.inputs > input{
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.inputs > textarea{
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.inputs > input[type="checkbox"]{
border-radius: 2px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
#submit{
width: 50%;
font-weight: 700;
background-color: #129bd8;
}
#submit:hover{
background-color: #0a5d81;
}
/*botones de paginacion de navegacion*/
.site-page-pagination{
display:none
}

/*fichas*/
.media-list{
display:none;
}

/*Restricted site login*/
.site-login  input[type="submit"]{
font-weight: 700;
background-color: rgb(37, 122, 139);
margin-left:25px;
}
.leyenda-login{
margin-left:25px;
}
.title-login{
font-size: 45px;
font-weight: 700;
color: #265058;
margin-top: 25px;
margin-left:25px;
}
.site-login  input[type="submit"]:hover{
background-color: #265058;
}
.forgot-password{
margin-left:25px;
}


/*MOBILE */

/*footer mobile*/
@media screen and (max-width: 675px) {
.main-footer__col2{
text-align:center; 
}
.col_footer_logo{
display:flex;
justify-content:center;
}

/*pagina libros mobile*/
.imagen-libros{
max-width:100%;
float:none!important;
}

/*contacto mobile*/
.field{
width: 100%;
}


}

/*FIN MOBILE*/

.link-pdf-embebido{
background: url('/files/asset/1db4b1d2456eb9e6121f07364b38d3c1d02dcefe.png'); 
background-size: contain; 
width: 30px; 
height: 30px; 
display: inline-block;
}
#pdf-page-num{
width:70px!important;
}
.media-render.file {
  position: relative;
margin-bottom:20px!important;
  //display: inline-block;
}

.media-render img {
  max-width: 280px;
  height: auto;
}

/* Pseudo-elemento que mostrará la imagen de descarga */
.media-render.file::after {
  content: "";
  position: relative;
  top: 10px;       /* Ajustar según dónde se quiera posicionar la imagen */
  right: 10px;     /* Ajustar según dónde se quiera posicionar la imagen */
  width: 70px;     /* Define el ancho de la imagen (ajustar según imagen) */
  height: 70px;    /* Define la altura de la imagen (ajustar según imagen) */
 // background: url('/files/asset/1db4b1d2456eb9e6121f07364b38d3c1d02dcefe.png') no-repeat center center;
/*background: url('/files/asset/descargar02.png') no-repeat center center;*/
  background-size: contain; /* Esto hace que la imagen se adapte sin distorsionarse */
  pointer-events: none;
  /* Opcional: agrega una transición para un efecto suave al interactuar */
  transition: opacity 0.3s;

  /* Aplica la sombra a la forma de la imagen */
  /*filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.4));*/
filter: drop-shadow(
    5px 5px 10px rgba(0, 0, 0, 0.6)
  ); /* Mayor desplazamiento, más desenfoque, más opacidad */
}

/*
.media-render.file:hover::after {
  opacity: 0.8;    /* Efecto opcional al pasar el cursor */
}*/

/*agregado pruebas nuevas css NO MODIFICAR ORDEN NI ELIMINAR DUPLICADOS*/
.faceted-browse-page #section-sidebar.open {
   z-index: 2 !important; 
}

@media print, screen and (max-width: 39.9988em) {
    .faceted-browse-page #section-sidebar.open {
position:relative;
}
}
.faceted-browse-page #section-sidebar.open {
   z-index: 2 !important; 
}

@media (max-width: 768px) {
#section-sidebar-modal-close{
    position: fixed!important;
    top: 200px!important;
    background-color: white;
    color: white;
    padding: 10px 14px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}

@media (min-width:1024px) {
/*pagina individual ficha*/
.metadata dl {
max-width: 50%;
}
/*AGREGADOS PDF EMBEBIDO*/
.item-download-link{
background: url('/files/asset/1db4b1d2456eb9e6121f07364b38d3c1d02dcefe.png') no-repeat center center;
width: 30px; 
}
#pdf-controls , #pdf-container{
max-width: 60vw;
}
.pdfViewer > .page{
min-width:60%!important;
min-height:60%!important;
}
/* ajustado tamaño video youtube para coincidir con pdf embebido */
iframe[src*="youtube.com/embed/"] {
   width: 60vw !important;
   height: 50vh!important;
}
/* FIN AGREGADOS PDF EMBEBIDO*/

}

#flecha-subir{
position:fixed;
bottom:5px;
right:5px;
}
/* ========================================
   MAMPA — Recomendados / Item Showcase
   Mejoras visuales para tarjetas de items
   ======================================== */

/* --- Contenedor general del grid --- */
.item-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* --- Tarjeta individual --- */
.item-showcase article {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.item-showcase article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* --- Contenedor de imagen --- */
a.item-showcase__media {
  display: block !important;
  overflow: hidden;
  height: 260px; /* Altura fija y consistente en todas las tarjetas */
  background-color: #e8f4f4; /* fallback si no carga la imagen */
  flex-shrink: 0;
  border-top-left-radius:40px;
  border-top-right-radius:40px;
}

/* --- Imagen responsive con recorte centrado --- */
a.item-showcase__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;       /* Recorta sin deformar */
  object-position: center top; /* Prioriza la parte superior (portadas de libros) */
  visibility: visible !important;
  opacity: 1 !important;
  transition: transform 0.35s ease;
}

/* Zoom sutil al hacer hover sobre la imagen */
.item-showcase article:hover a.item-showcase__media img {
  transform: scale(1.04);
}

/* --- Cuerpo de texto de la tarjeta --- */
.item-showcase .item-showcase__content,
.item-showcase article > *:not(a.item-showcase__media) {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --- Título --- */
.item-showcase h2,
.item-showcase h3,
.item-showcase .item-showcase__title {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.item-showcase h2 a,
.item-showcase h3 a,
.item-showcase .item-showcase__title a {
  color: #155180; /* teal oscuro — ajustar al color real del sitio */
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.item-showcase h2 a:hover,
.item-showcase h3 a:hover,
.item-showcase .item-showcase__title a:hover {
  color: #0c304c;
  text-decoration-color: currentColor;
}

/* --- Autor/metadato secundario --- */
.item-showcase .item-showcase__creator,
.item-showcase .creator,
.item-showcase p.meta {
  font-size: 0.85rem;
  color: #5a7a7a;
  margin: 0 0 0.75rem 0;
}

.item-showcase .item-showcase__creator a,
.item-showcase .creator a {
  color: #2e8b8b;
  text-decoration: none;
}

.item-showcase .item-showcase__creator a:hover,
.item-showcase .creator a:hover {
  text-decoration: underline;
}

/* --- Descripción/extracto --- */
.item-showcase .item-showcase__description,
.item-showcase article p:last-of-type {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
  /* Limita a 4 líneas con ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Responsive: 1 columna en móvil --- */
@media (max-width: 600px) {
  .item-showcase {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  a.item-showcase__media {
    height: 220px;
  }
}

/* =========================================================
   AJUSTE FINAL: CENTRADO DE PDF (60vw CON ZOOM) Y METADATOS
   ========================================================= */

/* 1. MANTENER EL ANCHO Y EL ZOOM DEL PDF, Y CENTRAR SU BLOQUE */
#pdf-controls,
#pdf-container {
  width: 60vw !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

/* Permitir que el canvas/páginas del PDF aprovechen todo el ancho sin deformar el zoom */
#pdf-container canvas,
.pdfViewer > .page {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Envoltorio del archivo/recurso centrado */
.media-render,
.media-embed,
.media-render.file {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   METADATOS: CONTENEDOR CENTRADO CON TEXTO ALINEADO A LA IZQUIERDA
   ========================================================= */

/* Contenedor general de metadatos centrado en la página */
.metadata,
.metadata dl,
.item-metadata,
.property-values {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  max-width: 60vw !important; /* Mantiene la misma anchura que el PDF */
  width: 100% !important;
}

/* Cada par de metadatos (Etiqueta + Valor) */
.property {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important; /* Alineación a la izquierda dentro del centrado */
  align-items: baseline !important;
  text-align: left !important;            /* Texto alineado a la izquierda */
  gap: 0.5rem 1rem !important;
  margin-bottom: 0.8rem !important;
}

/* Etiquetas (dt) */
.property dt {
  float: none !important;
  flex: 0 0 180px !important;            /* Ancho fijo para las etiquetas para que los valores queden alineados */
  width: 180px !important;
  text-align: left !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Valores (dd) */
.property dd {
  float: none !important;
  flex: 1 1 auto !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* En móviles, apilar etiqueta y valor a la izquierda */
@media (max-width: 768px) {
  .metadata,
  .metadata dl {
    max-width: 100% !important;
  }

  .property dt {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}
