/**
 * Estilos Globales - Punto de entrada
 * Importa todos los módulos de estilos globales
 */

@import './variables.css';
@import './typography.css';
@import './buttons.css';
@import './badges.css';
@import './cards.css';
@import './animations.css';
@import './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-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/**
 * Links
 */
a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/**
 * Buttons reset
 */
button {
    font-family: inherit;
    cursor: pointer;
}

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

/**
 * SVG
 */
svg {
    display: block;
}

/**
 * Selection
 */
::selection {
    background-color: var(--brand-blue);
    color: var(--text-white);
}

/**
 * Scrollbar personalizado (Webkit)
 */
::-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-blue);
}

/**
 * Focus visible
 */
:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/**
 * Utilities globales
 */
.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;
}

.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;
}
