/* RESET Y ESTRUCTURA BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; /* Evita la barra de scroll horizontal */
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
}

main {
    flex: 1; /* Empuja el footer al final sin ser fixed */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER Y NAVEGACIÓN */
header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

/* Menú Escritorio */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #003366;
    font-weight: 600;
}

/* Menú Hamburguesa (Celular) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #003366;
}

.nav-mobile {
    display: none; /* Oculto por defecto */
    background: #fff;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav-mobile.active {
    display: block; /* Solo aparece al hacer clic */
}

.nav-mobile ul {
    list-style: none;
    padding: 20px;
}

.nav-mobile li { padding: 10px 0; border-bottom: 1px solid #eee; }

/* CONTACTO Y MAPA */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.map-responsive {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.credits {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #888;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .contact-grid { grid-template-columns: 1fr; }
}