/* Estilos generales para la página */

/* Establecemos un fondo suave y una fuente común para toda la página */
body {
    background-color: #e0cbbc;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.home-page footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px 0;
}

.tools-page footer {
    position: static;
    width: 100%;
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px 0;
}

footer a:hover {
    text-decoration: underline;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
}

/* Estilo para la foto y el bloque de texto de la página principal */
.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1000px;
    padding: 0 20px;
}

/* Estilo para la imagen circular */
.profile img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin-right: 0;
    object-fit: cover;
    flex-shrink: 0;
}

/* Contenedor del texto */
.profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 650px;
}

/* Nombre */
.profile h1 {
    font-size: 3em;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

/* Descripción */
.profile h2 {
    font-size: 1.1em;
    font-weight: normal;
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------- */
/* Estilos para los botones en la página principal (index.html) */
/* --------------------------------------------- */

.index-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.index-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #f0a500;
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    height: 40px;
    width: 150px;
    box-sizing: border-box;
}

.index-button:hover {
    background-color: #e07b00;
}

.index-button:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}
/* Estilo para los enlaces del pie de página */
footer a {
    color: white;
    /* Color blanco para los enlaces */
    text-decoration: none;
    /* Quita el subrayado */
    margin: 0 10px;
    /* Espacio a la izquierda y derecha de cada enlace */
}

/* --------------------------------------------- */
/* Estilos para los botones de tools.html (herramientas) */
/* --------------------------------------------- */

/* Estilo de los botones en la página herramientas (tools.html) */
.tools-button {
    padding: 0;
    font-size: 0;
    width: 110px;
    height: 110px;
    background-color: transparent;
    border: none;
    margin: 10px;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Generalmente, el contenedor de botones debe usar flexbox incluso antes de hacer clic */
.tools-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Efecto hover para los botones de la página de herramientas */
.tools-button:hover {
    transform: scale(1.3);
    /* Aumenta ligeramente el tamaño del botón al pasar el cursor */
}

/* Estilo para las imágenes dentro de los botones de herramientas */
.tools-button img {
    position: absolute;
    /* Posiciona la imagen de forma absoluta dentro del botón */
    width: 70%;
    /* Ajusta el tamaño de la imagen dentro del botón */
    height: 70%;
    /* Ajusta la altura de la imagen dentro del botón */
    object-fit: cover;
    /* Asegura que la imagen no se distorsione */
    top: 50%;
    /* Posiciona la imagen en el centro vertical */
    left: 50%;
    /* Posiciona la imagen en el centro horizontal */
    transform: translate(-50%, -50%);
    /* Ajusta la imagen para que esté perfectamente centrada */
}

/* Estilo para los botones dentro del contenedor de los botones */
.tools-buttons .tools-button {
    margin: 0 10px;
    /* Establecemos un margen entre los botones */
}

/* Estilo para los contenedores de los botones en la página de herramientas */
.tools-container {
    width: 100%;
    /* Asegura que abarque el ancho completo de la pantalla */
    height: 100vh;
    /* Asegura que abarque la altura completa del viewport */
    display: flex;
    /* Usar flexbox para centrar los botones */
    flex-direction: column;
    /* Opcional: Ajusta según el diseño deseado */
    justify-content: center;
    /* Centra verticalmente los botones */
    align-items: center;
    /* Centra horizontalmente los botones */
    box-sizing: border-box;
    /* Incluye padding y bordes en el tamaño */
}


/* Contenido por defecto, inicialmente oculto */
.content-section {
    display: none;
    /* Oculta el contenido por defecto */
    padding: 20px;
    text-align: center;
    max-height: 0;
    /* Altura inicial colapsada */
    opacity: 0;
    /* Invisible por defecto */
    transition: all 0.5s ease;
    /* Suavidad en la expansión */
}

.content-section.visible {
    display: block;
    /* Muestra el contenido cuando sea visible */
    max-height: none;
    /* Permite que se expanda completamente */
    overflow-y: auto;
    /* Permite desplazarse verticalmente si el contenido excede */
    opacity: 1;
    /* Hace visible el contenido */
}

#pdf-render {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f5f5f5;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

#pdf-render canvas {
    width: 100%;
    max-width: 900px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.content-section h2 {
    font-size: 1.5em;
    text-align: center;
    /* Centra el texto horizontalmente */
    font-weight: bold;
    /* Hace el texto más destacado */
    color: #444;
    /* Ajusta el color si es necesario */
    margin-bottom: 15px;
    /* Espaciado entre el título y el PDF */
    white-space: nowrap;
    /* Evita que el texto se ajuste a otra línea */

}

@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-text {
        align-items: center;
        text-align: center;
    }

    .profile h1 {
        font-size: 2.2em;
    }

    .profile h2 {
        font-size: 1em;
    }

    .index-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tools-buttons {
        flex-wrap: wrap;
        gap: 15px;
        padding: 20px;
    }

    .tools-button {
        width: 80px;
        height: 80px;
        margin: 5px;
    }

    .content-section h2 {
        font-size: 1.2em;
        white-space: normal;
        padding: 0 10px;
    }
}