/* ============================================
   BASE - TALLER MAZA
   Reset + variables + tipografía
   ============================================ */

/* ============================================
   FUENTES
   ============================================ */
@font-face {
    font-family: 'Chakra Petch';
    src: url('../assets/fonts/ChakraPetch-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chakra Petch';
    src: url('../assets/fonts/ChakraPetch-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chakra Petch';
    src: url('../assets/fonts/ChakraPetch-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'Roboto';
    src: url('../assets/fonts/Roboto-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

/* ============================================
   VARIABLES
   ============================================ */
:root {
    /* Colores del negocio (del JSON) */
    --primario: #0052CC;
    --secundario: #172B4D;
    --fondo: #F4F5F7;
    --texto: #091E42;

    /* Variaciones */
    --primario-oscuro: #003D99;
    --primario-claro: #4C9AFF;
    --secundario-oscuro: #0D1B2E;
    --secundario-claro: #2D4A6F;
    --texto-suave: #42526E;
    --texto-tenue: #6B778C;
    --blanco: #FFFFFF;
    --acero: #DFE1E6;
    --borde: #D0D4DB;
    --exito: #36B37E;
    --aviso: #FFAB00;
    --error: #DE350B;

    /* Tipografía */
    --fuente-titulos: 'Chakra Petch', -apple-system, BlinkMacSystemFont, sans-serif;
    --fuente-cuerpo: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espaciado */
    --esp-1: 4px;
    --esp-2: 8px;
    --esp-3: 12px;
    --esp-4: 16px;
    --esp-5: 20px;
    --esp-6: 24px;
    --esp-8: 32px;
    --esp-10: 40px;
    --esp-12: 48px;
    --esp-16: 64px;
    --esp-20: 80px;
    --esp-24: 96px;

    /* Radios (angulares, técnicos) */
    --radio-sm: 2px;
    --radio-md: 4px;
    --radio-lg: 6px;
    --radio-full: 999px;

    /* Sombras (técnicas, sutiles) */
    --sombra-sm: 0 1px 4px rgba(9, 30, 66, 0.08);
    --sombra-md: 0 4px 12px rgba(9, 30, 66, 0.12);
    --sombra-lg: 0 8px 24px rgba(9, 30, 66, 0.16);

    /* Transiciones */
    --transicion: 0.2s cubic-bezier(0.16, 1, 0.3, 1);

    /* Ancho máximo */
    --max-ancho: 1280px;
    --max-ancho-texto: 720px;
}

/* ============================================
   RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--fuente-cuerpo);
    background: var(--fondo);
    color: var(--texto);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    line-height: 1.1;
    color: var(--texto);
    letter-spacing: -0.01em;
}

p {
    margin-bottom: var(--esp-4);
}

a {
    color: var(--primario);
    text-decoration: none;
    transition: color var(--transicion);
}

a:hover {
    color: var(--primario-oscuro);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   CONTENEDOR
   ============================================ */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contenedor {
    width: 100%;
    max-width: var(--max-ancho);
    margin: 0 auto;
    padding: 0 var(--esp-6);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primario);
    border-radius: var(--radio-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primario-oscuro);
}

/* ============================================
   SELECCIÓN
   ============================================ */
::selection {
    background: var(--primario);
    color: var(--blanco);
}

/* ============================================
   UTILIDADES
   ============================================ */
.oculto {
    display: none !important;
}

.texto-centro {
    text-align: center;
}