﻿:root {
    --gold-primary: #681011;
    --gold-light: #8f7f52;
    --dark-footer: #8f7f52;
    --text-main: #333333;
    --bg-light: #f9f7f2;
    --header-height: 120px; /* Ajusta este valor al alto real de tu logo+botones */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Esto hace que el padding no sume tamaÃ±o extra */
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}


.pl0{padding-left: 0 !important;}
.pr0{padding-right: 0 !important;}

#page_home .btn-home,
#page_biblioteca .btn-biblioteca,
#page_lineadetiempo .btn-lineadetiempo,
#page_restauracion .btn-restauracion{
    background-color: #8f7f52;
    color: white;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Altura total del navegador */
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
}
/* Header y Logos */
.navbar {
    height: var(--header-height);
    width: 100%;
    display: flex;
    align-items: center;
    background: white;
    position: relative;
    z-index: 10;
}

.header-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 30px 0;
}

.logo-text span {
    display: block;
    line-height: 1.1;
}

.search-box-home{
    background-color: #681011;
    padding: 20px 20px 40px;
    position: relative;
}

#formSearchHome .input-group{
    border: 1px solid #cacaca;
    border-radius: 20px;
    width: 50%;
    display: inline-flex;
}

#formSearchHome button[type="submit"]{
    background: transparent;
    color: #cacaca;
    border: 0;
}

.botonBuscar{
    font-size: 30px !important;
    font-weight: bold !important;
    padding-top: 6px;
    margin: 0 !important;
}

.selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-style: italic;
    font-size: 1.1rem;
    white-space: nowrap;
}

.selector .material-symbols-outlined {
    font-size: 20px;
    margin-left: 5px;
}

/* BotÃ³n Explorar */
.boton-explorar {
    background-color: #8f7f52 !important;
    color: white;
    border: none;
    padding: 8px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: 0.3s;

    position: absolute;
    display: inline;
    width: max-content;
    bottom: -25px;
    left: 34%;

}

.boton-explorar:hover {
    background-color: #8c7d55;
    transform: scale(1.05);
}


#formSearchHome input[type="text"]{
    background-color: transparent;
    color: white;
    border: 0;
    padding: 10px 20px;
    font-size: 1rem;
    font-style: italic;
    text-align: left;
    width: 85%;
}




#formSearchHome input[type="text"]::placeholder{
    color: #cacaca;
}

.filtros {
    display: inline-flex;
    gap: 20px;
    margin-left: 10px;
    color: white;
}

