:root {
    --primary-color: #ffffff;
    --accent-color: #88CFE0;
    --dark-text: #333333;
    --title-blue: #00448d;
    --light-text: #333;
    --body-bg: #f7f9fa;
    --font-family: 'Poppins', sans-serif;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.212);
    --card-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.432);
}

body {
    font-family: var(--font-family);
    color: var(--dark-text);
    background-color: var(--body-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    padding-top: 140px;
    padding-bottom: 40px;
    flex: 1 0 auto;
    /* Push footer down */
}

#footer {
    flex-shrink: 0;
}


body.modal-open {
    overflow: hidden;
}

h2,
h4 {
    font-weight: 600;
}

a,
a:hover {
    text-decoration: none;
    color: inherit;
}

.navbar {
    background-color: var(--primary-color) !important;
    border: 0;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 0;
    z-index: 10000;
}

#secondary-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    padding: 0;
    z-index: 9995;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#secondary-nav h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--title-blue);
    margin: 0;
    line-height: 1.2;
    padding: 0 15px;
}

.navbar .navbar-brand,
.navbar .nav li a {
    color: var(--light-text) !important;
    transition: color 0.3s;
}

.navbar .nav li a:hover,
.navbar .nav li.active a {
    color: var(--accent-color) !important;
}

.navbar-toggle {
    border-color: transparent !important;
}

.logo-img {
    height: 70px;
    margin-top: -5px;
}

.selec {
    background-color: #b9b7b741;
    border-radius: 8px;
    padding: 8px 15px !important;
}

.dropdown-menu.custom-dropdown {
    background-color: var(--primary-color);
    border-radius: 8px;
    border: none;
    padding: 10px 0;
}

.dropdown-menu.custom-dropdown li a {
    color: var(--light-text) !important;
    padding: 10px 20px;
}

.dropdown-menu.custom-dropdown li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--light-text) !important;
}



.main-content .row {
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .main-content .row {
        display: flex;
        flex-wrap: wrap;
    }
}

.card {
    background-color: #f0eded;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card img,
.card video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h4 {
    margin-top: 10px;
    font-size: 1.2em;
    color: var(--title-blue);
}

.card p {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
}

.modal-trigger {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-trigger:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9990;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    padding-top: 140px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.modal-overlay.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-image-content {
    max-width: 100%;
    max-height: calc(100% - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

#modal-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.2em;
    text-align: center;
    transition: color 0.3s ease;
}

body.modal-open #modal-caption {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-close-button {
    position: fixed;
    top: 125px;
    right: 35px;
    color: #ee0101;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: #bbb;
    text-decoration: none;
}

#footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px 0;
}

.footer-col {
    margin-bottom: 10px;
}

#footer h4 {
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
}

#footer p {
    color: #bdc3c7;
    font-size: 0.9em;
    line-height: 1.7;
    margin-bottom: 1px;
}

#footer i {
    margin-right: 2px;
    color: var(--primary-color);
}

.contact-item {
    display: inline-block;
    margin-right: 60px;
}

#footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 2px;
    border-top: 1px solid #34495e;
    padding-top: 2px;
    color: #7f8c8d;
}


/* =================================
   Estilos para Móvil
   ================================= */

@media (max-width: 768px) {
    .logo-img {
        height: 55px;
        margin-top: -5px;
    }

    #secondary-nav h2 {
        font-size: 1.1em;
    }

    .main-content {
        padding-top: 130px;
    }

    .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 10px;
    }

    .navbar-nav>li {
        text-align: center;
    }

    .navbar-nav>li.dropdown.open>.dropdown-menu.custom-dropdown {
        display: block;
    }

    .dropdown-menu.custom-dropdown {
        background-color: transparent;
        box-shadow: none;
        padding-left: 15px;
    }

    .footer-col {
        text-align: left;
    }

    #footer h4 {
        font-size: 0.80em;
    }

    #footer p,
    #footer a {
        font-size: 0.80em;
    }

    .contact-item {
        display: block;
        margin-right: 0;
        margin-bottom: 2px;
    }

}