﻿/* Estilos generales */
:root {
    --primary-color: #163F63;
    --secondary-color: #FFC107;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Estructura principal */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section - Versión fondo claro */
.hero-section {
    padding: 100px 0 30px 0;
    background-color: #ffffff; /* Fondo blanco */
    color: var(--primary-color); /* Texto en tu azul corporativo */
    position: relative;
    overflow: hidden;
    text-align: left;    
    border-bottom: 1px solid rgba(22, 63, 99, 0.1); /* Borde sutil azul */
}

    .hero-section h1 {
        font-size: 2.3rem;
        font-weight: 700;
        margin-bottom: 15px;
        color: var(--primary-color); /* Azul corporativo */
    }

    .hero-section p {
        font-size: 1.1rem;
        color: #555; /* Gris oscuro para mejor legibilidad */
        max-width: 700px;
        margin: 0;
    }

/* Acento amarillo corporativo */
.hero-highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Botón de acción */
.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

    .hero-btn:hover {
        background-color: transparent;
        color: var(--primary-color);
    }


/* Tarjetas de compras */
.purchase-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 25px;
    background: white;
    border-left: 4px solid var(--primary-color);
}

    .purchase-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

    .purchase-card .card-header {
        background: var(--primary-color);
        color: white;
        padding: 15px 20px;
        font-weight: 600;
        border-bottom: 2px solid var(--secondary-color);
    }

    .purchase-card .card-body {
        padding: 20px;
    }

    .purchase-card .card-footer {
        background: rgba(248, 249, 250, 0.7);
        border-top: 1px solid rgba(0,0,0,0.05);
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/* Badges de estado */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Timeline de compras */
.timeline {
    position: relative;
    padding-left: 50px;
    margin: 30px 0;
    list-style: none;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--secondary-color);
    }

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Botones */
.btn-action {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-details {
    background: var(--primary-color);
    color: white;
}

    .btn-details:hover {
        background: #0e2e4d;
        color: white;
    }

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px dashed rgba(22, 63, 99, 0.2);
    margin: 40px 0;
}

.empty-state-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state-text {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.empty-state .btn {
    margin-top: 20px;
}

/* Filtros */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(22, 63, 99, 0.1);
}

    .filter-section label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        color: var(--primary-color);
    }

    .filter-section .form-control {
        border: 1px solid rgba(0,0,0,0.1);
        padding: 8px 12px;
        border-radius: 6px;
    }

/* Modal */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 15px 20px;
}

/* Tablas */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

    .table th {
        background: var(--primary-color);
        color: white;
        padding: 12px;
        text-align: left;
    }

    .table td {
        padding: 12px;
        border-top: 1px solid #dee2e6;
        vertical-align: middle;
    }

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 90px 0 30px 0;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .purchase-card {
        margin-bottom: 20px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -30px;
        width: 25px;
        height: 25px;
    }

    .filter-section .row > div {
        margin-bottom: 15px;
    }

        .filter-section .row > div:last-child {
            margin-bottom: 0;
        }
}
