/* main.css - Estilos base para bkscorporation */

/* ===== RESET Y ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.site-header {
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-text-primary);
}

.logo-accent {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--color-accent);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-accent);
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
}

/* ===== FOOTER BASE ===== */
.site-footer {
    background-color: var(--color-card-bg);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

/* ===== UTILIDADES ===== */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}