.main-title { font-weight: 700; font-size: 0.9rem; }
.sub-title { font-size: 0.7rem; color: #666; }
.logo-divider { width: 1px; height: 35px; background: #ccc; }
.guarani { font-weight: 600; font-size: 0.8rem; }

/* Botonera Superior */
.nav-links {
    display: flex;
    gap: 10px;
    margin-top: 70px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #444;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.tab-btn:hover { color: var(--gold-primary); }

.tab-btn.active {
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 10%;
}

.landing-title {
    font-family: "EB Garamond", serif;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.landing-title span { 
    color: #000; font-size:5rem;
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: italic;
}

.text-garamond{
    font-family: "EB Garamond", serif;
}


.tagline{color: #681011;font-size: 1.4rem;}
.stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--gold-primary);
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-style: italic;
}





/* linea de tiempo  */
    .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    max-width: 1200px;
    margin: auto;
  }

  .text-content {
    max-width: 500px;
  }

  .text-content h1 {
    font-size: 3em;
    color: #2a2a2a;
    font-style: italic;
    margin-bottom: 20px;
  }

  .text-content p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .btn-timeline {
    background-color: #681011;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .btn-timeline:hover {
    background-color: #7d1718;
  }

  .timeline-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 50px;
  }

  .timeline-line {
    position: absolute;
    top: 73%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 0;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    margin: 0 20px;
  }

  .year {
    font-size: 1.2em;
    color: #777;
    margin-bottom: 10px;
    font-style: italic;
  }

  .arrow-down {
    font-size: 24px;
    color: #ccc;
    margin-bottom: 10px;
  }

  .image-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ccc;
    transition: transform 0.3s;
  }

  .image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(100%);
  }

  /* Featured Item */
  .timeline-item.featured {
    margin: 0 30px;
  }

  .timeline-item.featured .year {
    font-size: 1.5em;
    color: #2a2a2a;
    font-weight: bold;
  }

  .timeline-item.featured .arrow-down {
    color: #8f7f52;
  }

  .timeline-item.featured .image-circle {
    width: 150px;
    height: 150px;
    border: 6px solid #8f7f52;
    transform: scale(1.1);
  }

  .timeline-item.featured .image-circle img {
    filter: sepia(0%);
  }

  .timeline-wrapper {
      position: relative;
      width: 60%;
      overflow: hidden;
      display: flex;
      align-items: center;
    }

    .timeline-scroll {
      display: flex;
      align-items: center;
      overflow-x: scroll;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory; /* Hace que se detenga en cada item */
      padding: 50px 0;
      width: 100%;
      scrollbar-width: none; /* Oculta scroll en Firefox */
    }

    .timeline-scroll::-webkit-scrollbar { display: none; } /* Oculta scroll en Chrome/Safari */
    .timeline-spacer {
      min-width: 40%; /* Ajuste para que los items lleguen al centro */
    }


    .timeline-item {
      min-width: 150px;
      margin: 0 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      scroll-snap-align: center;
      transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
      cursor: pointer;
      opacity: 0.5;
      filter: sepia(100%) grayscale(50%);
      transform: scale(0.8);
    }

    /* ESTADO ACTIVO (El que estÃ¡ en el centro) */
    .timeline-item.active {
      opacity: 1;
      filter: sepia(0%) grayscale(0%);
      transform: scale(1.3); /* Crece un 30% */
      z-index: 10;
    }

    .timeline-item.active .year {
      color: #000;
      font-weight: bold;
      font-size: 1.4rem;
    }

    .timeline-item.active .image-circle {
      border-color: var(--gold);
      box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }

    .timeline-item.active .arrow {
      color: var(--gold);
      opacity: 1;
    }

    /* Elementos base */
    .image-circle {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 3px solid #ccc;
      overflow: hidden;
      transition: 0.4s;
    }

    .image-circle img { width: 100%; height: 100%; object-fit: contain; object-position: center center; background: #f7f3ec; }

    .year { color: #888; font-style: italic; transition: 0.4s; }

    .arrow { opacity: 0; transition: 0.4s; color: #ccc; }

    .timeline-line {
      position: absolute;
      top: 60%;
      left: 0;
      width: 100%;
      height: 2px;
      background: #ddd;
      z-index: 0;
    }

/* linea de tiempo  */

/* Botones Estilo PDF (CÃ¡psula) */
.btn-gold {
    background: var(--gold-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-gold:hover { background: var(--gold-light); }

/* Footer Mejorado */
.site-footer {
    background-color: var(--dark-footer);
    color: #e0d9cc;
    padding: 30px 10%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-contact p {
    margin: 5px 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* AnimaciÃ³n de Tabs */
.tab-content {
    display: none;
    padding: 50px 10%;
    animation: fadeInSlide 0.6s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.active-content { display: block; }

/* Responsive */
@media (max-width: 900px) {
    .header-container { flex-direction: column; gap: 20px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }

    .site-footer{
        background-color: orange !important;
    }
}


/* Botones estilo "CÃ¡psula" del PDF */
.btn-gold {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px; /* Hace que sea redondeado como en el PDF */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 122, 66, 0.3);
}

.btn-gold:hover {
    background-color: #a59464;
}

/* Footer con el color exacto y tipografÃ­a pequeÃ±a */
.main-footer {
    background-color: var(--footer-bg);
    color: #d1cdc7;
    padding: 30px 5%;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin: 4px 0;
}

.site-footer {
    background-color: #8f7f52;
    background-image: url(../images/palacio_lineas.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-blend-mode: multiply;
    background-size: 520px auto;
    color: white;
    min-height: 155px;
    padding: 42px 50px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "EB Garamond", serif;
}

.footer-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
}

/* Estilo especÃ­fico para el tÃ­tulo en cursiva */
.title-section p {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: bold;
  margin: 0;
}

/* Contenedor de items con icono */
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.contact-item a {
  color: white;
  text-decoration: none;
}

/* Iconos en color guinda */
.icon-wine {
  color: #681011; /* Color guinda/vino */
  font-size: 24px;
}

/* El Separador Vertical */
.vertical-divider {
  width: 1px;
  height: 60px; /* Ajusta la altura segÃºn necesites */
  background-color: rgba(255, 255, 255, 0.3); /* Blanco semi-transparente */
}

/* Ajuste para que la ubicaciÃ³n no sea tan ancha */
.location-section {
  flex: 1.5;
}

/* custom  */
.nav-links a{
    border: 2px solid #8f7f52;
    border-radius: 10px 10px 0 0;
    border-bottom: 0 !important;
    padding: 21px 27px 12px;
    text-decoration: none;
}

#inicio {
    /* Ocupa el 100% del alto del viewport menos el header */
    min-height: calc(100vh - var(--header-height));
    width: 100%;
    
    /* ConfiguraciÃ³n de la imagen de fondo */
    background-image: url('../images/palacio_gobierno_paraguay.webp');
    background-position: top center; /* Centrada y pegada arriba */
    background-repeat: no-repeat;

    
    /* "100% auto" asegura que el ANCHO sea siempre el 100% de la pantalla 
       y el alto se ajuste proporcionalmente sin estirar ni cortar los lados */
    background-size: 99% auto; 
    
    /* Color de respaldo por si la imagen no carga */
    background-color: #f4f1ea; 

    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
    align-items: center;
    text-align: center;
    position: relative;
}

.resena-ribbon {
    position: absolute;
    left: 0;
    bottom: 70px;
    z-index: 2;
    background: #681011;
    color: #ffffff;
    min-width: 108px;
    padding: 8px 16px 8px 20px;
    border: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1.16rem;
    font-weight: 500;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    text-align: left;
    white-space: normal;
}

.resena-ribbon::after {
    content: "";
    position: absolute;
    top: 0;
    right: -28px;
    width: 0;
    height: 0;
    border-top: 26px solid transparent;
    border-bottom: 26px solid transparent;
    border-left: 28px solid #681011;
}

.resena-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 34px;
    overflow: hidden;
}

.resena-modal.is-open {
    display: flex;
}

.resena-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(2px);
}

body.modal-open {
    overflow: hidden;
}

.resena-paper {
    position: relative;
    z-index: 1;
    max-width: 820px;
    width: min(820px, calc(100vw - 72px));
    max-height: calc(100vh - 72px);
    overflow: hidden;
    margin: 0;
    background: #fff7e8;
    border: 0;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    padding: 48px 66px 42px;
    color: #000000;
}

.resena-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    background: #681011;
    color: #ffffff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Raleway', sans-serif;
    font-size: 1.55rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.resena-paper h2 {
    margin: 0 0 24px;
    color: #000000;
    font-family: "EB Garamond", serif;
    font-size: 1.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
}

.resena-paper p {
    margin: 0 0 12px;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    line-height: 1.22;
    text-align: center;
}

@media (max-width: 900px) {
    .resena-ribbon {
        left: 0;
        bottom: 92px;
        min-width: 96px;
        padding: 8px 14px 8px 16px;
        font-size: 0.95rem;
    }

    .resena-ribbon::after {
        right: -20px;
        border-top-width: 22px;
        border-bottom-width: 22px;
        border-left-width: 20px;
    }

    .resena-modal {
        padding: 18px;
    }

    .resena-paper {
        width: min(100%, calc(100vw - 36px));
        overflow: hidden;
        padding: 42px 24px 36px;
        max-height: calc(100vh - 36px);
    }

    .resena-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 34px;
        font-size: 1.55rem;
    }

    .resena-paper h2 {
        font-size: 1.35rem;
    }

    .resena-paper p {
        font-size: 0.78rem;
        text-align: center;
    }
}


/* restauracion */
.seccion-restauracion {
    display: flex;
    width: 100%;
    min-height: 500px; /* Ajusta la altura segÃºn prefieras */
    align-items: stretch; /* Asegura que ambos lados tengan la misma altura */
}

/* Bloque de Imagen al 50% */
.restauracion-imagen {
    flex: 1; /* Ocupa la mitad */
    width: 50%;
}

.restauracion-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: la imagen llena el espacio sin deformarse */
    display: block;
}

/* Bloque de Texto al 50% */
.restauracion-texto {
    flex: 1; /* Ocupa la otra mitad */
    width: 50%;
    background-color: #fdf5e6; /* Color crema suave de la imagen */
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    padding: 60px; /* Espaciado interno */
}

.contenido-interno {
    max-width: 500px; /* Para que el texto no se estire demasiado en pantallas gigantes */
}

.contenido-interno h2 {
    font-family: "EB Garamond", serif;
    font-size: 3rem;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.contenido-interno p {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

/* BotÃ³n "Ver mÃ¡s" Estilo Pill */
.btn-ver-mas-rojo {
    background-color: #681011; /* Tu color guinda */
    color: white;
    text-decoration: none;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-ver-mas-rojo:hover {
    background-color: #7d1718;
}

/* Responsivo: En celulares se pone uno debajo del otro */
@media (max-width: 768px) {
    .seccion-restauracion {
        flex-direction: column;
    }
    .restauracion-imagen, .restauracion-texto {
        width: 100%;
        flex: none;
    }
    .restauracion-imagen {
        height: 300px;
    }
}
/* restauracion */


/* pagina error 404 */
.error-page {
    background-color: #fdfdfb; /* Fondo crema suave */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "EB Garamond", serif;
    text-align: center;
    padding: 20px;
}

.error-container {
    max-width: 600px;
}

.icon-404 {
    font-size: 120px !important;
    color: #8f7f52; /* Color dorado/oliva */
    margin-bottom: 10px;
}

.error-code {
    font-size: 8rem;
    color: #681011; /* Color guinda */
    margin: 0;
    line-height: 1;
    font-weight: bold;
}

.error-title {
    font-size: 2.5rem;
    font-style: italic;
    color: #2a2a2a;
    margin-bottom: 20px;
}

.error-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Buscador integrado en la 404 */
.search-box-404 {
    display: flex;
    align-items: center;
    border: 2px solid #681011;
    border-radius: 50px;
    padding: 10px 25px;
    margin-bottom: 40px;
    background: white;
}

.search-box-404 input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 1.1rem;
    font-family: "EB Garamond", serif;
    font-style: italic;
}

.search-box-404 span {
    color: #681011;
    cursor: pointer;
    font-size: 28px;
}

/* Botones de acciÃ³n */
.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-regresar {
    background-color: #681011;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-biblioteca {
    background-color: transparent;
    /*color: #681011;*/
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid #681011;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-regresar:hover {
    background-color: #7d1718;
}

.btn-biblioteca:hover {
    background-color: #681011;
    color: white;
}
/* pagina error 404 */


/* biblioteca */
.biblioteca-interna {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: "EB Garamond", serif;
}

/* Header */
.header-interna {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 30px;
}

.titulo-pagina {
    font-size: 3rem;
    font-style: italic;
    font-weight: bold;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 1.2rem;
}

/* Layout */
.layout-biblioteca {
    display: flex;
    gap: 40px;
}

/* Sidebar */
.sidebar-filtros {
    width: 25%;
}

.caja-sidebar {
    border: 1px solid #ddd;
    padding: 20px;
    background: white;
}

.buscador-sidebar {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.buscador-sidebar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    font-style: italic;
}

.filtro-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    cursor: pointer;
}

/* Grilla */
.contenedor-principal {
    width: 75%;
}

.grilla-presidentes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.card-presidente {
    background: white;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card-presidente:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.foto-marco-cuadrado {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 15px;
    /*background: #f7f3ec;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-marco-cuadrado a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-marco-cuadrado img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: grayscale(100%); /* Efecto histÃ³rico */
}

.info-card h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    color: #333;
}

.info-card p {
    margin: 0;
    font-style: italic;
    color: #8f7f52; /* Tu dorado/oliva */
}

/* PaginaciÃ³n */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 50px;
    gap: 15px;
    list-style: none;
}

.pagination li a {
    cursor: pointer;
    color: #666;
    padding-bottom: 2px;
    text-decoration: none;
}

.pagination li.active a{
    color: #8f7f52;
    border-bottom: 2px solid #8f7f52;
    font-weight: bold;
}

.btn-next {
    cursor: pointer;
    color: #8f7f52;
}
/* fin biblioteca */


/* resultado de busqueda */
.detalle-presidente {
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 40px;
    font-family: "EB Garamond", serif;
}

.breadcrumb-detalle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.breadcrumb-detalle a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-detalle a:link {
    color: inherit;
}

.breadcrumb-detalle a:visited {
    color: inherit;
}

.breadcrumb-detalle a:hover {
    text-decoration: underline;
}

.layout-detalle {
    display: flex;
    gap: 50px;
}

/* Ficha */
.ficha-contenedor {
    display: flex;
    flex: 1;
    gap: 40px;
    flex-direction: column;
}

.ficha-presidente {
    display: flex;
    gap: 40px;
}

.retrato-presidente {
    width: 250px;
    height: 600px;
    overflow: hidden;
}

.retrato-presidente img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: sepia(0.5); /* Tono antiguo */
}

.info-bibliografica {
    flex: 1;
    text-align: center;
}

.nombre-presidente {
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 40px;
}

/* Carrusel de Libros */
.carrusel-libros-contenedor {
    margin-bottom: 50px;
}

.indicador-anio {
    font-size: 1.8rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 10px;
}

.controles-carrusel {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}


.libros-scroll {
    display: flex;
    gap: 20px;
    overflow-x: scroll; /* Cambiado de auto a scroll */
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 20px 140px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%; /* Ancho definido */
    max-width: 400px; /* Ajusta segÃºn tu diseÃ±o */
}

.libros-scroll::before,
.libros-scroll::after {
    content: '';
    /*flex: 0 0 20px; /* Espaciador invisible */*/
}

.libros-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.libro-item {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 40px; /* Ancho mÃ­nimo garantizado */
    width: 40px; /* Ancho fijo */
    
    transition: all 0.4s ease;
    opacity: 0.5;
    transform: scale(0.9);
    cursor: pointer;
}

.libro-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: box-shadow 0.3s ease;

}

