/* General Reset */
/* 
paleta de colores 
 #cdba96;
 #ab8d65;
 #804e25;
  #804e25;
    */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: playfair display, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: #cdba96;
    display: flex;
    width:100%;
    flex-direction: column;
    min-height: 100vh;
    margin:0;
    
}


/* Header Styles */
header {
    display: flex;
    font-size: 1.25rem;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 10px;
    background-color: rgba(51, 51, 51, 0.5); /* Fondo con transparencia */
    color: #cdba96;
    position: relative; /* Cambiado a relative para que se desplace con el contenido */
    width: 100%;
    z-index: 1000;
}

header a {
    text-decoration: none;
    color: #cdba96;
}

header .logo {
    width: 6rem; /* Ajusta el tamaño según sea necesario */
    height: auto;
    margin: 0;
}

/* Main content styles */
main {
    padding: 20px;
}


.nav-links {
    list-style: none; 
    display: flex;
    gap: 20px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #cdba96;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #28140a
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background-color: #cdba96;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    flex: 1;
    padding: 0px;
    /*display: grid; */
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));*/
    /* gap: 20px; */
    text-align: center;
    align-items: center;
  }

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra horizontalmente los thumbnails */
    gap: 10px;
    padding: 10px;
}

.thumbnail {
    display: block;
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
    object-fit: cover; /* Mantiene la relación de aspecto y llena el contenedor */
}

.thumbnail:hover {
    border: 2px solid #333;
}

.thumbnail-container {
    align-items: center;
    text-align: center;
    max-width: 100px; /* Ajusta según el tamaño de tus miniaturas */
}

.thumbnail-container p {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}

.main-image img {
    max-width: 100vh;
    max-height: 75vh; 
    object-fit: contain; /* Mantiene la relación de aspecto */
}

main p ul {
    font-size: 1.2rem;
    color: #28140a;
}


.logo_MI {
    margin-top: 10px;
    width: 200px; /* Ajusta el tamaño según sea necesario */
    
} 

#pdf-container {
    display: flex;
    justify-content: center;
}

#pdf-canvas {
    width: 100%;
    max-width: 768px;  /* Máximo 768px */
    height: auto;       /* Mantiene la proporción */
}


/* Footer */
footer {
    background-color: rgba(51, 51, 51, 0.5); /* Fondo con transparencia */
    color: #cdba96;
    text-align: center;
    height: auto;
    clear: left;
    text-align: center;
    position:relative;
    bottom: 0;
    width: 100%;
}

footer .redes {
    color: #cdba96;
    text-decoration: none;
    font-size: 2rem;
    transition: color 0.3s ease;
    margin: 0 10px;
}

footer .redes :hover {
    color: #28140a
}

footer p {
    font-size: 1 rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        flex-direction: column;
        background-color: rgba(51, 51, 51, 0.5); /* Fondo con transparencia */
        position: absolute;
        top: 60px;
        right: 0;
        overflow: hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid #444;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
    body {
        margin: 0;
    }

    main {
        padding: 0px;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    main ul {
        list-style: none;
    }
    main .img {
        width: auto;
        height: 75vh;
    }

    .gallery {
        
        width: 100%;
    }

    .main-image img {
        width: 100%;
        height: auto;
    }
    .thumbnails {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Centra horizontalmente los thumbnails */
        gap: 10px;
        padding: 10px;
    }

    .thumbnail-container {
        align-items: center;
        text-align: center;
        width: 100px; /* Ajusta según el tamaño de tus miniaturas */
    }
    
    
    .thumbnail-container p {
        text-align: center;
        font-size: 14px;
        color: #333;
        margin-top: 5px;
    }

    .thumbnail {
        width: 100px;
    }
    
    #pdf-canvas {
            width: 100vw; /* Usa todo el ancho del viewport */
        }
}
 

/* Estilos para el botón de scroll hacia el inicio */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #555;
}

.nav-button{
    background-color: #333;
    color: #cdba96;
    border: none;
    border-radius: 5px;
    padding: 10px ;
    cursor: pointer;
    margin: 10px;
}
.nav-button:hover {
    background-color: #555;
}