/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y barra superior */
.top-bar {
    background: #003366;
    color: white;
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    list-style: none;
}

.top-links a {
    color: white;
    text-decoration: none;
}

header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
}

.btn-outline {
    border: 1px solid #FDB913;
    color: #003366;
    background: #FDB913;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}


.btn-primary {
    background: #FDB913;
    color: #003366;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e5a700;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #003366, #0055aa);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 15px; }

/* Login y registro cards */
.login-card, .register-card {
    max-width: 600px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

/* Barra deslizante */
input[type="range"] {
    width: 100%;
    margin-top: 10px;
}

.range-value {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #003366;
}

/* Panel de usuario: layout con menú vertical */
.user-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.menu-vertical {
    flex: 1;
    min-width: 200px;
    background: white;
    border-radius: 15px;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.menu-vertical a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: #003366;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

.menu-vertical a i {
    font-size: 1.3rem;
    width: 30px;
}

.menu-vertical a:hover, .menu-vertical a.active {
    background: #eef2f7;
    border-left-color: #FDB913;
}

.content-panel {
    flex: 4;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Tacómetro (canvas) */
.tachometer-container {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

canvas {
    max-width: 100%;
    height: auto;
}

/* Tabla de pagos */
.table-pagos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-pagos th, .table-pagos td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.table-pagos th {
    background: #003366;
    color: white;
}

.pago-faltante {
    background-color: #ffe6e6;
    color: #cc0000;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    .user-panel {
        flex-direction: column;
    }
    .menu-vertical {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .menu-vertical a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .table-pagos {
        font-size: 0.8rem;
    }
    .table-pagos td, .table-pagos th {
        padding: 8px;
    }
}

/* Footer */
footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
}