/* ============================================
   IMPORTACIÓN DE FUENTES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    /* ===== OFICIAL ===== */
    --primary-green: #156764;
    --light-green: #A7DBB7;
    --cream: #f9f7f1;
    --text-dark: #2c3e50;
    --white: #ffffff;

    /* ===== ACEPTADOS ===== */
    --mustard: #B7C909;
    --violet: #58256B;

}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
}

/* Header del Perfil */
.profile-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: white;
    padding: 40px 0;
    margin-top: 76px;
}

.profile-header h1 {
    font-family: 'GROBOLD', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Avatar */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'GROBOLD', sans-serif;
    font-size: 48px;
    color: var(--primary-green);
    font-weight: normal;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 3px solid var(--light-green);
}

/* Tarjetas de perfil */
.profile-card {
    border: none;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.profile-card .card-header {
    background: var(--cream);
    border-bottom: 2px solid var(--light-green);
    font-family: 'CARONI', serif;
    font-size: 1.2rem;
    color: var(--primary-green);
    padding: 1.25rem 1.5rem;
}

/* Badges de verificación */
.badge-verified {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.badge-not-verified {
    background: var(--mustard);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

/* Estadísticas */
.stat-card {
    border-left: 4px solid var(--primary-green);
    transition: transform 0.2s;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.08);
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h6 {
    font-family: 'Quicksand', sans-serif;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stat-card h2,
.stat-card h5 {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary-green);
    margin: 0;
}

/* Sidebar de navegación */
.list-group-item {
    font-family: 'Quicksand', sans-serif;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    font-weight: 600;
}

.list-group-item:hover:not(.active) {
    background-color: var(--cream);
    color: var(--primary-green);
}

/* Formulario */
.form-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control {
    font-family: 'Quicksand', sans-serif;
    border: 1px solid var(--light-green);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

/* Tabla de pedidos */
.table {
    font-family: 'Quicksand', sans-serif;
}

.table th {
    font-family: 'CARONI', serif;
    color: var(--primary-green);
    font-weight: normal;
}

.table td,
.table th {
    vertical-align: middle;
    padding: 1rem;
}

/* Modal Ver Pedido */
.modal-pedido .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(45, 90, 39, 0.2);
}

.modal-pedido .modal-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px 30px;
}

.modal-pedido .modal-title {
    font-family: 'CARONI', serif;
    font-weight: normal;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.modal-pedido .btn-close {
    filter: brightness(0) invert(1);
}

.pedido-info-card {
    background: var(--cream);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.pedido-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
}

.pedido-info-item:last-child {
    border-bottom: none;
}

.pedido-info-label {
    font-family: 'Quicksand', sans-serif;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
}

.pedido-info-value {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

.productos-table {
    margin-bottom: 0;
}

.productos-table thead {
    background: var(--cream);
}

.productos-table th {
    font-family: 'CARONI', serif;
    font-weight: normal;
    color: var(--primary-green);
    border-bottom: 2px solid var(--light-green);
    padding: 12px;
}

.productos-table td {
    padding: 12px;
    vertical-align: middle;
    font-family: 'Quicksand', sans-serif;
}

.productos-table img {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.totales-section {
    background: var(--cream);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

.total-row.final {
    border-top: 2px solid var(--primary-green);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.comprobante-section {
    background: rgba(139, 195, 74, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.comprobante-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-pedido .modal-dialog {
        margin: 10px;
    }

    .productos-table {
        font-size: 0.85rem;
    }

    .modal-pedido .modal-header {
        padding: 15px 20px;
    }

    .modal-pedido .modal-title {
        font-size: 1.2rem;
    }
    
    .profile-header h1 {
        font-size: 1.8rem;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }
}