* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
    display: flex;
    flex-direction: column;
}
.navbar {
    background-color: #17335D;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 85px;
    border-radius: 50%;
    border: 2px solid #A80600;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff4d4d;
}
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li a {
    color: #17335D !important;
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li a:hover { background: #f0f0f0; color: #A80600; }

#content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1 0 auto; 
    width: 100%;
    min-height: 800px; 
}

.hero { text-align: center; margin-bottom: 50px; }
.logo_body { width: 180px; border-radius: 50%; border: 4px double #A80600; margin-bottom: 20px; }
.titulo_principal { color: #17335D; font-size: 2.5rem; margin-bottom: 15px; }
.texto_principal { font-size: 1.15rem; color: #555; text-align: justify; }

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 5px solid #A80600;
}

.card h2 { color: #17335D; text-align: center; margin-bottom: 15px; }
.lista-valores li { margin-bottom: 12px; border-bottom: 1px solid #f0f0f0; }


.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 35px;
    width: 55px;
    z-index: 1000;
    transition: transform 0.3s ease;
}
.whatsapp-float img { width: 100%; height: auto; }

footer {
    background: linear-gradient(to bottom, #17335D, #020202);
    color: white;
    padding: 90px 20px 50px;
    flex-shrink: 0;
    border-top: 3px solid #17335D;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.footer-column h3 { color: #ff4d4d; margin-bottom: 15px; }
.logo_bylack { width: 130px; margin: 15px 0; }
.footer-rights {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links a {
        padding: 10px;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f0f4f8;
    }

    .titulo_principal { font-size: 1.8rem; }
}