/* El libro activo es mÃ¡s alto */
.libro-item.active {
    width: 60px;
    transform: translateY(-20px);
    opacity: 1;
}
.libro-item.active img{
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}


.nav-btn {
    background: #681011; /* Color guinda */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Los botones no se comprimen */
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #6d5a44;
}

/* Botones inferiores */
.acciones-ficha {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-oro {
    background-color: #8f7f52; /* Color oliva/dorado */
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-oro:hover {
    background-color: #9a8358;
}

.controles-carrusel {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* fin resultado de busqueda */

/* linea de tiempo */
.pagina-timeline {
    position: relative;
    width: 100%;
    background-color: #fdfdfb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding-top: 55px;
    padding-bottom: 30px;
}

/* Fondo del Palacio con opacidad baja */
.background-palacio {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 72%;
    background-image: url('../images/palacio_gobierno_paraguay.webp');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(1);
}

.timeline-header h1 {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: 3.8rem;
    margin-bottom: 10px;
}

/* Contenedor del Slider */
.timeline-main-container {
    position: relative;
    width: 100%;
    margin: 5px 0 20px;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    top: 58%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ccc;
    z-index: -1;
}

.timeline-slider {
    display: flex;
    align-items: center;
    overflow-x: scroll;
    padding: 35px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.timeline-slider::-webkit-scrollbar { display: none; }

.timeline-spacer {
    min-width: 45vw; /* Permite que el primer/Ãºltimo item lleguen al centro */
    flex-shrink: 0;
}

.timeline-node {
    flex-shrink: 0;
    width: 180px;
    margin: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.28;
    transform: scale(0.72);
    cursor: pointer;
}

/* ITEM ACTIVO */
.timeline-node.is-active {
    opacity: 1;
    transform: scale(1.32);
}

.node-year {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #888;
}

.is-active .node-year {
    color: #000;
    font-size: 1.65rem;
}

.node-arrow {
    color: #8f7f52;
    font-size: 30px !important;
    line-height: 1;
    opacity: 0;
    margin-bottom: 4px;
    transition: opacity 0.3s ease;
}

.is-active .node-arrow {
    opacity: 1;
}

.node-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #ccc;
    overflow: hidden;
    background: #f7f3ec;
    transition: 0.5s;
}

.is-active .node-image {
    border: 4px solid #8f7f52;
    box-shadow: 0 10px 9px -3px rgba(0,0,0,0.15);
}

.node-image img {
    width: 202%;
    /* height: 124%; */
    object-fit: contain;
    object-position: center center;
    top: -30px;
    left: -56px;
    position: relative;
}

/* Info Inferior */
.timeline-info-content {
    text-align: center;
    max-width: 520px;
    z-index: 1;
    margin-top: 4px;
}

.active-name {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #333;
    font-weight: bold;
}

.timeline-info-content h2 {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.timeline-info-content p {
    line-height: 1.6;
    color: #222;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.btn-timeline-gold {
    background: #8f7f52;
    color: white;
    border: none;
    padding: 9px 26px;
    border-radius: 50px;
    margin: 0 10px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    transition: 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-timeline-gold:hover { background: #9a8358; color: white; text-decoration: none; }
/* fin linea de tiempo */

/* restauracion */
/* Colores de marca */
:root {
    --vino: #681011;
    --oro: #8f7f52;
    --crema: #fdf5e6;
}

.detalle-restauracion {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: "EB Garamond", serif;
}

.restauracion-header h1 {
    text-align: center;
    font-size: 3.5rem;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 40px;
}

/* SecciÃ³n Video */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    padding: 10px;
}

.play-overlay span {
    font-size: 80px !important;
    color: rgba(255,255,255,0.8);
}

.video-descripcion {
    padding: 40px 0;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #444;
}

.restauracion-slider-section {
    margin-bottom: 55px;
}

.restauracion-slider {
    position: relative;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
    background: #f3efe8;
}

.restauracion-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.restauracion-slide.active {
    opacity: 1;
    z-index: 1;
}

.restauracion-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.restauracion-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(138, 115, 72, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
}

.restauracion-slider-btn.prev {
    left: 18px;
}

.restauracion-slider-btn.next {
    right: 18px;
}

.restauracion-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.restauracion-slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: rgba(255,255,255,0.45);
    padding: 0;
    cursor: pointer;
}

.restauracion-slider-dots button.active {
    background: #8f7f52;
}

.restauracion-slider-texto {
    padding: 28px 0 0;
    text-align: center;
}

.restauracion-slider-texto h2 {
    font-size: 2rem;
    font-style: italic;
    margin: 0 0 12px;
}

.restauracion-slider-texto p {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #444;
    margin: 0 auto;
    max-width: 760px;
}

/* SecciÃ³n Pasos */
.pasos-container {
    background-color: var(--crema);
    margin: 40px -2000px; /* Truco para que el fondo se extienda a los lados */
    padding: 60px 2000px;
}

.titulo-pasos {
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 40px;
}

.paso-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.paso-imagen {
    flex: 0 0 350px;
}

.paso-imagen-slider {
    position: relative;
    width: 100%;
    height: 222px;
    overflow: hidden;
    background: #efe6d8;
}

.paso-imagen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.paso-imagen img.active {
    opacity: 1;
    z-index: 1;
}

.paso-imagen-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.paso-imagen-dots button {
    width: 9px;
    height: 9px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    padding: 0;
    cursor: pointer;
}

.paso-imagen-dots button.active {
    background: #681011;
    border-color: #681011;
}

.paso-texto h3 {
    font-size: 2rem;
    font-style: italic;
    margin: 0 0 15px 0;
}

.paso-texto p {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #444;
}

/* Estilos Modal */
.modal-video {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 80%;
    max-width: 800px;
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .restauracion-slider {
        min-height: 300px;
    }
    .restauracion-slide img {
        height: 300px;
    }
    .paso-item { flex-direction: column; }
    .paso-imagen { flex: none; width: 100%; }
    .paso-imagen-slider {
        height: 230px;
    }
}
/* fin pagina restauracion */



/* documento */

.flipbook-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;  
    overflow: hidden b;
}

#flipbook {
    width: 800px;
    height: 600px;
    margin: 0 auto;
}

#flipbook .shadown{
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

#flipbook .page {
    background-color: #f9f7f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#flipbook .page canvas {
    max-width: 100%;
    max-height: 100%;
}

#flipbook .hard {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border: 2px solid #5a3a1a;
}

