/* Fuentes personalizadas para Tiendas del Sur */

/* Nunito - Fuente principal para texto del cuerpo */
@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/Nunito-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/Nunito-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Baloo - Fuente display para títulos y elementos destacados */
@font-face {
    font-family: 'Baloo';
    src: url('/assets/fonts/Baloo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Variables CSS para tipografías */
:root {
    /* Fuentes principales */
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Baloo', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* Pesos de fuentes */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Tamaños de fuentes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Line heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

/* Aplicación de tipografías base */
body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
}

/* Headers con Baloo */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-tight);
}

/* Elementos específicos del branding */
.brand-name,
.navbar-brand,
.hero-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-regular);
}

/* Botones y elementos interactivos */
.btn {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
}

/* Texto destacado */
.lead {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* Small text */
small, .small {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-sm);
}

/* Performance optimizations */
* {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}