/* ============================================
   INSTEL RADIO — BASE.CSS
   Variables, reset, tipografía
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    /* ===== Paleta institucional ===== */
    --color-azul:           #00529b;
    --color-azul-hover:     #003b75;
    --color-azul-light:     #0073d4;
    --color-rojo:           rgb(220, 38, 38);
    --color-rojo-hover:     rgb(185, 28, 28);
    
    /* ===== Fondos ===== */
    --bg-primary:           #0a1628;
    --bg-secondary:         #0f2240;
    --bg-card:              rgba(255, 255, 255, 0.04);
    --bg-card-hover:        rgba(255, 255, 255, 0.08);
    --bg-card-solid:        #fff;
    
    /* ===== Texto ===== */
    --text-primary:         #ffffff;
    --text-secondary:       rgba(255, 255, 255, 0.75);
    --text-muted:           rgba(255, 255, 255, 0.55);
    --text-on-light:        #1a1a1a;
    --text-on-light-soft:   #555;
    
    /* ===== Bordes ===== */
    --border-subtle:        rgba(255, 255, 255, 0.08);
    --border-medium:        rgba(255, 255, 255, 0.15);
    --border-azul:          rgba(0, 82, 155, 0.3);
    
    /* ===== Sombras ===== */
    --shadow-sm:            0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md:            0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg:            0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-azul:          0 8px 24px rgba(0, 82, 155, 0.4);
    --shadow-rojo:          0 8px 24px rgba(220, 38, 38, 0.4);
    
    /* ===== Tipografía ===== */
    --font-body:            'Inter', system-ui, -apple-system, sans-serif;
    --font-display:         'Space Grotesk', 'Inter', sans-serif;
    
    /* ===== Espaciado ===== */
    --space-xs:             0.25rem;
    --space-sm:             0.5rem;
    --space-md:             1rem;
    --space-lg:             1.5rem;
    --space-xl:             2.5rem;
    --space-2xl:            4rem;
    
    /* ===== Radios ===== */
    --radius-sm:            6px;
    --radius-md:            10px;
    --radius-lg:            14px;
    --radius-xl:            20px;
    --radius-full:          9999px;
    
    /* ===== Transiciones ===== */
    --transition-fast:      0.15s ease;
    --transition-base:      0.25s ease;
    --transition-slow:      0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* ===== Layout ===== */
    --max-width:            1400px;
    --header-height:        auto;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at top, rgba(0, 82, 155, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }

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

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

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

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-azul);
}

.section-header h2 {
    color: var(--text-primary);
    margin: 0;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
}

/* ===== SCROLLBAR (estilizado) ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-azul);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-azul-light);
}

/* ===== ACCESIBILIDAD ===== */
:focus-visible {
    outline: 2px solid var(--color-azul-light);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}