/* ======== Navbar ======== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-menu li a:hover {
    color: #4CAF50;
}

.navbar-button {
    background-color: #4A154B;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.navbar-button:hover {
    background-color: #710873;
}

/* ======== Footer ======== */
.main-footer {
    background: #f9f9f9;
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
    color: #777;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.03);
}

.main-footer p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ======== General Styles ======== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}


/* Container */
.container {
    max-width: 800px;
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background: #f9f9f9;
    padding: 30px 20px 20px 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#page-title {
    font-size: 28px;
    font-weight: 700;
    color: #3d3d3d;
    margin: 0;
    display: block;
    margin-bottom: 10px;
}
.header-subtitle {
    margin-top: 15px;
}
.header-underline {
    width: 0;
    height: 3px;
    background-color: #4A154B;
    border-radius: 2px;
    margin: auto;
    animation: grow-line 1s ease forwards;
}

@keyframes grow-line {
    to {
        width: 500px;
    }
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid #4A154B;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    background-color: white;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #4CAF50;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 12.5l7-7-1.5-1.5L6.5 9.5 4 7l-1.5 1.5z'/%3E%3C/svg%3E");
    background-size: 70% 70%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Labels */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
}

/* Inputs and Buttons */
input, button {
    margin-bottom: 15px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input:focus {
    border-color: #4A154B;
    outline: none;
}

button {
    background-color: #4A154B;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #6f0a71;
}

/* Chart Container */
#chart-container {
    margin-top: 20px;
}

#capitalChart {
    width: 100%;
    height: 400px;
    max-height: 500px;
    border-radius: 8px;
}

/* Resultados */
#resultados {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.5;
}

#resultados p {
    margin: 10px 0;
    color: #555;
}