/* Estilos generales */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Graphik', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: #333;
    overflow-x: hidden; /* Evita desplazamiento horizontal */
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Estilos de la barra de navegación */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000; /* Asegúrate de que el z-index sea lo suficientemente alto */
    transition: top 0.3s ease-in-out;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#main-content {
    margin-top: 80px;
    margin-bottom: 20px;
    padding: 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

nav .logo img {
    height: auto;
    max-height: 50px;
    vertical-align: middle;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    font-family: 'Graphik', sans-serif;
    font-weight: bold;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    color: #555; /* Tono gris oscuro */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); /* Sombra suave */
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Estilos del contenido principal */
main {
    padding-top: 80px;
    padding-bottom: 20px;
}

section {
    margin-bottom: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section#home {
    margin-top: 100px;
}

#home {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#home h1 {
    font-weight: bold;
    color: #343a40;
}

#home .lead {
    font-size: 1.25rem;
    color: #495057;
}

#home b {
    color: #007bff;
    font-weight: bold;
}

h1, h2 {
    font-family: 'Graphik', sans-serif;
    color: #333;
    font-weight: 700;
}

form label {
    font-family: 'Graphik', sans-serif;
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

form input[type="file"] {
    margin-top: 5px;
    display: block;
    width: 100%;
}

/* Estilos para el footer */
footer.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: inline-block;
    margin-right: 15px;
}

.footer-links li a {
    color: #fff;
    text-decoration: none;
}

.footer-links li a:hover {
    text-decoration: underline;
}

img, table, .container {
    max-width: 100%;
    height: auto;
}

.preview-container {
    display: none;
}

#dona {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dona h1 {
    font-weight: bold;
    color: #343a40;
}

#dona .lead {
    font-size: 1.25rem;
    color: #495057;
}

#dona img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos adicionales para el formulario y el contenido */
section#add-logo {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form#uploadForm {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form#uploadForm label {
    font-weight: bold;
}

form#uploadForm input[type="file"] {
    margin-top: 5px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
    width: 100%;
}

form#uploadForm .d-grid {
    margin-top: 20px;
}

.g-recaptcha {
    transform: scale(0.85); /* Reducir el tamaño del reCAPTCHA para ajustarse mejor */
}

/* Media Queries para pantallas pequeñas */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 5px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left, .footer-right {
        text-align: center;
    }

    section#home {
        margin-top: 30%;
    }

    section#add-logo {
        padding: 20px;
    }

    #captcha {
        margin-right: 13%;
    }

    #previewContainer {
        overflow-x: auto; white-space: nowrap;
    }

    #dona p.lead {
        font-size: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
    }

    #home {
        margin-top: 120px;
    }
}

/* Aside */
aside {
    background-color: #bdbdbd !important;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    background-color: #004aad; /* Corregir el color de fondo */
    overflow-x: hidden;
    transition: width 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.sidebar ul li {
    padding: 10px 20px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover {
    background-color: #575757;
    border-radius: 4px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px; /* Aumentar la separación del botón de cerrar */
    color: white;
    cursor: pointer;
}

.close-button i {
    font-size: 1.5rem;
}

.sidebar-logo {
    width: 80%;
    max-width: 200px;
    margin-top: 40px; /* Aumentar la separación del logo */
}

/* Media Query para ocultar nav en dispositivos móviles */
@media (max-width: 768px) {
    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }

    nav ul {
        display: flex;
        justify-content: flex-end;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }

    nav li {
        margin-left: 10px;
    }

    .menu-toggle {
        top: 15px;
        left: 15px;
        font-size: 24px;
        position: fixed;
        z-index: 1001;
        cursor: pointer;
    }

    .menu-toggle i {
        color: #004aad;
    }

    #menuNav {
        display: none;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    aside {
        display: none;
    }
}

/* Recaptcha */
.g-recaptcha {
    transform:scale(1);
    transform-origin:0 0;
}