#page_documento .controls {
    justify-content: center;
    display: none;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

#page_documento .btn {
    background: #8B7355;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "EB Garamond", serif;
}

#page_documento .btn:hover {
    background: #6d5a44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}

#page_documento .btn:active {
    transform: translateY(0);
}

#page_documento .page-info {
    background: rgba(139, 115, 85, 0.2);
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 18px;
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

#page_documento .upload-section {
    text-align: center;
    margin-bottom: 30px;
}

#page_documento .upload-label {
    display: inline-block;
    background: #d4af37;
    color: #1a0f0a;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#page_documento .upload-label:hover {
    background: #c9a02e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

#page_documento #pdfInput {
    display: none;
}

#page_documento .loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 1);
    align-items: center;
    display: none;
    justify-content: center;
    flex-direction: column;
    z-index: 99999999;
}

#page_documento .loading.show,
#page_documento .controls.show {
    display: flex;
}

#page_documento .loading-content {
    text-align: center;
    color: #6d1a1a;
    position: absolute;
    left: 45%;
    top: 35%;
}

#page_documento .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e0d5c7;
    border-top: 4px solid #6d1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#page_documento .loading-spinner.small {
    width: 28px;
    height: 28px;
    margin: 0 auto 12px;
}

#page_documento .page-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #7d1718;
    font-size: 0.95rem;
    text-align: center;
}

#page_documento .page-placeholder.error {
    color: #721c24;
}

#page_documento #flipbook.simple-viewer {
    width: min(980px, calc(100vw - 70px)) !important;
    height: 620px !important;
    --viewer-zoom: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3eee5;
    margin: 0 auto;
    overflow: visible;
    padding: 34px 38px;
    border: 1px solid #d9d0bf;
}

#page_documento #flipbook.simple-viewer canvas,
#page_documento #flipbook.simple-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#page_documento .book-open {
    position: relative;
    width: min(900px, 100%);
    height: 500px;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: center;
    filter: drop-shadow(10px 8px 10px rgba(64, 45, 25, 0.22));
    perspective: 1800px;
    transform: scale(var(--viewer-zoom, 1));
    transform-origin: center center;
    transition: transform 160ms ease;
}

#page_documento .book-page {
    position: relative;
    background: #f6e1ba;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 calc((100% - 16px) / 2) !important;
    width: calc((100% - 16px) / 2) !important;
    min-width: 0 !important;
    height: 100%;
}

#page_documento .book-page canvas,
#page_documento .book-page img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

#page_documento .book-page.selected-download-page::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 2px solid rgba(148, 99, 45, 0.75);
    border-radius: 4px;
    pointer-events: none;
}

#page_documento .left-page {
    border-radius: 3px 0 0 3px;
    box-shadow: inset -18px 0 30px rgba(95, 67, 35, 0.18);
}

