body {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    color: #333f49;
    line-height: 1.6; /* Reducir el espacio entre líneas */
}

.container {
    max-width: 1300px; /* Ajusta este valor según sea necesario */
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: white; /* Asegura que el fondo del header sea blanco */
    text-align: center;
    padding: 0;
    margin: 0; /* Elimina márgenes */
}

header img {
    max-width: 100%;
    height: auto;
    width: 67%; /* Ajusta el tamaño de la imagen al 67% del contenedor */
    margin: 0 auto; /* Centra la imagen */
    padding: 0; /* Elimina padding */
    display: block; /* Asegura que la imagen se trate como un bloque */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    overflow-wrap: break-word;
    font-family: 'Helvetica', sans-serif; /* Especificar la fuente Helvetica */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    background: #333f49;
}

nav ul li {
    margin: 0 0.4em;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 1em;
    border-radius: 5px;
    background-color: #2C363F; /* Fondo gris oscuro cuando está estático */
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a:active {
    background-color: #00aae1;
    border-color: #00aae1;
    color: white;
}

main {
    display: flex;
    padding: 1em;
}

aside {
    width: 30%; /* Aumenta el ancho del aside */
    background: #F4F4F4;
    padding: 1em;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

aside h2 {
    margin-top: 0;
    font-size: 1.1em;
    color: #FFFFFF; /* Cambia el color del texto a blanco */
    text-align: center;
    margin-bottom: 0.5em; /* Reducir el espacio entre el título y el contenido */
    background-color: #333F49; /* Fondo color #333F49 */
    padding: 5px 0; /* Agrega padding arriba y abajo, pero no a los lados */
    width: 100%; /* Asegura que el fondo ocupe todo el ancho */
    box-sizing: border-box; /* Incluye el padding en el ancho total */
    font-family: 'Montserrat', sans-serif; /* Aplica la fuente Montserrat */
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    margin: 0.5em 0;
margin-left: 2em;
}

aside ul li a {
    text-decoration: none;
    color: #333f49;
    display: flex;
    align-items: center;
    word-wrap: break-word;
}

aside ul li a img {
    margin-right: 0.5em;
    width: 24px;
}

section {
    background-color: #F9F9F9; /* Color gris claro */
    padding: 20px; /* Añadir relleno */
    border-radius: 5px; /* Añadir esquinas redondeadas */
    margin-left: 20px; /* Separación del menú */
    width: 70%; /* Ajustar el ancho */
    box-sizing: border-box; /* Incluir relleno y borde en el ancho total */
}

section h2 {
    font-size: 2em; /* Aumentar el tamaño de la fuente */
    color: #333f49; /* Mantener el color */
    margin-top: 0;
    margin-bottom: 0.5em; /* Ajustar el margen inferior */
    font-weight: bold; /* Hacer el texto en negrita */
    text-transform: uppercase; /* Convertir el texto a mayúsculas */
}

h2 {
    font-family: 'Helvetica', sans-serif; /* Especificar la fuente si es necesario */
    font-weight: bold; /* Especificar que el peso de la fuente sea negrita */
    color: #333f49;
    margin-top: 0;
    margin-bottom: 0.5em; /* Ajustar el margen inferior si es necesario */
    font-size: 4em; /* Ajustar el tamaño de la fuente si es necesario */
}

section p {
    margin-bottom: 1em;
    font-size: 1.1em;
    color: #333f49;
    line-height: 1.6; /* Reducir el espacio entre líneas */
    font-weight: 300;
    text-align: justify;
    font-family: 'Verdana', sans-serif; /* Especificar la fuente Verdana */
}

p {
    font-family: 'Calibri', sans-serif; /* Especificar la fuente Verdana */
    margin-bottom: 1em;
    font-size: 1.1em;
    color: #333f49;
    line-height: 1.6; /* Reducir el espacio entre líneas */
    font-weight: normal !important; /* Forzar que el peso de la fuente sea normal */
    text-align: justify;
}

a {
    color: #333f49;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #00aae1;
}

blockquote {
    color: #333f49;
    border-color: #00aae1;
}

.file-item {
    display: inline-block;
    width: 200px;
    margin: 1em;
    text-align: center;
}

.file-item img.thumbnail {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.file-item img.thumbnail:hover {
    transform: scale(1.1);
}

.file-item h3 {
    margin: 0.5em 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #333f49;
    text-transform: capitalize;
    transition: color 0.3s ease;
    text-decoration: none;
    border-bottom: none;
    overflow-wrap: break-word;
    line-height: 1.2; /* Reducir el espacio entre líneas */
    margin-bottom: 0.5em; /* Ajustar el margen inferior */
}

.file-item h3:hover {
    color: #00aae1;
    text-decoration: none;
    border-bottom: none;
    text-shadow: none; /* Asegurar que no haya sombra al pasar el mouse */
}

.file-details {
    text-align: center;
}

.file-details p {
    font-size: 1.2em;
    font-weight: bold;
    color: #555555;
}

.file-details img.detail-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 1em 0;
}

.detail-image {
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.detail-image:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}



@media (min-width: 769px) {
    .file-details img.detail-image {
        width: 100%;  /* Se ajusta al contenedor */
        max-width: 900px;  /* Aumenta el ancho máximo de la imagen */
        height: auto;  /* Mantiene la proporción de la imagen */
        margin: 2em auto;  /* Márgenes superiores/inferiores, centrado horizontal */
        display: block;
    }
}




.download-button {
    display: inline-block;
    padding: 1em 2em;
    background: #333333;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.2em;
    margin: 1em 0;
    transition: background-color 0.3s, color 0.3s;
}

.download-button:hover {
    background-color: #00aae1;
    color: white;
}

.pagination {
    text-align: center;
    margin-top: 2em;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.2em;
    text-decoration: none;
    background: #e9ecf6;
    color: #333f49;
    border-radius: 5px;
}

.pagination a:hover, .pagination .current {
    background: #00aae1;
    color: white; /* Cambia el color del texto a blanco al pasar el mouse */
}

.random-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.random-files .file-item {
    margin: 1em;
}

.large-image {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.file-details p {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 1.5em;
}

.file-details p strong {
    font-weight: bold;
    color: #333f49;
}

.file-details img.detail-image {
    display: block;
    margin: 1em auto;
    max-width: 30%;
    height: auto;
}

.download-button {
    display: inline-block;
    padding: 1em 2em;
    background: #333333;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    font-size: 2em;
    font-family: 'Montserrat', sans-serif;
    margin: 1em 0;
    box-shadow: 0 5px #666666;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s;
}

.download-button:hover {
    background: #00aae1;
    transform: translateY(-2px);
    box-shadow: 0 7px #444444;
    color: white;
}

section form {
    margin-bottom: 20px;
    text-align: center;
}

section form input[type="text"] {
    width: 60%;
    padding: 15px;
    font-size: 1.5em;
    border: 1px solid #cccccc;
    border-radius: 5px;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section form button {
    padding: 15px 30px;
    font-size: 1.5em;
    color: #ffffff;
    background-color: #2C363F;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

section form button:hover {
    background-color: #222222;
    color: white;
}

/* Footer Styles */
footer {
    background-color: transparent;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer-robnei {
    background-color: #333F49;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer-robnei-text {
    margin: 10px 0 0;
    font-size: 14px;
    color: #fff;
    text-align: center; /* Asegura que el texto esté centrado */
}

.footer-robnei-menu {
    margin-bottom: 10px;
    text-align: center; /* Centra el contenido del menú */
}

.footer-robnei-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Centra horizontalmente */
    display: inline-flex; /* Usa inline-flex para centrar el menú */
    gap: 15px; /* Espaciado entre elementos del menú */
}

.footer-robnei-item {
    margin: 0;
}

.footer-robnei-link {
    color: #bbb; /* Color más claro y sutil */
    text-decoration: none; /* Sin subrayado */
    font-size: 14px;
    background: none; /* Sin fondo */
    border: none; /* Sin borde */
    padding: 0; /* Sin padding */
    transition: color 0.3s ease; /* Suavizar la transición del color */
}

.footer-robnei-link:hover {
    color: #fff; /* Color más fuerte al pasar el cursor */
    background: none; /* Asegura que no haya fondo al pasar el cursor */
    border: none; /* Asegura que no haya borde al pasar el cursor */
    text-decoration: none; /* Sin subrayado */
}




@media (max-width: 768px) {
    /* Estructura general */
    main {
        flex-direction: column;
        padding: 1em 0;
    }

    aside {
        width: 100%;
        margin-bottom: 1em;
        order: 2;
    }

    section {
        width: 100%;
        margin-left: 0;
        padding: 1em;
        order: 1;
    }

    /* Tipografías */
    aside h2 {
        font-size: 1.5em;
    }

    aside ul li a {
        font-size: 0.9em;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 0.1em 0;
    }

    section form input[type="text"], 
    section form button {
        font-size: 1.2em;
        width: 100%;
    }

    /* Botones y elementos visuales */
    .download-button {
        font-size: 1.2em;
        padding: 0.75em 1.5em;
        background-color: #28a745;
        color: #fff;
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        display: inline-block;
        width: 100%;
        max-width: 300px;
        margin: 1em auto;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .download-button:hover {
        background-color: #218838;
    }

    .download-button:active {
        transform: translateY(2px);
    }

    /* Mejor presentación de la imagen específica */
    img.detail-image {
        width: 100%;  /* Ocupa todo el ancho disponible */
        height: auto;  /* Mantiene la proporción de la imagen */
        border-radius: 8px;  /* Bordes redondeados */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Sombra suave para dar profundidad */
        margin: 1em 0;  /* Espacio alrededor de la imagen */
    }


.file-details img.detail-image {
        max-width: 100%; /* Asegurar que las imágenes no se excedan del contenedor */
    }
}


