/**
 * MedSlow.com - CSS Principal
 * Estilos completos basados en el diseño original
 */

/* ==========================================================================
   RESET Y VARIABLES
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

:root {
    /* Colores principales */
    --color-primary: #2c5aa0;          
    --color-primary-light: #4a7bc8;    
    --color-primary-dark: #1a3f73;     
    --color-secondary: #f8f9fa;        
    --color-accent: #28a745;           
    --color-text: #333333;             
    --color-text-light: #666666;      
    --color-text-muted: #999999;      
    --color-border: #e0e0e0;          
    --color-background: #ffffff;      
    --color-background-alt: #f8f9fa;  
    
    /* 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;     
    --spacing-4xl: 6rem;     
    
    /* Tipografía */
    --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;   
    --font-size-5xl: 3rem;      
    
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    /* Efectos */
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   LAYOUT Y GRID
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--spacing-sm);
}

.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-sm-3 { flex: 0 0 25%; max-width: 25%; }
.col-xs-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }

[class*="col-"] {
    padding: 0 var(--spacing-sm);
}

.col-md-offset-2 { margin-left: 16.666667%; }

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

@media (max-width: 768px) {
    .col-md-8, .col-md-6, .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .col-md-offset-2 { margin-left: 0; }
}

/* Responsive para principios - siempre horizontales */
@media (min-width: 576px) {
    .principles-row .col-sm-3, .principles-row .col-md-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

@media (max-width: 575px) {
    .principles-row .col-xs-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    line-height: 1.6;
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-lg);
}

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

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN  
   ========================================================================== */

.header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-md);
}

.nav-brand .logo-link img {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-brand .logo-link:hover img {
    transform: scale(1.05);
}

.navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin-bottom: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}