#page_documento .right-page {
    border-radius: 0 3px 3px 0;
    box-shadow: inset 18px 0 30px rgba(95, 67, 35, 0.14);
}

#page_documento .book-gutter {
    position: relative;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 100%;
    background: linear-gradient(90deg, rgba(80,55,25,0.18), rgba(255,247,231,0.9) 46%, rgba(80,55,25,0.14));
    z-index: 2;
}

#page_documento .book-gutter:before {
    content: '';
    position: absolute;
    inset: 0 6px;
    background: rgba(70, 47, 22, 0.16);
    filter: blur(6px);
}

#page_documento .blank-page {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f7e8ca, #fff4dc);
}

#page_documento #flipbook.simple-viewer.fit-width {
    width: calc(100vw - 20px) !important;
}

#page_documento .page-flip {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc((100% - 16px) / 2);
    height: 100%;
    z-index: 8;
    pointer-events: none;
    transform-style: preserve-3d;
}

#page_documento .page-flip-next {
    right: 0;
    transform-origin: left center;
    animation: turnPageNext 0.85s cubic-bezier(0.42, 0, 0.2, 1) forwards;
}

#page_documento .page-flip-prev {
    left: 0;
    transform-origin: right center;
    animation: turnPagePrev 0.85s cubic-bezier(0.42, 0, 0.2, 1) forwards;
}

#page_documento .page-flip-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6e1ba;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#page_documento .page-flip-face canvas,
#page_documento .page-flip-face img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

#page_documento .page-flip-front {
    transform: rotateY(0deg);
    box-shadow: inset -18px 0 26px rgba(73, 48, 22, 0.18), 10px 8px 18px rgba(61, 39, 18, 0.2);
}

#page_documento .page-flip-back {
    transform: rotateY(180deg);
    box-shadow: inset 18px 0 28px rgba(73, 48, 22, 0.2), -10px 8px 18px rgba(61, 39, 18, 0.18);
}

#page_documento .page-flip-next .page-flip-front,
#page_documento .page-flip-prev .page-flip-back {
    border-radius: 0 3px 3px 0;
}

#page_documento .page-flip-next .page-flip-back,
#page_documento .page-flip-prev .page-flip-front {
    border-radius: 3px 0 0 3px;
}

#page_documento #flipbook.page-turn-busy {
    cursor: progress;
}

@keyframes turnPageNext {
    0% { transform: rotateY(0deg) scaleX(1); }
    42% { transform: rotateY(-78deg) scaleX(0.96); }
    58% { transform: rotateY(-104deg) scaleX(0.96); }
    100% { transform: rotateY(-180deg) scaleX(1); }
}

@keyframes turnPagePrev {
    0% { transform: rotateY(0deg) scaleX(1); }
    42% { transform: rotateY(78deg) scaleX(0.96); }
    58% { transform: rotateY(104deg) scaleX(0.96); }
    100% { transform: rotateY(180deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    #page_documento .page-flip-next,
    #page_documento .page-flip-prev {
        animation-duration: 0.01ms;
    }
}

@media (max-width: 760px) {
    #page_documento #flipbook.simple-viewer {
        width: calc(100vw - 16px) !important;
        height: 420px !important;
        padding: 18px 10px;
    }

    #page_documento .book-open {
        width: 100%;
        height: 360px;
    }

    #page_documento .book-page {
        flex-basis: calc((100% - 10px) / 2) !important;
        width: calc((100% - 10px) / 2) !important;
    }

    #page_documento .book-gutter {
        flex-basis: 10px !important;
        width: 10px !important;
    }

    #page_documento .page-flip {
        width: calc((100% - 10px) / 2);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 20px;
    margin-top: 10px;
}

#page_documento .loading.show {
    display: block;
}

#page_documento .demo-note {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
    color: #c9b18a;
}

#page_documento @media (max-width: 900px) {
    #page_documento #flipbook {
        width: 600px;
        height: 450px;
    }
}

#page_documento @media (max-width: 650px) {
    #page_documento #flipbook {
        width: 400px;
        height: 300px;
    }

    #page_documento .header h1 {
        font-size: 1.8em;
    }

    #page_documento .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

#page_documento .sidebar {
    width: 80px;
    background: linear-gradient(180deg, #6d1a1a 0%, #4a0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

#page_documento .viewer-container {
    display: flex;
    width: 100%;
}

#page_documento .sidebar-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #f4e4d7;
    font-size: 24px;
    letter-spacing: 3px;
    font-weight: normal;
    text-transform: uppercase;
}

#page_documento .content-area{width: 100%;overflow: hidden;}


#page_documento .controls-extras {
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    display: none;
}

#page_documento .btn-control {
    background: #f9f9f9;
    color: #5a3a1a;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#page_documento .btn-control:hover {
    background: #e8e8e8;
    border-color: #8B7355;
}

#page_documento a.btn-control {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#page_documento .documento-download-btn {
    font-size: 14px;
    line-height: 1;
}


.fullscreen-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 15px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 10px;
}

.btn-fullscreen {
    background: white;
    color: #333;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-fullscreen:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* end documento */

.pb40{padding-bottom: 40px;}
.mt50{margin-top: 50px;}
.mt20{margin-top: 20px;}
.mb50{margin-bottom: 50px;}
.mb20{margin-bottom: 20px;}


/* buscador de decretos */

.form-buscador {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.campo {
    position: relative;
}

.select-presidente,
.input-decreto {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    background-color: white;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    cursor: pointer;
}



.select-presidente {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}



.input-decreto {
    cursor: text;
}

.select-presidente:hover,
.input-decreto:hover {
    border-color: #999;
}

.select-presidente:focus,
.input-decreto:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.select-presidente option:first-child {
    color: #999;
}

.input-decreto::placeholder {
    color: #999;
}

.btn-buscar {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background-color: #8f7f52;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-buscar:hover {
    background-color: #357ABD;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.btn-buscar:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.icono-btn {
    font-size: 14px;
}

/* Estilos responsive */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .buscador-card {
        padding: 20px;
    }
}


.select2-results__option,
.select2-selection__rendered{
    font-size: 12px;
}


/* Contenedor principal de resultados */
#content_busqueda {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 20px;
    padding: 20px;
}

#content_busqueda .busqueda-sin-resultados {
    grid-column: 1 / -1;
    margin: 0;
    width: 100%;
}

/* Caja de cada decreto (Card) */
#content_busqueda .decreto-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

#content_busqueda .decreto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#content_busqueda .decreto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Para que todas las fotos tengan el mismo tamaÃ±o */
    margin-bottom: 10px;
}

#content_busqueda .decreto-card h3 {
    font-family: "EB Garamond", serif;
    font-size: 1.1rem;
    margin: 10px 0 5px;
    color: #333;
}

#content_busqueda .decreto-card p {
    font-size: 0.9rem;
    color: #8f7f52; /* Tu color dorado/ocre */
    margin: 0;
}

