/* ==========================================================
   VARIABLES DE MARCA
   ========================================================== */
:root {
    --azul: #004AAD;
    --gris-oscuro: #2E2E2E;
    --blanco-humo: #F5F5F5;
    --gris-claro: #BFC9CA;
    --azul-gris: #5D6D7E;
    --verde-azulado: #48C9B0;
    --plata: #BDC3C7;
    --accent: #FFC300;

    --font-principal: 'Montserrat', sans-serif;
    --font-titulos: 'Oswald', sans-serif;
    --font-textos: 'Open Sans', sans-serif;
    --font-comp: 'Lato', 'Raleway', 'Poppins', sans-serif;
}

/* ==========================================================
   RESET BÁSICO
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-textos);
    color: var(--gris-oscuro);
    line-height: 1.6;
    background: var(--blanco-humo);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================
   HELPERS
   ========================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.section-title {
    font-family: var(--font-titulos);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-accent:hover {
    background: #d9a500;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
    background: var(--azul);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 46px;
}

.logo h1 {
    font-family: var(--font-principal);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo p {
    font-size: 0.75rem;
    opacity: 0.9;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    font-family: var(--font-comp);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    background: linear-gradient(rgba(0, 74, 173, 0.85), rgba(0, 74, 173, 0.85)),
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    color: #fff;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-titulos);
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ==========================================================
   SERVICIOS
   ========================================================== */
.servicios {
    padding: 4rem 0;
    background: #fff;
}

.card {
    background: var(--blanco-humo);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--azul);
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-principal);
    margin-bottom: 0.5rem;
    color: var(--gris-oscuro);
}

/* ==========================================================
   NOSOTROS
   ========================================================== */
.nosotros {
    padding: 4rem 0;
}

.valores {
    margin-top: 1.5rem;
}

.valores li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.valores i {
    color: var(--verde-azulado);
}

.mision-vision {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.box {
    background: var(--azul-gris);
    color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
}

.box h3 {
    font-family: var(--font-titulos);
    margin-bottom: 0.5rem;
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.contacto {
    padding: 4rem 0;
    background: #fff;
}

.contact-list {
    margin-top: 1rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-list a {
    color: var(--azul);
    font-weight: 600;
}

.social {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--azul);
    color: #fff;
    border-radius: 50%;
    transition: background 0.3s;
}

.social a:hover {
    background: var(--accent);
}

.form {
    display: flex;
    flex-direction: column;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gris-claro);
    border-radius: 4px;
    font-family: var(--font-textos);
}

.form textarea {
    resize: vertical;
}


/* ==========================================================
   MAPA
   ========================================================== */

   .map-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.map-wrapper iframe {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    background: var(--gris-oscuro);
    color: var(--plata);
    padding: 1.2rem 0;
    font-size: 0.85rem;
}

.footer p {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer i {
    color: var(--accent);
}

.footer__legal-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer__legal-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background: var(--azul);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transition: right 0.4s;
    }

    .nav-list.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        text-align: center;
    }
}