/* ========================================
   ESTUDIO-WEB - ESTILOS BASE
   Variables, Reset y Utilidades
   ======================================== */

/* ========== VARIABLES CSS ========== */
:root {
    /* Colores Principales - Paleta Estudio-Web */
    --primary: #0052CC;
    --primary-light: #2684FF;
    --primary-dark: #003D99;
    --primary-rgb: 0, 82, 204;
    
    /* Color de Acento - Naranja Vibrante */
    --accent: #FF6B35;
    --accent-light: #FF8A5C;
    --accent-dark: #E55A2B;
    --accent-bg: #FFF0EB;
    
    /* Colores Secundarios - Azul Oscuro */
    --secondary: #172B4D;
    --secondary-light: #253858;
    --secondary-dark: #091E42;
    
    /* Colores de Estado */
    --success: #36B37E;
    --warning: #FFAB00;
    --danger: #DE350B;
    --info: #0065FF;
    
    /* Neutros - Escala de grises */
    --white: #FFFFFF;
    --gray-50: #FAFBFC;
    --gray-100: #F4F5F7;
    --gray-200: #EBECF0;
    --gray-300: #DFE1E6;
    --gray-400: #C1C7D0;
    --gray-500: #97A0AF;
    --gray-600: #6B778C;
    --gray-700: #505F79;
    --gray-800: #344563;
    --gray-900: #172B4D;
    --black: #091E42;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #091E42 0%, #172B4D 50%, #253858 100%);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Crimson Text', Georgia, serif;
    
    /* Tamaños de fuente */
    --text-xs: 1rem;
    --text-sm: 1.125rem;
    --text-base: 1.25rem;
    --text-lg: 1.5rem;
    --text-xl: 1.75rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3rem;
    --text-5xl: 4rem;
    --text-6xl: 5rem;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Bordes */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.08);
    --shadow-md: 0 4px 8px -2px rgba(9, 30, 66, 0.1), 0 0 1px rgba(9, 30, 66, 0.08);
    --shadow-lg: 0 8px 16px -4px rgba(9, 30, 66, 0.12), 0 0 1px rgba(9, 30, 66, 0.08);
    --shadow-xl: 0 16px 32px -8px rgba(9, 30, 66, 0.15), 0 0 1px rgba(9, 30, 66, 0.08);
    --shadow-2xl: 0 24px 48px -12px rgba(9, 30, 66, 0.18);
    
    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ========== RESET Y BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
}

body.loaded {
    overflow: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========== UTILIDADES ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

/* ========== SECCIONES GENERALES ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-description {
    font-size: var(--text-base);
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== BOTONES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 82, 204, 0.04);
}

.btn-white {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    border-color: #1EBE5D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* ========== RESPONSIVE BASE ========== */
@media (min-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-3xl);
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: var(--text-4xl);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* ========== PANTALLAS MUY PEQUEÑAS ========== */
@media (max-width: 340px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .section-description {
        font-size: var(--text-sm);
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: var(--text-sm);
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: var(--text-sm);
    }
}
