/* style.css */

:root {
    --primary-bg-color: #f4f6f8;
    --text-color: #333;
    --header-color: #0e5a8a;
    --accent-color-light: #A7D9F7; /* Tono pastel azul */
    --accent-color-green: #B2EBF2; /* Tono pastel verde */
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: var(--header-color);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.header-content .logo {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    font-size: 2.2em;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav a:hover, nav a:focus {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Main content */
main {
    flex-grow: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.content-section {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.content-section h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--header-color);
    font-size: 1.8em;
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-section h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--header-color);
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section ul li {
    background-color: var(--accent-color-green);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    /* Added flex-wrap to allow content to wrap */
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.content-section .answer {
    font-weight: 600;
    color: var(--header-color);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    /* Ensure answer wraps gracefully if it's long */
    word-break: break-word; 
}

/* Footer */
footer {
    background-color: var(--header-color);
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer button {
    background-color: var(--accent-color-light);
    color: var(--header-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 15px;
}

footer button:hover {
    background-color: #87CEEB; /* Slightly darker blue */
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        padding: 10px;
        display: block;
    }

    main {
        padding: 15px;
        margin: 15px auto;
    }

    .content-section {
        padding: 20px;
    }

    .header-content .logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .content-section h2 {
        font-size: 1.5em;
    }

    .content-section h3 {
        font-size: 1.2em;
    }

    .content-section ul li,
    .content-section p {
        font-size: 1em;
    }
    /* Adjust spacing for wrapped answers on small screens */
    .content-section ul li .answer {
        margin-left: 0; /* Remove left margin when wrapped */
        margin-top: 5px; /* Add some top margin for separation */
        width: 100%; /* Make it take full width when wrapped */
        text-align: right; /* Align to the right */
        box-sizing: border-box; /* Include padding in width calculation */
    }
}
