* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   HEADER
========================= */
header {
    background: #003366;
    padding: 15px;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header h2 {
    color: #fff;
}

/* =============================
	PR
============================*/

/* ===== MENÚ RESPONSIVE ===== */
header { position: relative; }

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    padding: 5px 10px;
    cursor: pointer;
}

img, iframe { max-width: 100%; }

@media (max-width: 768px) {

    .menu-toggle { display: block; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        z-index: 999;
    }

    nav.open { display: block; }

    .menu {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .menu li { width: 100%; }

    .menu li a {
        display: block;
        padding: 14px 20px;
        border-top: 1px solid rgba(255,255,255,.15);
    }

    /* Submenú dentro del flujo, desplegable por toque */
    .submenu {
        display: none;
        position: static;
        width: 100%;
        background: rgba(255,255,255,.06);
        box-shadow: none;
    }

    .dropdown.open .submenu { display: block; }

    .submenu li a { padding-left: 40px; }
}



/* =========================
   MENU
========================= */


nav{
    background: #0078D7;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}



.menu {
    list-style: none;
    display: flex;
justify-content: center; /* centra el menú */

}

.menu li {
    position: relative;
}
.menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}
.menu li:hover {
    background: #005A9E;
}
nav ul.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #005A9E;
    min-width: 200px;
    list-style: none;
}
.submenu li a {
    padding: 12px 15px;
}
.menu li:hover > .submenu {
    display: block;
}
.contenido {
    margin-top: 60px; /* ajusta según la altura real del menú */
    padding: 30px;
}

/* =========================
   HERO
========================= */
.hero {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 20px 20px;
}

/* =========================
   BOTÓN
========================= */
.btn {
    background: #f58220;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn:hover {
    background: #d96e10;
}

/* =========================
   SERVICIOS
========================= */
.services {
    padding: 60px 0;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* =========================
   FORMULARIO
========================= */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
input,
textarea {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
button {
    background: #003366;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}
button:hover {
    background: #00509e;
}

/* =========================
   CONTACTO Y MAPA
========================= */
.contacto {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
    align-items: flex-start;
}
.formulario {
    width: 40%;
}
.mapa {
    width: 60%;
}
.formulario input,
.formulario textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #666;
    border-radius: 5px;
}
.formulario textarea {
    height: 120px;
    resize: none;
}
.formulario button {
    width: 100%;
    padding: 12px;
    background: #0078D7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.formulario button:hover {
    background: #005A9E;
}
.mapa iframe {
    border-radius: 8px;
    width: 100%;
    height: 350px;   /* en vez de 100% */
    min-height: 300px;
    border: none;
}


/* =========================
   FOOTER
========================= */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}