/* ============================================================
 * GLOBAL.CSS
 * Variables, reset mínimo, tipografía base.
 * Se carga en TODAS las páginas.
 * ============================================================ */

/* --- Variables --- */
:root {
    /* Colores - AJUSTAR A TU MARCA */
    --c-primary: #1a1a2e;
    --c-secondary: #16213e;
    --c-accent: #e94560;
    --c-text: #2d2d2d;
    --c-text-light: #6b7280;
    --c-bg: #ffffff;
    --c-bg-alt: #f7f8fa;
    --c-border: #e5e7eb;

    /* Tipografía */
    --f-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-heading: var(--f-body);
    --f-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --f-lh: 1.65;

    /* Espaciado */
    --s-xs: 0.25rem;
    --s-sm: 0.5rem;
    --s-md: 1rem;
    --s-lg: 2rem;
    --s-xl: 4rem;
    --s-2xl: 6rem;

    /* Layout */
    --max-w: 1200px;
    --pad: clamp(1rem, 3vw, 2rem);

    /* Transiciones */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 150ms var(--ease);
    --t-base: 300ms var(--ease);

    /* Radius */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-full: 9999px;
}

/* --- Reset mínimo --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-body);
    font-size: var(--f-size);
    line-height: var(--f-lh);
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video, svg, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol { list-style: none; }

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-primary);
}

/* --- Utilidades base --- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--pad);
}

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

/* --- Botón base --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-sm);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--r-md);
    transition: all var(--t-base);
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--c-accent);
    color: #fff;
}
.btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--outline {
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.btn--outline:hover {
    background: var(--c-primary);
    color: #fff;
}
