/* ============================================
   MAIN CSS - Mobile First
   Paleta: Verde claro, Azul metálico, Blanco
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores principal */
    --green-light: #4ecdc4;
    --green-medium: #44a08d;
    --blue-metal: #2c3e50;
    --blue-metal-dark: #1a252f;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e8ecef;
    --gray-text: #7f8c8d;
    --gray-text-dark: #2c3e50;
    
    /* Colores del sistema */
    --primary-color: var(--green-light);
    --primary-dark: var(--green-medium);
    --secondary-color: var(--blue-metal);
    --text-primary: var(--blue-metal);
    --text-secondary: var(--gray-text);
    --text-muted: #95a5a6;
    --border-color: var(--gray-medium);
    --bg-light: var(--gray-light);
    --bg-white: var(--white);
    --success: #27ae60;
    --error: #e74c3c;
    --warning: #f39c12;
    
    /* Sombras */
    --shadow: 0 4px 6px rgba(44, 62, 80, 0.1);
    --shadow-lg: 0 10px 40px rgba(44, 62, 80, 0.2);
    --shadow-xl: 0 15px 50px rgba(44, 62, 80, 0.3);
    
    /* Colores planos - sin gradientes */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.loading .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-medium);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.loading p {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons Base */
button {
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Iconos con emojis */
.icon {
    font-style: normal;
    font-size: 1.2em;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    min-width: 20px;
    height: 20px;
}

/* Tablet */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* Desktop (Secundario) */
@media (min-width: 1024px) {
    body {
        font-size: 16px;
    }
}