#content_busqueda .decreto-card .decreto-acapite {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #555;
}

.detalle-presidente .breadcrumb-detalle a,
.detalle-presidente .breadcrumb-detalle a:link,
.detalle-presidente .breadcrumb-detalle a:visited {
    color: #333 !important;
    text-decoration: none;
}

.detalle-presidente .layout-biblioteca {
    align-items: flex-start;
}

.detalle-presidente .ficha-contenedor {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 35px;
    min-width: 0;
}

.detalle-presidente .ficha-presidente {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.detalle-presidente #content_busqueda.decretos-presidente {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0;
}

.detalle-presidente .decretos-presidente .alert {
    grid-column: 1 / -1;
}

.detalle-presidente .paginacion-container {
    width: 100%;
}

.libro-seleccionado-card {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.libro-seleccionado-card .decreto-card {
    max-width: 220px;
    width: 220px;
    background: white;
    border: 1px solid #ddd;
    padding: 14px;
    text-align: center;
}

.libro-seleccionado-card .decreto-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

.libro-seleccionado-card .decreto-card h3 {
    font-size: 1.1rem;
    margin: 8px 0 4px;
}

.libros-scroll-oculto {
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    opacity: 0;
}

.libros-scroll-oculto .libro-item {
    display: none !important;
}

/* Vista de lotes como estanteria */
.detalle-presidente-estanteria {
    max-width: none;
    min-height: calc(100vh - var(--header-height));
    margin: 0;
    padding: 28px 36px 44px;
    background: #f3f2ef;
}

.detalle-presidente-estanteria .estanteria-contenedor {
    width: min(1180px, 100%);
    margin: 0 auto;
    gap: 30px;
}

.detalle-presidente-estanteria .ficha-estanteria {
    display: block;
    width: 100%;
}

.estanteria-cabecera {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(360px, 2fr) minmax(240px, 1fr);
    align-items: center;
    min-height: 88px;
    border-top: 1px solid #d6d2ca;
    border-bottom: 1px solid #d6d2ca;
}

.estanteria-filtros {
    position: relative;
    grid-column: 1;
    z-index: 20;
}

.estanteria-filtros summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 16px 0 4px;
    border-right: 1px solid #d6d2ca;
    color: #27231f;
    font-family: "EB Garamond", serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.estanteria-filtros summary::-webkit-details-marker {
    display: none;
}

.estanteria-filtros summary .material-symbols-outlined {
    font-size: 38px;
    font-weight: 300;
}

.estanteria-filtros-panel {
    position: absolute;
    top: 58px;
    left: 0;
    width: min(380px, 88vw);
    padding: 20px;
    border: 1px solid #c8c1b4;
    background: #fff;
    box-shadow: 0 16px 34px rgba(32, 24, 16, 0.18);
}

.estanteria-identidad {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
}

.estanteria-identidad .indicador-anio {
    margin: 0;
    font-size: 2.2rem;
    font-style: normal;
    font-weight: normal;
    color: #17130f;
    white-space: nowrap;
}

.retrato-presidente-estanteria {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 3px solid #c9a227;
    border-radius: 50%;
    background: #fff;
}

.retrato-presidente-estanteria img {
width: 176%;
    object-fit: cover;
    filter: grayscale(100%);
    top: -12px;
    left: -19px;
    position: relative;
}

.estanteria-identidad .nombre-presidente {
    max-width: 320px;
    margin: 0;
    font-size: 1.15rem;
    font-style: normal;
    font-weight: normal;
    text-align: left;
    color: #17130f;
}

.periodo-gobierno {
    white-space: nowrap;
}

.presidente-nav {
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #6f6a61;
    text-decoration: none;
    transform: translateY(-50%);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.presidente-nav-anterior {
    left: calc(33.333% - 28px);
}

.presidente-nav-siguiente {
    right: calc(33.333% - 28px);
}

.presidente-nav .material-symbols-outlined {
    font-size: 42px;
    font-weight: 300;
}

.presidente-nav:hover,
.presidente-nav:focus {
    border-color: #b79a4c;
    background: #fff;
    color: #8d6f1d;
    outline: none;
}

.estanteria-cerrar {
    position: absolute;
    top: 10px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #6f6a61;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.estanteria-cerrar:hover,
.estanteria-cerrar:focus {
    background: #fff;
    color: #8d6f1d;
    outline: 1px solid #b79a4c;
}

.estanteria-escena {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    width: 100%;
    margin-top: 8px;
}

.estanteria-ventana {
    position: relative;
    min-width: 0;
    height: 550px;
    overflow: hidden;
}

.estanteria-libros {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: max-content;
    min-width: 100%;
    height: 510px;
    padding: 36px 20px 0;
}

.detalle-presidente-estanteria .libro-item {
    position: relative;
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 458px;
    min-width: 0;
    opacity: 1;
    transform: none;
    transition: transform 180ms ease, filter 180ms ease;
    filter: brightness(0.92);
    outline: none;
}

.detalle-presidente-estanteria .libro-item:nth-child(3n) {
    flex-basis: 66px;
    width: 66px;
}

.detalle-presidente-estanteria .libro-item:nth-child(4n) {
    flex-basis: 78px;
    width: 78px;
}

.detalle-presidente-estanteria .libro-item img,
.detalle-presidente-estanteria .libro-item canvas,
.detalle-presidente-estanteria .libro-item iframe {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    box-shadow: 2px 3px 7px rgba(0, 0, 0, 0.34);
}

.detalle-presidente-estanteria .libro-item canvas {
    background: #1f1d1a;
}

.detalle-presidente-estanteria .libro-item iframe {
    border: 0;
    overflow: hidden;
}

.detalle-presidente-estanteria .libro-item:hover,
.detalle-presidente-estanteria .libro-item:focus {
    filter: brightness(1.08);
    z-index: 2;
}

.detalle-presidente-estanteria .libro-item.active {
    transform: translateY(-8px);
    filter: brightness(1.08);
    z-index: 2;
}

.libro-lote {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 68px;
    padding: 5px 2px;
    border: 1px solid rgba(207, 181, 109, 0.65);
    background: rgba(38, 29, 23, 0.88);
    color: #ead699;
    font-family: "EB Garamond", serif;
    font-size: 0.67rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.estanteria-repisa {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 38px;
    height: 40px;
    border-top: 8px solid #60462f;
    border-bottom: 7px solid #2e2016;
    background: #493321;
    box-shadow: 0 18px 20px rgba(0, 0, 0, 0.28);
    z-index: 4;
}

.estanteria-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 80px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5f5d59;
    cursor: pointer;
}

.estanteria-nav .material-symbols-outlined {
    font-size: 72px;
    font-weight: 300;
}

.estanteria-nav:hover,
.estanteria-nav:focus-visible {
    color: #681011;
}

@media (max-width: 768px) {
    #page_biblioteca .navbar {
        display: block;
        height: auto !important;
        min-height: 132px;
        padding: 10px 0 0;
    }

    #page_biblioteca .header-container {
        width: 100%;
        gap: 8px;
    }

    #page_biblioteca .logo-group {
        margin: 0;
        justify-content: center;
    }

    #page_biblioteca .logo-group img {
        display: block;
        width: min(290px, 82vw);
        height: auto;
    }

    #page_biblioteca .nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 4px;
        margin-top: 0;
        padding: 0 8px;
    }

    #page_biblioteca .nav-links a {
        min-width: 0;
        padding: 10px 6px 8px;
        font-size: 0.68rem;
        text-align: center;
    }

    #page_biblioteca .site-footer {
        background-color: #8f7f52 !important;
    }

    .detalle-presidente-estanteria {
        padding: 16px 10px 30px;
        overflow-x: hidden;
    }

    #page_biblioteca {
        overflow-x: hidden;
    }

    .estanteria-cabecera {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0;
    }

    .estanteria-filtros,
    .estanteria-identidad {
        grid-column: 1;
    }

    .estanteria-filtros summary {
        border-right: 0;
    }

    .estanteria-identidad {
        flex-wrap: wrap;
    }

    .estanteria-identidad .indicador-anio {
        width: 100%;
        font-size: 1.7rem;
        text-align: center;
    }

    .estanteria-identidad .nombre-presidente {
        font-size: 1rem;
    }

    .presidente-nav {
        top: auto;
        bottom: 8px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .presidente-nav-anterior {
        left: 4px;
    }

    .presidente-nav-siguiente {
        right: 50px;
    }

    .estanteria-cerrar {
        top: 8px;
        right: 4px;
    }

    .estanteria-escena {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .estanteria-ventana {
        height: 430px;
        max-width: 100%;
        contain: layout paint;
    }

    .estanteria-libros {
        justify-content: flex-start;
        height: 394px;
        padding: 30px 12px 0;
    }

    .detalle-presidente-estanteria .libro-item,
    .detalle-presidente-estanteria .libro-item:nth-child(3n),
    .detalle-presidente-estanteria .libro-item:nth-child(4n) {
        flex-basis: 56px;
        width: 56px;
        height: 350px;
    }

    .libro-lote {
        left: 3px;
        right: 3px;
        bottom: 48px;
        font-size: 0.58rem;
    }

    .estanteria-nav {
        width: 36px;
    }

    .estanteria-nav .material-symbols-outlined {
        font-size: 48px;
    }

    .estanteria-repisa {
        bottom: 0;
    }
}

.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    margin-bottom: 0;
}

