/* estilo.css - Michifinanzas Mobile First */

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

/* Tipografía para móviles */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

/* Contenedores móviles */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-header h1 {
    font-size: 18px;
    font-weight: 600;
}

.hamburger-btn, .add-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
}

.add-btn {
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

.main-content {
    margin-top: 70px;
    padding: 15px;
    padding-bottom: 80px;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: #666;
    text-align: center;
    font-size: 24px;
    flex: 1;
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-item.active {
    color: #667eea;
}

/* Utilidades */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .mobile-header {
        height: 50px;
        padding: 0 10px;
    }
    
    .mobile-header h1 {
        font-size: 16px;
    }
    
    .mobile-nav {
        height: 50px;
    }
    
    .nav-item {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 1200px;
        margin: 70px auto 0;
        padding: 20px 30px 80px;
    }
    
    .mobile-nav {
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 15px 15px 0 0;
        bottom: 20px;
        width: calc(100% - 40px);
    }
}

/* Dark mode opcional */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #f0f0f0;
    }
    
    .mobile-header, .mobile-nav {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .nav-item {
        color: #aaa;
    }
    
    .nav-item.active {
        color: #667eea;
    }
}