/* =========================
   RESET BÁSICO
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f6f7f9;
    color: #1f2937;
    line-height: 1.6;
}

/* =========================
   CONTENEDOR GLOBAL
========================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

/* =========================
   HEADER
========================= */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* LOGO */
.logo {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.logo strong {
    color: #2563eb;
}

/* NAV */
.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #2563eb;
}

/* =========================
   FOOTER
========================= */
.main-footer {
    background: #111827;
    color: #9ca3af;
    margin-top: 80px;
}

.main-footer .container {
    padding: 32px 16px;
    text-align: center;
}

.main-footer a {
    color: #60a5fa;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* =========================
   BOTONES BASE
========================= */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn.primary {
    background: #2563eb;
    color: #ffffff;
}

.btn.primary:hover {
    background: #1d4ed8;
}

.btn.secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn.secondary:hover {
    background: #d1d5db;
}

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

/* TABLET */
@media (max-width: 900px) {
    .nav {
        gap: 16px;
    }

    .logo {
        font-size: 20px;
    }
}

/* MÓVIL */
@media (max-width: 640px) {
    .main-header .container {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        padding: 12px 0;
        gap: 10px;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav a {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 10px;
        background: #f3f6fb;
    }

    .logo {
        font-size: 20px;
        text-align: center;
    }

    .main-footer .container {
        padding: 24px 16px;
        font-size: 14px;
    }
}
