/* Variables y estilos globales */
:root {
    /* Colores principales - Modo Oscuro con Rojo y Gris */
    --primary: #e53935;
    --primary-dark: #b71c1c;
    --primary-light: #ff5252;
    --secondary: #757575;
    --secondary-dark: #424242;
    --secondary-light: #9e9e9e;
    --accent: #ff9800;
    --accent-dark: #f57c00;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-card: #2d2d2d;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: #444444;
    --success: #4caf50;
    --warning: #ffc107;
    --danger: #f44336;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    
    /* Variables para modo claro */
    --light-bg: #f8f9fa;
    --light-surface: #ffffff;
    --light-card: #f1f3f4;
    --light-text-primary: #212529;
    --light-text-secondary: #495057;
    --light-text-muted: #6c757d;
    --light-border-color: #dee2e6;
    --light-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --light-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Modo claro */
body.light-mode {
    --bg-color: var(--light-bg);
    --surface-color: var(--light-surface);
    --card-color: var(--light-card);
    --text-primary-color: var(--light-text-primary);
    --text-secondary-color: var(--light-text-secondary);
    --text-muted-color: var(--light-text-muted);
    --border-color: var(--light-border-color);
    --shadow: var(--light-shadow);
    --shadow-light: var(--light-shadow-light);
}

/* Modo oscuro (por defecto) */
body:not(.light-mode) {
    --bg-color: var(--dark-bg);
    --surface-color: var(--dark-surface);
    --card-color: var(--dark-card);
    --text-primary-color: var(--text-primary);
    --text-secondary-color: var(--text-secondary);
    --text-muted-color: var(--text-muted);
    --border-color: var(--border-color);
    --shadow: var(--shadow);
    --shadow-light: var(--shadow-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.6);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .parts-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 80px 0;
    }
}
/* Añadir al final del archivo styles.css */

/* CORRECCIONES GLOBALES RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    /* Asegurar que los botones no se salgan */
    .btn {
        min-width: auto;
        width: auto;
    }
    
    /* Corregir overflow horizontal */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Asegurar que las imágenes sean responsivas */
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    /* Textos más pequeños en móviles */
    h1 {
        font-size: 1.8rem !important;
    }
    
    h2 {
        font-size: 1.6rem !important;
    }
    
    h3 {
        font-size: 1.4rem !important;
    }
    
    p {
        font-size: 0.95rem !important;
    }
}

/* Prevenir scroll horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}