.alert.alert-danger{
    font-size: 12px;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

#formSearchHome .home-filtros {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(110px, 0.7fr) minmax(150px, 1fr) 54px;
    gap: 12px;
    align-items: center;
}

#formSearchHome .home-campo select,
#formSearchHome .home-campo input {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 24px;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 0 16px;
    font-size: 1rem;
    outline: none;
}

#formSearchHome .home-campo select option {
    color: #333;
}

#formSearchHome .home-campo input::placeholder {
    color: #e4dfd6;
}

#formSearchHome .home-search-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #8f7f52;
    color: white;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.timeline-item,
.timeline-item:hover {
    color: inherit;
    text-decoration: none;
}

.home-restauracion-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.home-restauracion-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.home-restauracion-slide.active {
    opacity: 1;
}

.home-restauracion-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#page_home .container-biblioteca .text-content h1,
#page_home .contenido-interno h2 {
    font-family: "EB Garamond", serif;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0;
}

#page_home .container-biblioteca .text-content p,
#page_home .contenido-interno p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.98rem;
    line-height: 1.65;
    letter-spacing: 0;
}

#formSearchHome,
#formSearchHome select,
#formSearchHome input,
#formSearchHome button,
#formBuscador,
#formBuscador select,
#formBuscador input,
#formBuscador button,
.buscador-sidebar h4,
.select2-container .select2-selection__rendered,
.select2-results__option {
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0;
}

#formSearchHome .home-campo select,
#formSearchHome .home-campo input,
#formBuscador .select-presidente,
#formBuscador .input-decreto,
.select2-container .select2-selection__rendered {
    font-size: 0.9rem;
    font-weight: 400;
}

#formSearchHome .home-search-btn,
#formSearchHome .boton-explorar,
#formBuscador .btn-buscar {
    font-size: 0.9rem;
    font-weight: 600;
}

.buscador-sidebar h4 {
    font-size: 1rem;
    font-weight: 600;
}

#page_restauracion .paso-texto p,
#page_restauracion .restauracion-slider-texto p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.98rem;
    line-height: 1.65;
    letter-spacing: 0;
}

#page_home .search-box-home {
    width: min(670px, 92vw);
    margin: 0 auto;
    padding: 16px 20px 42px;
    background: #681011;
}

#page_home #formSearchHome .home-filtros {
    grid-template-columns: minmax(235px, 290px) minmax(125px, 1fr) minmax(72px, 0.7fr) minmax(110px, 1fr);
    gap: 20px;
}

#page_home #formSearchHome .home-buscar-principal {
    position: relative;
}

#page_home #formSearchHome .home-filtro-campo {
    position: relative;
}

#page_home #formSearchHome .home-filtro-campo::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #f5ecec;
    border-bottom: 2px solid #f5ecec;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

#page_home #formSearchHome .home-campo select,
#page_home #formSearchHome .home-campo input {
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.62);
    border-radius: 32px;
    background: transparent;
    color: #f5ecec;
    font-style: italic;
}

#page_home #formSearchHome .home-campo select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-color: transparent;
    padding: 0 24px 0 0;
    font-weight: 600;
}

#page_home #formSearchHome .home-filtro-campo input {
    border-color: transparent;
    padding: 0 24px 0 0;
    font-weight: 600;
}

#page_home #formSearchHome .home-filtro-campo input[type="number"]::-webkit-outer-spin-button,
#page_home #formSearchHome .home-filtro-campo input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

#page_home #formSearchHome .home-filtro-campo input[type="number"] {
    appearance: textfield;
}

#page_home #formSearchHome .home-campo input::placeholder {
    color: rgba(245, 236, 236, 0.9);
}

#page_home #formSearchHome .home-buscar-principal input {
    padding-right: 52px;
    font-size: 1.15rem;
}

#page_home #formSearchHome .home-search-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    color: #f5ecec;
    transform: translateY(-50%);
}

#page_home #formSearchHome .home-search-btn .material-symbols-outlined {
    font-size: 36px !important;
    font-weight: 300 !important;
    padding: 0;
}

#page_home .boton-explorar {
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    padding: 10px 38px;
    font-size: 1.35rem;
    font-weight: 400;
}

#page_home .boton-explorar:hover {
    transform: translateX(-50%) scale(1.03);
}

#page_biblioteca .caja-sidebar {
    border: 1px solid #cfcfcf;
    padding: 26px;
    background: #fff;
}

#page_biblioteca .buscador-sidebar {
    display: none;
}

