/**
 * MASTROMEC - RESET Y BASE STYLES
 * Estilos base y reset extraídos del HTML inline
 */

/* ===== PROGRESSIVE ENHANCEMENT BASE ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY AUTHORITY IMPLEMENTATION ===== */

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--professional-gray);
    margin-bottom: var(--spacing-md);
}

/* ===== ACCESSIBILITY INTEGRATION ===== */

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

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

/* ===== REDUCED MOTION SUPPORT ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */

@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .service-card {
        border: 2px solid var(--gray-800);
    }
}

/* ===== DARK MODE SUPPORT ===== */

@media (prefers-color-scheme: dark) {
    :root {
        --white: #0F172A;
        --gray-50: #1E293B;
        --gray-100: #334155;
        --gray-200: #475569;
        --gray-800: #E2E8F0;
        --gray-900: #F8FAFC;
    }
}