:root {
    --primary-color: #88CFE0;
    --accent-color: #f4511e;
    --dark-text: #333333;
    --light-text: #FFFFFF;
    --body-bg: #f7f9fa;
    --font-family: 'Poppins', sans-serif;
    --purple-accent: rgb(102, 7, 255);
    --blue-accent-bg: #46a4e2cc;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    color: var(--dark-text);
    background-color: var(--body-bg);
    padding-top: 170px;
}

.content-grow {
    flex: 1 0 auto;
}

.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    margin-bottom: 0;
    background-color: var(--primary-color);
    border: 0;
    border-radius: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    height: auto;
    padding: 10px 15px;
}

.logo-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
}

.navbar-nav li a {
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 25px 15px !important;
    transition: 0.3s;
}

.navbar-nav li a:hover {
    color: var(--accent-color) !important;
}

.dropdown-menu.custom-dropdown {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu.custom-dropdown li a {
    padding: 10px 20px !important;
}

#footer {
    flex-shrink: 0;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0 10px 0;
    margin-top: 40px;
}

#footer h4 {
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 16px;
}

#footer p,
#footer a {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
}

#footer i {
    color: var(--primary-color);
    margin-right: 5px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #34495e;
    padding-top: 15px;
    font-size: 12px !important;
}

.navbar-sub {
    background-color: var(--primary-color);
    padding: 12px 0;
    width: 100%;
}

.selec {
    color: var(--purple-accent) !important;
    background-color: var(--blue-accent-bg) !important;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 20px;
    border-radius: 12px;
    display: inline-block;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contenedorPDF iframe {
    width: 100%;
    height: 75vh;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.mensaje-inicial,
.mensaje-error {
    padding: 50px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.mensaje-inicial {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.mensaje-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    display: none;
}

.list-group-item {
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.list-group-item.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

@media (max-width: 767px) {
    body {
        padding-top: 130px;
    }

    #footer {
        text-align: center;
    }

    #footer h4 {
        font-size: 14px;
    }

    #footer p,
    #footer a {
        font-size: 12px;
    }

    .navbar {
        min-height: 60px;
    }

    .navbar-nav li a {
        padding: 12px 20px !important;
        background-color: rgba(0, 0, 0, 0.02);
    }

    .navbar-sub {
        text-align: center;
        padding: 8px 0;
    }

    .selec {
        font-size: 16px;
        padding: 6px 16px;
    }

    .list-group {
        display: flex;
        flex-direction: row;
        margin-bottom: 20px;
    }

    .list-group-item {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 10px 5px !important;
        border-radius: 0 !important;
    }

    .list-group-item:first-child {
        border-radius: 6px 0 0 6px !important;
    }

    .list-group-item:last-child {
        border-radius: 0 6px 6px 0 !important;
    }

    #contenedorPDF iframe {
        height: 500px;
    }

    .logo-img {
        height: 50px;
    }
}

@media (min-width: 768px) {
    .navbar-sub {
        text-align: left;
    }

    #footer h4 {
        font-size: 18px;
    }

    #footer p,
    #footer a {
        font-size: 14px;
    }
}