/* ================= RESET & BASE ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
}

:root {
    --primary: #0b1c3d;
    --secondary: #ff3b3b;
    --text: #222;
    --bg: #ffffff;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* ================= HEADER ================= */

header {
    border-bottom: 1px solid #eee;
    background: #fff;
}

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

.logo img {
    height: 50px;
    width: auto;
    margin-top: 6px;
}

/* NAV LINKS */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--secondary);
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--primary);
    margin: 4px 0;
    border-radius: 3px;
}

/* ================= BUTTONS ================= */

.btn-primary {
    margin-top: 25px;
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #d62828;
}

/* ================= FOOTER ================= */

.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 30px;
}

.footer-box h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin-bottom: 8px;
}

.footer-box a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-box a:hover {
    color: var(--secondary);
}

.footer-box p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #ccc;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        flex-direction: column;
        width: 100%;
        text-align: center;
        display: none;
        padding: 20px 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);

        /* AGREGA ESTAS DOS LÍNEAS */
        z-index: 9999; /* Esto lo pone por encima de todo */
        left: 0;       /* Asegura que cubra todo el ancho desde la izquierda */
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .logo img {
        height: 40px;
        margin-top: 4px;
    }

    .footer-container {
        text-align: center;
    }



    
}