@import './styles/variables.css';
@import './styles/typography.css';
@import './styles/buttons.css';
@import './styles/badges.css';
@import './styles/cards.css';
@import './styles/animations.css';
@import './styles/layout.css';

/**
 * Reset y Base Styles
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-primary-light);
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    display: block;
}

::selection {
    background-color: var(--brand-primary);
    color: var(--text-white);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/**
 * Utilidades Globales Adicionales
 */

/* Wrapper para Header y Navbar Sticky */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow var(--transition-base);
}

.sticky-header-wrapper:has(bm-header.scrolled) {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mejoras de Accessibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Lista sin estilos */
ul.list-none,
ol.list-none {
    list-style: none;
    padding-left: 0;
}

/* Links sin decoración */
a.no-style {
    color: inherit;
    text-decoration: none;
}

/* Clearfix para floats (si se necesita) */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Estilos de Impresión */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    img {
        page-break-inside: avoid;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
    
}