#page_biblioteca .buscador-sidebar h4 {
    font-family: "EB Garamond", serif;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 700;
    color: #111;
}

#page_biblioteca .form-buscador {
    gap: 24px;
}

#page_biblioteca .form-buscador .campo {
    position: relative;
}

#page_biblioteca .campo-buscar-principal {
    margin-bottom: 2px;
}

#page_biblioteca .input-buscar-general {
    height: 48px;
    border: 1.5px solid #777;
    border-radius: 28px;
    padding: 0 54px 0 18px;
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
}

#page_biblioteca .btn-buscar-general {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #333;
    transform: translateY(-50%);
    cursor: pointer;
}

#page_biblioteca .btn-buscar-general .material-symbols-outlined {
    font-size: 38px;
    font-weight: 300;
}

#page_biblioteca #formBuscador .select-presidente,
#page_biblioteca #formBuscador .input-decreto:not(.input-buscar-general) {
    height: 34px;
    border: 0;
    padding: 0 24px 0 0;
    background: transparent;
    color: #9a9a9a;
    font-size: 1.05rem;
    font-style: italic;
    box-shadow: none;
}

#page_biblioteca #formBuscador .select-presidente {
    background-image: none;
}

#page_biblioteca #formBuscador .select2-container {
    width: 100% !important;
}

#page_biblioteca #formBuscador .select2-container .select2-selection--single {
    height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#page_biblioteca #formBuscador .select2-container .select2-selection__rendered {
    padding: 0 24px 0 0;
    color: #9a9a9a;
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 34px;
}

#page_biblioteca #formBuscador .select2-container .select2-selection__arrow {
    display: none;
}

#page_biblioteca #formBuscador .campo:not(.campo-buscar-principal)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 98px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #9a9a9a;
    border-bottom: 1.5px solid #9a9a9a;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

#page_biblioteca #formBuscador .campo-numero-decreto::after,
#page_home #formSearchHome .home-numero-decreto::after {
    display: none;
}

.resultados-tabla-panel {
    width: 100%;
    padding: 8px 0 24px;
}

.resultados-cards-panel {
    width: 100%;
    padding: 8px 0 24px;
}

.resultados-busqueda-etiqueta {
    display: block;
    margin-bottom: 8px;
    color: #342d25;
    font-family: "EB Garamond", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.resultados-busqueda-global {
    width: 100%;
    min-height: 44px;
    margin-bottom: 12px;
    padding: 9px 14px;
    border: 1px solid #b9ad99;
    border-radius: 24px;
    background: #fff;
    color: #27231f;
    font-family: 'Raleway', sans-serif;
}

.resultados-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

#content_busqueda .resultado-decreto-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.decreto-card-principal {
    display: block;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

#content_busqueda .decreto-card-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #8f7f52;
    border-radius: 3px;
    color: #7a1718;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

#content_busqueda .decreto-card-pdf:hover {
    background: #8f7f52;
    color: #fff;
}

.decreto-card-pdf .material-symbols-outlined {
    font-size: 19px;
}

.tabla-busqueda-etiqueta {
    display: block;
    margin-bottom: 8px;
    color: #342d25;
    font-family: "EB Garamond", serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.tabla-busqueda-global {
    width: 100%;
    min-height: 44px;
    margin-bottom: 16px;
    padding: 9px 14px;
    border: 1px solid #b9ad99;
    border-radius: 4px;
    background: #fff;
    color: #27231f;
    font-family: 'Raleway', sans-serif;
}

.tabla-resultados-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #cfc6b8;
    background: #fff;
}

.tabla-resultados-decretos {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
}

.tabla-resultados-decretos th,
.tabla-resultados-decretos td {
    padding: 11px 12px;
    border-right: 1px solid #ded7cb;
    border-bottom: 1px solid #ded7cb;
    text-align: left;
    vertical-align: top;
}

.tabla-resultados-decretos th:last-child,
.tabla-resultados-decretos td:last-child {
    border-right: 0;
}

.tabla-resultados-decretos thead > tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #8f7f52;
    color: #fff;
    font-family: "EB Garamond", serif;
    font-size: 1rem;
    white-space: nowrap;
}

.tabla-filtros-columnas th {
    padding: 7px;
    background: #f4f0e8;
}

.tabla-filtros-columnas input {
    width: 100%;
    min-width: 90px;
    padding: 7px 8px;
    border: 1px solid #c9c0b2;
    border-radius: 3px;
    background: #fff;
    font-size: 0.78rem;
}

.tabla-resultados-decretos tbody tr:nth-child(even) {
    background: #faf8f4;
}

.tabla-resultados-decretos tbody tr:hover {
    background: #f2ead8;
}

.tabla-resultados-decretos td:first-child {
    width: 50px;
    text-align: center;
}

.tabla-resultados-decretos .tabla-acapite {
    min-width: 280px;
    line-height: 1.45;
}

.tabla-decreto-link,
.tabla-pdf-link {
    color: #7a1718;
    font-weight: 700;
    text-decoration: none;
}

.tabla-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tabla-pdf-link .material-symbols-outlined {
    font-size: 20px;
}

.tabla-decreto-link:hover,
.tabla-pdf-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #content_busqueda {
        padding: 10px 0;
    }

    .tabla-resultados-decretos {
        font-size: 0.82rem;
    }

    .resultados-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .resultados-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#page_biblioteca #formBuscador .btn-buscar {
    display: none;
}

@media (max-width: 768px) {
    #formSearchHome .home-filtros {
        grid-template-columns: 1fr;
    }

    #formSearchHome .home-search-btn {
        width: 100%;
        border-radius: 24px;
    }
}

/* Estilo base para alertas */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
}

/* Variante Informativa (Info) */
.alert-info {
  background-color: #f0f7ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
}

/* Icono integrado usando pseudoelemento ::before */
.alert-info::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: #2563eb;
  /* Icono de información vectorial (SVG) integrado */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat center / contain;
}

.book-open .close-btn{
    position: absolute;
    top: -50px;
    right: 0;
    background: red;
    width: 200px;
    z-index: 999999;
}

.book-open .close-btn {
    position: absolute;
    top: -20px;
    right: 15px;
    z-index: 999999;
    
    /* Reset de estilos nativos */
    border: 1px solid #8c2626;
    outline: none;
    cursor: pointer;
    
    /* Apariencia y Colores */
    background-color: #a83232;
    color: #ffffff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    
    /* Dimensiones y Espaciado */
    width: auto; /* Ajuste automático según el texto */
    padding: 8px 16px;
    border-radius: 20px; /* Bordes suavemente redondeados */
    
    /* Sombra refinada */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    
    /* Transición suave */
    transition: all 0.25s ease;
    
    /* Alineación interna */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Efecto al pasar el cursor (Hover) */
.book-open .close-btn:hover {
    background-color: #8c2626;
    border-color: #6b1d1d;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

/* Efecto al hacer clic */
.book-open .close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
